[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6CS5XTK2884R9HE15YR8YZM":3,"skill-same:01M6CS5XTK2884R9HE15YR8YZM":68},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":26,"linkOnly":27,"markdownContent":28,"markdownBody":29,"frontMatter":30,"refName":31,"commitSha":32,"skillDirectory":33,"forksCount":34,"repositoryHtmlUrl":35,"repositoryHomepageUrl":6,"ownerHtmlUrl":36,"ownerBlogUrl":37,"ownerDescription":38,"updatedAt":39,"install":40,"resources":53},"01M6CS5XTK2884R9HE15YR8YZM","writing-skills",null,"Use when creating new skills, editing existing skills, or verifying skills work before deployment","mrtolkien\u002FGHOST","mrtolkien","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F8489650?v=4","01M6CS32Q934XBQQE8BDV5Z6W2","Tolki","01M6CS32VBCD47F5E27WF9W6FC",5,"MIT","https:\u002F\u002Fgithub.com\u002Fmrtolkien\u002FGHOST\u002Fblob\u002Fmain\u002Fassets\u002Fskills\u002Fsuperpowers\u002Fwriting-skills\u002Fskill.md",[],[19,20,21,22,23,24,25],"writing","writing skills","deployment","coding","work","editing","use","2026-11-10 10:12:30",false,"---\nname: writing-skills\ndescription:\n  Use when creating new skills, editing existing skills, or verifying skills work before\n  deployment\navailable: coding\n---\n\n# Writing Skills\n\n## Overview\n\n**Writing skills IS Test-Driven Development applied to process documentation.**\n\n**Skills live in the workspace `skills\u002F` directory as agentskills.io files.**\n\nYou write test cases (pressure scenarios with agents), watch them fail (baseline\nbehavior), write the skill (documentation), watch tests pass (agents comply), and\nrefactor (close loopholes).\n\n**Core principle:** If you didn't watch an agent fail without the skill, you don't know\nif the skill teaches the right thing.\n\n## What is a Skill?\n\nA **skill** is a reference guide for proven techniques, patterns, or tools. Skills help\nfuture GHOST instances find and apply effective approaches.\n\n**Skills are:** Reusable techniques, patterns, tools, reference guides\n\n**Skills are NOT:** Narratives about how you solved a problem once\n\n## TDD Mapping for Skills\n\n| TDD Concept             | Skill Creation                                   |\n| ----------------------- | ------------------------------------------------ |\n| **Test case**           | Pressure scenario with agent                     |\n| **Production code**     | Skill document (skill.md)                        |\n| **Test fails (RED)**    | Agent violates rule without skill (baseline)     |\n| **Test passes (GREEN)** | Agent complies with skill present                |\n| **Refactor**            | Close loopholes while maintaining compliance     |\n| **Write test first**    | Run baseline scenario BEFORE writing skill       |\n| **Watch it fail**       | Document exact rationalizations agent uses       |\n| **Minimal code**        | Write skill addressing those specific violations |\n| **Watch it pass**       | Verify agent now complies                        |\n| **Refactor cycle**      | Find new rationalizations, plug, re-verify       |\n\nThe entire skill creation process follows RED-GREEN-REFACTOR.\n\n## When to Create a Skill\n\n**Create when:**\n\n- Technique wasn't intuitively obvious to you\n- You'd reference this again across projects\n- Pattern applies broadly (not project-specific)\n- Others would benefit\n\n**Don't create for:**\n\n- One-off solutions\n- Standard practices well-documented elsewhere\n- Project-specific conventions (put in CLAUDE.md)\n- Mechanical constraints (if it's enforceable with regex\u002Fvalidation, automate it -- save\n  documentation for judgment calls)\n\n## Skill Types\n\n### Technique\n\nConcrete method with steps to follow (condition-based-waiting, root-cause-tracing)\n\n### Pattern\n\nWay of thinking about problems (flatten-with-flags, test-invariants)\n\n### Reference\n\nAPI docs, syntax guides, tool documentation\n\n## Directory Structure\n\n```\nskills\u002F\n  skill-name\u002F\n    skill.md              # Main reference (required)\n    supporting-file.*     # Only if needed\n```\n\n**Flat namespace** - all skills in one searchable namespace\n\n**Separate files for:**\n\n1. **Heavy reference** (100+ lines) - API docs, comprehensive syntax\n2. **Reusable tools** - Scripts, utilities, templates\n\n**Keep inline:**\n\n- Principles and concepts\n- Code patterns (\u003C 50 lines)\n- Everything else\n\n## skill.md Structure\n\n**Frontmatter (YAML):**\n\n- Only two fields supported: `name` and `description`\n- Max 1024 characters total\n- `name`: Use letters, numbers, and hyphens only (no parentheses, special chars)\n- `description`: Third-person, describes ONLY when to use (NOT what it does)\n  - Start with \"Use when...\" to focus on triggering conditions\n  - Include specific symptoms, situations, and contexts\n  - **NEVER summarize the skill's process or workflow** (see CSO section for why)\n  - Keep under 500 characters if possible\n\n```markdown\n---\nname: Skill-Name-With-Hyphens\ndescription: Use when [specific triggering conditions and symptoms]\n---\n\n# Skill Name\n\n## Overview\n\nWhat is this? Core principle in 1-2 sentences.\n\n## When to Use\n\n[Small inline flowchart IF decision non-obvious]\n\nBullet list with SYMPTOMS and use cases When NOT to use\n\n## Core Pattern (for techniques\u002Fpatterns)\n\nBefore\u002Fafter code comparison\n\n## Quick Reference\n\nTable or bullets for scanning common operations\n\n## Implementation\n\nInline code for simple patterns Link to file for heavy reference or reusable tools\n\n## Common Mistakes\n\nWhat goes wrong + fixes\n\n## Real-World Impact (optional)\n\nConcrete results\n```\n\n## Claude Search Optimization (CSO)\n\n**Critical for discovery:** Future GHOST instances need to FIND your skill\n\n### 1. Rich Description Field\n\n**Purpose:** GHOST reads description to decide which skills to load for a given task.\nMake it answer: \"Should I read this skill right now?\"\n\n**Format:** Start with \"Use when...\" to focus on triggering conditions\n\n**CRITICAL: Description = When to Use, NOT What the Skill Does**\n\nThe description should ONLY describe triggering conditions. Do NOT summarize the skill's\nprocess or workflow in the description.\n\n**Why this matters:** Testing revealed that when a description summarizes the skill's\nworkflow, the agent may follow the description instead of reading the full skill\ncontent. A description saying \"code review between tasks\" caused the agent to do ONE\nreview, even though the skill's flowchart clearly showed TWO reviews (spec compliance\nthen code quality).\n\nWhen the description was changed to just \"Use when executing implementation plans with\nindependent tasks\" (no workflow summary), the agent correctly read the flowchart and\nfollowed the two-stage review process.\n\n**The trap:** Descriptions that summarize workflow create a shortcut the agent will\ntake. The skill body becomes documentation the agent skips.\n\n```yaml\n# BAD: Summarizes workflow - agent may follow this instead of reading skill\ndescription: Use when executing plans - dispatches agent per task with code review between tasks\n\n# BAD: Too much process detail\ndescription: Use for TDD - write test first, watch it fail, write minimal code, refactor\n\n# GOOD: Just triggering conditions, no workflow summary\ndescription: Use when executing implementation plans with independent tasks in the current session\n\n# GOOD: Triggering conditions only\ndescription: Use when implementing any feature or bugfix, before writing implementation code\n```\n\n**Content:**\n\n- Use concrete triggers, symptoms, and situations that signal this skill applies\n- Describe the _problem_ (race conditions, inconsistent behavior) not _language-specific\n  symptoms_ (setTimeout, sleep)\n- Keep triggers technology-agnostic unless the skill itself is technology-specific\n- If skill is technology-specific, make that explicit in the trigger\n- Write in third person (injected into system prompt)\n- **NEVER summarize the skill's process or workflow**\n\n```yaml\n# BAD: Too abstract, vague, doesn't include when to use\ndescription: For async testing\n\n# BAD: First person\ndescription: I can help you with async tests when they're flaky\n\n# BAD: Mentions technology but skill isn't specific to it\ndescription: Use when tests use setTimeout\u002Fsleep and are flaky\n\n# GOOD: Starts with \"Use when\", describes problem, no workflow\ndescription: Use when tests have race conditions, timing dependencies, or pass\u002Ffail inconsistently\n\n# GOOD: Technology-specific skill with explicit trigger\ndescription: Use when using React Router and handling authentication redirects\n```\n\n### 2. Keyword Coverage\n\nUse words the agent would search for:\n\n- Error messages: \"Hook timed out\", \"ENOTEMPTY\", \"race condition\"\n- Symptoms: \"flaky\", \"hanging\", \"zombie\", \"pollution\"\n- Synonyms: \"timeout\u002Fhang\u002Ffreeze\", \"cleanup\u002Fteardown\u002FafterEach\"\n- Tools: Actual commands, library names, file types\n\n### 3. Descriptive Naming\n\n**Use active voice, verb-first:**\n\n- `creating-skills` not `skill-creation`\n- `condition-based-waiting` not `async-test-helpers`\n\n**Gerunds (-ing) work well for processes:**\n\n- `creating-skills`, `testing-skills`, `debugging-with-logs`\n- Active, describes the action you're taking\n\n### 4. Token Efficiency (Critical)\n\n**Problem:** Frequently-referenced skills load into EVERY conversation. Every token\ncounts.\n\n**Target word counts:**\n\n- Frequently-loaded skills: \u003C200 words total\n- Other skills: \u003C500 words (still be concise)\n\n**Techniques:**\n\n**Move details to tool help:**\n\n```bash\n# BAD: Document all flags in skill.md\nsearch-conversations supports --text, --both, --after DATE, --before DATE, --limit N\n\n# GOOD: Reference --help\nsearch-conversations supports multiple modes and filters. Run --help for details.\n```\n\n**Use cross-references:**\n\n```markdown\n# BAD: Repeat workflow details\n\nWhen searching, start agent with template... [20 lines of repeated instructions]\n\n# GOOD: Reference other skill\n\nAlways use agents (50-100x context savings). **REQUIRED:** Read the other skill's\n`skill.md` for workflow.\n```\n\n**Compress examples:**\n\n```markdown\n# BAD: Verbose example (42 words)\n\nthe OPERATOR: \"How did we handle authentication errors in React Router before?\" You:\nI'll search past conversations for React Router authentication patterns. [Start agent\nwith search query: \"React Router authentication error handling 401\"]\n\n# GOOD: Minimal example (20 words)\n\nOPERATOR: \"How did we handle auth errors in React Router?\" You: Searching... [Start\nagent, synthesis]\n```\n\n**Eliminate redundancy:**\n\n- Don't repeat what's in cross-referenced skills\n- Don't explain what's obvious from command\n- Don't include multiple examples of same pattern\n\n### 5. Cross-Referencing Other Skills\n\n**When writing documentation that references other skills:**\n\nUse skill name only, with explicit requirement markers:\n\n- Good: `**REQUIRED:** Read the \\`tdd\\` skill`\n- Good: `**REQUIRED BACKGROUND:** You MUST understand the test-driven-development skill`\n- Bad: `See skills\u002Ftesting\u002Ftest-driven-development` (unclear if required)\n\n## Flowchart Usage\n\n**Use flowcharts ONLY for:**\n\n- Non-obvious decision points\n- Process loops where you might stop too early\n- \"When to use A vs B\" decisions\n\n**Never use flowcharts for:**\n\n- Reference material (use tables, lists)\n- Code examples (use markdown blocks)\n- Linear instructions (use numbered lists)\n- Labels without semantic meaning (step1, helper2)\n\n## Code Examples\n\n**One excellent example beats many mediocre ones**\n\nChoose most relevant language:\n\n- Testing techniques: TypeScript\u002FJavaScript\n- System debugging: Shell\u002FPython\n- Data processing: Python\n\n**Good example:**\n\n- Complete and runnable\n- Well-commented explaining WHY\n- From real scenario\n- Shows pattern clearly\n- Ready to adapt (not generic template)\n\n**Don't:**\n\n- Implement in 5+ languages\n- Create fill-in-the-blank templates\n- Write contrived examples\n\nYou're good at porting - one great example is enough.\n\n## File Organization\n\n### Self-Contained Skill\n\n```\ndefense-in-depth\u002F\n  skill.md    # Everything inline\n```\n\nWhen: All content fits, no heavy reference needed\n\n### Skill with Reusable Tool\n\n```\ncondition-based-waiting\u002F\n  skill.md    # Overview + patterns\n  example.ts  # Working helpers to adapt\n```\n\nWhen: Tool is reusable code, not just narrative\n\n### Skill with Heavy Reference\n\n```\npptx\u002F\n  skill.md       # Overview + workflows\n  pptxgenjs.md   # 600 lines API reference\n  ooxml.md       # 500 lines XML structure\n  scripts\u002F       # Executable tools\n```\n\nWhen: Reference material too large for inline\n\n## The Iron Law (Same as TDD)\n\n```\nNO SKILL WITHOUT A FAILING TEST FIRST\n```\n\nThis applies to NEW skills AND EDITS to existing skills.\n\nWrite skill before testing? Delete it. Start over. Edit skill without testing? Same\nviolation.\n\n**No exceptions:**\n\n- Not for \"simple additions\"\n- Not for \"just adding a section\"\n- Not for \"documentation updates\"\n- Don't keep untested changes as \"reference\"\n- Don't \"adapt\" while running tests\n- Delete means delete\n\n## Testing All Skill Types\n\nDifferent skill types need different test approaches:\n\n### Discipline-Enforcing Skills (rules\u002Frequirements)\n\n**Test with:**\n\n- Academic questions: Do they understand the rules?\n- Pressure scenarios: Do they comply under stress?\n- Multiple pressures combined: time + sunk cost + exhaustion\n- Identify rationalizations and add explicit counters\n\n**Success criteria:** Agent follows rule under maximum pressure\n\n### Technique Skills (how-to guides)\n\n**Test with:**\n\n- Application scenarios: Can they apply the technique correctly?\n- Variation scenarios: Do they handle edge cases?\n- Missing information tests: Do instructions have gaps?\n\n**Success criteria:** Agent successfully applies technique to new scenario\n\n### Pattern Skills (mental models)\n\n**Test with:**\n\n- Recognition scenarios: Do they recognize when pattern applies?\n- Application scenarios: Can they use the mental model?\n- Counter-examples: Do they know when NOT to apply?\n\n**Success criteria:** Agent correctly identifies when\u002Fhow to apply pattern\n\n### Reference Skills (documentation\u002FAPIs)\n\n**Test with:**\n\n- Retrieval scenarios: Can they find the right information?\n- Application scenarios: Can they use what they found correctly?\n- Gap testing: Are common use cases covered?\n\n**Success criteria:** Agent finds and correctly applies reference information\n\n## Common Rationalizations for Skipping Testing\n\n| Excuse                         | Reality                                                          |\n| ------------------------------ | ---------------------------------------------------------------- |\n| \"Skill is obviously clear\"     | Clear to you does not mean clear to other agents. Test it.       |\n| \"It's just a reference\"        | References can have gaps, unclear sections. Test retrieval.      |\n| \"Testing is overkill\"          | Untested skills have issues. Always. 15 min testing saves hours. |\n| \"I'll test if problems emerge\" | Problems = agents can't use skill. Test BEFORE deploying.        |\n| \"Too tedious to test\"          | Testing is less tedious than debugging bad skill in production.  |\n| \"I'm confident it's good\"      | Overconfidence guarantees issues. Test anyway.                   |\n| \"Academic review is enough\"    | Reading does not equal using. Test application scenarios.        |\n| \"No time to test\"              | Deploying untested skill wastes more time fixing it later.       |\n\n**All of these mean: Test before deploying. No exceptions.**\n\n## Bulletproofing Skills Against Rationalization\n\nSkills that enforce discipline (like TDD) need to resist rationalization. Agents are\nsmart and will find loopholes when under pressure.\n\n### Close Every Loophole Explicitly\n\nDon't just state the rule - forbid specific workarounds:\n\nBad:\n\n```markdown\nWrite code before test? Delete it.\n```\n\nGood:\n\n```markdown\nWrite code before test? Delete it. Start over.\n\n**No exceptions:**\n\n- Don't keep it as \"reference\"\n- Don't \"adapt\" it while writing tests\n- Don't look at it\n- Delete means delete\n```\n\n### Address \"Spirit vs Letter\" Arguments\n\nAdd foundational principle early:\n\n```markdown\n**Violating the letter of the rules is violating the spirit of the rules.**\n```\n\nThis cuts off entire class of \"I'm following the spirit\" rationalizations.\n\n### Build Rationalization Table\n\nCapture rationalizations from baseline testing. Every excuse agents make goes in the\ntable:\n\n```markdown\n| Excuse                           | Reality                                                                 |\n| -------------------------------- | ----------------------------------------------------------------------- |\n| \"Too simple to test\"             | Simple code breaks. Test takes 30 seconds.                              |\n| \"I'll test after\"                | Tests passing immediately prove nothing.                                |\n| \"Tests after achieve same goals\" | Tests-after = \"what does this do?\" Tests-first = \"what should this do?\" |\n```\n\n### Create Red Flags List\n\nMake it easy for agents to self-check when rationalizing:\n\n```markdown\n## Red Flags - STOP and Start Over\n\n- Code before test\n- \"I already manually tested it\"\n- \"Tests after achieve the same purpose\"\n- \"It's about spirit not ritual\"\n- \"This is different because...\"\n\n**All of these mean: Delete code. Start over with TDD.**\n```\n\n## RED-GREEN-REFACTOR for Skills\n\nFollow the TDD cycle:\n\n### RED: Write Failing Test (Baseline)\n\nRun pressure scenario with agent WITHOUT the skill. Document exact behavior:\n\n- What choices did they make?\n- What rationalizations did they use (verbatim)?\n- Which pressures triggered violations?\n\nThis is \"watch the test fail\" - you must see what agents naturally do before writing the\nskill.\n\n### GREEN: Write Minimal Skill\n\nWrite skill that addresses those specific rationalizations. Don't add extra content for\nhypothetical cases.\n\nRun same scenarios WITH skill. Agent should now comply.\n\n### REFACTOR: Close Loopholes\n\nAgent found new rationalization? Add explicit counter. Re-test until bulletproof.\n\n## Anti-Patterns\n\n### Narrative Example\n\n\"In session 2025-10-03, we found empty projectDir caused...\" **Why bad:** Too specific,\nnot reusable\n\n### Multi-Language Dilution\n\nexample-js.js, example-py.py, example-go.go **Why bad:** Mediocre quality, maintenance\nburden\n\n### Code in Flowcharts\n\n```dot\nstep1 [label=\"import fs\"];\nstep2 [label=\"read file\"];\n```\n\n**Why bad:** Can't copy-paste, hard to read\n\n### Generic Labels\n\nhelper1, helper2, step3, pattern4 **Why bad:** Labels should have semantic meaning\n\n## STOP: Before Moving to Next Skill\n\n**After writing ANY skill, you MUST STOP and complete the deployment process.**\n\n**Do NOT:**\n\n- Create multiple skills in batch without testing each\n- Move to next skill before current one is verified\n- Skip testing because \"batching is more efficient\"\n\n**The deployment checklist below is MANDATORY for EACH skill.**\n\nDeploying untested skills = deploying untested code. It's a violation of quality\nstandards.\n\n## Skill Creation Checklist (TDD Adapted)\n\n**IMPORTANT: Use `todo(action: \"plan\", ...)` to create todos for EACH checklist item\nbelow.**\n\n**RED Phase - Write Failing Test:**\n\n- [ ] Create pressure scenarios (3+ combined pressures for discipline skills)\n- [ ] Run scenarios WITHOUT skill - document baseline behavior verbatim\n- [ ] Identify patterns in rationalizations\u002Ffailures\n\n**GREEN Phase - Write Minimal Skill:**\n\n- [ ] Name uses only letters, numbers, hyphens (no parentheses\u002Fspecial chars)\n- [ ] YAML frontmatter with only name and description (max 1024 chars)\n- [ ] Description starts with \"Use when...\" and includes specific triggers\u002Fsymptoms\n- [ ] Description written in third person\n- [ ] Keywords throughout for search (errors, symptoms, tools)\n- [ ] Clear overview with core principle\n- [ ] Address specific baseline failures identified in RED\n- [ ] Code inline OR link to separate file\n- [ ] One excellent example (not multi-language)\n- [ ] Run scenarios WITH skill - verify agents now comply\n\n**REFACTOR Phase - Close Loopholes:**\n\n- [ ] Identify NEW rationalizations from testing\n- [ ] Add explicit counters (if discipline skill)\n- [ ] Build rationalization table from all test iterations\n- [ ] Create red flags list\n- [ ] Re-test until bulletproof\n\n**Quality Checks:**\n\n- [ ] Small flowchart only if decision non-obvious\n- [ ] Quick reference table\n- [ ] Common mistakes section\n- [ ] No narrative storytelling\n- [ ] Supporting files only for tools or heavy reference\n\n**Deployment:**\n\n- [ ] Commit skill to git and push\n\n## Discovery Workflow\n\nHow future GHOST finds your skill:\n\n1. **Encounters problem** (\"tests are flaky\")\n2. **Finds SKILL** (description matches)\n3. **Scans overview** (is this relevant?)\n4. **Reads patterns** (quick reference table)\n5. **Loads example** (only when implementing)\n\n**Optimize for this flow** - put searchable terms early and often.\n\n## Companion Guides\n\n- **Authoring best practices:** Read the `best-practices.md` extra — Conciseness,\n  structure, progressive disclosure, evaluation-driven development\n- **Persuasion principles:** Read the `persuasion-principles.md` extra — Psychology of\n  effective skill design (authority, commitment, scarcity)\n- **Testing skills with subagents:** Read the `testing-skills-with-subagents.md` extra —\n  Pressure scenarios, rationalization tables, bulletproofing\n\n## The Bottom Line\n\n**Creating skills IS TDD for process documentation.**\n\nSame Iron Law: No skill without failing test first. Same cycle: RED (baseline), GREEN\n(write skill), REFACTOR (close loopholes). Same benefits: Better quality, fewer\nsurprises, bulletproof results.\n\nIf you follow TDD for code, follow it for skills. It's the same discipline applied to\ndocumentation.\n","# Writing Skills\n\n## Overview\n\n**Writing skills IS Test-Driven Development applied to process documentation.**\n\n**Skills live in the workspace `skills\u002F` directory as agentskills.io files.**\n\nYou write test cases (pressure scenarios with agents), watch them fail (baseline\nbehavior), write the skill (documentation), watch tests pass (agents comply), and\nrefactor (close loopholes).\n\n**Core principle:** If you didn't watch an agent fail without the skill, you don't know\nif the skill teaches the right thing.\n\n## What is a Skill?\n\nA **skill** is a reference guide for proven techniques, patterns, or tools. Skills help\nfuture GHOST instances find and apply effective approaches.\n\n**Skills are:** Reusable techniques, patterns, tools, reference guides\n\n**Skills are NOT:** Narratives about how you solved a problem once\n\n## TDD Mapping for Skills\n\n| TDD Concept             | Skill Creation                                   |\n| ----------------------- | ------------------------------------------------ |\n| **Test case**           | Pressure scenario with agent                     |\n| **Production code**     | Skill document (skill.md)                        |\n| **Test fails (RED)**    | Agent violates rule without skill (baseline)     |\n| **Test passes (GREEN)** | Agent complies with skill present                |\n| **Refactor**            | Close loopholes while maintaining compliance     |\n| **Write test first**    | Run baseline scenario BEFORE writing skill       |\n| **Watch it fail**       | Document exact rationalizations agent uses       |\n| **Minimal code**        | Write skill addressing those specific violations |\n| **Watch it pass**       | Verify agent now complies                        |\n| **Refactor cycle**      | Find new rationalizations, plug, re-verify       |\n\nThe entire skill creation process follows RED-GREEN-REFACTOR.\n\n## When to Create a Skill\n\n**Create when:**\n\n- Technique wasn't intuitively obvious to you\n- You'd reference this again across projects\n- Pattern applies broadly (not project-specific)\n- Others would benefit\n\n**Don't create for:**\n\n- One-off solutions\n- Standard practices well-documented elsewhere\n- Project-specific conventions (put in CLAUDE.md)\n- Mechanical constraints (if it's enforceable with regex\u002Fvalidation, automate it -- save\n  documentation for judgment calls)\n\n## Skill Types\n\n### Technique\n\nConcrete method with steps to follow (condition-based-waiting, root-cause-tracing)\n\n### Pattern\n\nWay of thinking about problems (flatten-with-flags, test-invariants)\n\n### Reference\n\nAPI docs, syntax guides, tool documentation\n\n## Directory Structure\n\n```\nskills\u002F\n  skill-name\u002F\n    skill.md              # Main reference (required)\n    supporting-file.*     # Only if needed\n```\n\n**Flat namespace** - all skills in one searchable namespace\n\n**Separate files for:**\n\n1. **Heavy reference** (100+ lines) - API docs, comprehensive syntax\n2. **Reusable tools** - Scripts, utilities, templates\n\n**Keep inline:**\n\n- Principles and concepts\n- Code patterns (\u003C 50 lines)\n- Everything else\n\n## skill.md Structure\n\n**Frontmatter (YAML):**\n\n- Only two fields supported: `name` and `description`\n- Max 1024 characters total\n- `name`: Use letters, numbers, and hyphens only (no parentheses, special chars)\n- `description`: Third-person, describes ONLY when to use (NOT what it does)\n  - Start with \"Use when...\" to focus on triggering conditions\n  - Include specific symptoms, situations, and contexts\n  - **NEVER summarize the skill's process or workflow** (see CSO section for why)\n  - Keep under 500 characters if possible\n\n```markdown\n---\nname: Skill-Name-With-Hyphens\ndescription: Use when [specific triggering conditions and symptoms]\n---\n\n# Skill Name\n\n## Overview\n\nWhat is this? Core principle in 1-2 sentences.\n\n## When to Use\n\n[Small inline flowchart IF decision non-obvious]\n\nBullet list with SYMPTOMS and use cases When NOT to use\n\n## Core Pattern (for techniques\u002Fpatterns)\n\nBefore\u002Fafter code comparison\n\n## Quick Reference\n\nTable or bullets for scanning common operations\n\n## Implementation\n\nInline code for simple patterns Link to file for heavy reference or reusable tools\n\n## Common Mistakes\n\nWhat goes wrong + fixes\n\n## Real-World Impact (optional)\n\nConcrete results\n```\n\n## Claude Search Optimization (CSO)\n\n**Critical for discovery:** Future GHOST instances need to FIND your skill\n\n### 1. Rich Description Field\n\n**Purpose:** GHOST reads description to decide which skills to load for a given task.\nMake it answer: \"Should I read this skill right now?\"\n\n**Format:** Start with \"Use when...\" to focus on triggering conditions\n\n**CRITICAL: Description = When to Use, NOT What the Skill Does**\n\nThe description should ONLY describe triggering conditions. Do NOT summarize the skill's\nprocess or workflow in the description.\n\n**Why this matters:** Testing revealed that when a description summarizes the skill's\nworkflow, the agent may follow the description instead of reading the full skill\ncontent. A description saying \"code review between tasks\" caused the agent to do ONE\nreview, even though the skill's flowchart clearly showed TWO reviews (spec compliance\nthen code quality).\n\nWhen the description was changed to just \"Use when executing implementation plans with\nindependent tasks\" (no workflow summary), the agent correctly read the flowchart and\nfollowed the two-stage review process.\n\n**The trap:** Descriptions that summarize workflow create a shortcut the agent will\ntake. The skill body becomes documentation the agent skips.\n\n```yaml\n# BAD: Summarizes workflow - agent may follow this instead of reading skill\ndescription: Use when executing plans - dispatches agent per task with code review between tasks\n\n# BAD: Too much process detail\ndescription: Use for TDD - write test first, watch it fail, write minimal code, refactor\n\n# GOOD: Just triggering conditions, no workflow summary\ndescription: Use when executing implementation plans with independent tasks in the current session\n\n# GOOD: Triggering conditions only\ndescription: Use when implementing any feature or bugfix, before writing implementation code\n```\n\n**Content:**\n\n- Use concrete triggers, symptoms, and situations that signal this skill applies\n- Describe the _problem_ (race conditions, inconsistent behavior) not _language-specific\n  symptoms_ (setTimeout, sleep)\n- Keep triggers technology-agnostic unless the skill itself is technology-specific\n- If skill is technology-specific, make that explicit in the trigger\n- Write in third person (injected into system prompt)\n- **NEVER summarize the skill's process or workflow**\n\n```yaml\n# BAD: Too abstract, vague, doesn't include when to use\ndescription: For async testing\n\n# BAD: First person\ndescription: I can help you with async tests when they're flaky\n\n# BAD: Mentions technology but skill isn't specific to it\ndescription: Use when tests use setTimeout\u002Fsleep and are flaky\n\n# GOOD: Starts with \"Use when\", describes problem, no workflow\ndescription: Use when tests have race conditions, timing dependencies, or pass\u002Ffail inconsistently\n\n# GOOD: Technology-specific skill with explicit trigger\ndescription: Use when using React Router and handling authentication redirects\n```\n\n### 2. Keyword Coverage\n\nUse words the agent would search for:\n\n- Error messages: \"Hook timed out\", \"ENOTEMPTY\", \"race condition\"\n- Symptoms: \"flaky\", \"hanging\", \"zombie\", \"pollution\"\n- Synonyms: \"timeout\u002Fhang\u002Ffreeze\", \"cleanup\u002Fteardown\u002FafterEach\"\n- Tools: Actual commands, library names, file types\n\n### 3. Descriptive Naming\n\n**Use active voice, verb-first:**\n\n- `creating-skills` not `skill-creation`\n- `condition-based-waiting` not `async-test-helpers`\n\n**Gerunds (-ing) work well for processes:**\n\n- `creating-skills`, `testing-skills`, `debugging-with-logs`\n- Active, describes the action you're taking\n\n### 4. Token Efficiency (Critical)\n\n**Problem:** Frequently-referenced skills load into EVERY conversation. Every token\ncounts.\n\n**Target word counts:**\n\n- Frequently-loaded skills: \u003C200 words total\n- Other skills: \u003C500 words (still be concise)\n\n**Techniques:**\n\n**Move details to tool help:**\n\n```bash\n# BAD: Document all flags in skill.md\nsearch-conversations supports --text, --both, --after DATE, --before DATE, --limit N\n\n# GOOD: Reference --help\nsearch-conversations supports multiple modes and filters. Run --help for details.\n```\n\n**Use cross-references:**\n\n```markdown\n# BAD: Repeat workflow details\n\nWhen searching, start agent with template... [20 lines of repeated instructions]\n\n# GOOD: Reference other skill\n\nAlways use agents (50-100x context savings). **REQUIRED:** Read the other skill's\n`skill.md` for workflow.\n```\n\n**Compress examples:**\n\n```markdown\n# BAD: Verbose example (42 words)\n\nthe OPERATOR: \"How did we handle authentication errors in React Router before?\" You:\nI'll search past conversations for React Router authentication patterns. [Start agent\nwith search query: \"React Router authentication error handling 401\"]\n\n# GOOD: Minimal example (20 words)\n\nOPERATOR: \"How did we handle auth errors in React Router?\" You: Searching... [Start\nagent, synthesis]\n```\n\n**Eliminate redundancy:**\n\n- Don't repeat what's in cross-referenced skills\n- Don't explain what's obvious from command\n- Don't include multiple examples of same pattern\n\n### 5. Cross-Referencing Other Skills\n\n**When writing documentation that references other skills:**\n\nUse skill name only, with explicit requirement markers:\n\n- Good: `**REQUIRED:** Read the \\`tdd\\` skill`\n- Good: `**REQUIRED BACKGROUND:** You MUST understand the test-driven-development skill`\n- Bad: `See skills\u002Ftesting\u002Ftest-driven-development` (unclear if required)\n\n## Flowchart Usage\n\n**Use flowcharts ONLY for:**\n\n- Non-obvious decision points\n- Process loops where you might stop too early\n- \"When to use A vs B\" decisions\n\n**Never use flowcharts for:**\n\n- Reference material (use tables, lists)\n- Code examples (use markdown blocks)\n- Linear instructions (use numbered lists)\n- Labels without semantic meaning (step1, helper2)\n\n## Code Examples\n\n**One excellent example beats many mediocre ones**\n\nChoose most relevant language:\n\n- Testing techniques: TypeScript\u002FJavaScript\n- System debugging: Shell\u002FPython\n- Data processing: Python\n\n**Good example:**\n\n- Complete and runnable\n- Well-commented explaining WHY\n- From real scenario\n- Shows pattern clearly\n- Ready to adapt (not generic template)\n\n**Don't:**\n\n- Implement in 5+ languages\n- Create fill-in-the-blank templates\n- Write contrived examples\n\nYou're good at porting - one great example is enough.\n\n## File Organization\n\n### Self-Contained Skill\n\n```\ndefense-in-depth\u002F\n  skill.md    # Everything inline\n```\n\nWhen: All content fits, no heavy reference needed\n\n### Skill with Reusable Tool\n\n```\ncondition-based-waiting\u002F\n  skill.md    # Overview + patterns\n  example.ts  # Working helpers to adapt\n```\n\nWhen: Tool is reusable code, not just narrative\n\n### Skill with Heavy Reference\n\n```\npptx\u002F\n  skill.md       # Overview + workflows\n  pptxgenjs.md   # 600 lines API reference\n  ooxml.md       # 500 lines XML structure\n  scripts\u002F       # Executable tools\n```\n\nWhen: Reference material too large for inline\n\n## The Iron Law (Same as TDD)\n\n```\nNO SKILL WITHOUT A FAILING TEST FIRST\n```\n\nThis applies to NEW skills AND EDITS to existing skills.\n\nWrite skill before testing? Delete it. Start over. Edit skill without testing? Same\nviolation.\n\n**No exceptions:**\n\n- Not for \"simple additions\"\n- Not for \"just adding a section\"\n- Not for \"documentation updates\"\n- Don't keep untested changes as \"reference\"\n- Don't \"adapt\" while running tests\n- Delete means delete\n\n## Testing All Skill Types\n\nDifferent skill types need different test approaches:\n\n### Discipline-Enforcing Skills (rules\u002Frequirements)\n\n**Test with:**\n\n- Academic questions: Do they understand the rules?\n- Pressure scenarios: Do they comply under stress?\n- Multiple pressures combined: time + sunk cost + exhaustion\n- Identify rationalizations and add explicit counters\n\n**Success criteria:** Agent follows rule under maximum pressure\n\n### Technique Skills (how-to guides)\n\n**Test with:**\n\n- Application scenarios: Can they apply the technique correctly?\n- Variation scenarios: Do they handle edge cases?\n- Missing information tests: Do instructions have gaps?\n\n**Success criteria:** Agent successfully applies technique to new scenario\n\n### Pattern Skills (mental models)\n\n**Test with:**\n\n- Recognition scenarios: Do they recognize when pattern applies?\n- Application scenarios: Can they use the mental model?\n- Counter-examples: Do they know when NOT to apply?\n\n**Success criteria:** Agent correctly identifies when\u002Fhow to apply pattern\n\n### Reference Skills (documentation\u002FAPIs)\n\n**Test with:**\n\n- Retrieval scenarios: Can they find the right information?\n- Application scenarios: Can they use what they found correctly?\n- Gap testing: Are common use cases covered?\n\n**Success criteria:** Agent finds and correctly applies reference information\n\n## Common Rationalizations for Skipping Testing\n\n| Excuse                         | Reality                                                          |\n| ------------------------------ | ---------------------------------------------------------------- |\n| \"Skill is obviously clear\"     | Clear to you does not mean clear to other agents. Test it.       |\n| \"It's just a reference\"        | References can have gaps, unclear sections. Test retrieval.      |\n| \"Testing is overkill\"          | Untested skills have issues. Always. 15 min testing saves hours. |\n| \"I'll test if problems emerge\" | Problems = agents can't use skill. Test BEFORE deploying.        |\n| \"Too tedious to test\"          | Testing is less tedious than debugging bad skill in production.  |\n| \"I'm confident it's good\"      | Overconfidence guarantees issues. Test anyway.                   |\n| \"Academic review is enough\"    | Reading does not equal using. Test application scenarios.        |\n| \"No time to test\"              | Deploying untested skill wastes more time fixing it later.       |\n\n**All of these mean: Test before deploying. No exceptions.**\n\n## Bulletproofing Skills Against Rationalization\n\nSkills that enforce discipline (like TDD) need to resist rationalization. Agents are\nsmart and will find loopholes when under pressure.\n\n### Close Every Loophole Explicitly\n\nDon't just state the rule - forbid specific workarounds:\n\nBad:\n\n```markdown\nWrite code before test? Delete it.\n```\n\nGood:\n\n```markdown\nWrite code before test? Delete it. Start over.\n\n**No exceptions:**\n\n- Don't keep it as \"reference\"\n- Don't \"adapt\" it while writing tests\n- Don't look at it\n- Delete means delete\n```\n\n### Address \"Spirit vs Letter\" Arguments\n\nAdd foundational principle early:\n\n```markdown\n**Violating the letter of the rules is violating the spirit of the rules.**\n```\n\nThis cuts off entire class of \"I'm following the spirit\" rationalizations.\n\n### Build Rationalization Table\n\nCapture rationalizations from baseline testing. Every excuse agents make goes in the\ntable:\n\n```markdown\n| Excuse                           | Reality                                                                 |\n| -------------------------------- | ----------------------------------------------------------------------- |\n| \"Too simple to test\"             | Simple code breaks. Test takes 30 seconds.                              |\n| \"I'll test after\"                | Tests passing immediately prove nothing.                                |\n| \"Tests after achieve same goals\" | Tests-after = \"what does this do?\" Tests-first = \"what should this do?\" |\n```\n\n### Create Red Flags List\n\nMake it easy for agents to self-check when rationalizing:\n\n```markdown\n## Red Flags - STOP and Start Over\n\n- Code before test\n- \"I already manually tested it\"\n- \"Tests after achieve the same purpose\"\n- \"It's about spirit not ritual\"\n- \"This is different because...\"\n\n**All of these mean: Delete code. Start over with TDD.**\n```\n\n## RED-GREEN-REFACTOR for Skills\n\nFollow the TDD cycle:\n\n### RED: Write Failing Test (Baseline)\n\nRun pressure scenario with agent WITHOUT the skill. Document exact behavior:\n\n- What choices did they make?\n- What rationalizations did they use (verbatim)?\n- Which pressures triggered violations?\n\nThis is \"watch the test fail\" - you must see what agents naturally do before writing the\nskill.\n\n### GREEN: Write Minimal Skill\n\nWrite skill that addresses those specific rationalizations. Don't add extra content for\nhypothetical cases.\n\nRun same scenarios WITH skill. Agent should now comply.\n\n### REFACTOR: Close Loopholes\n\nAgent found new rationalization? Add explicit counter. Re-test until bulletproof.\n\n## Anti-Patterns\n\n### Narrative Example\n\n\"In session 2025-10-03, we found empty projectDir caused...\" **Why bad:** Too specific,\nnot reusable\n\n### Multi-Language Dilution\n\nexample-js.js, example-py.py, example-go.go **Why bad:** Mediocre quality, maintenance\nburden\n\n### Code in Flowcharts\n\n```dot\nstep1 [label=\"import fs\"];\nstep2 [label=\"read file\"];\n```\n\n**Why bad:** Can't copy-paste, hard to read\n\n### Generic Labels\n\nhelper1, helper2, step3, pattern4 **Why bad:** Labels should have semantic meaning\n\n## STOP: Before Moving to Next Skill\n\n**After writing ANY skill, you MUST STOP and complete the deployment process.**\n\n**Do NOT:**\n\n- Create multiple skills in batch without testing each\n- Move to next skill before current one is verified\n- Skip testing because \"batching is more efficient\"\n\n**The deployment checklist below is MANDATORY for EACH skill.**\n\nDeploying untested skills = deploying untested code. It's a violation of quality\nstandards.\n\n## Skill Creation Checklist (TDD Adapted)\n\n**IMPORTANT: Use `todo(action: \"plan\", ...)` to create todos for EACH checklist item\nbelow.**\n\n**RED Phase - Write Failing Test:**\n\n- [ ] Create pressure scenarios (3+ combined pressures for discipline skills)\n- [ ] Run scenarios WITHOUT skill - document baseline behavior verbatim\n- [ ] Identify patterns in rationalizations\u002Ffailures\n\n**GREEN Phase - Write Minimal Skill:**\n\n- [ ] Name uses only letters, numbers, hyphens (no parentheses\u002Fspecial chars)\n- [ ] YAML frontmatter with only name and description (max 1024 chars)\n- [ ] Description starts with \"Use when...\" and includes specific triggers\u002Fsymptoms\n- [ ] Description written in third person\n- [ ] Keywords throughout for search (errors, symptoms, tools)\n- [ ] Clear overview with core principle\n- [ ] Address specific baseline failures identified in RED\n- [ ] Code inline OR link to separate file\n- [ ] One excellent example (not multi-language)\n- [ ] Run scenarios WITH skill - verify agents now comply\n\n**REFACTOR Phase - Close Loopholes:**\n\n- [ ] Identify NEW rationalizations from testing\n- [ ] Add explicit counters (if discipline skill)\n- [ ] Build rationalization table from all test iterations\n- [ ] Create red flags list\n- [ ] Re-test until bulletproof\n\n**Quality Checks:**\n\n- [ ] Small flowchart only if decision non-obvious\n- [ ] Quick reference table\n- [ ] Common mistakes section\n- [ ] No narrative storytelling\n- [ ] Supporting files only for tools or heavy reference\n\n**Deployment:**\n\n- [ ] Commit skill to git and push\n\n## Discovery Workflow\n\nHow future GHOST finds your skill:\n\n1. **Encounters problem** (\"tests are flaky\")\n2. **Finds SKILL** (description matches)\n3. **Scans overview** (is this relevant?)\n4. **Reads patterns** (quick reference table)\n5. **Loads example** (only when implementing)\n\n**Optimize for this flow** - put searchable terms early and often.\n\n## Companion Guides\n\n- **Authoring best practices:** Read the `best-practices.md` extra — Conciseness,\n  structure, progressive disclosure, evaluation-driven development\n- **Persuasion principles:** Read the `persuasion-principles.md` extra — Psychology of\n  effective skill design (authority, commitment, scarcity)\n- **Testing skills with subagents:** Read the `testing-skills-with-subagents.md` extra —\n  Pressure scenarios, rationalization tables, bulletproofing\n\n## The Bottom Line\n\n**Creating skills IS TDD for process documentation.**\n\nSame Iron Law: No skill without failing test first. Same cycle: RED (baseline), GREEN\n(write skill), REFACTOR (close loopholes). Same benefits: Better quality, fewer\nsurprises, bulletproof results.\n\nIf you follow TDD for code, follow it for skills. It's the same discipline applied to\ndocumentation.\n",{"name":5,"available":22,"description":7},"main","083d96429a2d05526f8a294b83c74f0336670def","assets\u002Fskills\u002Fsuperpowers\u002Fwriting-skills",0,"https:\u002F\u002Fgithub.com\u002Fmrtolkien\u002FGHOST","https:\u002F\u002Fgithub.com\u002Fmrtolkien","https:\u002F\u002Fblog.tolki.dev","Data Engineer \u002F Esports \u002F Keyboards","2026-04-24 15:41:08",{"source":8,"skillName":5,"commands":41,"prompt":51,"zipAvailable":52},[42,45,48],{"tool":43,"command":44},"npx","npx skills add mrtolkien\u002FGHOST --skill writing-skills",{"tool":46,"command":47},"bunx","bunx skills add mrtolkien\u002FGHOST --skill writing-skills",{"tool":49,"command":50},"pnpm","pnpm dlx skills add mrtolkien\u002FGHOST --skill writing-skills","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmrtolkien\u002FGHOST\u002Fblob\u002Fmain\u002Fassets\u002Fskills\u002Fsuperpowers\u002Fwriting-skills\u002Fskill.md",true,[54,60,64],{"path":55,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":58,"sourceHtmlUrl":59},"best-practices.md","REFERENCE","参考文档",11678,"https:\u002F\u002Fgithub.com\u002Fmrtolkien\u002FGHOST\u002Fblob\u002Fmain\u002Fassets\u002Fskills\u002Fsuperpowers\u002Fwriting-skills\u002Fbest-practices.md",{"path":61,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":62,"sourceHtmlUrl":63},"persuasion-principles.md",5878,"https:\u002F\u002Fgithub.com\u002Fmrtolkien\u002FGHOST\u002Fblob\u002Fmain\u002Fassets\u002Fskills\u002Fsuperpowers\u002Fwriting-skills\u002Fpersuasion-principles.md",{"path":65,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":66,"sourceHtmlUrl":67},"testing-skills-with-subagents.md",12956,"https:\u002F\u002Fgithub.com\u002Fmrtolkien\u002FGHOST\u002Fblob\u002Fmain\u002Fassets\u002Fskills\u002Fsuperpowers\u002Fwriting-skills\u002Ftesting-skills-with-subagents.md",[69,95,111,120,130,140],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":26},"01M6CS613RWD9CFJ3KFX47V1DS","system-management","Use when reading or changing GHOST configuration (providers, models, timing, compaction, services, any config.toml key), adding or switching LLM providers, answering questions about GHOST's own features or capabilities, a CLI tool is missing or \"not found\", services need starting\u002Fstopping\u002Fdebugging, updating GHOST to a newer version, managing the Nix shell environment, or troubleshooting GHOST setup.","https:\u002F\u002Fgithub.com\u002Fmrtolkien\u002FGHOST\u002Fblob\u002Fmain\u002Fassets\u002Fskills\u002Fsystem-management\u002Fskill.md",[],[76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,25,92,93,94],"system management","management","system","setup","config","nix","cli","capabilities","debugging","services","Providers","shell","ghost","tool","troubleshooting","environment","version","models","configuration",{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":26},"01M6CS5V737R1DVB3TZEK0C6WT","writing-plans","Use when you have a spec or requirements for a multi-step task, before touching code. Write comprehensive implementation plans assuming the engineer has zero context for our codebase and questionable taste.","https:\u002F\u002Fgithub.com\u002Fmrtolkien\u002FGHOST\u002Fblob\u002Fmain\u002Fassets\u002Fskills\u002Fsuperpowers\u002Fwriting-plans\u002Fskill.md",[],[102,19,25,103,104,105,106,107,22,108,109,110],"writing plans","task","implementation","engineer","context","write","ZeRO","code","spec",{"skillNo":112,"name":113,"nameZh":6,"description":114,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":115,"categories":116,"keywords":117,"publishedAt":26},"01M6CS5S5S0YY56686G5CQ0WMP","verification","Use when about to claim work is complete, fixed, or passing, before committing or creating PRs. Requires running verification commands and confirming output before making any success claims. Evidence before assertions, always.","https:\u002F\u002Fgithub.com\u002Fmrtolkien\u002FGHOST\u002Fblob\u002Fmain\u002Fassets\u002Fskills\u002Fsuperpowers\u002Fverification\u002Fskill.md",[],[113,118,22,23,25,119],"claim","evidence",{"skillNo":121,"name":122,"nameZh":6,"description":123,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":124,"categories":125,"keywords":126,"publishedAt":26},"01M6CS5PD2ZSFWYRDZSACNTAJY","tdd","Use when implementing any feature or bugfix, before writing implementation code. Write the test first. Watch it fail. Write minimal code to pass.","https:\u002F\u002Fgithub.com\u002Fmrtolkien\u002FGHOST\u002Fblob\u002Fmain\u002Fassets\u002Fskills\u002Fsuperpowers\u002Ftdd\u002Fskill.md",[],[122,19,127,109,128,22,107,25,129,104],"test","first","minimal",{"skillNo":131,"name":132,"nameZh":6,"description":133,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":134,"categories":135,"keywords":136,"publishedAt":26},"01M6CS5K5WE2SHF1YV8D9C4C77","systematic-debugging","Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes","https:\u002F\u002Fgithub.com\u002Fmrtolkien\u002FGHOST\u002Fblob\u002Fmain\u002Fassets\u002Fskills\u002Fsuperpowers\u002Fsystematic-debugging\u002Fskill.md",[],[84,137,127,22,138,25,139],"systematic debugging","behavior","bug",{"skillNo":141,"name":142,"nameZh":6,"description":143,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":144,"categories":145,"keywords":146,"publishedAt":26},"01M6CS5FPYWZHHG4X0GQHR8CKT","subagent-development","Use when executing implementation plans with independent tasks in the current session. Dispatch a fresh subagent per task, with two-stage review after each — spec compliance review first, then code quality review. Keeps context clean and quality high.","https:\u002F\u002Fgithub.com\u002Fmrtolkien\u002FGHOST\u002Fblob\u002Fmain\u002Fassets\u002Fskills\u002Fsuperpowers\u002Fsubagent-development\u002Fskill.md",[],[147,148,149,150,151,110,106,22,152,25,153,104,154,103,155,128,109,156,157,158],"subagent development","development","subagent","tasks","code quality","session","dispatch","clean","quality review","compliance","review","quality"]