Refactor high-complexity React components in Dify frontend. Use when `pnpm analyze-component...
npx skills add 4meta5/skills --skill "skill-maker"
Install specific skill from multi-skill repository
# Description
|
# SKILL.md
name: skill-maker
description: |
Create new Claude Code skills following project conventions. Use when: (1) creating
a new skill from scratch, (2) converting learnings into reusable skills, (3) validating
existing skills against quality standards. Provides templates, frontmatter specification,
and quality checklist.
category: development
user-invocable: true
Skill Maker
Create and validate Claude Code skills following best practices.
Quick Start
Create a new skill:
1. Choose a template: simple, with-references, or full
2. Create directory: .claude/skills/<skill-name>/
3. Write SKILL.md following the template
4. Run validation: skills validate <skill-name>
Templates
| Template | Structure | Use Case |
|---|---|---|
| simple | SKILL.md only | Single-file guidance, quick tips |
| with-references | + references/ | Multi-section documentation |
| full | + docs/, templates/, provenance | Comprehensive skills with examples |
See templates/ for complete templates.
Frontmatter Specification
Required fields:
---
name: skill-name # kebab-case, unique identifier
description: | # Multi-line recommended
What the skill does. Use when: (1) condition, (2) condition.
Specific symptoms, error messages, or file types it handles.
---
Optional fields:
category: testing|development|documentation|refactoring|security|performance
user-invocable: true # Can be called via /skill-name
disable-model-invocation: false # Prevent automatic loading
allowed-tools: Read,Write # Comma-separated tool names
context: fork|inline # How skill is invoked
agent: agent-name # Specific agent to use
See references/frontmatter-spec.md for details.
Description Quality
Good descriptions enable semantic matching. Include:
- What it does (1 sentence)
- Trigger conditions (Use when:, Helps with:)
- Specific context (error messages, file types, frameworks)
Good Example
description: |
Fix "ENOENT: no such file or directory" errors in npm monorepos.
Use when: (1) npm run fails with ENOENT, (2) paths work in root
but not packages, (3) symlinks cause resolution failures.
Covers Lerna, Turborepo, and npm workspaces.
Bad Example
description: A skill that helps with npm problems.
See references/description-guide.md.
Quality Checklist
Before finalizing a skill, verify:
- [ ] Name is kebab-case and descriptive
- [ ] Description > 50 characters
- [ ] Description includes trigger conditions
- [ ] Category is valid (if specified)
- [ ] Referenced files exist (references/, docs/)
- [ ] No slop patterns (placeholder content)
- [ ] Content is actionable and specific
- [ ] Tested with
skills validate
See references/quality-checklist.md.
Validation
Run validation on your skill:
# Validate specific skill
skills validate <skill-name>
# Validate all skills in project
skills validate
# JSON output
skills validate --json
Validation checks:
- Frontmatter format and required fields
- Description quality (length, trigger conditions)
- Category validity
- Slop pattern detection
- Reference file existence
Slop Detection
The validator detects common slop patterns:
| Pattern | Example | Action |
|---|---|---|
| test-skill-* | test-skill-1234567890 |
Delete |
| Placeholder content | "NEW content with improvements!" | Rewrite |
| Generic names | "# Test Skill" | Rename |
| Lorem ipsum | Any placeholder text | Remove |
Skill Chaining
This skill works with:
- claudeception: Extract learnings β create skill with skill-maker
- tdd: Write tests first when adding CLI validation features
- dogfood-skills: Use
skills validateafter creating skills
Creating Your First Skill
- Identify the knowledge: What non-obvious solution did you discover?
- Check existing skills: Is there already a skill for this?
- Choose template: Start with
simpleunless you need references - Write SKILL.md: Follow frontmatter spec and description guidelines
- Validate: Run
skills validate <name> - Test: Use the skill in a real scenario
Directory Structure
.claude/skills/<skill-name>/
βββ SKILL.md # Required: Main skill file
βββ references/ # Optional: Supporting documentation
β βββ guide.md
β βββ examples.md
βββ templates/ # Optional: Code/config templates
βββ scripts/ # Optional: Helper scripts
βββ .provenance.json # Optional: Source tracking
Tips
- Start simple, add complexity only when needed
- Keep SKILL.md focused on actionable guidance
- Use references/ for detailed documentation
- Include concrete examples, not just theory
- Update skills when you learn more
# Supported AI Coding Agents
This skill is compatible with the SKILL.md standard and works with all major AI coding agents:
Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.