Agent skill
grey-haven-skill-creator
Guide for creating effective skills that extend Claude's capabilities. Use when users want to create a new skill, update an existing skill, or need guidance on skill structure and best practices. Triggers: 'create skill', 'new skill', 'skill template', 'build skill', 'skill structure', 'skill design'.
Install this agent skill to your Project
npx add-skill https://github.com/greyhaven-ai/claude-code-config/tree/main/grey-haven-plugins/core/skills/skill-creator
SKILL.md
Skill Creator
Guide for creating effective skills that extend Claude's capabilities.
About Skills
Skills are modular, self-contained packages that extend Claude's capabilities by providing specialized knowledge, workflows, and tools. Think of them as "onboarding guides" for specific domains—they transform Claude from a general-purpose agent into a specialized agent equipped with procedural knowledge.
What Skills Provide
- Specialized workflows - Multi-step procedures for specific domains
- Tool integrations - Instructions for working with specific file formats or APIs
- Domain expertise - Company-specific knowledge, schemas, business logic
- Bundled resources - Scripts, references, and assets for complex tasks
Core Principles
Concise is Key
The context window is a public good. Skills share context with system prompts, conversation history, other skills, and user requests.
Default assumption: Claude is already very smart. Only add context Claude doesn't already have. Challenge each piece: "Does Claude really need this?" and "Does this justify its token cost?"
Prefer concise examples over verbose explanations.
Set Appropriate Degrees of Freedom
Match specificity to task fragility:
| Freedom Level | When to Use | Format |
|---|---|---|
| High | Multiple approaches valid, context-dependent | Text-based instructions |
| Medium | Preferred pattern exists, some variation OK | Pseudocode or parameterized scripts |
| Low | Operations fragile, consistency critical | Specific scripts, few parameters |
Think of Claude exploring a path: narrow bridge needs guardrails (low freedom), open field allows many routes (high freedom).
Grey Haven Skill Anatomy
Every Grey Haven skill follows this structure:
skill-name/
├── SKILL.md (required)
│ ├── YAML frontmatter (required)
│ │ ├── name: grey-haven-{skill-name}
│ │ ├── description: (comprehensive, includes triggers)
│ │ ├── skills: (optional, v2.0.43)
│ │ └── allowed-tools: (optional, v2.0.74)
│ └── Markdown body (required)
└── Bundled Resources (optional)
├── scripts/ - Executable code
├── references/ - Documentation for context
├── examples/ - Usage examples
├── templates/ - Reusable templates
└── checklists/ - Validation checklists
SKILL.md Frontmatter
---
name: grey-haven-your-skill
description: "What the skill does. When to use it. Trigger phrases."
# v2.0.43: Auto-load these skills when this skill activates
skills:
- grey-haven-code-style
- grey-haven-testing-strategy
# v2.0.74: Restrict available tools when skill is active
allowed-tools:
- Read
- Write
- Bash
- TodoWrite
---
Description is critical: This is the primary trigger mechanism. Include:
- What the skill does
- When to use it
- Specific trigger phrases
Bundled Resources
| Directory | Purpose | When to Include |
|---|---|---|
scripts/ |
Executable code | Repeated code, deterministic operations |
references/ |
Documentation | Detailed guides, schemas, API docs |
examples/ |
Usage examples | Complex patterns, before/after |
templates/ |
Reusable formats | Boilerplate, standard structures |
checklists/ |
Validation | Quality gates, pre-flight checks |
Progressive Disclosure
Skills use a three-level loading system:
- Metadata (~100 words) - Always in context
- SKILL.md body (<5K words) - When skill triggers
- Bundled resources - As needed by Claude
Keep SKILL.md under 500 lines. Split into reference files when approaching this limit. Always reference split files from SKILL.md with clear "when to read" guidance.
Skill Creation Process
Step 1: Understand with Concrete Examples
Before creating, understand concrete usage:
- "What functionality should this skill support?"
- "Give examples of how this skill would be used."
- "What would a user say that should trigger this skill?"
Conclude when you clearly understand the functionality needed.
Step 2: Plan Reusable Contents
Analyze each example:
- How would you execute this from scratch?
- What scripts, references, assets would help when doing this repeatedly?
Example analyses:
| Skill Goal | Analysis | Resource Needed |
|---|---|---|
| Rotate PDFs | Same code every time | scripts/rotate_pdf.py |
| Build webapps | Same boilerplate each time | templates/react-starter/ |
| Query BigQuery | Rediscover schemas each time | references/schema.md |
Step 3: Initialize the Skill
Run the initialization script:
python scripts/init_skill.py my-skill --path grey-haven-plugins/core/skills
This creates:
- SKILL.md template with TODO placeholders
- Example resource directories
- Proper structure for Grey Haven
Step 4: Edit the Skill
Writing Guidelines:
- Use imperative/infinitive form
- Challenge every paragraph's token cost
- Prefer examples over explanations
Frontmatter:
name: Usegrey-haven-prefixdescription: Include what + when + triggersskills: Optional dependent skillsallowed-tools: Optional tool restrictions
Body:
- Start with clear overview
- Include practical examples
- Reference bundled resources with "when to read" guidance
Design Patterns (see references/):
- Multi-step processes: See
references/workflows.md - Output formats: See
references/output-patterns.md
Step 5: Test and Iterate
After creating:
- Use the skill on real tasks
- Notice struggles or inefficiencies
- Update SKILL.md or resources
- Test again
What NOT to Include
Skills should only contain essential files. Do NOT create:
- README.md (SKILL.md is the readme)
- INSTALLATION_GUIDE.md
- CHANGELOG.md
- User-facing documentation
- Process documentation
The skill is for Claude, not humans. Include only what helps Claude do the job.
Grey Haven Conventions
Naming
- Skill name:
grey-haven-{domain}-{function} - Directory:
skills/{skill-name}/ - Examples:
grey-haven-tdd-python,grey-haven-api-design-standards
Description Format
description: "{What it does}. {When to use it}. Triggers: '{trigger1}', '{trigger2}', '{trigger3}'."
File Organization
skill-name/
├── SKILL.md
├── examples/
│ └── practical-example.md
├── references/
│ └── detailed-guide.md
├── templates/
│ └── reusable-template.md
└── checklists/
└── validation-checklist.md
Quick Start
# Initialize new skill
python scripts/init_skill.py my-new-skill --path grey-haven-plugins/core/skills
# Edit the generated SKILL.md
# Add resources as needed
# Test with real usage
Skill Version: 1.0 Based on: Anthropic skill-creator (Dec 2025) Last Updated: 2025-01-15
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
grey-haven-prompt-engineering
Master 26 documented prompt engineering principles for crafting effective LLM prompts with 400%+ quality improvement. Includes templates, anti-patterns, and quality checklists for technical, learning, creative, and research tasks. Use when writing prompts for LLMs, improving AI response quality, training on prompting, designing agent instructions, or when user mentions 'prompt engineering', 'better prompts', 'LLM quality', 'prompt templates', 'AI prompts', 'prompt principles', or 'prompt optimization'.
grey-haven-tool-design
Design effective MCP tools and Claude Code integrations using the consolidation principle. Fewer, better-designed tools dramatically improve agent success rates. Use when creating MCP servers, designing tool interfaces, optimizing tool sets, or when user mentions 'tool design', 'MCP', 'fewer tools', 'tool consolidation', 'tool architecture', or 'tool optimization'.
grey-haven-documentation-alignment
6-phase verification system ensuring code matches documentation with automated alignment scoring (signature, type, behavior, error, example checks). Reduces onboarding friction 40%. Use when verifying code-docs alignment, onboarding developers, after code changes, pre-release documentation checks, or when user mentions 'docs out of sync', 'documentation verification', 'code-docs alignment', 'docs accuracy', 'documentation drift', or 'verify documentation'.
grey-haven-tdd-orchestration
Master TDD orchestration with multi-agent coordination, strict red-green-refactor enforcement, automated test generation, coverage tracking, and >90% coverage quality gates. Supports Claude Teams for parallel TDD workflows with plan approval gates, or falls back to sequential subagent coordination. Coordinates tdd-python, tdd-typescript, and test-generator agents. Use when implementing features with TDD workflow, coordinating multiple TDD agents, enforcing test-first development, orchestrating TDD teams, or when user mentions 'TDD workflow', 'test-first', 'TDD orchestration', 'multi-agent TDD', 'test coverage', or 'red-green-refactor'.
grey-haven-performance-optimization
Comprehensive performance analysis and optimization for algorithms (O(n²)→O(n)), databases (N+1 queries, indexes), React (memoization, virtual lists), bundles (code splitting), API caching, and memory leaks. 85%+ improvement rate. Use when application is slow, response times exceed SLA, high CPU/memory usage, performance budgets needed, or when user mentions 'performance', 'slow', 'optimization', 'bottleneck', 'speed up', 'latency', 'memory leak', or 'performance tuning'.
grey-haven-llm-project-development
Build LLM-powered applications and pipelines using proven methodology - task-model fit analysis, pipeline architecture, structured outputs, file-based state, and cost estimation. Use when building AI features, data processing pipelines, agents, or any LLM-integrated system. Inspired by Karpathy's methodology and production case studies.
Didn't find tool you were looking for?