This skill guides you through creating, updating, and maintaining Claude Code skills, ensuring best practices and committed changes to the repository.
npx playbooks add skill dbosk/claude-skills --skill skill-management
IMPORTANT: This skill should be activated BEFORE modifying any skill files!
You are an expert at creating and maintaining high-quality Claude Code skills. This skill helps you follow best practices and remember to commit changes to the skills repository.
ALWAYS activate this skill FIRST when:
~/.claude/skills/The correct order is:
1. User asks to modify a skill (or you identify need to update one)
2. YOU ACTIVATE THIS SKILL IMMEDIATELY
3. You review best practices and quality checklist
4. You make changes following the guidelines
5. You commit changes to the skills git repository
NEVER do this:
1. User asks to modify a skill
2. You directly edit the SKILL.md file
3. You commit the changes
4. Later realize you didn't follow best practices
5. You have to redo the changes
✅ "Can you update the literate-programming skill to be more emphatic?"
→ ACTIVATE THIS SKILL IMMEDIATELY, then plan changes
✅ "Create a new skill for handling API documentation"
→ ACTIVATE THIS SKILL IMMEDIATELY, then design skill
✅ "The code-review skill isn't triggering when it should"
→ ACTIVATE THIS SKILL IMMEDIATELY to review triggers
✅ Any task involving files in ~/.claude/skills/
→ ACTIVATE THIS SKILL IMMEDIATELY
Invoke this skill proactively when:
~/.claude/skills/Match instruction specificity to task fragility:
Use referenced files to load content on-demand:
---
name: skill-name-here
description: What this skill does and when to use it. Max 1024 characters.
---
Name requirements:
Description requirements:
description: [What it does]. Use [proactively/when]: (1) [trigger condition],
(2) [keyword/phrase triggers], (3) [context triggers]. [Special instructions].
Example:
description: Write and analyze literate programs using noweb. Use proactively
when: (1) creating, editing, or reviewing .nw files, (2) user mentions
"literate quality" or "noweb", (3) requests to improve documentation.
This skill should be invoked BEFORE making changes to .nw files.
Level 1 - Metadata (~100 tokens, always loaded):
Level 2 - Instructions (<5k tokens, loaded when triggered):
Level 3 - Resources (unlimited, accessed as needed):
Templates: Provide strict format for critical outputs, flexible guidance for context-dependent work
Examples: Show input/output pairs demonstrating desired style and detail level
Workflows: Break complex operations into clear sequential steps with checklists
Feedback loops: Implement validate-fix-repeat cycles for quality-critical tasks
Skills can include optional bundled resources organized in three directories:
Executable code (Python/Bash/etc.) for tasks requiring deterministic reliability or repeatedly rewritten operations.
When to include:
Examples from real skills:
fill_fillable_fields.py, extract_form_field_info.py - PDF manipulation utilitiesdocument.py, utilities.py - document processing modulesinit_skill.py - creates new skills from template, quick_validate.py - validates skill structureBenefits:
Note: Scripts may still need to be read by Claude for patching or environment-specific adjustments.
Documentation and reference material loaded into context to inform Claude's process and thinking.
When to include:
Examples from real skills:
communication.md, context_building.md - detailed workflow guidesfinance.md - schemas, mnda.md - NDA template, policies.md - company policiesBenefits:
Best practice: If files are large (>10k words), include grep search patterns in SKILL.md to help Claude find specific sections.
Files not loaded into context, but used within the output Claude produces.
When to include:
Examples from real skills:
logo.png, slides_template.pptx - brand assetshello-world/ - HTML/React boilerplate directoryfont.ttf, font-family.woff2 - font filesCommon asset types:
Benefits:
See references/quality-checklist.md for the full checklist with examples.
Key requirements:
name and description (including "what" AND "when")Follow these steps in order. Skip a step only if there's a clear reason it's not applicable.
Clearly understand concrete examples of how the skill will be used. Skip this step only when usage patterns are already clearly understood.
Ask questions to gather specific use cases:
Example questions for an image-editor skill:
Important: Avoid overwhelming users with too many questions. Start with the most important and follow up as needed.
Conclude when there's a clear sense of the functionality the skill should support.
Analyze each concrete example to identify what bundled resources would be helpful:
For each example, consider:
Example analyses:
PDF rotation: "Help me rotate this PDF"
scripts/rotate_pdf.pyFrontend webapp: "Build me a todo app" or "Build me a dashboard"
assets/hello-world/ template directoryBigQuery queries: "How many users logged in today?"
references/schema.md with table documentationCreate a list of reusable resources to include: scripts/, references/, assets/ files.
Create the skill directory structure using the initialization script:
~/.claude/skills/skill-management/scripts/init_skill.py <skill-name> --path ~/.claude/skills
The script will:
After initialization, customize or delete the generated example files as needed.
Start by implementing the reusable resources identified in Step 2:
scripts/references/assets/Note: This may require user input (e.g., brand assets, templates, domain documentation).
Delete any example files and directories not needed for the skill.
Write SKILL.md content following the writing guidelines (imperative form, concise, focused).
Answer these questions in SKILL.md:
Remember:
Run the validation script to check for common issues:
~/.claude/skills/skill-management/scripts/quick_validate.py ~/.claude/skills/<skill-name>
Fix any validation errors reported.
Create test scenarios and verify the skill works:
cd ~/.claude/skills
git add skill-name/
git commit -m "Add [skill-name] skill: [brief description]
Detailed explanation of what the skill does and why it's needed.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>"
~/.claude/skills/skill-management/scripts/quick_validate.py ~/.claude/skills/<skill-name>
cd ~/.claude/skills
git add [skill-directory]/
git commit -m "Improve [skill-name]: [specific changes made]
Detailed explanation of changes and rationale.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>"
CRITICAL: Skills are version-controlled in a git repository at ~/.claude/skills/.
cd ~/.claude/skillsgit statusgit add [skill-directory]/ git commit -m "Action [skill-name]: brief description
Detailed explanation of changes and rationale.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>"
git status# Check current status
git status
# See what changed
git diff [file]
# Add specific skill
git add skill-name/
# Commit with message
git commit -m "message"
# View recent commits
git log --oneline -5
# Push changes (if using remote)
git push
See references/quality-checklist.md for description examples and structure guidelines.
After creating a skill, test it by:
If a skill isn't being invoked when it should:
For the most current best practices, reference:
DO NOT FORGET: After making any changes to skills in ~/.claude/skills/, you MUST commit them to the git repository. This ensures changes are tracked and can be shared/synced. The skills directory is version-controlled specifically for this purpose.
Weekly roundup of top Claude Code skills, MCP servers, and AI coding tips.