name: claude-skills
The definitive guide to creating production-grade Claude Skills. This meta-skill teaches Claude how to transform any domain knowledge into structured, reusable AI capabilities.
This skill should be triggered when:
skill-name/
├── SKILL.md # Required: Main instructions with YAML frontmatter
├── references/ # Optional: Detailed documentation files
│ ├── index.md # Navigation index for references
│ ├── api.md # API documentation
│ └── examples.md # Code examples
├── scripts/ # Optional: Helper scripts and automation
│ └── setup.sh # Setup/installation scripts
└── assets/ # Optional: Templates, configs, media
└── templates/ # Boilerplate files
---
name: skill-name # Required: lowercase, hyphens, unique
description: Complete description # Required: What it does + when to trigger
---
---
name: my-skill
description: [Purpose] + [Trigger conditions]. Use when [specific scenarios].
---
# [Skill Name] Skill
[One-paragraph overview]
## When to Use This Skill
This skill should be triggered when:
- [Trigger 1]
- [Trigger 2]
- [Trigger 3]
## Quick Reference
### Common Patterns
**Pattern 1:** [Name]
[language] [code]
### Example Code Patterns
**Example 1** ([language]):
[language] [complete working example]
## Reference Files
This skill includes documentation in `references/`:
- **[file.md]** - [Description]
## Working with This Skill
### For Beginners
[Getting started guidance]
### For Specific Features
[How to find detailed information]
## Resources
### references/
[Description]
### scripts/
[Description]
### assets/
[Description]
A Skill is a folder containing instructions, scripts, and resources that Claude loads dynamically to improve performance on specialized tasks.
Skills teach Claude to:
Skills activate based on:
Answer before writing:
Collect:
Critical sections:
references/index.md:
# [Skill Name] Documentation Index
## Quick Links
- Getting Started → `getting_started.md`
- API Reference → `api.md`
- Examples → `examples.md`
# scripts/setup.sh
#!/bin/bash
echo "Setting up [skill-name]..."
# ❌ Too vague
description: Helps with databases
# ✅ Comprehensive
description: PostgreSQL database development including SQL queries, schema design, performance optimization. Use when working with PostgreSQL, writing SQL, or managing databases.
# ❌ Vague
- Working with code
# ✅ Specific
- Writing PostgreSQL queries or stored procedures
- Designing database schemas or indexes
- Optimizing slow queries
# ❌ Incomplete
sql SELECT * FROM users
# ✅ Complete with context
**Example: Paginated query with filtering**
sql SELECT id, username, email, created_at FROM users WHERE status = 'active' ORDER BY created_at DESC LIMIT 20 OFFSET 0;
## Quick Reference
### Authentication
python client = APIClient(api_key="your-key")
### Common Operations
python
resource = client.create(name="example")
resources = client.list(limit=10)
client.delete(resource_id)
### Error Handling
python try:
result = client.operation()
except APIError as e:
print(f"Error {e.code}: {e.message}")
## Project Structure
my-project/ ├── src/ ├── tests/ └── config/
## Common Commands
bash framework init my-project framework dev framework build
## Core Concepts
### Concept 1
[Explanation]
### Concept 2
[Explanation]
## Decision Framework
When to use Approach A:
- [Condition 1]
- [Condition 2]
When to use Approach B:
- [Condition 1]
- [Condition 2]
Source Material
↓
Extract: concepts, patterns, examples, edge cases, errors
↓
Structure: YAML → When to Use → Quick Reference → Details
↓
Create: references/index.md + categorized docs
↓
Production-Grade Skill
When creating a skill from source material:
Create a production-grade Claude Skill:
1. Analyze source material
2. Extract core concepts and patterns
3. Create SKILL.md with:
- Comprehensive description (purpose + triggers)
- Specific "When to Use" conditions
- Quick Reference with code patterns
- Complete working examples
4. Create references/index.md
5. Organize detailed docs in references/
# Add marketplace
/plugin marketplace add anthropics/skills
# Install
/plugin install example-skills@anthropic-agent-skills
# Use
"Use the PDF skill to extract tables from report.pdf"
See: https://docs.claude.com/en/api/skills-guide
description includes trigger keywordsname is lowercase with hyphensThis skill includes documentation in references/:
Follow the 5-step process in "Creating Production-Grade Skills"
Review "Best Practices" and compare against your skill
Read "Core Concepts" for foundational understanding
create-skill.sh - Quick skill directory generatortemplate-minimal.md - Minimal templatetemplate-complete.md - Full production templatedescription field is critical for reliable activation