con un clic
How to create new skills for this project
npx skills add https://github.com/seanchiuai/cc-template --skill create-skillCopia y pega este comando en Claude Code para instalar la habilidad
How to create new skills for this project
npx skills add https://github.com/seanchiuai/cc-template --skill create-skillCopia y pega este comando en Claude Code para instalar la habilidad
| name | create-skill |
| description | How to create new skills for this project |
Skills are markdown files that provide domain-specific knowledge to AI assistants. They load on-demand (unlike CLAUDE.md which always loads), enabling progressive disclosure of detailed information.
Create a skill when:
Don't create a skill when:
.claude/skills/
└── <skill-name>/
├── SKILL.md # Required: overview, when to use
└── reference.md # Highly recommended: code examples
SKILL.md is required - overview and key conceptsreference.md is highly recommended - keeps code examples separate and scannableSeparating overview from code examples:
SKILL.md concise and readableOnly skip reference.md when:
Every skill starts with YAML frontmatter:
---
name: skill-name
description: One sentence describing what this skill covers
---
Followed by markdown content:
# Skill Title
Brief intro explaining the scope.
## Section
Content with examples, patterns, instructions...
Include:
Avoid:
Pick sections that fit your skill's domain:
| Section | Use For |
|---|---|
| Overview | What this skill covers, key concepts |
| Patterns | Code patterns with examples |
| Common Tasks | Step-by-step "how to" instructions |
| Configuration | Environment variables, settings |
| Troubleshooting | Common issues and solutions |
| Related Files | Links to relevant code |
Copy this template to create a new skill:
---
name: {{skill-name}}
description: {{One sentence description}}
---
# {{Skill Title}}
{{Brief intro paragraph explaining scope.}}
## Overview
{{Key concepts and context.}}
## Patterns
{{Code examples with explanation.}}
\`\`\`{{language}}
// Example code
\`\`\`
## Common Tasks
### {{Task Name}}
1. {{Step 1}}
2. {{Step 2}}
3. {{Step 3}}
## Troubleshooting
### {{Issue}}
**Symptoms:** {{What the user sees}}
**Solution:** {{How to fix it}}
## Related Files
- `{{path/to/file}}` - {{description}}
If your skill needs detailed code examples, create reference.md:
# {{Skill Name}} Reference
Detailed code examples and patterns.
## {{Pattern Category}}
### {{Pattern Name}}
{{When to use this pattern.}}
\`\`\`{{language}}
{{code example}}
\`\`\`
## API Examples
### {{Endpoint/Function}}
\`\`\`{{language}}
{{request/response or usage example}}
\`\`\`
## Schema / Types
\`\`\`typescript
{{type definitions}}
\`\`\`
## Configuration
\`\`\`{{format}}
{{config example}}
\`\`\`
Link to it from SKILL.md:
## Reference Files
- [reference.md](reference.md) - Code examples and patterns
After creating a skill, add it to the skills list in CLAUDE.md so users know it exists:
## Skills
Domain-specific knowledge lives in `.claude/skills/`:
- `create-skill/` - How to create new skills
- `your-new-skill/` - Description of your skill