sklab prompt command exports one or more skills into prompt formats suitable for agent platforms. This enables you to inject skill metadata (name, description, location) into agent system prompts for dynamic skill discovery.
Overview
Skill Lab supports 3 output formats:XML is the default and recommended format for Claude-based agents.
Basic Usage
Export Single Skill
Export Multiple Skills
Export Current Directory
Output Formats
XML (Default)
Best for: Claude API, Claude Code, structured system promptsMarkdown
Best for: Human-readable documentation, LangChain prompts, OpenAI AssistantsJSON
Best for: Machine-readable metadata, API integrations, custom skill loadersToken Estimates
Skill Lab estimates discovery tokens (name + description) for all exported skills:Integration Examples
Claude API System Prompt
LangChain with Markdown
Custom Skill Loader (JSON)
Dynamic Skill Discovery
Use Cases
1. Multi-Agent Systems
Export skills for multiple specialized agents:2. Skill Marketplace
Generate a JSON catalog of available skills:3. Documentation Generation
Create human-readable skill documentation:4. CI/CD Skill Injection
Token Budgeting
Discovery Cost (System Prompt)
Each skill adds ~40-100 tokens to the system prompt (name + description).Activation Cost (Full SKILL.md)
When a skill is invoked, the agent loads the full SKILL.md (~200-2000 tokens). Usesklab info to see activation costs:
Format Comparison
Recommendations:
- Claude agents: Use XML
- Documentation: Use Markdown
- Programmatic access: Use JSON
Next Steps
Skill Inspector
View detailed skill metadata and token estimates with
sklab infoStatic Analysis
Validate skill quality before exporting