SKILL.md
$2a
- Verify Compliance:
- Check metadata/naming -> Standards
- Add tests -> Testing Guide
π Component Index
Component
Purpose
"SEO for LLMs". How to write descriptions that trigger.
File naming, YAML frontmatter, directory structure.
How to write rules that agents won't ignore.
How to ensure your skill actually works.
π οΈ Templates
- Technique Skill (How-to)
- Reference Skill (Docs)
- Discipline Skill (Rules)
- Pattern Skill (Design Patterns)
When to Use
- Creating a NEW skill from scratch
- Improving an EXISTING skill that agents ignore
- Debugging why a skill isn't being triggered
- Standardizing skills across a team
How It Works
- Identify goal β Use decision tree above
- Select template β From
references/templates/
- Apply CSO β Optimize description for discovery
- Add anti-rationalization β For discipline skills
- Test β RED-GREEN-REFACTOR cycle
Quick Example
---
name: my-technique
description: Use when [specific symptom occurs].
metadata:
category: technique
triggers: error-text, symptom, tool-name
---
# My Technique
## When to Use
- [Symptom A]
- [Error message]
Common Mistakes
Mistake
Fix
Description summarizes workflow
Use "Use when..." triggers only
No metadata.triggers
Add 3+ keywords
Generic name ("helper")
Use gerund (creating-skills)
Long monolithic SKILL.md
Split into references/
See gotchas.md for more.
β Pre-Deploy Checklist
Before deploying any skill:
namefield matches directory name exactly
SKILL.mdfilename is ALL CAPS
- Description starts with "Use when..."
metadata.triggershas 3+ keywords
- Total lines < 500 (use
references/for more)
- No
@force-loading in cross-references
- Tested with real scenarios
π Related Skills
- opencode-expert: For OpenCode environment configuration
- Use
/write-skillcommand for guided skill creation
Examples
Create a Tier 1 skill:
mkdir -p ~/.config/opencode/skills/my-technique
touch ~/.config/opencode/skills/my-technique/SKILL.md
Create a Tier 2 skill:
mkdir -p ~/.config/opencode/skills/my-skill/references/core
touch ~/.config/opencode/skills/my-skill/{SKILL.md,gotchas.md}
touch ~/.config/opencode/skills/my-skill/references/core/README.md
Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.