Purpose: Step-by-step guide to create Agent Skills
Create directory:
mkdir -p ~/.claude/skills/my-skill
Create SKILL.md with frontmatter:
---
name: my-skill
description: What it does and when to use it
---
Instructions for Claude...
Verify: Ask Claude "What Skills are available?"
Test: Ask Claude something matching the description
The description determines when Claude uses the skill. Include:
When to use: Include trigger terms users would say
# Bad
description: Helps with documents
# Good
description: 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.
Keep SKILL.md under 500 lines. Use supporting files for details:
my-skill/
├── SKILL.md # Overview (required)
├── reference.md # Detailed docs (loaded when needed)
├── examples.md # Usage examples
└── scripts/
└── helper.py # Utility script (executed, not loaded)
Reference in SKILL.md:
For complete API details, see reference.md (example file)
claude --debug to see loading errors../concepts/agent-skills.md - Skills overview../lookup/skill-metadata.md - All metadata fields../examples/skills/ - Example skillsReference: https://docs.anthropic.com/en/docs/claude-code/skills