create-yss-spec 1.1.3 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (574) hide show
  1. package/README.md +20 -2
  2. package/package.json +13 -2
  3. package/src/cli.js +367 -51
  4. package/template/.agents/skills/ask-matt/SKILL.md +8 -4
  5. package/template/.agents/skills/ask-matt/agents/openai.yaml +5 -0
  6. package/template/.agents/skills/code-review/SKILL.md +4 -4
  7. package/template/.agents/skills/code-review/agents/openai.yaml +3 -0
  8. package/template/.agents/skills/codebase-design/agents/openai.yaml +3 -0
  9. package/template/.agents/skills/competitive-intelligence/SKILL.md +5 -5
  10. package/template/.agents/skills/diagnosing-bugs/agents/openai.yaml +3 -0
  11. package/template/.agents/skills/domain-modeling/agents/openai.yaml +3 -0
  12. package/template/.agents/skills/excalidraw-diagram-generator/SKILL.md +4 -4
  13. package/template/.agents/skills/grill-me/SKILL.md +7 -0
  14. package/template/.agents/skills/grill-me/agents/openai.yaml +5 -0
  15. package/template/.agents/skills/grill-with-docs/agents/openai.yaml +5 -0
  16. package/template/.agents/skills/grilling/SKILL.md +12 -0
  17. package/template/.agents/skills/grilling/agents/openai.yaml +3 -0
  18. package/template/.agents/skills/handoff/SKILL.md +16 -0
  19. package/template/.agents/skills/handoff/agents/openai.yaml +5 -0
  20. package/template/.agents/skills/high-fidelity-html-prototype/SKILL.md +6 -6
  21. package/template/.agents/skills/high-fidelity-html-prototype/agents/openai.yaml +5 -0
  22. package/template/.agents/skills/implement/SKILL.md +2 -2
  23. package/template/.agents/skills/implement/agents/openai.yaml +5 -0
  24. package/template/.agents/skills/improve-codebase-architecture/SKILL.md +6 -1
  25. package/template/.agents/skills/improve-codebase-architecture/agents/openai.yaml +5 -0
  26. package/template/.agents/skills/lombok/SKILL.md +345 -0
  27. package/template/.agents/skills/mapstruct/SKILL.md +328 -0
  28. package/template/.agents/skills/prototype/LOGIC.md +3 -3
  29. package/template/.agents/skills/prototype/SKILL.md +2 -6
  30. package/template/.agents/skills/prototype/UI.md +4 -4
  31. package/template/.agents/skills/prototype/agents/openai.yaml +3 -0
  32. package/template/.agents/skills/research/agents/openai.yaml +3 -0
  33. package/template/.agents/skills/resolving-merge-conflicts/agents/openai.yaml +3 -0
  34. package/template/.agents/skills/setup-matt-pocock-skills/SKILL.md +21 -32
  35. package/template/.agents/skills/setup-matt-pocock-skills/agents/openai.yaml +5 -0
  36. package/template/.agents/skills/setup-matt-pocock-skills/issue-tracker-github.md +2 -2
  37. package/template/.agents/skills/setup-matt-pocock-skills/issue-tracker-gitlab.md +2 -2
  38. package/template/.agents/skills/setup-matt-pocock-skills/issue-tracker-local.md +6 -6
  39. package/template/.agents/skills/setup-matt-pocock-skills/triage-labels.md +2 -2
  40. package/template/.agents/skills/tdd/agents/openai.yaml +3 -0
  41. package/template/.agents/skills/teach/GLOSSARY-FORMAT.md +35 -0
  42. package/template/.agents/skills/teach/LEARNING-RECORD-FORMAT.md +46 -0
  43. package/template/.agents/skills/teach/MISSION-FORMAT.md +31 -0
  44. package/template/.agents/skills/teach/RESOURCES-FORMAT.md +32 -0
  45. package/template/.agents/skills/teach/SKILL.md +140 -0
  46. package/template/.agents/skills/teach/agents/openai.yaml +5 -0
  47. package/template/.agents/skills/to-spec/SKILL.md +58 -0
  48. package/template/.agents/skills/to-spec/agents/openai.yaml +5 -0
  49. package/template/.agents/skills/to-tickets/SKILL.md +62 -0
  50. package/template/.agents/skills/to-tickets/agents/openai.yaml +5 -0
  51. package/template/.agents/skills/triage/SKILL.md +4 -4
  52. package/template/.agents/skills/triage/agents/openai.yaml +5 -0
  53. package/template/.agents/skills/wayfinder/SKILL.md +128 -0
  54. package/template/.agents/skills/wayfinder/agents/openai.yaml +5 -0
  55. package/template/.agents/skills/web-design-engineer/SKILL.md +2 -2
  56. package/template/.agents/skills/writing-great-skills/GLOSSARY.md +201 -0
  57. package/template/.agents/skills/writing-great-skills/SKILL.md +83 -0
  58. package/template/.agents/skills/writing-great-skills/agents/openai.yaml +5 -0
  59. package/template/.agents/skills/yss-cache/SKILL.md +44 -0
  60. package/template/.agents/skills/yss-cache/agents/openai.yaml +5 -0
  61. package/template/.agents/skills/yss-cache/references/annotations.md +39 -0
  62. package/template/.agents/skills/yss-cache/references/architecture.md +25 -0
  63. package/template/.agents/skills/yss-cache/references/configuration.md +34 -0
  64. package/template/.agents/skills/yss-cache/references/redis-fallback.md +23 -0
  65. package/template/.agents/skills/yss-cache/references/redis-topology.md +62 -0
  66. package/template/.agents/skills/yss-cache/references/serialization.md +17 -0
  67. package/template/.agents/skills/yss-cache/references/source-index.md +64 -0
  68. package/template/.agents/skills/yss-cache/references/troubleshooting.md +33 -0
  69. package/template/.agents/skills/yss-cache/references/verification.md +34 -0
  70. package/template/.agents/skills/yss-cache/scripts/check-skill-freshness.sh +84 -0
  71. package/template/.agents/skills/yss-cache/scripts/inspect-cache-usage.sh +96 -0
  72. package/template/.agents/skills/yss-cache/scripts/verify-cache-component.sh +101 -0
  73. package/template/.claude/skills/ask-matt/SKILL.md +8 -4
  74. package/template/.claude/skills/ask-matt/agents/openai.yaml +5 -0
  75. package/template/.claude/skills/code-review/SKILL.md +4 -4
  76. package/template/.claude/skills/code-review/agents/openai.yaml +3 -0
  77. package/template/.claude/skills/codebase-design/agents/openai.yaml +3 -0
  78. package/template/.claude/skills/competitive-intelligence/SKILL.md +5 -5
  79. package/template/.claude/skills/diagnosing-bugs/agents/openai.yaml +3 -0
  80. package/template/.claude/skills/domain-modeling/agents/openai.yaml +3 -0
  81. package/template/.claude/skills/excalidraw-diagram-generator/SKILL.md +37 -16
  82. package/template/.claude/skills/excalidraw-diagram-generator/scripts/add-arrow.py +18 -18
  83. package/template/.claude/skills/excalidraw-diagram-generator/scripts/add-icon-to-diagram.py +46 -47
  84. package/template/.claude/skills/grill-me/SKILL.md +7 -0
  85. package/template/.claude/skills/grill-me/agents/openai.yaml +5 -0
  86. package/template/.claude/skills/grill-with-docs/agents/openai.yaml +5 -0
  87. package/template/.claude/skills/grilling/SKILL.md +12 -0
  88. package/template/.claude/skills/grilling/agents/openai.yaml +3 -0
  89. package/template/.claude/skills/handoff/SKILL.md +16 -0
  90. package/template/.claude/skills/handoff/agents/openai.yaml +5 -0
  91. package/template/.claude/skills/implement/SKILL.md +2 -2
  92. package/template/.claude/skills/implement/agents/openai.yaml +5 -0
  93. package/template/.claude/skills/improve-codebase-architecture/SKILL.md +6 -1
  94. package/template/.claude/skills/improve-codebase-architecture/agents/openai.yaml +5 -0
  95. package/template/.claude/skills/prototype/LOGIC.md +3 -3
  96. package/template/.claude/skills/prototype/SKILL.md +2 -6
  97. package/template/.claude/skills/prototype/UI.md +4 -4
  98. package/template/.claude/skills/prototype/agents/openai.yaml +3 -0
  99. package/template/.claude/skills/research/agents/openai.yaml +3 -0
  100. package/template/.claude/skills/resolving-merge-conflicts/agents/openai.yaml +3 -0
  101. package/template/.claude/skills/setup-matt-pocock-skills/SKILL.md +21 -32
  102. package/template/.claude/skills/setup-matt-pocock-skills/agents/openai.yaml +5 -0
  103. package/template/.claude/skills/setup-matt-pocock-skills/issue-tracker-github.md +2 -2
  104. package/template/.claude/skills/setup-matt-pocock-skills/issue-tracker-gitlab.md +2 -2
  105. package/template/.claude/skills/setup-matt-pocock-skills/issue-tracker-local.md +6 -6
  106. package/template/.claude/skills/setup-matt-pocock-skills/triage-labels.md +2 -2
  107. package/template/.claude/skills/tdd/agents/openai.yaml +3 -0
  108. package/template/.claude/skills/teach/GLOSSARY-FORMAT.md +35 -0
  109. package/template/.claude/skills/teach/LEARNING-RECORD-FORMAT.md +46 -0
  110. package/template/.claude/skills/teach/MISSION-FORMAT.md +31 -0
  111. package/template/.claude/skills/teach/RESOURCES-FORMAT.md +32 -0
  112. package/template/.claude/skills/teach/SKILL.md +140 -0
  113. package/template/.claude/skills/teach/agents/openai.yaml +5 -0
  114. package/template/.claude/skills/to-spec/SKILL.md +58 -0
  115. package/template/.claude/skills/to-spec/agents/openai.yaml +5 -0
  116. package/template/.claude/skills/to-tickets/SKILL.md +62 -0
  117. package/template/.claude/skills/to-tickets/agents/openai.yaml +5 -0
  118. package/template/.claude/skills/triage/SKILL.md +4 -4
  119. package/template/.claude/skills/triage/agents/openai.yaml +5 -0
  120. package/template/.claude/skills/wayfinder/SKILL.md +128 -0
  121. package/template/.claude/skills/wayfinder/agents/openai.yaml +5 -0
  122. package/template/.claude/skills/web-design-engineer/SKILL.md +2 -2
  123. package/template/.claude/skills/writing-great-skills/GLOSSARY.md +201 -0
  124. package/template/.claude/skills/writing-great-skills/SKILL.md +83 -0
  125. package/template/.claude/skills/writing-great-skills/agents/openai.yaml +5 -0
  126. package/template/.claude/skills/yss-cache/SKILL.md +44 -0
  127. package/template/.claude/skills/yss-cache/agents/openai.yaml +5 -0
  128. package/template/.claude/skills/yss-cache/references/annotations.md +39 -0
  129. package/template/.claude/skills/yss-cache/references/architecture.md +25 -0
  130. package/template/.claude/skills/yss-cache/references/configuration.md +34 -0
  131. package/template/.claude/skills/yss-cache/references/redis-fallback.md +23 -0
  132. package/template/.claude/skills/yss-cache/references/redis-topology.md +62 -0
  133. package/template/.claude/skills/yss-cache/references/serialization.md +17 -0
  134. package/template/.claude/skills/yss-cache/references/source-index.md +64 -0
  135. package/template/.claude/skills/yss-cache/references/troubleshooting.md +33 -0
  136. package/template/.claude/skills/yss-cache/references/verification.md +34 -0
  137. package/template/.claude/skills/yss-cache/scripts/check-skill-freshness.sh +84 -0
  138. package/template/.claude/skills/yss-cache/scripts/inspect-cache-usage.sh +96 -0
  139. package/template/.claude/skills/yss-cache/scripts/verify-cache-component.sh +101 -0
  140. package/template/.codex/config.toml +3 -0
  141. package/template/.codex/skills/ask-matt/SKILL.md +8 -4
  142. package/template/.codex/skills/ask-matt/agents/openai.yaml +5 -0
  143. package/template/.codex/skills/code-review/SKILL.md +4 -4
  144. package/template/.codex/skills/code-review/agents/openai.yaml +3 -0
  145. package/template/.codex/skills/code-review-process/references/automation-and-standards.md +1 -1
  146. package/template/.codex/skills/codebase-design/agents/openai.yaml +3 -0
  147. package/template/.codex/skills/competitive-intelligence/SKILL.md +5 -5
  148. package/template/.codex/skills/cross-repo-implementation-routing/SKILL.md +2 -2
  149. package/template/.codex/skills/diagnosing-bugs/agents/openai.yaml +3 -0
  150. package/template/.codex/skills/domain-modeling/agents/openai.yaml +3 -0
  151. package/template/.codex/skills/grill-with-docs/agents/openai.yaml +5 -0
  152. package/template/.codex/skills/handoff/SKILL.md +16 -0
  153. package/template/.codex/skills/handoff/agents/openai.yaml +5 -0
  154. package/template/.codex/skills/high-fidelity-html-prototype/SKILL.md +6 -6
  155. package/template/.codex/skills/implement/SKILL.md +2 -2
  156. package/template/.codex/skills/implement/agents/openai.yaml +5 -0
  157. package/template/.codex/skills/improve-codebase-architecture/SKILL.md +6 -1
  158. package/template/.codex/skills/improve-codebase-architecture/agents/openai.yaml +5 -0
  159. package/template/.codex/skills/product-design-prototype/SKILL.md +14 -10
  160. package/template/.codex/skills/product-design-prototype/agents/openai.yaml +1 -1
  161. package/template/.codex/skills/prototype/LOGIC.md +3 -3
  162. package/template/.codex/skills/prototype/SKILL.md +2 -6
  163. package/template/.codex/skills/prototype/UI.md +4 -4
  164. package/template/.codex/skills/prototype/agents/openai.yaml +3 -0
  165. package/template/.codex/skills/prototype-review/SKILL.md +6 -6
  166. package/template/.codex/skills/prototype-review/agents/openai.yaml +2 -2
  167. package/template/.codex/skills/research/agents/openai.yaml +3 -0
  168. package/template/.codex/skills/resolving-merge-conflicts/agents/openai.yaml +3 -0
  169. package/template/.codex/skills/setup-matt-pocock-skills/SKILL.md +21 -32
  170. package/template/.codex/skills/setup-matt-pocock-skills/agents/openai.yaml +5 -0
  171. package/template/.codex/skills/setup-matt-pocock-skills/issue-tracker-github.md +2 -2
  172. package/template/.codex/skills/setup-matt-pocock-skills/issue-tracker-gitlab.md +2 -2
  173. package/template/.codex/skills/setup-matt-pocock-skills/issue-tracker-local.md +6 -6
  174. package/template/.codex/skills/setup-matt-pocock-skills/triage-labels.md +2 -2
  175. package/template/.codex/skills/tdd/agents/openai.yaml +3 -0
  176. package/template/.codex/skills/to-spec/SKILL.md +58 -0
  177. package/template/.codex/skills/to-spec/agents/openai.yaml +5 -0
  178. package/template/.codex/skills/to-tickets/SKILL.md +62 -0
  179. package/template/.codex/skills/to-tickets/agents/openai.yaml +5 -0
  180. package/template/.codex/skills/triage/SKILL.md +4 -4
  181. package/template/.codex/skills/triage/agents/openai.yaml +5 -0
  182. package/template/.codex/skills/wayfinder/SKILL.md +128 -0
  183. package/template/.codex/skills/wayfinder/agents/openai.yaml +5 -0
  184. package/template/.codex/skills/writing-great-skills/GLOSSARY.md +201 -0
  185. package/template/.codex/skills/writing-great-skills/SKILL.md +83 -0
  186. package/template/.codex/skills/writing-great-skills/agents/openai.yaml +5 -0
  187. package/template/.codex/skills/yss-api-integration/SKILL.md +1 -1
  188. package/template/.codex/skills/yss-cache/SKILL.md +29 -58
  189. package/template/.codex/skills/yss-cache/agents/openai.yaml +2 -2
  190. package/template/.codex/skills/yss-cache/references/annotations.md +39 -0
  191. package/template/.codex/skills/yss-cache/references/architecture.md +25 -0
  192. package/template/.codex/skills/yss-cache/references/configuration.md +34 -0
  193. package/template/.codex/skills/yss-cache/references/redis-fallback.md +23 -0
  194. package/template/.codex/skills/yss-cache/references/redis-topology.md +62 -0
  195. package/template/.codex/skills/yss-cache/references/serialization.md +17 -0
  196. package/template/.codex/skills/yss-cache/references/source-index.md +1 -1
  197. package/template/.codex/skills/yss-cache/references/troubleshooting.md +33 -0
  198. package/template/.codex/skills/yss-cache/references/verification.md +34 -0
  199. package/template/.codex/skills/yss-cache/scripts/check-skill-freshness.sh +84 -0
  200. package/template/.codex/skills/yss-cache/scripts/inspect-cache-usage.sh +96 -0
  201. package/template/.codex/skills/yss-cache/scripts/verify-cache-component.sh +101 -0
  202. package/template/.codex/skills/yss-ddd-scaffold-generator/SKILL.md +1 -0
  203. package/template/.codex/skills/yss-ddd-scaffold-generator/references/yss-backend-scaffold-parent/SKILL.md +2 -2
  204. package/template/.codex/skills/yss-design-system/SKILL.md +9 -2
  205. package/template/.codex/skills/yss-design-system/references/design-system.md +12 -0
  206. package/template/.codex/skills/yss-domain-modeling/SKILL.md +3 -3
  207. package/template/.codex/skills/yss-domain-modeling/agents/openai.yaml +1 -1
  208. package/template/.codex/skills/yss-domain-modeling/references/modeling-workflow.md +2 -2
  209. package/template/.codex/skills/yss-filerunner/SKILL.md +1 -1
  210. package/template/.codex/skills/yss-openapi/SKILL.md +35 -47
  211. package/template/.codex/skills/yss-openapi/img.png +0 -0
  212. package/template/.codex/skills/yss-openapi/img_1.png +0 -0
  213. package/template/.codex/skills/yss-openapi-draft-review/SKILL.md +3 -3
  214. package/template/.codex/skills/yss-openapi-governance/SKILL.md +4 -4
  215. package/template/.codex/skills/yss-product-lifecycle/SKILL.md +57 -34
  216. package/template/.codex/skills/yss-product-lifecycle/references/artifact-checklist.md +23 -21
  217. package/template/.codex/skills/yss-product-lifecycle/references/stage-routing.md +15 -15
  218. package/template/.codex/skills/yss-product-lifecycle/references/yss-skill-routing.md +13 -8
  219. package/template/.codex/skills/yss-repository/SKILL.md +11 -3
  220. package/template/.codex/skills/yss-router/SKILL.md +2 -3
  221. package/template/.codex/skills/yss-router/references/boundaries.md +0 -1
  222. package/template/.codex/skills/yss-source-index/references/source-map-config.md +0 -1
  223. package/template/.codex/skills/yss-source-index/scripts/refresh-yss-skill-index.py +0 -3
  224. package/template/.codex/skills/yss-web-controller/SKILL.md +9 -3
  225. package/template/.hermes/skills/ask-matt/SKILL.md +8 -4
  226. package/template/.hermes/skills/ask-matt/agents/openai.yaml +5 -0
  227. package/template/.hermes/skills/code-review/SKILL.md +4 -4
  228. package/template/.hermes/skills/code-review/agents/openai.yaml +3 -0
  229. package/template/.hermes/skills/codebase-design/agents/openai.yaml +3 -0
  230. package/template/.hermes/skills/competitive-intelligence/SKILL.md +5 -5
  231. package/template/.hermes/skills/diagnosing-bugs/agents/openai.yaml +3 -0
  232. package/template/.hermes/skills/domain-modeling/agents/openai.yaml +3 -0
  233. package/template/.hermes/skills/excalidraw-diagram-generator/SKILL.md +37 -16
  234. package/template/.hermes/skills/excalidraw-diagram-generator/scripts/add-arrow.py +18 -18
  235. package/template/.hermes/skills/excalidraw-diagram-generator/scripts/add-icon-to-diagram.py +46 -47
  236. package/template/.hermes/skills/grill-me/SKILL.md +7 -0
  237. package/template/.hermes/skills/grill-me/agents/openai.yaml +5 -0
  238. package/template/.hermes/skills/grill-with-docs/agents/openai.yaml +5 -0
  239. package/template/.hermes/skills/grilling/SKILL.md +12 -0
  240. package/template/.hermes/skills/grilling/agents/openai.yaml +3 -0
  241. package/template/.hermes/skills/handoff/SKILL.md +16 -0
  242. package/template/.hermes/skills/handoff/agents/openai.yaml +5 -0
  243. package/template/.hermes/skills/implement/SKILL.md +2 -2
  244. package/template/.hermes/skills/implement/agents/openai.yaml +5 -0
  245. package/template/.hermes/skills/improve-codebase-architecture/SKILL.md +6 -1
  246. package/template/.hermes/skills/improve-codebase-architecture/agents/openai.yaml +5 -0
  247. package/template/.hermes/skills/prototype/LOGIC.md +3 -3
  248. package/template/.hermes/skills/prototype/SKILL.md +2 -6
  249. package/template/.hermes/skills/prototype/UI.md +4 -4
  250. package/template/.hermes/skills/prototype/agents/openai.yaml +3 -0
  251. package/template/.hermes/skills/research/agents/openai.yaml +3 -0
  252. package/template/.hermes/skills/resolving-merge-conflicts/agents/openai.yaml +3 -0
  253. package/template/.hermes/skills/setup-matt-pocock-skills/SKILL.md +21 -32
  254. package/template/.hermes/skills/setup-matt-pocock-skills/agents/openai.yaml +5 -0
  255. package/template/.hermes/skills/setup-matt-pocock-skills/issue-tracker-github.md +2 -2
  256. package/template/.hermes/skills/setup-matt-pocock-skills/issue-tracker-gitlab.md +2 -2
  257. package/template/.hermes/skills/setup-matt-pocock-skills/issue-tracker-local.md +6 -6
  258. package/template/.hermes/skills/setup-matt-pocock-skills/triage-labels.md +2 -2
  259. package/template/.hermes/skills/tdd/agents/openai.yaml +3 -0
  260. package/template/.hermes/skills/teach/GLOSSARY-FORMAT.md +35 -0
  261. package/template/.hermes/skills/teach/LEARNING-RECORD-FORMAT.md +46 -0
  262. package/template/.hermes/skills/teach/MISSION-FORMAT.md +31 -0
  263. package/template/.hermes/skills/teach/RESOURCES-FORMAT.md +32 -0
  264. package/template/.hermes/skills/teach/SKILL.md +140 -0
  265. package/template/.hermes/skills/teach/agents/openai.yaml +5 -0
  266. package/template/.hermes/skills/to-spec/SKILL.md +58 -0
  267. package/template/.hermes/skills/to-spec/agents/openai.yaml +5 -0
  268. package/template/.hermes/skills/to-tickets/SKILL.md +62 -0
  269. package/template/.hermes/skills/to-tickets/agents/openai.yaml +5 -0
  270. package/template/.hermes/skills/triage/SKILL.md +4 -4
  271. package/template/.hermes/skills/triage/agents/openai.yaml +5 -0
  272. package/template/.hermes/skills/wayfinder/SKILL.md +128 -0
  273. package/template/.hermes/skills/wayfinder/agents/openai.yaml +5 -0
  274. package/template/.hermes/skills/web-design-engineer/SKILL.md +2 -2
  275. package/template/.hermes/skills/writing-great-skills/GLOSSARY.md +201 -0
  276. package/template/.hermes/skills/writing-great-skills/SKILL.md +83 -0
  277. package/template/.hermes/skills/writing-great-skills/agents/openai.yaml +5 -0
  278. package/template/.hermes/skills/yss-cache/SKILL.md +44 -0
  279. package/template/.hermes/skills/yss-cache/agents/openai.yaml +5 -0
  280. package/template/.hermes/skills/yss-cache/references/annotations.md +39 -0
  281. package/template/.hermes/skills/yss-cache/references/architecture.md +25 -0
  282. package/template/.hermes/skills/yss-cache/references/configuration.md +34 -0
  283. package/template/.hermes/skills/yss-cache/references/redis-fallback.md +23 -0
  284. package/template/.hermes/skills/yss-cache/references/redis-topology.md +62 -0
  285. package/template/.hermes/skills/yss-cache/references/serialization.md +17 -0
  286. package/template/.hermes/skills/yss-cache/references/source-index.md +64 -0
  287. package/template/.hermes/skills/yss-cache/references/troubleshooting.md +33 -0
  288. package/template/.hermes/skills/yss-cache/references/verification.md +34 -0
  289. package/template/.hermes/skills/yss-cache/scripts/check-skill-freshness.sh +84 -0
  290. package/template/.hermes/skills/yss-cache/scripts/inspect-cache-usage.sh +96 -0
  291. package/template/.hermes/skills/yss-cache/scripts/verify-cache-component.sh +101 -0
  292. package/template/.obsidian/app.json +3 -0
  293. package/template/.obsidian/appearance.json +5 -0
  294. package/template/.obsidian/community-plugins.json +4 -0
  295. package/template/.obsidian/core-plugins.json +33 -0
  296. package/template/.obsidian/graph.json +22 -0
  297. package/template/.obsidian/plugins/obsidian-excalidraw-plugin/data.json +1085 -0
  298. package/template/.obsidian/plugins/obsidian-excalidraw-plugin/main.js +30 -0
  299. package/template/.obsidian/plugins/obsidian-excalidraw-plugin/manifest.json +12 -0
  300. package/template/.obsidian/plugins/obsidian-excalidraw-plugin/styles.css +1 -0
  301. package/template/.obsidian/plugins/obsidian-git/main.js +415 -0
  302. package/template/.obsidian/plugins/obsidian-git/manifest.json +10 -0
  303. package/template/.obsidian/plugins/obsidian-git/styles.css +705 -0
  304. package/template/.obsidian/workspace.json +222 -0
  305. package/template/.pi/skills/ask-matt/SKILL.md +8 -4
  306. package/template/.pi/skills/ask-matt/agents/openai.yaml +5 -0
  307. package/template/.pi/skills/code-review/SKILL.md +4 -4
  308. package/template/.pi/skills/code-review/agents/openai.yaml +3 -0
  309. package/template/.pi/skills/codebase-design/agents/openai.yaml +3 -0
  310. package/template/.pi/skills/competitive-intelligence/SKILL.md +5 -5
  311. package/template/.pi/skills/diagnosing-bugs/agents/openai.yaml +3 -0
  312. package/template/.pi/skills/domain-modeling/agents/openai.yaml +3 -0
  313. package/template/.pi/skills/excalidraw-diagram-generator/SKILL.md +37 -16
  314. package/template/.pi/skills/excalidraw-diagram-generator/scripts/add-arrow.py +18 -18
  315. package/template/.pi/skills/excalidraw-diagram-generator/scripts/add-icon-to-diagram.py +46 -47
  316. package/template/.pi/skills/grill-me/SKILL.md +7 -0
  317. package/template/.pi/skills/grill-me/agents/openai.yaml +5 -0
  318. package/template/.pi/skills/grill-with-docs/agents/openai.yaml +5 -0
  319. package/template/.pi/skills/grilling/SKILL.md +12 -0
  320. package/template/.pi/skills/grilling/agents/openai.yaml +3 -0
  321. package/template/.pi/skills/handoff/SKILL.md +16 -0
  322. package/template/.pi/skills/handoff/agents/openai.yaml +5 -0
  323. package/template/.pi/skills/implement/SKILL.md +2 -2
  324. package/template/.pi/skills/implement/agents/openai.yaml +5 -0
  325. package/template/.pi/skills/improve-codebase-architecture/SKILL.md +6 -1
  326. package/template/.pi/skills/improve-codebase-architecture/agents/openai.yaml +5 -0
  327. package/template/.pi/skills/prototype/LOGIC.md +3 -3
  328. package/template/.pi/skills/prototype/SKILL.md +2 -6
  329. package/template/.pi/skills/prototype/UI.md +4 -4
  330. package/template/.pi/skills/prototype/agents/openai.yaml +3 -0
  331. package/template/.pi/skills/research/agents/openai.yaml +3 -0
  332. package/template/.pi/skills/resolving-merge-conflicts/agents/openai.yaml +3 -0
  333. package/template/.pi/skills/setup-matt-pocock-skills/SKILL.md +21 -32
  334. package/template/.pi/skills/setup-matt-pocock-skills/agents/openai.yaml +5 -0
  335. package/template/.pi/skills/setup-matt-pocock-skills/issue-tracker-github.md +2 -2
  336. package/template/.pi/skills/setup-matt-pocock-skills/issue-tracker-gitlab.md +2 -2
  337. package/template/.pi/skills/setup-matt-pocock-skills/issue-tracker-local.md +6 -6
  338. package/template/.pi/skills/setup-matt-pocock-skills/triage-labels.md +2 -2
  339. package/template/.pi/skills/tdd/agents/openai.yaml +3 -0
  340. package/template/.pi/skills/teach/GLOSSARY-FORMAT.md +35 -0
  341. package/template/.pi/skills/teach/LEARNING-RECORD-FORMAT.md +46 -0
  342. package/template/.pi/skills/teach/MISSION-FORMAT.md +31 -0
  343. package/template/.pi/skills/teach/RESOURCES-FORMAT.md +32 -0
  344. package/template/.pi/skills/teach/SKILL.md +140 -0
  345. package/template/.pi/skills/teach/agents/openai.yaml +5 -0
  346. package/template/.pi/skills/to-spec/SKILL.md +58 -0
  347. package/template/.pi/skills/to-spec/agents/openai.yaml +5 -0
  348. package/template/.pi/skills/to-tickets/SKILL.md +62 -0
  349. package/template/.pi/skills/to-tickets/agents/openai.yaml +5 -0
  350. package/template/.pi/skills/triage/SKILL.md +4 -4
  351. package/template/.pi/skills/triage/agents/openai.yaml +5 -0
  352. package/template/.pi/skills/wayfinder/SKILL.md +128 -0
  353. package/template/.pi/skills/wayfinder/agents/openai.yaml +5 -0
  354. package/template/.pi/skills/web-design-engineer/SKILL.md +2 -2
  355. package/template/.pi/skills/writing-great-skills/GLOSSARY.md +201 -0
  356. package/template/.pi/skills/writing-great-skills/SKILL.md +83 -0
  357. package/template/.pi/skills/writing-great-skills/agents/openai.yaml +5 -0
  358. package/template/.pi/skills/yss-cache/SKILL.md +44 -0
  359. package/template/.pi/skills/yss-cache/agents/openai.yaml +5 -0
  360. package/template/.pi/skills/yss-cache/references/annotations.md +39 -0
  361. package/template/.pi/skills/yss-cache/references/architecture.md +25 -0
  362. package/template/.pi/skills/yss-cache/references/configuration.md +34 -0
  363. package/template/.pi/skills/yss-cache/references/redis-fallback.md +23 -0
  364. package/template/.pi/skills/yss-cache/references/redis-topology.md +62 -0
  365. package/template/.pi/skills/yss-cache/references/serialization.md +17 -0
  366. package/template/.pi/skills/yss-cache/references/source-index.md +64 -0
  367. package/template/.pi/skills/yss-cache/references/troubleshooting.md +33 -0
  368. package/template/.pi/skills/yss-cache/references/verification.md +34 -0
  369. package/template/.pi/skills/yss-cache/scripts/check-skill-freshness.sh +84 -0
  370. package/template/.pi/skills/yss-cache/scripts/inspect-cache-usage.sh +96 -0
  371. package/template/.pi/skills/yss-cache/scripts/verify-cache-component.sh +101 -0
  372. package/template/.trae/skills/ask-matt/SKILL.md +8 -4
  373. package/template/.trae/skills/ask-matt/agents/openai.yaml +5 -0
  374. package/template/.trae/skills/code-review/SKILL.md +4 -4
  375. package/template/.trae/skills/code-review/agents/openai.yaml +3 -0
  376. package/template/.trae/skills/codebase-design/agents/openai.yaml +3 -0
  377. package/template/.trae/skills/competitive-intelligence/SKILL.md +5 -5
  378. package/template/.trae/skills/diagnosing-bugs/agents/openai.yaml +3 -0
  379. package/template/.trae/skills/domain-modeling/agents/openai.yaml +3 -0
  380. package/template/.trae/skills/excalidraw-diagram-generator/SKILL.md +37 -16
  381. package/template/.trae/skills/excalidraw-diagram-generator/scripts/add-arrow.py +18 -18
  382. package/template/.trae/skills/excalidraw-diagram-generator/scripts/add-icon-to-diagram.py +46 -47
  383. package/template/.trae/skills/grill-me/SKILL.md +7 -0
  384. package/template/.trae/skills/grill-me/agents/openai.yaml +5 -0
  385. package/template/.trae/skills/grill-with-docs/agents/openai.yaml +5 -0
  386. package/template/.trae/skills/grilling/SKILL.md +12 -0
  387. package/template/.trae/skills/grilling/agents/openai.yaml +3 -0
  388. package/template/.trae/skills/handoff/SKILL.md +16 -0
  389. package/template/.trae/skills/handoff/agents/openai.yaml +5 -0
  390. package/template/.trae/skills/implement/SKILL.md +2 -2
  391. package/template/.trae/skills/implement/agents/openai.yaml +5 -0
  392. package/template/.trae/skills/improve-codebase-architecture/SKILL.md +6 -1
  393. package/template/.trae/skills/improve-codebase-architecture/agents/openai.yaml +5 -0
  394. package/template/.trae/skills/prototype/LOGIC.md +3 -3
  395. package/template/.trae/skills/prototype/SKILL.md +2 -6
  396. package/template/.trae/skills/prototype/UI.md +4 -4
  397. package/template/.trae/skills/prototype/agents/openai.yaml +3 -0
  398. package/template/.trae/skills/research/agents/openai.yaml +3 -0
  399. package/template/.trae/skills/resolving-merge-conflicts/agents/openai.yaml +3 -0
  400. package/template/.trae/skills/setup-matt-pocock-skills/SKILL.md +21 -32
  401. package/template/.trae/skills/setup-matt-pocock-skills/agents/openai.yaml +5 -0
  402. package/template/.trae/skills/setup-matt-pocock-skills/issue-tracker-github.md +2 -2
  403. package/template/.trae/skills/setup-matt-pocock-skills/issue-tracker-gitlab.md +2 -2
  404. package/template/.trae/skills/setup-matt-pocock-skills/issue-tracker-local.md +6 -6
  405. package/template/.trae/skills/setup-matt-pocock-skills/triage-labels.md +2 -2
  406. package/template/.trae/skills/tdd/agents/openai.yaml +3 -0
  407. package/template/.trae/skills/teach/GLOSSARY-FORMAT.md +35 -0
  408. package/template/.trae/skills/teach/LEARNING-RECORD-FORMAT.md +46 -0
  409. package/template/.trae/skills/teach/MISSION-FORMAT.md +31 -0
  410. package/template/.trae/skills/teach/RESOURCES-FORMAT.md +32 -0
  411. package/template/.trae/skills/teach/SKILL.md +140 -0
  412. package/template/.trae/skills/teach/agents/openai.yaml +5 -0
  413. package/template/.trae/skills/to-spec/SKILL.md +58 -0
  414. package/template/.trae/skills/to-spec/agents/openai.yaml +5 -0
  415. package/template/.trae/skills/to-tickets/SKILL.md +62 -0
  416. package/template/.trae/skills/to-tickets/agents/openai.yaml +5 -0
  417. package/template/.trae/skills/triage/SKILL.md +4 -4
  418. package/template/.trae/skills/triage/agents/openai.yaml +5 -0
  419. package/template/.trae/skills/wayfinder/SKILL.md +128 -0
  420. package/template/.trae/skills/wayfinder/agents/openai.yaml +5 -0
  421. package/template/.trae/skills/web-design-engineer/SKILL.md +2 -2
  422. package/template/.trae/skills/writing-great-skills/GLOSSARY.md +201 -0
  423. package/template/.trae/skills/writing-great-skills/SKILL.md +83 -0
  424. package/template/.trae/skills/writing-great-skills/agents/openai.yaml +5 -0
  425. package/template/.trae/skills/yss-cache/SKILL.md +44 -0
  426. package/template/.trae/skills/yss-cache/agents/openai.yaml +5 -0
  427. package/template/.trae/skills/yss-cache/references/annotations.md +39 -0
  428. package/template/.trae/skills/yss-cache/references/architecture.md +25 -0
  429. package/template/.trae/skills/yss-cache/references/configuration.md +34 -0
  430. package/template/.trae/skills/yss-cache/references/redis-fallback.md +23 -0
  431. package/template/.trae/skills/yss-cache/references/redis-topology.md +62 -0
  432. package/template/.trae/skills/yss-cache/references/serialization.md +17 -0
  433. package/template/.trae/skills/yss-cache/references/source-index.md +64 -0
  434. package/template/.trae/skills/yss-cache/references/troubleshooting.md +33 -0
  435. package/template/.trae/skills/yss-cache/references/verification.md +34 -0
  436. package/template/.trae/skills/yss-cache/scripts/check-skill-freshness.sh +84 -0
  437. package/template/.trae/skills/yss-cache/scripts/inspect-cache-usage.sh +96 -0
  438. package/template/.trae/skills/yss-cache/scripts/verify-cache-component.sh +101 -0
  439. package/template/AGENTS.md +89 -250
  440. package/template/CONTEXT.md +24 -11
  441. package/template/README.md +31 -45
  442. package/template/docs/adr/{adr-product-design-prototype-entrypoint.md → 0001-product-design-prototype-entrypoint.md} +3 -3
  443. package/template/docs/adr/0002-yss-project-repository-mode.md +3 -0
  444. package/template/docs/agents/README.md +4 -5
  445. package/template/docs/agents/domain.md +13 -15
  446. package/template/docs/agents/gitlab-workflow-skills.md +5 -5
  447. package/template/docs/agents/issue-tracker.md +15 -14
  448. package/template/docs/agents/skills-maintenance.md +44 -109
  449. package/template/docs/agents/triage-labels.md +10 -12
  450. package/template/docs/api/templates/openapi-draft-review-checklist.md +4 -4
  451. package/template/docs/api/templates/openapi-freeze-record-template.md +5 -5
  452. package/template/docs/architecture/README.md +4 -4
  453. package/template/docs/architecture/templates/architecture-review-checklist.md +4 -4
  454. package/template/docs/architecture/templates/business-architecture-template.md +7 -7
  455. package/template/docs/architecture/templates/data-architecture-template.md +4 -4
  456. package/template/docs/architecture/templates/engineering-baseline-review-template.md +4 -3
  457. package/template/docs/architecture/templates/functional-architecture-template.md +7 -7
  458. package/template/docs/architecture/templates/system-overview-design-template.md +5 -6
  459. package/template/docs/architecture/templates/tech-design-template.md +2 -2
  460. package/template/docs/design/README.md +8 -8
  461. package/template/docs/design/design.md +10 -1
  462. package/template/docs/design/diagrams/README.md +1 -1
  463. package/template/docs/design/templates/interaction-spec-template.md +6 -6
  464. package/template/docs/design/templates/product-overview-design-template.md +8 -8
  465. package/template/docs/design/templates/prototype-confirmation-template.md +4 -4
  466. package/template/docs/design/templates/prototype-review-checklist.md +5 -5
  467. package/template/docs/design/templates/state-matrix-template.md +1 -1
  468. package/template/docs/discovery/IDEATION.md +2 -2
  469. package/template/docs/discovery/README.md +4 -4
  470. package/template/docs/discovery/templates/competitive-analysis-template.md +4 -4
  471. package/template/docs/discovery/templates/discovery-template.md +8 -8
  472. package/template/docs/implementation/create-yss-spec-repository-mode-contract.md +59 -0
  473. package/template/docs/process/MATT-POCOCK-ENGINEERING-SKILLS.md +49 -30
  474. package/template/docs/process/harness-automation-candidates.md +10 -13
  475. package/template/docs/process/harness-executive-blueprint.md +11 -11
  476. package/template/docs/process/harness-optimization-backlog.md +6 -6
  477. package/template/docs/process/harness-pilot-retro-metrics.md +8 -8
  478. package/template/docs/process/harness-pilot-selection.md +8 -8
  479. package/template/docs/process/harness-process-tailoring.md +35 -16
  480. package/template/docs/process/harness-work-unit-map.md +9 -9
  481. package/template/docs/process/implementation-repo-integration.md +25 -11
  482. package/template/docs/process/lifecycle-artifact-map.md +66 -40
  483. package/template/docs/process/product-prototype-workflow.md +10 -10
  484. package/template/docs/process/skill-governance.md +12 -4
  485. package/template/docs/process/subagent-collaboration-validation.md +53 -0
  486. package/template/docs/process/subagent-collaboration.md +111 -0
  487. package/template/docs/process/template-governance-grilling-record.md +38 -0
  488. package/template/docs/process/template-governance-skill-validation.md +44 -0
  489. package/template/docs/process/templates/stage-checkpoint-template.md +42 -7
  490. package/template/docs/releases/next-major-template-governance.md +32 -0
  491. package/template/docs/requirements/README.md +11 -11
  492. package/template/docs/{adr/template.md → templates/adr-template.md} +2 -2
  493. package/template/docs/templates/agent-brief-template.md +5 -5
  494. package/template/docs/templates/build-architecture-checklist-template.md +41 -11
  495. package/template/docs/templates/implementation-repo-registry-template.md +8 -3
  496. package/template/docs/templates/implementation-routing-template.md +85 -19
  497. package/template/docs/templates/requirement-freeze-template.md +8 -8
  498. package/template/docs/templates/review-report-template.md +50 -0
  499. package/template/docs/templates/spec-delta-template.md +5 -5
  500. package/template/docs/templates/{prd-template.md → spec-template.md} +19 -9
  501. package/template/docs/templates/subagent-task-package-template.md +93 -0
  502. package/template/docs/templates/verification-record-template.md +2 -2
  503. package/template/docs/templates/vertical-slice-ticket-template.md +88 -0
  504. package/template/docs/user-guide/README.md +2 -2
  505. package/template/docs/user-guide/create-yss-spec-cli-guide.md +27 -209
  506. package/template/docs/user-guide/excalidraw-diagram-generator-guide.md +8 -8
  507. package/template/docs/user-guide/grill-with-docs-best-practices.md +16 -16
  508. package/template/docs/user-guide/grill-with-docs-guide.md +19 -19
  509. package/template/docs/user-guide/lifecycle-best-practices.md +40 -40
  510. package/template/docs/user-guide/product-lifecycle-workflow.md +31 -31
  511. package/template/docs/user-guide/product-rd-lifecycle-best-practices.md +121 -121
  512. package/template/docs/user-guide/spec-ticket-migration-guide.md +35 -0
  513. package/template/scripts/sync-skills +126 -0
  514. package/template/scripts/update-skill-lock +202 -0
  515. package/template/scripts/verify-lifecycle-scenarios +136 -0
  516. package/template/scripts/verify-template +148 -155
  517. package/template/skills-lock.json +1068 -65
  518. package/template/yss-project.yaml +2 -0
  519. package/template.manifest.json +3 -16
  520. package/template/.agent/skills/ask-matt/SKILL.md +0 -74
  521. package/template/.agent/skills/code-review/SKILL.md +0 -89
  522. package/template/.agent/skills/codebase-design/DEEPENING.md +0 -37
  523. package/template/.agent/skills/codebase-design/DESIGN-IT-TWICE.md +0 -44
  524. package/template/.agent/skills/codebase-design/SKILL.md +0 -114
  525. package/template/.agent/skills/competitive-intelligence/SKILL.md +0 -94
  526. package/template/.agent/skills/diagnosing-bugs/SKILL.md +0 -134
  527. package/template/.agent/skills/diagnosing-bugs/scripts/hitl-loop.template.sh +0 -41
  528. package/template/.agent/skills/domain-modeling/ADR-FORMAT.md +0 -47
  529. package/template/.agent/skills/domain-modeling/CONTEXT-FORMAT.md +0 -60
  530. package/template/.agent/skills/domain-modeling/SKILL.md +0 -74
  531. package/template/.agent/skills/grill-with-docs/SKILL.md +0 -7
  532. package/template/.agent/skills/implement/SKILL.md +0 -15
  533. package/template/.agent/skills/improve-codebase-architecture/HTML-REPORT.md +0 -123
  534. package/template/.agent/skills/improve-codebase-architecture/SKILL.md +0 -66
  535. package/template/.agent/skills/prototype/LOGIC.md +0 -79
  536. package/template/.agent/skills/prototype/SKILL.md +0 -30
  537. package/template/.agent/skills/prototype/UI.md +0 -112
  538. package/template/.agent/skills/research/SKILL.md +0 -12
  539. package/template/.agent/skills/resolving-merge-conflicts/SKILL.md +0 -14
  540. package/template/.agent/skills/setup-matt-pocock-skills/SKILL.md +0 -127
  541. package/template/.agent/skills/setup-matt-pocock-skills/domain.md +0 -51
  542. package/template/.agent/skills/setup-matt-pocock-skills/issue-tracker-github.md +0 -45
  543. package/template/.agent/skills/setup-matt-pocock-skills/issue-tracker-gitlab.md +0 -46
  544. package/template/.agent/skills/setup-matt-pocock-skills/issue-tracker-local.md +0 -30
  545. package/template/.agent/skills/setup-matt-pocock-skills/triage-labels.md +0 -15
  546. package/template/.agent/skills/tdd/SKILL.md +0 -36
  547. package/template/.agent/skills/tdd/mocking.md +0 -59
  548. package/template/.agent/skills/tdd/tests.md +0 -77
  549. package/template/.agent/skills/to-issues/SKILL.md +0 -84
  550. package/template/.agent/skills/to-prd/SKILL.md +0 -75
  551. package/template/.agent/skills/triage/AGENT-BRIEF.md +0 -207
  552. package/template/.agent/skills/triage/OUT-OF-SCOPE.md +0 -105
  553. package/template/.agent/skills/triage/SKILL.md +0 -112
  554. package/template/.agents/skills/to-issues/SKILL.md +0 -84
  555. package/template/.agents/skills/to-prd/SKILL.md +0 -75
  556. package/template/.claude/skills/to-issues/SKILL.md +0 -84
  557. package/template/.claude/skills/to-prd/SKILL.md +0 -75
  558. package/template/.codex/skills/to-issues/SKILL.md +0 -84
  559. package/template/.codex/skills/to-prd/SKILL.md +0 -75
  560. package/template/.codex/skills/yss-anti-scheduler/SKILL.md +0 -53
  561. package/template/.codex/skills/yss-anti-scheduler/agents/openai.yaml +0 -4
  562. package/template/.codex/skills/yss-anti-scheduler/references/source-index.md +0 -157
  563. package/template/.codex/skills/yss-cache/assets/ClearCache.java +0 -34
  564. package/template/.codex/skills/yss-cache/assets/QueryCache.java +0 -36
  565. package/template/.codex/skills/yss-cache/assets/UpdateCache.java +0 -34
  566. package/template/.codex/skills/yss-cache/references/README.md +0 -5
  567. package/template/.hermes/skills/to-issues/SKILL.md +0 -84
  568. package/template/.hermes/skills/to-prd/SKILL.md +0 -75
  569. package/template/.pi/skills/to-issues/SKILL.md +0 -84
  570. package/template/.pi/skills/to-prd/SKILL.md +0 -75
  571. package/template/.trae/skills/to-issues/SKILL.md +0 -84
  572. package/template/.trae/skills/to-prd/SKILL.md +0 -75
  573. package/template/docs/templates/vertical-slice-issue-template.md +0 -61
  574. /package/template/docs/requirements/{issues → tickets}/.gitkeep +0 -0
@@ -0,0 +1,58 @@
1
+ ---
2
+ name: to-spec
3
+ description: Use when the current discussion is sufficiently resolved to synthesize a product-development specification without another requirements interview.
4
+ disable-model-invocation: true
5
+ ---
6
+
7
+ # To Spec
8
+
9
+ 将已经澄清的对话、Discovery 和仓库上下文整理为 Spec。本 skill 只做综合,不重新访谈用户,也不将未冻结的 Spec 标记为可实现。
10
+
11
+ ## 流程
12
+
13
+ 1. 读取 `CONTEXT.md`、相关 ADR、Discovery、质询记录和现有资产。统一使用领域词汇和简体中文正文。
14
+ 2. 提取已确认的测试 seam,优先复用最高的现有公开边界。如果 seam 尚未确认,将其记为 `ready-for-human` 阻塞项,不自行发明实现边界。
15
+ 3. 按下方结构写入 `docs/requirements/<feature>-spec.md`。不在 Spec 中写具体实现文件路径或大段代码。
16
+ 4. 创建或更新功能父 Ticket,链接本地 Spec 和上游资产,并标记 `ready-for-human`。
17
+
18
+ ## 状态红线
19
+
20
+ - Spec 初稿不得标记 `ready-for-agent`。
21
+ - 只有需求冻结、必要设计审查、OpenAPI Freeze 或无 API 影响记录完成后,才能进入 `to-tickets`。
22
+ - 本 skill 不创建垂直切片 Ticket,不关闭功能父 Ticket。
23
+
24
+ ## Spec 结构
25
+
26
+ ### 问题陈述
27
+
28
+ 从用户视角说明问题、影响和为什么现在要解决。
29
+
30
+ ### 解决方案
31
+
32
+ 从用户视角说明预期能力和价值,不展开实现步骤。
33
+
34
+ ### 用户故事
35
+
36
+ 用编号列表覆盖主流程、异常、权限、边界和恢复场景:
37
+
38
+ 1. 作为 <角色>,我希望 <能力>,以便 <价值>。
39
+
40
+ ### 验收标准
41
+
42
+ 使用可观测行为定义成功、失败和边界条件。
43
+
44
+ ### 已确认决策
45
+
46
+ 记录功能域、模块边界、公开接口、数据 / API 影响、状态与权限约束。原型中只有状态机、schema 或类型形状比文字更精确时,才内联最小决策片段。
47
+
48
+ ### 测试决策
49
+
50
+ 记录已确认 seam、对外行为、相似测试先例和不测实现细节的约束。
51
+
52
+ ### 非目标
53
+
54
+ 明确本 Spec 不交付的能力、角色、端、数据或运维范围。
55
+
56
+ ### 未决项与风险
57
+
58
+ 只保留会阻塞需求冻结或下游设计的未决问题,并标注责任人和期望解决阶段。
@@ -0,0 +1,5 @@
1
+ interface:
2
+ display_name: "To Spec"
3
+ short_description: "Turn a conversation into a spec"
4
+ policy:
5
+ allow_implicit_invocation: false
@@ -0,0 +1,62 @@
1
+ ---
2
+ name: to-tickets
3
+ description: Use when a frozen specification or approved plan must be divided into independently verifiable vertical slices with explicit blocking edges.
4
+ disable-model-invocation: true
5
+ ---
6
+
7
+ # To Tickets
8
+
9
+ 将已冻结范围拆成可独立验证的窄垂直切片 Ticket,并明确每个 Ticket 的阻塞边。
10
+
11
+ ## 前置条件
12
+
13
+ - 需求已冻结,功能父 Ticket 已存在。
14
+ - OpenAPI Freeze 或无 API 影响记录已完成。
15
+ - 必要的产品设计、系统 / 数据架构、工程基线和人工确认已通过。
16
+
17
+ 任一前置条件不满足时,回到功能父 Ticket 记录阻塞,不发布可实现 Ticket。
18
+
19
+ ## 流程
20
+
21
+ 1. 读取功能父 Ticket 及其链接的 Spec、设计、OpenAPI Freeze、ADR、架构和验证资产。
22
+ 2. 用项目领域词汇起草简体中文 Ticket。每个切片都要贯穿所有受影响层,完成后可独立演示或验证。
23
+ 3. 为每个 Ticket 声明真实阻塞边。需要宽范围机械重构时,使用 expand → migrate → contract,不强行伪装成垂直切片。
24
+ 4. 向用户展示编号拆分,确认粒度、阻塞边和合并 / 拆分点。
25
+ 5. 按依赖顺序发布 Ticket,关联功能父 Ticket。只有阻塞边已全部清除的 frontier Ticket 才标记 `ready-for-agent`。
26
+
27
+ ## 垂直切片规则
28
+
29
+ - 切片要窄但完整,不只修改 schema、API、UI 或测试中的某一层。
30
+ - 一个 Ticket 应能在一个新鲜上下文窗口中完成。
31
+ - 优先完成能让后续实现更容易的前置切片,但其自身仍必须可验证。
32
+ - 禁止只按 Adapter / Application / Domain / Infrastructure 横向拆分。
33
+
34
+ ## 状态红线
35
+
36
+ - 被其他 Ticket 阻塞的 Ticket 不得标记 `ready-for-agent`。
37
+ - 功能父 Ticket 保持 `ready-for-human` 或当前阶段状态,本 skill 不关闭或改写父 Ticket。
38
+ - 平台支持 native blocking / sub-issue 时优先使用;否则在正文中使用可追踪引用。
39
+
40
+ ## 本地 Ticket
41
+
42
+ 未配置真实 Tracker 时,在 `.scratch/<feature-slug>/tickets/` 下按依赖顺序生成一个文件对应一个 Ticket:
43
+
44
+ ```markdown
45
+ # <NN> — <Ticket 标题>
46
+
47
+ ## 交付行为
48
+
49
+ <从用户视角说明本切片完成的端到端行为>
50
+
51
+ ## 阻塞项
52
+
53
+ <阻塞 Ticket 的编号和标题,或“无”>
54
+
55
+ ## 验收标准
56
+
57
+ - [ ] <可观测验收条件>
58
+
59
+ ## 状态
60
+
61
+ <`ready-for-agent` 或“被 <Ticket> 阻塞”>
62
+ ```
@@ -0,0 +1,5 @@
1
+ interface:
2
+ display_name: "To Tickets"
3
+ short_description: "Split a plan into tracer-bullet tickets"
4
+ policy:
5
+ allow_implicit_invocation: false
@@ -32,11 +32,11 @@ Five **state** roles:
32
32
 
33
33
  - `needs-triage` — maintainer needs to evaluate
34
34
  - `needs-info` — waiting on reporter for more information
35
- - `ready-for-agent` — fully specified, ready for an AFK agent
36
- - `ready-for-human` — needs human implementation
35
+ - `ready-for-agent` — an unblocked vertical-slice ticket whose required gates passed and whose implementation can start immediately
36
+ - `ready-for-human` — a spec, design, contract draft, review, or other item that needs human judgment, confirmation, implementation, or privileged access
37
37
  - `wontfix` — will not be actioned
38
38
 
39
- For a PR, the same states read against the attached code: `ready-for-agent` means a brief is attached and an agent should take the next step on the diff; `ready-for-human` means it's ready for a human to merge.
39
+ For a PR, use `ready-for-human` when the attached code is ready for human review or merge. Do not use `ready-for-agent` as a generic draft or review state; it is reserved for directly executable, unblocked vertical-slice tickets.
40
40
 
41
41
  Every triaged issue should carry exactly one category role and one state role. If state roles conflict, flag it and ask the maintainer before doing anything else.
42
42
 
@@ -87,7 +87,7 @@ Show counts and a one-line summary per item. Let the maintainer pick.
87
87
 
88
88
  ## Quick state override
89
89
 
90
- If the maintainer says "move #42 to ready-for-agent", trust them and apply the role directly. Confirm what you're about to do (role changes, comment, close), then act. Skip grilling. If moving to `ready-for-agent` without a grilling session, ask whether they want to write an agent brief.
90
+ If the maintainer says "move #42 to ready-for-agent", first verify that it is an unblocked, directly executable vertical-slice ticket and that its required gates have passed. If not, explain the missing gate and keep it in the appropriate state. When the conditions are satisfied, confirm the label change, post an agent brief, and act without another grilling session.
91
91
 
92
92
  ## Needs-info template
93
93
 
@@ -0,0 +1,5 @@
1
+ interface:
2
+ display_name: "Triage"
3
+ short_description: "Move issues through triage roles"
4
+ policy:
5
+ allow_implicit_invocation: false
@@ -0,0 +1,128 @@
1
+ ---
2
+ name: wayfinder
3
+ description: Plan a huge chunk of work — more than one agent session can hold — as a shared map of decision tickets on your issue tracker, and resolve them one at a time until the way to the destination is clear.
4
+ disable-model-invocation: true
5
+ ---
6
+
7
+ A loose idea has arrived — too big for one agent session, and wrapped in fog: the way from here to the **destination** isn't visible yet. Wayfinding is about finding that way, not charging at the destination. This skill charts the way as a **shared map** on the repo's issue tracker, then works its **decision tickets** — questions whose resolution is a decision, not slices of a build to execute — one at a time until the route is clear.
8
+
9
+ The destination varies per effort, and naming it is the first act of charting — it shapes every ticket. It might be a spec to hand off and iterate on, a decision to lock before planning starts, or a change made in place like a data-structure migration. The map is domain-agnostic — engineering work, course content, whatever fits the shape.
10
+
11
+ ## Plan, don't do
12
+
13
+ Wayfinder is **planning** by default: each ticket resolves a decision, and the map is done when the way is clear — nothing left to decide before someone goes and does the thing. The pull to just do the work is usually the signal you've reached the edge of the map and it's time to hand off. An effort can override this in its **Notes** — carrying execution into the map itself — but absent that, produce decisions, not deliverables.
14
+
15
+ ## Refer by name
16
+
17
+ Every map and ticket is an issue, so it has a **name** — its title. In everything the human reads — narration, the map's Decisions-so-far — refer to it by that name, never by a bare id, number, or slug. A wall of `#42, #43, #44` is illegible; names read at a glance. The id and URL don't vanish — a name wraps its link — but they ride *inside* the name, never stand in for it.
18
+
19
+ ## The Map
20
+
21
+ The map is a single issue on this repo's issue tracker, labelled `wayfinder:map` — the canonical artifact. Its tickets are child issues of the map.
22
+
23
+ The map is an **index**, not a store. It lists the decisions made and points at the tickets that hold their detail; a decision lives in exactly one place — its ticket — so the map never restates it, only gists it and links.
24
+
25
+ **Where the map, its child tickets, blocking, and frontier queries physically live is tracker-specific.** The issue tracker should have been provided to you — run `/setup-matt-pocock-skills` if not. Consult the tracker doc's "Wayfinding operations" section for how _this_ repo expresses them. If no tracker has been provided, default to the local-markdown tracker.
26
+
27
+ ### The map body
28
+
29
+ The whole map at low resolution, loaded once per session. Open tickets are **not** listed — they are open child issues, found by query.
30
+
31
+ ```markdown
32
+ ## Destination
33
+
34
+ <what reaching the end of this map looks like — the spec, decision, or change this effort is finding its way to. One or two lines; every session orients to it before choosing a ticket.>
35
+
36
+ ## Notes
37
+
38
+ <domain; skills every session should consult; standing preferences for this effort>
39
+
40
+ ## Decisions so far
41
+
42
+ <!-- the index — one line per closed ticket: enough to judge relevance, then zoom the link for the detail the ticket holds -->
43
+
44
+ - [<closed ticket title>](link) — <one-line gist of the answer>
45
+
46
+ ## Not yet specified
47
+
48
+ <!-- see "Fog of war": in-scope fog you can't ticket yet; graduates as the frontier advances -->
49
+
50
+ ## Out of scope
51
+
52
+ <!-- see "Out of scope": work ruled beyond the destination; closed, never graduates -->
53
+ ```
54
+
55
+ ### Tickets
56
+
57
+ Each ticket is a **child issue** of the map; the tracker's issue id is its identity. Its body is the question, sized to one 100K token agent session:
58
+
59
+ ```markdown
60
+ ## Question
61
+
62
+ <the decision or investigation this ticket resolves>
63
+ ```
64
+
65
+ Each ticket carries a `wayfinder:<type>` label — one of `research`, `prototype`, `grilling`, `task` (see [Ticket Types](#ticket-types)).
66
+
67
+ A session **claims** a ticket by assigning it to the dev driving the map, **first**, before any work, so concurrent sessions skip it. That assignee _is_ the claim: an open, unassigned ticket is unclaimed.
68
+
69
+ Blocking uses the tracker's **native** dependency relationship — essential because it renders the frontier _visually_ in the tracker's own UI, so the human sees what's takeable without opening the map. Only a tracker that lacks native blocking falls back to a body convention. A ticket is **unblocked** when every ticket blocking it is closed; the **frontier** is the open, unblocked, unclaimed children — the edge of the known.
70
+
71
+ The answer isn't part of the body — it's recorded on resolution (see [Work through the map](#work-through-the-map)). Assets created while resolving a ticket are linked from the issue, not pasted in.
72
+
73
+ ## Ticket Types
74
+
75
+ Every ticket is either **HITL** — human in the loop, worked *with* a human who speaks for themselves — or **AFK**, driven by the agent alone. A HITL ticket only resolves through that live exchange; the agent never stands in for the human's side of it (a grilling agent that answers its own questions has broken this).
76
+
77
+ - **Research** (AFK): Reading documentation, third-party APIs, or local resources like knowledge bases to surface a fact a decision waits on. Resolved by a `/research` **subagent**. Use when knowledge outside the current working directory is required.
78
+ - **Prototype** (HITL): Raise the fidelity of the discussion by making a cheap, rough, concrete artifact to react to — an outline, a rough take, a stub, or UI/logic code via the /prototype skill. Links the prototype as an asset. Use when "how should it look" or "how should it behave" is the key question.
79
+ - **Grilling** (HITL): Conversation via the /grilling and /domain-modeling skills, one question at a time. The default case.
80
+ - **Task** (HITL or AFK): Manual work that must happen before a *decision* can be made — nothing to decide, prototype, or research, but the discussion is blocked until it's done. Signing up for a service so its API can be judged, provisioning access, moving data so its shape can be seen. This is the one type that *does* rather than decides — and it earns its place by unblocking a decision, not by delivering the destination. The agent drives it alone where it can (AFK); otherwise it hands the human a precise checklist (HITL). Resolved when the work is done; the answer records what was done and any resulting facts (credentials location, new URLs, row counts) later tickets depend on.
81
+
82
+ ## Fog of war
83
+
84
+ The map is _deliberately_ incomplete: don't chart what you can't yet see. Beyond the live tickets lies the **fog of war** — the dim view of decisions and investigations you can tell are coming but can't yet pin down, because they hang on questions still open. Resolving a ticket clears the fog ahead of it, graduating whatever's now specifiable into fresh tickets — one at a time, until the way to the destination is clear and no tickets remain.
85
+
86
+ The map's **Not yet specified** section is where that dim view is written down: the suspected question, the area to revisit later. It's the undiscovered frontier _toward_ the destination — everything here is in scope, just not sharp enough to ticket. Write as loosely or as fully as the view allows; it doubles as a signpost for collaborators reading where the effort is headed.
87
+
88
+ **Fog or ticket?** The test is whether you can state the question precisely now — _not_ whether you can answer it now.
89
+
90
+ - **Ticket when** the question is already sharp — even if it's blocked and you can't act on it yet.
91
+ - **Not yet specified when** you can't yet phrase it that sharply. Don't pre-slice the fog into ticket-sized pieces: it's coarser than a ticket, and one patch may graduate into several tickets, or none, once the frontier reaches it.
92
+
93
+ **Not yet specified** excludes what's already decided (Decisions so far), what's already a live ticket, and what's out of scope (the next section).
94
+
95
+ ## Out of scope
96
+
97
+ Fog only ever gathers _toward_ the destination. The destination fixes the scope, so work beyond it is **out of scope** — it isn't fog, and it doesn't belong in **Not yet specified**. It gets its own **Out of scope** section on the map: work you've consciously ruled out of _this_ effort. Scope, not sharpness, lands it here.
98
+
99
+ Out-of-scope work never graduates — the frontier stops at the destination — so it returns only if the destination is redrawn, and then as a fresh effort, not a resumption.
100
+
101
+ Ruling something out of scope is a scoping act, not a step on the route. When a ticket that already exists turns out to sit past the destination — mis-scoped in while charting, or exposed by a resolution — **close it** (a closed ticket is unambiguously off the frontier) and leave one line in the **Out of scope** section: the gist plus why it's out of scope, linking the closed ticket. It stays out of **Decisions so far**, which records the route actually walked — a scope boundary isn't a step on it.
102
+
103
+ ## Invocation
104
+
105
+ Two modes. Either way, **never resolve more than one ticket per session** — with the exception of research tickets.
106
+
107
+ ### Chart the map
108
+
109
+ User invokes with a loose idea.
110
+
111
+ 1. **Name the destination.** Run a `/grilling` and `/domain-modeling` session to pin down what this map is finding its way to — the spec, decision, or change. The destination fixes the scope, so it's settled first.
112
+ 2. **Map the frontier.** Grill again, **breadth-first** this time: fan out across the whole space rather than deep on any one thread, surfacing the open decisions and the first steps takeable now. **If this surfaces no fog** — the way to the destination is already clear, the whole journey small enough for one session — you don't need a map. Stop and ask the user how they'd like to proceed.
113
+ 3. **Create the map** (label `wayfinder:map`): Destination and Notes filled in, Decisions-so-far empty, the fog sketched into **Not yet specified**.
114
+ 4. **Create the tickets you can specify now** as child issues of the map — then wire blocking edges in a **second pass** (issues need ids before they can reference each other). Wiring sorts them into the frontier and the blocked; everything you can't yet specify stays in the fog — the **Not yet specified** section.
115
+ 5. **Fire the research subagents.** For each `research` ticket you just created, spin up a `/research` subagent to resolve it in parallel, capturing its findings on a throwaway `research/<name>` branch with a context pointer from the ticket.
116
+ 6. Stop — charting is one session's work; it hand-resolves nothing.
117
+
118
+ ### Work through the map
119
+
120
+ User invokes with a map (URL or number). A ticket is **optional** — without one, you pick the next decision, not the user.
121
+
122
+ 1. Load the **map** — the low-res view, not every ticket body.
123
+ 2. Choose the ticket. If the user named one, use it. Otherwise take the first frontier ticket in order. **Claim it**: assign it to yourself before any work.
124
+ 3. Resolve it — **zoom as needed**: fetch the full body of any related or closed ticket on demand; invoke the skills the `## Notes` block names. If in doubt, use `/grilling` and `/domain-modeling`.
125
+ 4. Record the resolution: post the answer as a **resolution comment**, **close** the issue, and **append a context pointer** to the map's Decisions-so-far.
126
+ 5. Add newly-surfaced tickets (create-then-wire); graduate any fog the answer has made specifiable, clearing each graduated patch from **Not yet specified** so it lives only as its new ticket. If the answer reveals a ticket — this one or another — sits beyond the destination, **rule it out of scope** rather than resolving it on the route. If the decision invalidates other parts of the map, update or delete those tickets.
127
+
128
+ The user may run unblocked tickets in parallel, so expect other sessions to be editing the tracker concurrently.
@@ -0,0 +1,5 @@
1
+ interface:
2
+ display_name: "Wayfinder"
3
+ short_description: "Map a large effort as decision tickets"
4
+ policy:
5
+ allow_implicit_invocation: false
@@ -44,8 +44,8 @@ Whether and how much to ask depends on how much information has been provided. *
44
44
 
45
45
  | Scenario | Ask? |
46
46
  |---|---|
47
- | "Make a deck" (no PRD, no audience) | ✅ Ask extensively: audience, duration, tone, variants |
48
- | "Use this PRD to make a 10-min deck for Eng All Hands" | ❌ Enough info — start building |
47
+ | "Make a deck" (no Spec, no audience) | ✅ Ask extensively: audience, duration, tone, variants |
48
+ | "Use this Spec to make a 10-min deck for Eng All Hands" | ❌ Enough info — start building |
49
49
  | "Turn this screenshot into an interactive prototype" | ⚠️ Only ask if the intended interactions are unclear |
50
50
  | "Make 6 slides about the history of butter" | ✅ Too vague — at least ask about tone and audience |
51
51
  | "Design onboarding for my food-delivery app" | ✅ Ask heavily: users, flows, brand, variants |
@@ -0,0 +1,201 @@
1
+ # Glossary — Building Great Skills
2
+
3
+ The domain model for what makes a skill great. A skill exists to wrangle determinism out of a stochastic system; the root virtue is **Predictability**, and every term below is a lever on it. This is the disclosed reference for [`writing-great-skills`](SKILL.md).
4
+
5
+ The terms are grouped by axis: **Invocation** (how a skill is reached), **Information Hierarchy** (how its content is arranged), **Steering** (how the agent's runtime behaviour is shaped), and **Pruning** (how it is kept lean). Each **failure mode** lives beside the lever that cures it, tagged _failure mode_.
6
+
7
+ **Bold terms** in any definition are themselves defined in this glossary; find them by their heading.
8
+
9
+ ## Predictability
10
+
11
+ The degree to which a skill makes the agent behave the same _way_ on every run — the same process, not the same output (a brainstorming skill should _predictably_ diverge; its tokens vary, its behaviour doesn't). The root virtue every other term serves — cost and maintainability are symptoms of it, not rivals.
12
+
13
+ _Avoid_: consistency, reliability, robustness, output-determinism
14
+
15
+ ## Invocation
16
+
17
+ How a skill is reached — and the two loads you pay for the choice.
18
+
19
+ ### Model-Invoked
20
+
21
+ A skill that keeps its **description** field, so the agent can see it and fire it autonomously — and the human can still type its name, so model-invocation always _includes_ user reach. There is no model-only state: a description only ever _adds_ agent discovery, never removes the human's. Pays a permanent **context load** on every turn in exchange for that discoverability. Reachable by other skills, because the description that makes it agent-discoverable makes it invocable. A model-invoked skill whose content is all **reference** is also one home for shared reference: another skill can invoke it, so reference needed by several skills lives in one place. Pick model-invocation only when the agent must reach the skill on its own; if it never fires except by hand, drop the description and pay no context load.
22
+
23
+ _Avoid_: ability, tool, capability
24
+
25
+ ### User-Invoked
26
+
27
+ A skill with its **description** stripped — invisible to the agent and reachable only by the human typing its name (user-_only_, where **model-invoked** is user-_and-agent_). Trades agent-discoverability for zero **context load**. Because it has no description, nothing but the human can reach it: no other skill can fire it.
28
+
29
+ _Avoid_: procedure, workflow, command
30
+
31
+ ### Description
32
+
33
+ The skill's machine-readable trigger, and the one **context pointer** a **model-invoked** skill is forced to keep loaded at all times. Its mere presence _is_ the invocation axis: keep it and the skill is model-invoked (and reachable by other skills); delete it and the skill is **user-invoked**, reachable only by the human. The source of a model-invoked skill's **context load**.
34
+
35
+ _Avoid_: frontmatter, summary
36
+
37
+ ### Context Pointer
38
+
39
+ A reference held in the agent's context that names some out-of-context material and encodes the condition for reaching it. The **description** is the top-level context pointer (context window → skill); pointers to disclosed files are the same object one level down. Its wording, not the target, decides _when_ the agent reaches — and _how reliably_. A must-have target behind a weakly worded pointer is a variance bug: fix the wording first, and inline the material only if sharpening fails.
40
+
41
+ _Avoid_: link, reference, import
42
+
43
+ ### Context Load
44
+
45
+ The cost a **model-invoked** skill imposes on the agent's context window — its **description**, always loaded, spending both tokens and attention. What **user-invoked** skills escape by having no description, and the brake on splitting into more model-invoked skills.
46
+
47
+ _Avoid_: token cost, context bloat
48
+
49
+ ### Cognitive Load
50
+
51
+ The cost a **user-invoked** skill imposes on the human — what they must hold in their head: which skills exist and when to reach for each (the human is the index). What **model-invocation** removes by being agent-discoverable, and the brake on splitting into more user-invoked skills. Not a cost to minimise: it is the price of human agency, the reason some skills stay user-invoked. Spend it where human judgement matters; remove it where it does not.
52
+
53
+ _Avoid_: human index, burden, overhead
54
+
55
+ ### Router Skill
56
+
57
+ A **user-invoked** skill whose job is to point at your other user-invoked skills — naming each and when to reach for it — so the human has one skill to remember instead of many. It can only hint, never fire them: user-invoked skills have no **description**, so nothing but the human can reach them. The cure for **cognitive load** when user-invoked skills multiply.
58
+
59
+ _Avoid_: dispatcher, menu, registry, index, router procedure
60
+
61
+ ### Granularity
62
+
63
+ How finely you divide skills. Finer division spends one of the two loads: more **model-invoked** skills spend **context load** (more descriptions crowding the window and competing for attention); more **user-invoked** skills spend **cognitive load** (more for the human to remember and reach for). Two cuts guide the division. By **invocation**, split off a model-invoked skill where you have a distinct **leading word** to trigger it — a trigger word you actually use in your prompts. By **sequence**, split a run of **steps** where a step's **post-completion steps** need hiding, since isolating it in its own context clears what follows. Beware the reverse: merging sequences exposes each step's post-completion steps to what follows, inviting premature completion.
64
+
65
+ _Avoid_: chunking, modularity
66
+
67
+ ## Information Hierarchy
68
+
69
+ How a skill's content is arranged, and how far down the ladder each piece sits.
70
+
71
+ ### Information Hierarchy
72
+
73
+ A skill's content ranked by how immediately the agent needs it — a single ladder, produced by two cuts: in-file or behind a pointer, and step or reference. The rungs:
74
+
75
+ - **Steps** — in-file, primary
76
+ - **Reference**, in-file — secondary
77
+ - **Reference**, disclosed — behind a **context pointer**
78
+
79
+ A skill with no **steps** uses just the bottom two rungs — often a legitimately flat peer-set (e.g. every rule of a review on one rung), which is a fine arrangement, not a smell. The hierarchy is independent of invocation: a skill can be model- or user-invoked whether it is all steps, all reference, or both. When a skill has steps, in-file reference that should be disclosed buries them and turns attending to them into a coin-flip — a variance lever, not just a legibility one. Keep the top of the ladder legible; push down it whatever you can.
80
+
81
+ _Avoid_: structure, organization, layout
82
+
83
+ ### Steps
84
+
85
+ The ordered actions the agent performs — when a skill has them, the primary tier of its content, and the part that earns its place in SKILL.md. Not every skill has steps: a skill can be all steps (`tdd`), all **reference** (a review), or both, independent of invocation. Every step ends on a **completion criterion**, clear or vague.
86
+
87
+ _Avoid_: workflow, instructions, choreography
88
+
89
+ ### Reference
90
+
91
+ Material the agent refers to on demand — definitions, facts, parameters, examples, conditional instructions. When a skill has **steps** it is secondary to them; when a skill has none it is the entire content; or it lives outside any skill entirely — see **External Reference**. Reached via **context pointers**, and the prime candidate for **progressive disclosure**.
92
+
93
+ _Avoid_: supporting material, docs, background
94
+
95
+ ### External Reference
96
+
97
+ **Reference** that lives outside the skill system — a plain file, no **description**, no **steps**, not invocable — that any skill can point at. The home for shared reference that needn't fire on its own, and the only shared home two **user-invoked** skills can use, since neither has a description and so neither can fire the other.
98
+
99
+ _Avoid_: doc, resource, knowledge base
100
+
101
+ ### Progressive Disclosure
102
+
103
+ Moving **reference** down the ladder — out of SKILL.md and behind a **context pointer** — so the top stays legible. Not primarily a token optimisation; it is how the **information hierarchy** is protected. Licensed by **branching**: disclose what only some branches need, inline what every path needs, and if a pointer fires unreliably on must-have material, sharpen its wording, and pull it back inline only if that fails.
104
+
105
+ _Avoid_: lazy loading, chunking
106
+
107
+ ### Co-location
108
+
109
+ Keeping the material an agent needs at once in one place — a concept's definition, rules, and caveats under a single heading, not scattered across the file — so reading one part brings its neighbours with it. The within-file companion to the **Information Hierarchy**: the hierarchy ranks _how far down_ a piece sits; co-location decides _what sits beside it_ once there. There is no formula for the right format of a body of **reference**; the test is that a skill should read like documentation written for the agent, and grouped material reads that way where scattered material does not. Distinct from **Duplication**: that repeats one meaning in two places, where scattering fragments a single meaning across many.
110
+
111
+ _Avoid_: grouping, clustering, cohesion
112
+
113
+ ### Sprawl
114
+
115
+ _Failure mode._ A skill that is simply too long — too many lines in SKILL.md — independent of whether they are stale or repeated. Even an all-live, all-unique skill can sprawl. It costs readability (the agent wades through more before it can act, and attention thins across the excess), maintainability (every extra line is one more to keep **relevant**), and tokens. The cure is the **information hierarchy**: push **reference** down behind **context pointers**, and split by **branch** or sequence so each path carries only what it needs. Distinct from **sediment** (length from stale accumulation) and **duplication** (length from repeated meaning) — sprawl is length itself, whatever its cause.
116
+
117
+ _Avoid_: bloat, length, size, verbosity
118
+
119
+ ## Steering
120
+
121
+ The levers that shape the agent's runtime behaviour toward **Predictability**.
122
+
123
+ ### Branch
124
+
125
+ A distinct way a skill can be invoked — a case the skill handles — so different runs take different paths through it. A skill with many steps may carry many branches; a linear one has none.
126
+
127
+ _Avoid_: path, case, fork
128
+
129
+ ### Leading Word
130
+
131
+ A compact concept — also called a _Leitwort_ — already living in the model's pretraining, that the agent thinks with while running the skill. It encodes a behavioural principle in the fewest possible tokens by invoking priors the model already holds (e.g. _lesson_, _proximal zone of development_, _fog of war_, _tracer bullets_). Repeated as a token, never as a sentence, it accumulates a distributed definition across the skill and anchors a whole region of behaviour. Coining your own works if you define it clearly, but a made-up word recruits no priors — you pay in definition tokens what a pretrained word gives free. Reach for an existing word first.
132
+
133
+ A leading word serves **predictability** twice. In the body it anchors **execution** — the agent reaches for the same behaviour every time the concept appears, and inside flat reference it focuses attention on a class of thing to look for, recruiting the right checks each run. In the **description** it anchors **invocation** — and not only within the skill: when the same word lives in your prompts, your docs, and your codebase, the agent links that shared language to the skill and fires it more reliably. Word a description with the leading words you actually use when you want the skill.
134
+
135
+ _Avoid_: keyword, term, motif
136
+
137
+ ### Completion Criterion
138
+
139
+ The condition that tells the agent a unit of work is done — the target it judges against. Two properties make it a lever, not just a quality. Its **clarity** (can the agent tell done from not-done?) resists **premature completion** — a vague bound ("understanding reached") lets the agent declare done and slip to the next step; this axis needs _steps_ to bite, since premature completion is a between-steps failure. Its **demand** (how much it requires) sets **legwork** — "every modified model accounted for" forces thorough work where "produce a change list" does not — and this axis is _not_ step-bound: it can bind a body of flat reference too, which is how a skill with no steps still carries an exhaustiveness bar ("every rule applied"). The strongest criteria are both checkable and exhaustive.
140
+
141
+ _Avoid_: done condition, exit condition, stopping rule
142
+
143
+ ### Legwork
144
+
145
+ The work an agent does behind the scenes within a single step — reading files, exploring the codebase, making changes, digging up what it needs rather than offloading to the user. It lives below the step structure: never written as its own step, latent in the wording, controlled by the agent rather than the skill. The within-step counterpart to **post-completion steps**' across-step pull. Raised by a **leading word** (_comprehensive_, _thorough_) or a **completion criterion** that demands the work be exhaustive — including the demand axis applied to flat reference, which is what drives a skill of flat reference to cover all its rungs. Goes thin either when that demand is missing or when **premature completion** cuts the step short.
146
+
147
+ _Avoid_: scope, effort, diligence, coverage
148
+
149
+ ### Post-Completion Steps
150
+
151
+ The **steps** that follow the current step. Visible, they pull the agent forward into **premature completion** — the more it sees, the stronger the tug; the defence is to hide them by splitting the sequence of steps into two.
152
+
153
+ _Avoid_: horizon, fog of war, lookahead
154
+
155
+ ### Premature Completion
156
+
157
+ _Failure mode._ Ending the current step before it is genuinely done, because the agent's attention slips to being done rather than to the work. A between-steps failure: it needs **steps** to occur — a skill with no steps that quits early isn't premature completion but thin **legwork** under an unmet demand. A tug-of-war between two forces: visible **post-completion steps** (the pull forward) and the **completion criterion**'s clarity (the resistance — a sharp, checkable bar holds; a vague one gives way). Fuzziness is the necessary condition: a sharp bound resists the pull no matter how many later steps are visible, so a step that never rushes needs no defending. Two levers hold a step that does, but reach for them in order: **sharpen the bound first** — it is local and cheap. Only when the criterion is irreducibly fuzzy _and_ you actually observe the rush do you **hide the later steps** — and hiding only works across a real context boundary (a user-invoked hand-off or a subagent dispatch; an inline model-invoked call leaves the later steps in context and clears nothing). One cause of thin legwork, but distinct from it: legwork can be thin even when a step runs to full completion.
158
+
159
+ _Avoid_: premature closure, the rush, rushing, shortcutting
160
+
161
+ ### Negation
162
+
163
+ _Failure mode._ Steering by prohibition — telling the agent what _not_ to do — which drags the forbidden behaviour into context and makes it _more_ available, not less. _Don't think of an elephant_, and the elephant is all there is; _never write verbose comments_, and verbosity is the pattern the agent has just read. The negation is a weak modifier the strongly-activated concept overruns, so the ban half-reads as an instruction to do the thing. Its **leading word** is the _elephant_: whatever a prohibition names into the frame. Cure: prompt the **positive** — describe the target behaviour ("write one-line comments") so the banned one is never spoken. A prohibition earns its place only as a hard guardrail on a behaviour you cannot phrase positively; even then, pair it with the positive target so attention lands on what to do.
164
+
165
+ _Avoid_: ironic rebound, don't-prompting, the pink elephant
166
+
167
+ ## Pruning
168
+
169
+ Keeping a skill lean — each remedy paired with the failure it cures.
170
+
171
+ ### Single Source of Truth
172
+
173
+ The desired state where each meaning lives in exactly one authoritative place, so a change to the skill's behaviour is a change in one place. **Duplication** is its violation.
174
+
175
+ _Avoid_: home, canonical location
176
+
177
+ ### Duplication
178
+
179
+ _Failure mode._ The same meaning given more than one **single source of truth**. It costs maintenance (change one place, you must change the others), costs tokens, and inflates prominence — repeating a meaning weights it on the ladder past its real rank. The accidental inverse of a **leading word**, which raises attention on purpose by repeating a token, never the meaning.
180
+
181
+ _Avoid_: repetition, redundancy
182
+
183
+ ### Relevance
184
+
185
+ Whether a line still bears on what the skill does — the lens for what to keep. A line loses relevance either by never bearing on the task (mere exposition, or a **branch** that should be disclosed) or by going stale: drifting out of date as the behaviour or world it describes changes. Shorter skills are easier to keep relevant, because each line is cheaper to check. Distinct from **no-op**: relevance asks whether a line bears on the task, not whether it changes behaviour.
186
+
187
+ _Avoid_: load-bearing, staleness, freshness
188
+
189
+ ### Sediment
190
+
191
+ _Failure mode._ Layers of old content that settle in a skill and are never cleared, because adding feels safe and removing feels risky — so stale and irrelevant lines accumulate and you must core down through them to find what is still live. The default fate of any skill without a pruning discipline; the slow erosion of **relevance**, as opposed to **duplication**'s repeated meaning.
192
+
193
+ _Avoid_: accretion, bloat, cruft, rot
194
+
195
+ ### No-Op
196
+
197
+ _Failure mode._ An instruction that changes nothing because the model already does it by default — you pay load to tell the agent what it would do anyway. The test: does a line change behaviour versus the default? A line can be perfectly **relevant** and still be a no-op. The same priors that make a **leading word** free make a no-op worthless.
198
+
199
+ A leading word is a _technique_; No-Op is a _verdict_ on a line — and they cross. A leading word too weak to beat the default is a no-op (_be thorough_ when the agent is already thorough-ish), and the fix is a stronger word that passes the verdict (_relentless_), not a different technique. So the No-Op test — does it change behaviour versus the default? — is also how you grade whether a leading word is earning its repetitions. This is model-relative, not reader-relative: two people disagreeing over whether a line is a no-op disagree about the default, and settle it by running the skill, not by debate.
200
+
201
+ _Avoid_: redundant instruction, restating the obvious, belaboring
@@ -0,0 +1,83 @@
1
+ ---
2
+ name: writing-great-skills
3
+ description: Reference for writing and editing skills well — the vocabulary and principles that make a skill predictable.
4
+ disable-model-invocation: true
5
+ ---
6
+
7
+ A skill exists to wrangle determinism out of a stochastic system. **Predictability** — the agent taking the same _process_ every run, not producing the same output — is the root virtue; every lever below serves it.
8
+
9
+ **Bold terms** are defined in [`GLOSSARY.md`](GLOSSARY.md); look them up there for the full meaning.
10
+
11
+ ## Invocation
12
+
13
+ Two choices, trading different costs:
14
+
15
+ - A **model-invoked** skill keeps a **description**, so the agent can fire it autonomously _and_ other skills can reach it (you can still type its name too). It contributes to **context load** — the description sits in the window every turn. Mechanics: omit `disable-model-invocation`, and write a model-facing description with rich trigger phrasing ("Use when the user wants…, mentions…").
16
+ - A **user-invoked** skill strips the description from the agent's reach: only you, typing its name, can invoke it — and no other skill can. Zero context load, but it spends **cognitive load**: _you_ are the index that must remember it exists. Mechanics: set `disable-model-invocation: true`; the `description` becomes human-facing — a one-line summary, trigger lists stripped.
17
+
18
+ Pick model-invocation only when the agent must reach the skill on its own, or another skill must. If it only ever fires by hand, make it user-invoked and pay no context load.
19
+
20
+ When user-invoked skills multiply past what you can remember, that piled-up cognitive load is cured by a **router skill**: one user-invoked skill that names the others and when to reach for each.
21
+
22
+ ## Writing the description
23
+
24
+ A model-invoked **description** does two jobs — state what the skill is, and list the **branches** that should trigger it. Every word increases **context load**, so a description earns even harder pruning than the body:
25
+
26
+ - **Front-load the skill's leading word** — the description is where it does its invocation work.
27
+ - **One trigger per branch.** Synonyms that rename a single branch are **duplication** — "build features using TDD … asks for test-first development" is one branch written twice. Collapse them; keep only genuinely distinct branches.
28
+ - **Cut identity that's already in the body.** Keep the description to triggers, plus any "when another skill needs…" reach clause.
29
+
30
+ ## Information hierarchy
31
+
32
+ A skill is built from two content types — **steps** and **reference** — that mix freely: a skill can be all steps, all reference, or both. The core decision is which to use and where each sits on the **information hierarchy**, a ladder ranked by how immediately the agent needs the material:
33
+
34
+ 1. **In-skill step** — an ordered action in `SKILL.md`, the primary tier: what the agent does, in order. Each step ends on a **completion criterion**, the condition that tells the agent the work is done. Make it _checkable_ (can the agent tell done from not-done?) and, where it matters, _exhaustive_ ("every modified model accounted for", not "produce a change list") — a vague criterion invites **premature completion**.
35
+ 2. **In-skill reference** — a definition, rule, or fact in `SKILL.md`, consulted on demand. Often a legitimately flat peer-set (every rule of a review on one rung) — a fine arrangement, not a smell. _This skill is all reference._
36
+ 3. **External reference** — reference pushed out of `SKILL.md` into a separate file, reached by a **context pointer**, loaded only when the pointer fires. (Spans _disclosed_ reference — a sibling file like `GLOSSARY.md`, still part of the skill — through fully **external reference** that lives outside the skill system and any skill can point at.)
37
+
38
+ A demanding completion criterion drives thorough **legwork** — the digging the agent does within the work — whether the skill has steps or not, since "every rule applied" binds flat reference just as "every step done" binds a sequence.
39
+
40
+ Push too little down and the top bloats; push too much and you hide material the agent actually needs. That tension is the whole decision.
41
+
42
+ **Progressive disclosure** is the move down the ladder — out of `SKILL.md` into a linked file — so the top stays legible. Mechanics: a linked `.md` file in the skill folder, named for what it holds (this skill discloses its full definitions to `GLOSSARY.md`). Some skills are used in more than one way, and each distinct way is a **branch** — different runs taking different paths through the skill. Branching is the cleanest disclosure test: inline what every branch needs, and push behind a pointer what only some branches reach. A **context pointer**'s _wording_, not its target, decides when and how reliably the agent reaches the material.
43
+
44
+ Where the ladder decides _how far down_ a piece sits, **co-location** decides _what sits beside it_ once there: keep a concept's definition, rules, and caveats under one heading rather than scattered, so reading one part brings its neighbours with it.
45
+
46
+ ## When to split
47
+
48
+ **Granularity** is how finely you divide skills, and each cut spends one of the two loads, so split only when the cut earns it. Two cuts:
49
+
50
+ - **By invocation** — split off a **model-invoked** skill when you have a distinct **leading word** that should trigger it on its own, or another skill must reach it. You pay **context load** for the new always-loaded **description**, so that independent reach has to be worth it.
51
+ - **By sequence** — split a run of **steps** when the steps still ahead (a step's **post-completion steps**) tempt the agent to rush the one in front of it (**premature completion**). Keeping them out of view encourages the agent to do more **legwork** on the current task.
52
+
53
+ ## Pruning
54
+
55
+ Keep each meaning in a **single source of truth**: one authoritative place, so changing the behaviour is a one-place edit.
56
+
57
+ Check every line for **relevance**: does it still bear on what the skill does?
58
+
59
+ Then hunt **no-ops** sentence by sentence, not just line by line: run the no-op test on each sentence in isolation, and when one fails, delete the whole sentence rather than trim words from it. Be aggressive — most prose that fails should go, not be rewritten.
60
+
61
+ ## Leading words
62
+
63
+ A **leading word** is a compact concept already living in the model's pretraining that the agent thinks with while running the skill (e.g. _lesson_, _fog of war_, _tracer bullets_). Repeated throughout the text (though not necessarily - a strong leading word might only be needed once), it accumulates a distributed definition and anchors a whole region of behaviour in the fewest tokens, by recruiting priors the model already holds.
64
+
65
+ It serves predictability twice. In the body it anchors _execution_: the agent reaches for the same behaviour every time the word appears. In the description it anchors _invocation_: when the same word lives in your prompts, docs, and code, the agent links that shared language to the skill and fires it more reliably.
66
+
67
+ Hunt for opportunities to refactor skills to use leading words. A triad spelled out at three sites (**duplication**), a description spending a sentence to gesture at one idea — each is a passage begging to **collapse** into a single token. Examples include:
68
+
69
+ - "fast, deterministic, low-overhead" -> _tight_ — one quality restated across a phase — into a single pretrained word (a _tight_ loop).
70
+ - "a loop you believe in" -> _red_ — converts a fuzzy gate into a binary observable state (the loop goes _red_ on the bug, or it doesn't).
71
+
72
+ You win twice over: fewer tokens, _and_ a sharper hook for the agent to hang its thinking on. Assume every skill is carrying restatements that leading words retire — go find them.
73
+
74
+ ## Failure modes
75
+
76
+ Use these to diagnose issues the user may be having with the skill.
77
+
78
+ - **Premature completion** — ending a step before it's genuinely done, attention slipping to _being done_. Defence, in order: sharpen the completion criterion first (cheap, local); only if it is irreducibly fuzzy _and_ you observe the rush, hide the post-completion steps by splitting (the sequence cut).
79
+ - **Duplication** — the same meaning in more than one place. Costs maintenance and tokens, and inflates a meaning's prominence on the ladder past its real rank.
80
+ - **Sediment** — stale layers that settle because adding feels safe and removing feels risky. The default fate of any skill without a pruning discipline.
81
+ - **Sprawl** — a skill simply too long, even when every line is live and unique. Hurts readability and maintainability and wastes tokens. The cure is the ladder: disclose **reference** behind pointers, and split by **branch** or sequence so each path carries only what it needs.
82
+ - **No-op** — a line the model already obeys by default, so you pay load to say nothing. The test: does it change behaviour versus the default? A weak leading word (_be thorough_ when the agent is already thorough-ish) is a no-op; the fix is a stronger word (_relentless_), not a different technique.
83
+ - **Negation** — steering by prohibition backfires: _don't think of an elephant_ names the elephant and makes it more available, not less. Prompt the **positive** — state the target behaviour so the banned one is never spoken; keep a prohibition only as a hard guardrail you can't phrase positively, and even then pair it with what to do instead.
@@ -0,0 +1,5 @@
1
+ interface:
2
+ display_name: "Writing Great Skills"
3
+ short_description: "Principles for predictable skills"
4
+ policy:
5
+ allow_implicit_invocation: false