Skip to content
meta-skill-guide logo

Meta Skill Guide

meta-skill-guide

Comprehensive guide for creating Claude Code custom skills. Use when asked to create, design, or improve custom skills for Claude Code. Provides templates, best practices, and patterns for simple, moderate, and advanced skills.

SKILL.md

Full skill instructions

Meta-Skill Guide: Creating Claude Code Custom Skills

Quick Reference

AspectConstraintRecommendation
SKILL.md sizeNo hard limitKeep under 500 lines
Skill nameMax 64 charsLowercase, hyphens, gerund form (processing-pdfs)
DescriptionMax 1024 charsWHAT it does + WHEN to use (third person)
Reference depthOne level deepSKILL.md -> File.md only
File pathsForward slashesAlways scripts/​helper.py
Subagent contextCompletely isolatedNO conversation history, NO memory

Architecture: Three-Level Progressive Loading

Level 1: Metadata (~100 tokens/​skill)

---
name: skill-name
description: Brief description with usage triggers
---
  • Loaded at Claude Code startup
  • Critical for skill discovery

Level 2: Instructions (<5,000 tokens)

  • Main SKILL.md body content
  • Loaded when user request matches description
  • Optimal: Under 500 lines

Level 3: Resources (Unlimited)

  • Additional markdown files, scripts, templates
  • Loaded as needed via bash navigation
  • Scripts execute without loading code into context

File Structure

skill-name/
├── SKILL.md              # Main instructions (mandatory)
├── reference/            # Additional documentation
│   ├── advanced.md
│   └── api_reference.md
├── scripts/              # Executable code
│   └── validator.py
└── templates/            # Templates
    └── template.ext

YAML Frontmatter

Required:

---
name: skill-name
description: What skill does and when to use it. Include triggers and key terms.
---

Optional (Claude Code):

allowed-tools: ["Bash", "Read", "Write", "Edit"]
model: claude-sonnet-4-5-20250929

Naming Rules:

  • Max 64 chars, lowercase letters/​numbers/​hyphens
  • Use gerund form: processing-pdfs (not process-pdf)
  • Avoid vague names: helper, utils, documents

Skill Levels

LevelLinesCharacteristicsTemplate
Simple100-300Single task, no scriptsreference/​templates/​simple.md
Moderate300-500Multiple ops, validation scriptsreference/​templates/​moderate.md
Advanced500+ distributedMulti-phase, extensive refsreference/​templates/​advanced.md

Best Practices Summary

Top 10 DOs

  1. Keep SKILL.md under 500 lines
  2. Write descriptions in third person with triggers
  3. Use consistent terminology throughout
  4. Provide concrete examples with input/​output pairs
  5. Implement validation loops (Create -> Validate -> Fix)
  6. Structure long files with table of contents
  7. Use checklists for complex tasks
  8. Solve problems in scripts, don't punt to Claude
  9. Justify all constants and magic numbers
  10. List required packages explicitly

Top 10 DON'Ts

  1. Reference time-sensitive information
  2. Use Windows-style paths (scripts\helper.py)
  3. Assume tools are pre-installed
  4. Use vague MCP tool references
  5. Provide too many equal options (decision paralysis)
  6. Create deeply nested references (one level max)
  7. Skip validation for quality tasks
  8. Mix inconsistent terminology
  9. Leave constants unexplained
  10. Assume subagent context from conversation

Full checklist: reference/​best-practices.md


Subagent Integration Summary

When to Delegate

Task TypeRecommendation
Simple, <10 minDirect in skill
Research-heavyDelegate to context-collector
Multi-stageOrchestrate specialists
Language-specificLanguage expert subagents
Quality assurancecode-reviewer, test-automator

Key Constraints

  • NO conversation history access - each invocation is fresh
  • NO nested delegation - main agent orchestrates all
  • File artifacts for state transfer - save results to files
  • Explicit output format - prevent context overload

Orchestration Patterns

  1. Parallel - Independent tasks, single message, multiple Task calls
  2. Sequential - Dependent tasks, file artifacts between steps
  3. Hub-and-Spoke - Implementation + multiple reviewers
  4. Iterative - Architect -> Reviewer cycles

Full guide: reference/​subagent-patterns.md


Domain Patterns Summary

DomainKey PatternExample
CreativePhilosophy-first, reductive masteryalgorithmic-art
DocumentValidation loops, zero-error mandatexlsx, pdf
DevelopmentPhase-based workflow, quality gatesmcp-builder
EnterpriseTemplate routing, clarification protocolsinternal-comms
WorkflowSlash commands, automationworktree-manager

Full patterns: reference/​domain-patterns.md


Quality & Testing Summary

Build Evaluations First

  1. Run Claude WITHOUT skill on real tasks
  2. Create 3+ test scenarios
  3. Write minimal instructions to pass
  4. Iterate based on real behavior

Two-Claude Method

  • Claude A: Skill author
  • Claude B: Skill tester
  • Iterate based on where B struggles

Cross-Model Testing

  • Haiku (cost optimization)
  • Sonnet (standard)
  • Opus (complex tasks)

Full guide: reference/​evaluation.md


Key Takeaways

Architecture

  • Three-level progressive loading: metadata -> instructions -> resources
  • Filesystem-based: bash navigation, scripts execute without loading
  • One level deep references only

Structure

  • SKILL.md under 500 lines
  • YAML: name (64 chars) + description (1024 chars, third person)
  • Forward slashes always, gerund naming

Subagents

  • Context isolation: NO history, NO memory
  • Main agent orchestrates all delegation
  • File artifacts for state transfer
  • 90% improvement with parallel specialists

Distribution

  • Skills don't sync across surfaces
  • Claude Code: ~/​.claude/​skills/ or .claude/​skills/
  • Share via git for teams

External References

Official Docs:

GitHub Examples:

Full links: reference/​links.md


Version

v1.2.0 (December 2025) - Refactored to progressive disclosure pattern

More skills from majiayu000

xiaohongshu logo
majiayu000/claude-arsenal

xiaohongshu

xiaohongshu

286 148
View
agent-task-conductor logo
majiayu000/claude-skill-registry

agent-task-conductor

Conduct multi-agent task orchestration and workflow coordination.

663 1
View
conductor-setup logo
majiayu000/claude-skill-registry

conductor-setup

Initialize project with Conductor artifacts (product definition,

663 1
View
animation-designer logo
majiayu000/claude-skill-registry

animation-designer

Expert in web animations, transitions, and motion design using Framer Motion and CSS

663 1
View
diagramming logo
majiayu000/claude-skill-registry

diagramming

Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...

663 1
View
h3-pg logo
majiayu000/claude-skill-registry-data

h3-pg

PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.

23 1
View
conductor-development logo
majiayu000/claude-skill-registry

conductor-development

Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...

663 1
View
conductor-status logo
majiayu000/claude-skill-registry

conductor-status

Display project status, active tracks, and next actions

663 1
View
dockerization logo
majiayu000/claude-skill-registry

dockerization

Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.

663 1
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View