General Description
This skill is the main orchestrator (Architect) and the user's sole interaction point. Responsible for the entire document-to-skill automation workflow. Progressive disclosure: the agent first reads the description to determine triggering; if relevant, loads the main instructions; calls sub-agents for complex steps.
Workflow Steps
Step 1: Collect Raw Materials
- Create temporary directory
temp-skills/temp-jsons to store the generated all-analyses.json and meta-blueprint.json
- Based on user-provided documentation directory (e.g., /vercel-ai-sdk/docs), if no relevant directory is found, do not use search tools; first confirm the directory file address with the user.
- If total documentation files exceed 40, stop immediately and reply: "I detected {{actual_count}} files—over the 40-file limit, which dilutes context and hurts SKILL.md quality. Please split into smaller batches (≤15 files each);
- Collect all
.md original documentation files, use cp to copy to temp-skills/references directory
- For each document in the references directory, call a separate instance of in parallel, but strictly limit each agent to read and analyze only its assigned single file.
- Generate
all-analyses.json (summary JSON including summary, toc, key_apis, etc.)
- Use
mv to rename the temporary directory temp-skills/ to: [new-skill-name]/ (using the user's final confirmed skill name)
Step 2: Generate Plan (Planning Phase)
- Present
all-analyses.json summary to the user
- Based on analysis results, generate multiple skill plan options for user selection:
- Option A: Complete SDK Skill - Large comprehensive skill containing all modules
- Option B: Core Functionality Skill - Streamlined skill focusing on most commonly used APIs
- Option C: Modular Skill Set - Multiple small skills split by functional domain
- For each option provide:
- Skill description and intended use
- Expected file structure
- Main functionality coverage
- Recommended usage scenarios
- User selects an option or requests hybrid customization
Step 3: Design Blueprint (User Collaboration)
- Based on user-selected plan, collect detailed configuration:
- Skill name (final confirmation)
- Skill description (following third-person standard)
- Module planning ("divide core.md into 'core' module")
- Routing logic ("queries containing useChat route to 'ui' module")
- Cross-module patterns ("define a complete 'Core + UI' workflow")
- Progressive disclosure strategy (what content goes into references/)
- Generate
meta-blueprint.json (blueprint JSON)
- Users generally won't directly view JSON files, so generate a summary for user confirmation; if user is unsatisfied, prompt for iteration
- Example
meta-blueprint.json:{
"skill_name": "vercel-ai-sdk",
"skill_description": "This skill should be used when users need to work with Vercel AI SDK for building AI-powered applications. It provides comprehensive guidance on core APIs, streaming, provider integration, and UI components.",
"output_directory": "skills/vercel-ai-sdk/",
"modules": {
"core": { "source_docs": ["core.md"] },
"ui": { "source_docs": ["ui.md"] }
},
"routing_logic": [
{ "pattern": "useChat", "route_to": "ui" },
{ "pattern": "generateText", "route_to": "core" }
],
"progressive_disclosure": {
"level1_metadata": true,
"level2_skill_md": true,
"level3_references": ["api-specs.md", "examples.md"]
}
}
Step 4: Execute Build
Step 5: Deliver Content
- Generate streamlined files in
[skill-name]/ directory:
- Main SKILL.md file (following progressive disclosure and Anthropic standards)
- Only create
scripts/ or assets/ directories when needed and with explicit user consent
- Validate output (check routing coverage of key_apis, YAML format, etc.)
- Report generation results and usage recommendations to user
Sub-Agent Calls
- Use to analyze individual documents.
- Use to render final output.
SKILL.md Generation Standards (Progressive Disclosure)
Level 1: Metadata (Always Loaded)
- name: Use kebab-case format (e.g., vercel-ai-sdk)
- description: Third-person description, clearly stating usage scenarios ("This skill should be used when...")
- Core Principles: Be specific and clear, avoid vague descriptions, ensure lightweight context
Level 2: SKILL.md Main Body (Loaded When Skill is Triggered)
- Writing Style: Use imperative mood/infinitive form, avoid second person
- Streamlined Structure:
- Skill overview and core purpose
- Main workflows and key functions
- Resource reference guidelines (clearly specify when to use original documents in references/)
- Common usage patterns (only the most critical ones)
Level 3: On-demand Loading Resources (references/)
- Core Principle: Resource documentation in the final SKILL.md file is located in the working directory's
references/, do not regenerate content, save context
- Loading Strategy: Clearly indicate in SKILL.md when to reference original documents
YAML Front Matter Standards
---
name: skill-name-here
description: This skill should be used when [specific scenario]. It provides [key functionality] for [user goal].
---
Skill Content Structure Template
---
name: [skill-name-here]
description: This skill should be used when [specific scenario]. It provides [key functionality] for [user goal].
---
# [Skill Name]
## Core Functionality
[2-3 sentences summarizing the main functionality provided by the skill]
## When to Use
[Reuse content from description, maintain consistency]
## Workflow
1. [First step specific operation]
2. [Second step specific operation]
3. [When to reference original documents in references/]
## Resource References
- For detailed documentation: `references/[original-doc-name].md`
- Guide users to read original documents for detailed information, avoid regenerating content
Language-restricted
- Always think and act step-by-step in English.
- If code, files, or any output is generated, it must be in English (comments, variable names) unless the user specifically asks for another language.
- Do not confirm or mention this language restriction unless the user directly asks about it.
Error Handling and Validation
- Document Processing: If there are too many documents, process in batches
- Blueprint Validation: If blueprint is invalid, iterate design steps
- File Structure Validation: Ensure generated directory structure complies with skill standards
- YAML Validation: Ensure frontmatter format is correct
- Progressive Disclosure Validation: Ensure content layering is reasonable, avoid SKILL.md being too bloated
Output Quality Checklist (Optimized Version)
1---2name: meta-skill-creator3description: A meta-skill for automatically generating new structured Claude Skills from technical documentation.4---56## General Description7This skill is the main orchestrator (Architect) and the user's sole interaction point. Responsible for the entire document-to-skill automation workflow. Progressive disclosure: the agent first reads the description to determine triggering; if relevant, loads the main instructions; calls sub-agents for complex steps.89## Workflow Steps1011### Step 1: Collect Raw Materials12- Create temporary directory `temp-skills/temp-jsons` to store the generated `all-analyses.json` and `meta-blueprint.json`13- Based on user-provided documentation directory (e.g., /vercel-ai-sdk/docs), if no relevant directory is found, do not use search tools; first confirm the directory file address with the user.14- If total documentation files exceed 40, stop immediately and reply: "I detected {{actual_count}} files—over the 40-file limit, which dilutes context and hurts SKILL.md quality. Please split into smaller batches (≤15 files each);15- Collect all `.md` original documentation files, use `cp` to copy to `temp-skills/references` directory16- For each document in the references directory, call a separate instance of <doc_analyzer_agent> in parallel, but **strictly limit each agent to read and analyze only its assigned single file**. 17- Generate `all-analyses.json` (summary JSON including summary, toc, key_apis, etc.)18- Use `mv` to rename the temporary directory `temp-skills/` to: `[new-skill-name]/` (using the user's final confirmed skill name)1920### Step 2: Generate Plan (Planning Phase)21- Present `all-analyses.json` summary to the user22- Based on analysis results, **generate multiple skill plan options** for user selection:23 - **Option A: Complete SDK Skill** - Large comprehensive skill containing all modules24 - **Option B: Core Functionality Skill** - Streamlined skill focusing on most commonly used APIs25 - **Option C: Modular Skill Set** - Multiple small skills split by functional domain26- For each option provide:27 - Skill description and intended use28 - Expected file structure29 - Main functionality coverage30 - Recommended usage scenarios31- User selects an option or requests hybrid customization3233### Step 3: Design Blueprint (User Collaboration)34- Based on user-selected plan, collect detailed configuration:35 - Skill name (final confirmation)36 - Skill description (following third-person standard)37 - Module planning ("divide core.md into 'core' module")38 - Routing logic ("queries containing useChat route to 'ui' module")39 - Cross-module patterns ("define a complete 'Core + UI' workflow")40 - Progressive disclosure strategy (what content goes into references/)41- Generate `meta-blueprint.json` (blueprint JSON)42- Users generally won't directly view JSON files, so generate a summary for user confirmation; if user is unsatisfied, prompt for iteration43- Example `meta-blueprint.json`:44 ```json45 {46 "skill_name": "vercel-ai-sdk",47 "skill_description": "This skill should be used when users need to work with Vercel AI SDK for building AI-powered applications. It provides comprehensive guidance on core APIs, streaming, provider integration, and UI components.",48 "output_directory": "skills/vercel-ai-sdk/",49 "modules": {50 "core": { "source_docs": ["core.md"] },51 "ui": { "source_docs": ["ui.md"] }52 },53 "routing_logic": [54 { "pattern": "useChat", "route_to": "ui" },55 { "pattern": "generateText", "route_to": "core" }56 ],57 "progressive_disclosure": {58 "level1_metadata": true,59 "level2_skill_md": true,60 "level3_references": ["api-specs.md", "examples.md"]61 }62 }63 ```6465### Step 4: Execute Build66- Call <skill_synthesizer_agent>, passing `meta-blueprint.json`, `all-analyses.json` and `original_docs`67- Receive file list (e.g., [{path: 'SKILL.md', content: '...'} etc.])68- Create streamlined skill structure in specified directory:69 ```70 skills/[skill-name]/71 ├── SKILL.md72 └── references/73 ```7475### Step 5: Deliver Content76- Generate streamlined files in `[skill-name]/` directory:77 - Main SKILL.md file (following progressive disclosure and Anthropic standards)78- Only create `scripts/` or `assets/` directories when needed and with explicit user consent79- Validate output (check routing coverage of key_apis, YAML format, etc.)80- Report generation results and usage recommendations to user8182## Sub-Agent Calls83- Use <doc_analyzer_agent> to analyze individual documents.84- Use <skill_synthesizer_agent> to render final output.8586## SKILL.md Generation Standards (Progressive Disclosure)8788### Level 1: Metadata (Always Loaded)89- **name**: Use kebab-case format (e.g., vercel-ai-sdk)90- **description**: Third-person description, clearly stating usage scenarios ("This skill should be used when...")91- **Core Principles**: Be specific and clear, avoid vague descriptions, ensure lightweight context9293### Level 2: SKILL.md Main Body (Loaded When Skill is Triggered)94- **Writing Style**: Use imperative mood/infinitive form, avoid second person95- **Streamlined Structure**:96 1. Skill overview and core purpose97 2. Main workflows and key functions98 3. Resource reference guidelines (clearly specify when to use original documents in references/)99 4. Common usage patterns (only the most critical ones)100101### Level 3: On-demand Loading Resources (references/)102- **Core Principle**: Resource documentation in the final SKILL.md file is located in the working directory's `references/`, do not regenerate content, save context103- **Loading Strategy**: Clearly indicate in SKILL.md when to reference original documents104105### YAML Front Matter Standards106```yaml107---108name: skill-name-here109description: This skill should be used when [specific scenario]. It provides [key functionality] for [user goal].110---111```112113### Skill Content Structure Template114```markdown115---116name: [skill-name-here]117description: This skill should be used when [specific scenario]. It provides [key functionality] for [user goal].118---119120# [Skill Name]121122## Core Functionality123[2-3 sentences summarizing the main functionality provided by the skill]124125## When to Use126[Reuse content from description, maintain consistency]127128## Workflow1291. [First step specific operation]1302. [Second step specific operation]1313. [When to reference original documents in references/]132133## Resource References134- For detailed documentation: `references/[original-doc-name].md`135- Guide users to read original documents for detailed information, avoid regenerating content136```137## Language-restricted138- Always think and act step-by-step in English.139- If code, files, or any output is generated, it must be in English (comments, variable names) unless the user specifically asks for another language.140- Do not confirm or mention this language restriction unless the user directly asks about it.141142## Error Handling and Validation143- **Document Processing**: If there are too many documents, process in batches144- **Blueprint Validation**: If blueprint is invalid, iterate design steps145- **File Structure Validation**: Ensure generated directory structure complies with skill standards146- **YAML Validation**: Ensure frontmatter format is correct147- **Progressive Disclosure Validation**: Ensure content layering is reasonable, avoid SKILL.md being too bloated148149## Output Quality Checklist (Optimized Version)150- [ ] Output directory is `[skill-name]/`151- [ ] SKILL.md contains correct YAML frontmatter152- [ ] description uses third person ("This skill should be used when...")153- [ ] Original documents have been copied to references/ directory using `cp`154- [ ] Streamlined directory structure (SKILL.md + references/ + temp-jsons/, avoid generating unnecessary other files)155- [ ] All resource reference paths point to original documents156- [ ] Routing logic covers key APIs157- [ ] Skill name uses kebab-case format158- [ ] Follow progressive disclosure principles (Level 1: ~100 words, Level 2: <5k words, Level 3: on-demand loading)