Skill Creator
Overview
This skill helps you create well-structured Claude Agent Skills. A skill is a modular capability that extends Claude's functionality with domain-specific expertise, workflows, and best practices.
Skill Structure Requirements
Every skill must have:
- SKILL.md: Main instruction file with YAML frontmatter (required)
- Optional files: Additional markdown files, scripts, templates, or resources
Creating a New Skill
Step 1: Define the Skill
Name:
- Maximum 64 characters
- Only lowercase letters, numbers, and hyphens
- No XML tags
- Cannot contain "anthropic" or "claude"
- Example:
pdf-processor, api-documenter, code-reviewer
Description:
- Maximum 1024 characters
- Must describe what the skill does AND when Claude should use it
- No XML tags
- Be specific about triggers (e.g., "Use when working with PDF files")
Step 2: Create SKILL.md Template
---
name: [skill-name]
description: [What it does and when to use it]
---
# [Skill Name]
## Overview
[Brief description of the skill's purpose]
## Quick Start
[Simple example showing basic usage]
## Detailed Instructions
[Step-by-step guidance]
## Examples
[Concrete examples with code or workflows]
## Advanced Usage
[Optional: advanced patterns and edge cases]
## References
[Optional: links to additional resources]
Step 3: Organize Additional Files
Structure additional files logically:
- Use subdirectories for scripts, templates, or resources
- Reference external files in SKILL.md using relative paths
- Keep files focused and purposeful
Best Practices
Writing Effective Descriptions
- Start with what the skill does (verb phrase)
- Include triggers: "Use when..."
- Be specific about use cases
- Mention key capabilities
Good examples:
- "Create presentations, edit slides, analyze presentation content. Use when working with PowerPoint files or when the user mentions presentations, slides, or PPTX files."
- "Extract text and tables from PDF files, fill forms, merge documents. Use when working with PDF files or when the user mentions PDFs, forms, or document extraction."
Progressive Disclosure
- Level 1 (Metadata): Keep descriptions concise (~100 tokens)
- Level 2 (SKILL.md): Main instructions (~5k tokens)
- Level 3 (Resources): Bundle comprehensive guides and scripts
Instruction Writing
- Use clear, actionable language
- Provide step-by-step workflows
- Include code examples when relevant
- Reference additional files for complex topics
- Use markdown for formatting (code blocks, lists, headers)
Code and Scripts
- Store reusable code in
.py, .js, or .sh files
- Keep scripts focused and executable
- Document script parameters and usage
- Reference scripts in SKILL.md instructions
Common Patterns
Pattern 1: Single-Purpose Skill
my-skill/
└── SKILL.md
Pattern 2: Skill with Additional Resources
my-skill/
├── SKILL.md
├── ADVANCED.md
└── REFERENCE.md
Pattern 3: Skill with Scripts
my-skill/
├── SKILL.md
└── scripts/
├── process.py
└── validate.sh
Pattern 4: Comprehensive Skill
my-skill/
├── SKILL.md
├── GETTING_STARTED.md
├── EXAMPLES.md
├── REFERENCE.md
├── scripts/
│ ├── helper.py
│ └── utilities.sh
└── templates/
└── template.json
Validation Checklist
Before finalizing a skill, verify:
Examples of Skill Creation
Example 1: Simple Skill
When creating a simple skill for formatting code:
- Create directory:
code-formatter/
- Create SKILL.md with name, description, and formatting instructions
- That's it! Simple skills may only need SKILL.md
Example 2: Complex Skill
When creating a skill with multiple components:
- Create directory:
api-tester/
- Create SKILL.md with main instructions
- Add
SCRIPTS.md for script documentation
- Add scripts in
scripts/ directory
- Reference scripts in SKILL.md
When to Use This Skill
- User wants to create a new Claude skill
- User needs help structuring a skill directory
- User wants templates or examples
- User needs guidance on skill best practices
- User is validating or reviewing an existing skill
1---2name: agent-skill-creator3description: Create and structure Claude Agent Skills from user requirements. Use when the user wants to create a new skill, build a skill template, or structure skill directories with SKILL.md files, templates, and examples.4---56# Skill Creator78## Overview910This skill helps you create well-structured Claude Agent Skills. A skill is a modular capability that extends Claude's functionality with domain-specific expertise, workflows, and best practices.1112## Skill Structure Requirements1314Every skill must have:15- **SKILL.md**: Main instruction file with YAML frontmatter (required)16- **Optional files**: Additional markdown files, scripts, templates, or resources1718## Creating a New Skill1920### Step 1: Define the Skill21221. **Name**: 23 - Maximum 64 characters24 - Only lowercase letters, numbers, and hyphens25 - No XML tags26 - Cannot contain "anthropic" or "claude"27 - Example: `pdf-processor`, `api-documenter`, `code-reviewer`28292. **Description**: 30 - Maximum 1024 characters31 - Must describe what the skill does AND when Claude should use it32 - No XML tags33 - Be specific about triggers (e.g., "Use when working with PDF files")3435### Step 2: Create SKILL.md Template3637```markdown38---39name: [skill-name]40description: [What it does and when to use it]41---4243# [Skill Name]4445## Overview46[Brief description of the skill's purpose]4748## Quick Start49[Simple example showing basic usage]5051## Detailed Instructions52[Step-by-step guidance]5354## Examples55[Concrete examples with code or workflows]5657## Advanced Usage58[Optional: advanced patterns and edge cases]5960## References61[Optional: links to additional resources]62```6364### Step 3: Organize Additional Files6566Structure additional files logically:67- Use subdirectories for scripts, templates, or resources68- Reference external files in SKILL.md using relative paths69- Keep files focused and purposeful7071## Best Practices7273### Writing Effective Descriptions74- Start with what the skill does (verb phrase)75- Include triggers: "Use when..."76- Be specific about use cases77- Mention key capabilities7879**Good examples:**80- "Create presentations, edit slides, analyze presentation content. Use when working with PowerPoint files or when the user mentions presentations, slides, or PPTX files."81- "Extract text and tables from PDF files, fill forms, merge documents. Use when working with PDF files or when the user mentions PDFs, forms, or document extraction."8283### Progressive Disclosure84- Level 1 (Metadata): Keep descriptions concise (~100 tokens)85- Level 2 (SKILL.md): Main instructions (~5k tokens)86- Level 3 (Resources): Bundle comprehensive guides and scripts8788### Instruction Writing89- Use clear, actionable language90- Provide step-by-step workflows91- Include code examples when relevant92- Reference additional files for complex topics93- Use markdown for formatting (code blocks, lists, headers)9495### Code and Scripts96- Store reusable code in `.py`, `.js`, or `.sh` files97- Keep scripts focused and executable98- Document script parameters and usage99- Reference scripts in SKILL.md instructions100101## Common Patterns102103### Pattern 1: Single-Purpose Skill104```105my-skill/106└── SKILL.md107```108109### Pattern 2: Skill with Additional Resources110```111my-skill/112├── SKILL.md113├── ADVANCED.md114└── REFERENCE.md115```116117### Pattern 3: Skill with Scripts118```119my-skill/120├── SKILL.md121└── scripts/122 ├── process.py123 └── validate.sh124```125126### Pattern 4: Comprehensive Skill127```128my-skill/129├── SKILL.md130├── GETTING_STARTED.md131├── EXAMPLES.md132├── REFERENCE.md133├── scripts/134│ ├── helper.py135│ └── utilities.sh136└── templates/137 └── template.json138```139140## Validation Checklist141142Before finalizing a skill, verify:143- [ ] SKILL.md has valid YAML frontmatter with `name` and `description`144- [ ] Name follows naming conventions (lowercase, hyphens, < 64 chars)145- [ ] Description clearly states what it does and when to use it146- [ ] Description is < 1024 characters and contains no XML tags147- [ ] Instructions are clear and actionable148- [ ] Examples are included149- [ ] Additional files are properly referenced in SKILL.md150- [ ] Scripts are executable and documented151152## Examples of Skill Creation153154### Example 1: Simple Skill155When creating a simple skill for formatting code:1561. Create directory: `code-formatter/`1572. Create SKILL.md with name, description, and formatting instructions1583. That's it! Simple skills may only need SKILL.md159160### Example 2: Complex Skill161When creating a skill with multiple components:1621. Create directory: `api-tester/`1632. Create SKILL.md with main instructions1643. Add `SCRIPTS.md` for script documentation1654. Add scripts in `scripts/` directory1665. Reference scripts in SKILL.md167168## When to Use This Skill169170- User wants to create a new Claude skill171- User needs help structuring a skill directory172- User wants templates or examples173- User needs guidance on skill best practices174- User is validating or reviewing an existing skill175