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 for Claude Code.

16 stars

Best use case

skill-protocol-mastery is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

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 for Claude Code.

Teams using skill-protocol-mastery should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/skill-protocol-mastery/SKILL.md --create-dirs "https://raw.githubusercontent.com/diegosouzapw/awesome-omni-skill/main/skills/design/skill-protocol-mastery/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/skill-protocol-mastery/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How skill-protocol-mastery Compares

Feature / Agentskill-protocol-masteryStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

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 for Claude Code.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# 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:

| Level | Content | When Loaded | Size Limit |
|-------|---------|-------------|------------|
| 1 | Metadata (name + description) | Always | ~100 words |
| 2 | SKILL.md body | When triggered | 1,500-2,000 words |
| 3 | Bundled resources | As needed | Unlimited* |

*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:**
```yaml
---
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:**
```markdown
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:**
```yaml
description: This skill should be used when the user asks to "create X"...
```

❌ **Incorrect:**
```yaml
description: Use this skill when you want to create X...
```

## Description Quality Patterns

### Strong Trigger Phrases

Include exact phrases users would say:

```yaml
# 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

```bash
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

| Mistake | Problem | Solution |
|---------|---------|----------|
| Weak triggers | Skill doesn't load | Add specific phrases users say |
| Second person | Inconsistent style | Use imperative form |
| Too much in SKILL.md | Context bloat | Move to references/ |
| Missing references | Claude can't find details | Add resource pointers |
| Vague description | Poor discovery | Include 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

Related Skills

anticipation-mastery

16
from diegosouzapw/awesome-omni-skill

Use when designing action sequences, user interactions, state transitions, or any motion that needs telegraphing to feel intentional rather than sudden.

data-structure-protocol

16
from diegosouzapw/awesome-omni-skill

Give agents persistent structural memory of a codebase — navigate dependencies, track public APIs, and understand why connections exist without re-reading the whole repo.

agent-protocol

16
from diegosouzapw/awesome-omni-skill

Human and agent coordination protocol for repos using .agentprotocol. Use to manage TODO intake, open and archived work items, and plan/build docs with deterministic indexes.

javascript-mastery

16
from diegosouzapw/awesome-omni-skill

Comprehensive JavaScript reference covering 33+ essential concepts every developer should know. From fundamentals like primitives and closures to advanced patterns like async/await and functional p...

async-repl-protocol

16
from diegosouzapw/awesome-omni-skill

Async REPL Protocol

architectural-amendment-protocol

16
from diegosouzapw/awesome-omni-skill

Amend architectural specifications through formal protocol.

analyzing-protocols

16
from diegosouzapw/awesome-omni-skill

Analyzes network protocol implementations to identify parsing vulnerabilities, state machine issues, and protocol-level security problems. Use when analyzing network servers, protocol handlers, or investigating protocol implementation bugs.

alto-protocol

16
from diegosouzapw/awesome-omni-skill

Use when working with ALTO protocol files - runs/state.json, runs/handoffs/*.md, runs/tasks/*.md, runs/plan.md, or runs/milestones.md. Reference for file formats and state machine.

deepseek-code-mastery

16
from diegosouzapw/awesome-omni-skill

Referencia completa para operar DeepSeek Code (1M tokens por chat via web, open source, sin expiracion) como sistema multi-agente subordinado a Claude Code. v4.2 certificado — Serena auto-init en agent mode (3 tools de code intelligence sin intervencion manual), quantum merge con deduplicacion de clases ES6 (extract_classes + pick_better_implementation, strategy function_based), skills_dir fallback automatico en orchestrator, Phase 2 token tracking real. Token-Efficient Pipeline (save_response.py directo a disco, ~96% ahorro), Semantic Engine central (TF-IDF, cosine similarity, Bayesian Beta, temporal decay, Mann-Kendall), Skills por similaridad semantica, memoria dual (surgical + global), Intelligence Package (5 features), dual quantum sessions, multi-step, multi-session, converse, y protocolo de sesiones 3-fases. Usar cuando el usuario pida delegar codigo, generar funciones, crear features, o cualquier tarea de generacion masiva.

agent-communication-protocol

16
from diegosouzapw/awesome-omni-skill

Open protocol for AI agent interoperability enabling standardized communication between agents, applications, and humans across different frameworks

bgo

10
from diegosouzapw/awesome-omni-skill

Automates the complete Blender build-go workflow, from building and packaging your extension/add-on to removing old versions, installing, enabling, and launching Blender for quick testing and iteration.

Coding & Development

ui-ux-pro-max

16
from diegosouzapw/awesome-omni-skill

UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 9 stacks.