Skip to content
skill-protocol-mastery logo

Skill Protocol Mastery

skill-protocol-mastery

This skill should be used when the user asks to "create a skill", "write a SKILL.md", "validate skill structure", "improve skill description", "understand skill protocol", "design skill architecture", or needs guidance on progressive disclosure, trigger phrases, writing style, or skill validation...

SKILL.md

Full skill instructions

Skill Protocol Mastery

This skill provides comprehensive guidance for creating, validating, and optimizing Agent Skills for Claude Code, based on the official Anthropic protocol specification and best practices.

Core Concepts

What Skills Are

Skills are modular packages that extend Claude's capabilities through:

  • Specialized workflows for specific domains
  • Tool integrations for file formats or APIs
  • Domain expertise with company-specific knowledge
  • Bundled resources (scripts, references, assets)

Progressive Disclosure Architecture

Skills use a three-level loading system:

LevelContentWhen LoadedSize Limit
1Metadata (name + description)Always~100 words
2SKILL.md bodyWhen triggered1,500-2,000 words
3Bundled resourcesAs neededUnlimited*

*Scripts execute without loading into context.

Skill Structure

Required Files

skill-name/
├── SKILL.md (required)
│   ├── YAML frontmatter (name, description)
│   └── Markdown instructions
└── Bundled Resources (optional)
    ├── scripts/      - Executable utilities
    ├── references/   - Detailed documentation
    ├── examples/     - Working code samples
    └── assets/       - Templates, images, fonts

YAML Frontmatter Requirements

Validation Rules:

  • name: 1-64 characters, pattern ^[a-z0-9-]+$, no reserved words
  • description: 1-1024 characters, third-person, specific triggers

Template:

---
name: skill-identifier
description: This skill should be used when the user asks to "trigger phrase 1", "trigger phrase 2", "trigger phrase 3". Provides [capability description].
version: 1.0.0
---

Writing Style Requirements

Imperative/​Infinitive Form (Required)

Write verb-first instructions, not second person:

✅ Correct:

To create a hook, define the event type.
Configure the MCP server with authentication.
Validate settings before use.

❌ Incorrect (second person - avoid):

[Second person] create a hook by defining the event type.
[Second person] configure the MCP server.
[Second person] validate settings before use.

Third-Person Descriptions (Required)

✅ Correct:

description: This skill should be used when the user asks to "create X"...

❌ Incorrect:

description: Use this skill when you want to create X...

Description Quality Patterns

Strong Trigger Phrases

Include exact phrases users would say:

# Good - specific triggers
description: This skill should be used when the user asks to "create a hook", "add a PreToolUse hook", "validate tool use", or mentions hook events (PreToolUse, PostToolUse, Stop).

# Bad - vague
description: Provides guidance for working with hooks.

Description Components

  1. Third-person opener: "This skill should be used when..."
  2. Specific triggers: "create X", "configure Y", "validate Z"
  3. Context keywords: File types, domain terms, action verbs
  4. Capability summary: What the skill provides

Content Organization

What Goes in SKILL.md

Include (always loaded when triggered):

  • Core concepts and overview
  • Essential procedures and workflows
  • Quick reference tables
  • Pointers to references/​examples/​scripts
  • Most common use cases

Keep under 2,000 words, maximum 3,000 words

What Goes in references/

Move to references (loaded as needed):

  • Detailed patterns and advanced techniques
  • Comprehensive API documentation
  • Migration guides and edge cases
  • Extensive examples and walkthroughs

Each file can be 2,000-5,000+ words

What Goes in scripts/

Utility scripts for:

  • Validation tools
  • Testing helpers
  • Parsing utilities
  • Automation scripts

Must be executable and documented

Skill Creation Workflow

Step 1: Understand Use Cases

Gather concrete examples of skill usage:

  • "What would a user say to trigger this skill?"
  • "What functionality should this skill support?"
  • "Can you give examples of how this skill would be used?"

Step 2: Plan Resources

Analyze examples to identify:

  • Scripts for repetitive code
  • References for detailed documentation
  • Assets for templates and output files
  • Examples for working demonstrations

Step 3: Create Structure

mkdir -p skills/​skill-name/​{references,examples,scripts}
touch skills/​skill-name/​SKILL.md

Step 4: Write SKILL.md

  1. Create frontmatter with third-person description and triggers
  2. Write lean body (1,500-2,000 words) in imperative form
  3. Reference all supporting files clearly

Step 5: Validate

Run validation checklist (see references/​validation-checklist.md)

Step 6: Iterate

Test with real usage, improve based on observations.

Quick Reference Templates

Minimal Skill

skill-name/
└── SKILL.md

Standard Skill (Recommended)

skill-name/
├── SKILL.md
├── references/
│   └── detailed-guide.md
└── examples/
    └── working-example.sh

Complete Skill

skill-name/
├── SKILL.md
├── references/
│   ├── patterns.md
│   └── advanced.md
├── examples/
│   ├── example1.sh
│   └── example2.json
└── scripts/
    └── validate.sh

Common Mistakes

MistakeProblemSolution
Weak triggersSkill doesn't loadAdd specific phrases users say
Second personInconsistent styleUse imperative form
Too much in SKILL.mdContext bloatMove to references/
Missing referencesClaude can't find detailsAdd resource pointers
Vague descriptionPoor discoveryInclude concrete scenarios

Best Practices Summary

✅ DO:

  • Use third-person in description
  • Include specific trigger phrases
  • Keep SKILL.md lean (1,500-2,000 words)
  • Use progressive disclosure
  • Write in imperative form
  • Reference supporting files
  • Provide working examples

❌ DON'T:

  • Use second person anywhere
  • Have vague trigger conditions
  • Put everything in SKILL.md
  • Leave resources unreferenced
  • Skip validation

Additional Resources

Reference Files

For detailed guidance, consult:

  • references/​protocol-specification.md - Complete protocol spec
  • references/​validation-checklist.md - Full validation checklist
  • references/​json-schemas.md - Schema documentation

Example Files

Working examples in examples/:

  • examples/​minimal-skill/ - Simple skill template
  • examples/​standard-skill/ - Recommended structure
  • examples/​complete-skill/ - Full-featured skill

Utility Scripts

Validation tools in scripts/:

  • scripts/​validate-skill.py - Validate skill structure
  • scripts/​check-frontmatter.sh - Check YAML frontmatter

JSON Schemas

Validation schemas in assets/:

  • assets/​skill-schema.json - Complete skill schema
  • assets/​skill-frontmatter-schema.json - Frontmatter schema

More Productivity & Planning skills

brainstorming logo
Productivity & Planning

brainstorming

Structured design dialogue that validates ideas before implementation begins.

295.4K 385.7K
View
ui-ux-pro-max logo
Productivity & Planning

ui-ux-pro-max

Comprehensive design intelligence for web and mobile UI/UX across 10 technology stacks.

133.1K 383.9K
View
writing-plans logo
Productivity & Planning

writing-plans

Comprehensive implementation plans for multi-step tasks, breaking down specs into bite-sized, testable steps.

295.4K 268K
View
using-superpowers logo
Productivity & Planning

using-superpowers

Introduction to the obra skills system with mandatory skill invocation rules and best practices.

295.4K 259.8K
View
executing-plans logo
Productivity & Planning

executing-plans

Execute a written implementation plan with critical review and task checkpoints.

295.4K 229.1K
View
dispatching-parallel-agents logo
Productivity & Planning

dispatching-parallel-agents

Delegate independent tasks to specialized agents working concurrently with isolated context.

295.4K 206.3K
View
using-git-worktrees logo
Productivity & Planning

using-git-worktrees

Isolated git worktrees with smart directory selection and safety verification.

295.4K 205.2K
View
webapp-testing logo
Productivity & Planning

webapp-testing

Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.

179.7K 170.6K
View
content-strategy logo
Productivity & Planning

content-strategy

Plan searchable and shareable content that drives traffic, builds authority, and generates leads.

53.3K 150.9K
View
repo-intake-and-plan logo
Productivity & Planning

repo-intake-and-plan

README-first repository scanner that extracts commands and classifies reproduction candidates without executing them.

497 139.6K
View
marketing-ideas logo
Productivity & Planning

marketing-ideas

Brainstorm and prioritize marketing strategies tailored to your SaaS stage, budget, and goals.

53.3K 137.2K
View
site-architecture logo
Productivity & Planning

site-architecture

Plan and optimize your website's page hierarchy, navigation, URL structure, and internal linking.

53.3K 112.8K
View

Productivity AI tools

Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View
SaveDay logo
Productivity

SaveDay

Capture, organize, and utilize your knowledge effortlessly.

Free
View
A
Productivity

Any Summary

Instant Summaries of Audio & Video Interviews with AnySummary

Freemium
View
M
Productivity

Map This

Transform PDFs into engaging mind maps.

Freemium
View
ChatPDF logo
Productivity

ChatPDF

Chat with any PDF instantly

Free
View
I
Productivity

intellisay

Create an optimal daily plan using your voice

Paid
View
A
Productivity

Aurora AI

A productivity platform to centralize organizational knowledge and workflows with contextual AI assistance.

Paid
View
AskYourPDF logo
Productivity

AskYourPDF

AskYourPDF Pricing Plans: Tailored to Your Needs

Free
View