Use when creating, updating, or improving agent skills.
Add this skill
npx mdskills install sickn33/writing-skillsWell-structured meta-skill with clear decision trees and actionable guidance for creating agent skills
1---2name: writing-skills3description: Use when creating, updating, or improving agent skills.4metadata:5 category: meta6 author: ozy7 triggers: new skill, create skill, update skill, skill documentation, skill template,8 agent skill, writing skill9 references: anti-rationalization, cso, standards, templates, testing, tier-1-simple,10 tier-2-expanded, tier-3-platform11---1213# Writing Skills (Excellence)1415Dispatcher for skill creation excellence. Use the decision tree below to find the right template and standards.1617## ⚡ Quick Decision Tree1819### What do you need to do?20211. **Create a NEW skill:**22 - Is it simple (single file, <200 lines)? → [Tier 1 Architecture](references/tier-1-simple/README.md)23 - Is it complex (multi-concept, 200-1000 lines)? → [Tier 2 Architecture](references/tier-2-expanded/README.md)24 - Is it a massive platform (10+ products, AWS, Convex)? → [Tier 3 Architecture](references/tier-3-platform/README.md)25262. **Improve an EXISTING skill:**27 - Fix "it's too long" -> [Modularize (Tier 3)](references/templates/tier-3-platform.md)28 - Fix "AI ignores rules" -> [Anti-Rationalization](references/anti-rationalization/README.md)29 - Fix "users can't find it" -> [CSO (Search Optimization)](references/cso/README.md)30313. **Verify Compliance:**32 - Check metadata/naming -> [Standards](references/standards/README.md)33 - Add tests -> [Testing Guide](references/testing/README.md)3435## 📚 Component Index3637| Component | Purpose |38|-----------|---------|39| **[CSO](references/cso/README.md)** | "SEO for LLMs". How to write descriptions that trigger. |40| **[Standards](references/standards/README.md)** | File naming, YAML frontmatter, directory structure. |41| **[Anti-Rationalization](references/anti-rationalization/README.md)**| How to write rules that agents won't ignore. |42| **[Testing](references/testing/README.md)** | How to ensure your skill actually works. |4344## 🛠️ Templates4546- [Technique Skill](references/templates/technique.md) (How-to)47- [Reference Skill](references/templates/reference.md) (Docs)48- [Discipline Skill](references/templates/discipline.md) (Rules)49- [Pattern Skill](references/templates/pattern.md) (Design Patterns)5051## When to Use5253- Creating a NEW skill from scratch54- Improving an EXISTING skill that agents ignore55- Debugging why a skill isn't being triggered56- Standardizing skills across a team5758## How It Works59601. **Identify goal** → Use decision tree above612. **Select template** → From `references/templates/`623. **Apply CSO** → Optimize description for discovery634. **Add anti-rationalization** → For discipline skills645. **Test** → RED-GREEN-REFACTOR cycle6566## Quick Example6768```yaml69---70name: my-technique71description: Use when [specific symptom occurs].72metadata:73 category: technique74 triggers: error-text, symptom, tool-name75---7677# My Technique7879## When to Use80- [Symptom A]81- [Error message]82```8384## Common Mistakes8586| Mistake | Fix |87|---------|-----|88| Description summarizes workflow | Use "Use when..." triggers only |89| No `metadata.triggers` | Add 3+ keywords |90| Generic name ("helper") | Use gerund (`creating-skills`) |91| Long monolithic SKILL.md | Split into `references/` |9293See [gotchas.md](gotchas.md) for more.9495## ✅ Pre-Deploy Checklist9697Before deploying any skill:9899- [ ] `name` field matches directory name exactly100- [ ] `SKILL.md` filename is ALL CAPS101- [ ] Description starts with "Use when..."102- [ ] `metadata.triggers` has 3+ keywords103- [ ] Total lines < 500 (use `references/` for more)104- [ ] No `@` force-loading in cross-references105- [ ] Tested with real scenarios106107## 🔗 Related Skills108109- **[opencode-expert](skill://opencode-expert)**: For OpenCode environment configuration110- Use `/write-skill` command for guided skill creation111112## Examples113114**Create a Tier 1 skill:**115```bash116mkdir -p ~/.config/opencode/skills/my-technique117touch ~/.config/opencode/skills/my-technique/SKILL.md118```119120**Create a Tier 2 skill:**121```bash122mkdir -p ~/.config/opencode/skills/my-skill/references/core123touch ~/.config/opencode/skills/my-skill/{SKILL.md,gotchas.md}124touch ~/.config/opencode/skills/my-skill/references/core/README.md125```126
Full transparency — inspect the skill content before installing.