A comprehensive Claude Code skill for creating production-ready skills following best practices. The skillMaker skill is now available in this project at .claude/skills/skillMaker/.
.claude/skills/skillMaker/
├── SKILL.md # Main skill definition (5000+ lines)
├── README.md # User documentation
├── templates/
│ └── basic-skill-template.md # 5 skill type templates
├── examples/
│ └── skill-structures.md # Complete working examples
└── references/
└── skill-patterns.md # Comprehensive pattern catalog
- Phase 1: Requirements gathering via targeted questions
- Phase 2: Structure decision based on complexity
- Phase 3: Content generation following patterns
- Phase 4: Optimization for performance
- Phase 5: Testing and validation
Reference Skills - Background knowledge Claude applies automatically
- Example: Code conventions, API patterns, style guides
- Configuration:
user-invocable: false
Task Workflow Skills - Multi-step processes users invoke manually
- Example: Feature creation, deployment, testing
- Configuration:
disable-model-invocation: true
Dynamic Context Skills - Skills leveraging live data
- Example: PR reviews, git analysis, project scanning
- Uses: Shell command injection with
!command``
Bundled Skills - Complex skills with supporting files
- Example: Code generators with templates, analyzers with docs
- Structure: templates/, examples/, references/, scripts/
Research Skills - Deep exploration in isolated context
- Example: Architecture analysis, dependency mapping
- Configuration:
context: fork,agent: Explore
Pre-built templates for quick starts:
- Simple reference skill
- Task workflow skill
- Dynamic context skill
- Bundled skill with supporting files
- Research/exploration skill
Comprehensive patterns covering:
- Description patterns - Writing effective trigger descriptions
- Argument handling - Positional, optional, and flexible arguments
- Dynamic context - Shell command injection patterns
- Tool restrictions - Appropriate permission scopes
- Invocation control - User-only, Claude-only, or both
- File organization - Optimal structure for different complexities
- Error handling - Graceful failures and validation
- Performance - Optimization techniques
Complete, working skill examples:
- API Conventions (Reference skill)
- Feature Creator (Task workflow skill)
- PR Reviewer (Dynamic context skill)
- Test Generator (Bundled skill)
- Architecture Analyzer (Research skill)
/skillMakerJust mention creating a skill:
- "Create a skill for API documentation"
- "Make a skill that reviews PRs"
- "I want to build a skill for deployment"
- "Help me create a skill for testing"
Provide details upfront:
- "Create a user-only skill with arguments for migrating components"
- "Build a Claude-only skill for our naming conventions"
- "Generate a skill that uses git commands to analyze commits"
-
Requirements Gathering
- SkillMaker asks targeted questions using AskUserQuestion
- Determines purpose, triggers, invocation control, tools needed
- Identifies complexity level and context requirements
-
Structure Generation
- Decides if simple (SKILL.md only) or bundled (with supporting files)
- Creates appropriate directory structure
- Generates file organization
-
Content Creation
- Writes main SKILL.md with:
- Properly formatted frontmatter
- Clear description with triggers
- Structured workflow/instructions
- Examples and patterns
- Creates supporting files if needed:
- Templates for generation
- Examples for reference
- Reference docs for details
- Scripts for automation
- Writes main SKILL.md with:
-
Optimization
- Applies performance optimizations
- Adds error handling
- Configures tool restrictions
- Sets invocation flags
-
Validation
- Validates YAML frontmatter
- Checks file references
- Verifies shell command syntax
- Provides testing checklist
Good Description:
description: |
Generate API documentation from code.
Use when user asks to "document the API", "create API docs",
"generate OpenAPI spec", mentions "Swagger" or "API documentation",
or discusses documenting endpoints.Bad Description:
description: Helpful skill for documentation tasks- < 200 lines: Single SKILL.md
- 200-500 lines: SKILL.md + examples/
- > 500 lines: Split into SKILL.md + templates/ + examples/ + references/
# Both can invoke (default)
# Omit both flags
# User-only (for side-effect tasks)
disable-model-invocation: true
# Claude-only (for background knowledge)
user-invocable: false# Read-only
allowed-tools: Read, Grep, Glob
# Safe modification
allowed-tools: Read, Write, Edit
# Specific commands
allowed-tools: Read, Write, Bash(npm test:*), Bash(git status:*)Current branch: !`git branch --show-current 2>/dev/null || echo "Not a git repo"`SkillMaker automatically applies:
✅ Specific descriptions with 3+ trigger phrases ✅ Appropriate structure based on complexity ✅ Tool restrictions matching actual needs ✅ Error handling in shell commands ✅ Supporting files properly referenced ✅ Concrete examples (2-3 per skill) ✅ Optimization patterns for performance ✅ Validation checklist for testing
/skillMakerIn conversation, say:
- "Create a skill for..."
- "Make a new skill"
- "Build a skill"
- "Generate skill"
"Create a skill that deploys to staging when I type /deploy-staging"
User: "Create a skill for our TypeScript naming conventions"
SkillMaker will:
- Identify it as a reference skill (background knowledge)
- Set
user-invocable: false(Claude-only) - Generate SKILL.md with naming patterns
- Include examples of good/bad naming
- No templates needed (simple structure)
User: "Build a skill that creates React components with tests"
SkillMaker will:
- Identify as task workflow skill
- Set
disable-model-invocation: true(user-only) - Create bundled structure with:
- templates/component-template.tsx
- templates/test-template.test.tsx
- examples/generated-component/
- Add argument handling for component name
- Include validation and testing steps
User: "Make a skill for reviewing pull requests"
SkillMaker will:
- Identify need for GitHub CLI
- Add dynamic context:
!gh pr view`` - Set
allowed-tools: Bash(gh *), Read - Create review checklist
- Include both manual and auto-invoke options
User types /skillMaker (or mentions creating skill)
↓
SKILL.md frontmatter processed
↓
String substitutions applied ($ARGUMENTS, ${CLAUDE_SKILL_DIR}, etc.)
↓
Shell commands in !`...` execute (preprocessing)
↓
Complete content sent to Claude
↓
Claude executes workflow
↓
Questions asked via AskUserQuestion
↓
Files generated with Write/Edit tools
↓
Validation checklist provided
Skills can have checkpoints for user approval between phases
Dynamic template selection based on project detection
Different information gathering based on environment
Large output generation in steps with validation
Research skills run in isolated context
- Check SKILL.md is in correct location
- Verify frontmatter YAML is valid
- Ensure no syntax errors
- Add more specific trigger phrases to description
- Remove
disable-model-invocation: trueif present - Test with exact phrases from description
- Add error handling:
2>/dev/null || echo "fallback" - Test commands independently first
- Check commands available in user's environment
- Comprehensive: Covers all skill types and patterns from documentation
- Educational: Teaches best practices through examples and patterns
- Interactive: Uses AskUserQuestion for guided creation
- Production-Ready: Generates skills following official conventions
- Well-Organized: Proper file structure with supporting materials
- Optimized: Applies performance and maintainability patterns
- Validated: Includes testing and validation checklist
This skill was built from:
- Official Claude Code documentation (via claude-code-guide agent)
- Example skills from official plugins
- Best practices from the skill development guide
- Real-world patterns from production skills
- Type
/skillMakeror mention creating a skill - Answer the guided questions
- Review generated files
- Test the new skill
- Iterate and refine
- Add more templates to templates/
- Contribute examples to examples/
- Document new patterns in references/
- Share custom skill patterns
# Copy to personal skills directory
cp -r .claude/skills/skillMaker ~/.claude/skills/
# Now available in all projects- Main skill:
.claude/skills/skillMaker/SKILL.md - Templates:
.claude/skills/skillMaker/templates/ - Examples:
.claude/skills/skillMaker/examples/ - Patterns:
.claude/skills/skillMaker/references/ - Documentation:
.claude/skills/skillMaker/README.md
The skillMaker skill is a comprehensive, production-ready tool for creating Claude Code skills. It:
- Guides you through the entire creation process
- Applies best practices automatically
- Generates appropriate file structures
- Includes templates, examples, and patterns
- Provides validation and testing support
- Follows official conventions and optimizations
Ready to create your first skill? Just type /skillMaker!
Created: 2026-03-08 Version: 1.0.0 Location: .claude/skills/skillMaker/