Overview
Theinfo command displays skill metadata and token usage estimates. It provides quick insight into a skill’s structure, content size, and expected token costs for discovery and activation.
Usage
Arguments
Path to the skill directory. Defaults to current directory if not specified.
Options
Output as JSON for machine-readable format (pipe-friendly).
Alias:
-fExtract a single field value from the skill metadata.Available fields:name- Skill namedescription- Skill descriptionlicense- License typecompatibility- Compatibility informationstructure- List of subfoldersbody_lines- Number of lines in skill bodytokens- Token estimates (returns JSON object)
Examples
Display skill info (default format)
Get JSON output
Extract specific field
Use in scripts
Output Fields
Structure Detection
The command automatically detects skill structure:scripts/- Contains executable scriptsreferences/- Contains reference documentationassets/- Contains images or other assets
Token Estimates
Discovery tokens: Estimated tokens for skill name + description- Used during skill discovery phase
- Affects how many skills can be loaded in agent context
- Used when skill is activated
- Includes frontmatter, body, and all content
Token estimates use a simplified algorithm and may differ from actual token counts by specific models. Use them as approximations for budgeting.
JSON Output Format
Exit Codes
- 0: Info retrieved successfully
- 1: Error occurred (invalid path, missing SKILL.md, unknown field)
Use Cases
Skill Budget Monitoring
Check if skills fit within token budgets:CI/CD Integration
Validate skill metadata in automated workflows:Skill Catalog Generation
Generate skill catalogs from metadata:Notes
Token estimates are based on approximate character-to-token ratios. For precise token counts, use the actual model’s tokenizer.
Related Commands
- sklab prompt - Export skill for agent platforms
- sklab evaluate - Run quality checks