document-skill
Document Skill Addition
Section titled “Document Skill Addition”Create documentation for new Claude Code skills added to the repository.
When to Use This Skill
Section titled “When to Use This Skill”Use this skill whenever:
- A new skill is added to
.claude/skills/ - An existing skill is significantly updated
- Skill documentation needs to be synchronized across files
Files to Update
Section titled “Files to Update”When documenting a new skill, update these files:
.claude/README.md- Add skill to structure and Available Skills sectionCLAUDE.md- Add skill to Available Skills listapps/docs/src/content/docs/guides/- Create a development journey guide (optional, for significant skills)apps/docs/astro.config.mjs- Update sidebar if guide is created
Process
Section titled “Process”Step 1: Read the New Skill
Section titled “Step 1: Read the New Skill”Read the skill’s SKILL.md to understand:
- What the skill does
- When to use it
- Key features and patterns
cat .claude/skills/<skill-name>/SKILL.mdStep 2: Update .claude/README.md
Section titled “Step 2: Update .claude/README.md”Add the skill to the structure tree:
└── skills/├── ...existing skills...├── <skill-name>/...Add a description under Available Skills:
### <skill-name>
Brief description of what the skill does and when to use it.Step 3: Update CLAUDE.md
Section titled “Step 3: Update CLAUDE.md”Add the skill to the Available Skills list:
**Available Skills:**
- ...existing skills...- `/<skill-name>` - Brief descriptionStep 4: Create Development Guide (for significant skills)
Section titled “Step 4: Create Development Guide (for significant skills)”For major skills that add significant functionality, create a guide:
-
Determine next guide number:
Terminal window ls apps/docs/src/content/docs/guides/ -
Create guide following this structure:
---title: <Skill Name> Skilldescription: Adding the <skill-name> Claude Code skill for <purpose>.---## What We DidAdded the `/<skill-name>` skill to `.claude/skills/<skill-name>/`.## Why This Skill[Explain the purpose and benefits of the skill]## Skill Structure[Document the skill's file structure if it has multiple files]## Key Features[List the main capabilities and patterns the skill provides]## UsageInvoke the skill with:/
[Include usage examples]## References- [Link to source if applicable]- Related internal documentation -
Update
apps/docs/astro.config.mjssidebar
Step 5: Verify Updates
Section titled “Step 5: Verify Updates”Ensure all files are consistent:
- Skill name matches across all files
- Descriptions are accurate and concise
- Structure tree is correct
- Guide appears in sidebar (if created)
Example: Documenting a New Skill
Section titled “Example: Documenting a New Skill”Scenario: Added turborepo skill
Updates needed:
-
.claude/README.md:- Add
turborepo/to structure tree - Add description under Available Skills
- Add
-
CLAUDE.md:- `/turborepo` - Turborepo monorepo build system guidance -
Guide (optional):
- Create
apps/docs/src/content/docs/guides/NN-turborepo-skill.md - Update sidebar in
astro.config.mjs
- Create
Skill Description Guidelines
Section titled “Skill Description Guidelines”When writing skill descriptions:
- Be concise - 10-20 words for inline lists
- Focus on the “what” - What does the skill help with?
- Include trigger context - When should it be used?
- Use active voice - “Guides Turborepo configuration” not “Is used for…”
Good examples:
Turborepo monorepo build system guidance for tasks, caching, and CI optimizationComprehensive Convex development guidelines and best practicesDocument development updates in the guides folder
Avoid:
- Vague descriptions like “Helps with code”
- Too much detail in short descriptions
- Passive voice
Output
Section titled “Output”After documenting a skill:
- Confirm all files were updated
- List the specific changes made
- Note if a guide was created and its number
- Verify skill appears correctly in all locations