| 42 | } |
| 43 | |
| 44 | function skillMarkdown(args) { |
| 45 | return `--- |
| 46 | name: ${args.name} |
| 47 | description: >- |
| 48 | ${args.description} |
| 49 | user-invocable: true |
| 50 | auto-trigger: false |
| 51 | last-updated: 2026-06-04 |
| 52 | task-class: ${args.taskClass} |
| 53 | risk-level: ${args.riskLevel} |
| 54 | expected-artifacts: [HANDOFF] |
| 55 | verification-commands: [node scripts/skill-lint.js ${args.name}] |
| 56 | benchmark-status: ${args.withBenchmark ? 'present' : 'none'} |
| 57 | neighbor-skills: [] |
| 58 | --- |
| 59 | |
| 60 | # /${args.name} |
| 61 | |
| 62 | ## Orientation |
| 63 | |
| 64 | Use when this workflow is the narrowest fit for the user's request. |
| 65 | Do not use when another named skill is more specific. |
| 66 | |
| 67 | ## Protocol |
| 68 | |
| 69 | 1. Read the relevant project context. |
| 70 | 2. Make the smallest scoped change that satisfies the request. |
| 71 | 3. Verify with the commands listed in frontmatter. |
| 72 | |
| 73 | ## Fringe Cases |
| 74 | |
| 75 | - **Missing project state:** Explain what is missing and stop before writing speculative files. |
| 76 | |
| 77 | ## Contextual Gates |
| 78 | |
| 79 | **Disclosure:** State which files or state directories will be touched. |
| 80 | **Reversibility:** amber -- generated skill files can be removed if the workflow is not useful. |
| 81 | **Trust gates:** Any. |
| 82 | |
| 83 | ## Quality Gates |
| 84 | |
| 85 | - \`node scripts/skill-lint.js ${args.name}\` passes. |
| 86 | - Any benchmark scaffold validates with \`node scripts/skill-bench.js --skill ${args.name}\`. |
| 87 | |
| 88 | ## Exit Protocol |
| 89 | |
| 90 | \`\`\` |
| 91 | ---HANDOFF--- |
| 92 | - What changed |
| 93 | - Verification run |
| 94 | - Remaining risks or next steps |
| 95 | --- |
| 96 | \`\`\` |
| 97 | `; |
| 98 | } |
| 99 | |
| 100 | function benchmarkMarkdown(args) { |
| 101 | return `--- |