bigpowers 2.87.3 → 2.87.5

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 (259) hide show
  1. package/.cursor/rules/align-grid.mdc +109 -0
  2. package/.cursor/rules/assess-impact.mdc +90 -0
  3. package/.cursor/rules/audit-code.mdc +183 -0
  4. package/.cursor/rules/audit-plan.mdc +88 -0
  5. package/.cursor/rules/build-epic.mdc +104 -0
  6. package/.cursor/rules/change-request.mdc +120 -0
  7. package/.cursor/rules/commit-message.mdc +139 -0
  8. package/.cursor/rules/compose-workflow.mdc +81 -0
  9. package/.cursor/rules/context7-mcp.mdc +54 -0
  10. package/.cursor/rules/craft-skill.mdc +195 -0
  11. package/.cursor/rules/deepen-architecture.mdc +259 -0
  12. package/.cursor/rules/define-language.mdc +79 -0
  13. package/.cursor/rules/define-success.mdc +11 -0
  14. package/.cursor/rules/delegate-task.mdc +90 -0
  15. package/.cursor/rules/deploy.mdc +197 -0
  16. package/.cursor/rules/design-interface.mdc +96 -0
  17. package/.cursor/rules/develop-tdd.mdc +415 -0
  18. package/.cursor/rules/diagnose-root.mdc +23 -0
  19. package/.cursor/rules/diagnose-stall.mdc +53 -0
  20. package/.cursor/rules/dispatch-agents.mdc +117 -0
  21. package/.cursor/rules/edit-document.mdc +22 -0
  22. package/.cursor/rules/elaborate-spec.mdc +100 -0
  23. package/.cursor/rules/enforce-first.mdc +44 -0
  24. package/.cursor/rules/evolve-skill.mdc +54 -0
  25. package/.cursor/rules/execute-plan.mdc +60 -0
  26. package/.cursor/rules/extract-design.mdc +131 -0
  27. package/.cursor/rules/find-way.mdc +190 -0
  28. package/.cursor/rules/fix-bug.mdc +66 -0
  29. package/.cursor/rules/gate-trace.mdc +91 -0
  30. package/.cursor/rules/generate-allure-report.mdc +284 -0
  31. package/.cursor/rules/grill-me.mdc +107 -0
  32. package/.cursor/rules/grill-with-docs.mdc +52 -0
  33. package/.cursor/rules/guard-git.mdc +230 -0
  34. package/.cursor/rules/harden-vps.mdc +290 -0
  35. package/.cursor/rules/hook-commits.mdc +93 -0
  36. package/.cursor/rules/inspect-quality.mdc +105 -0
  37. package/.cursor/rules/investigate-bug.mdc +126 -0
  38. package/.cursor/rules/kickoff-branch.mdc +142 -0
  39. package/.cursor/rules/maintain-wiki.mdc +63 -0
  40. package/.cursor/rules/map-codebase.mdc +70 -0
  41. package/.cursor/rules/migrate-spec.mdc +907 -0
  42. package/.cursor/rules/model-domain.mdc +231 -0
  43. package/.cursor/rules/orchestrate-project.mdc +173 -0
  44. package/.cursor/rules/organize-workspace.mdc +163 -0
  45. package/.cursor/rules/plan-refactor.mdc +86 -0
  46. package/.cursor/rules/plan-release.mdc +144 -0
  47. package/.cursor/rules/plan-tests.mdc +74 -0
  48. package/.cursor/rules/plan-work.mdc +271 -0
  49. package/.cursor/rules/publish-package.mdc +337 -0
  50. package/.cursor/rules/quick-fix.mdc +113 -0
  51. package/.cursor/rules/release-branch.mdc +301 -0
  52. package/.cursor/rules/request-review.mdc +112 -0
  53. package/.cursor/rules/research-first.mdc +86 -0
  54. package/.cursor/rules/reset-baseline.mdc +20 -0
  55. package/.cursor/rules/respond-review.mdc +70 -0
  56. package/.cursor/rules/run-benchmark.mdc +84 -0
  57. package/.cursor/rules/run-evals.mdc +79 -0
  58. package/.cursor/rules/run-planning.mdc +100 -0
  59. package/.cursor/rules/scope-work.mdc +62 -0
  60. package/.cursor/rules/search-skills.mdc +72 -0
  61. package/.cursor/rules/security-review.mdc +383 -0
  62. package/.cursor/rules/seed-conventions.mdc +311 -0
  63. package/.cursor/rules/session-state.mdc +145 -0
  64. package/.cursor/rules/setup-environment.mdc +38 -0
  65. package/.cursor/rules/simple-english.mdc +345 -0
  66. package/.cursor/rules/simulate-agents.mdc +25 -0
  67. package/.cursor/rules/slice-tasks.mdc +67 -0
  68. package/.cursor/rules/smoke-test.mdc +260 -0
  69. package/.cursor/rules/spike-prototype.mdc +94 -0
  70. package/.cursor/rules/stocktake-skills.mdc +73 -0
  71. package/.cursor/rules/survey-context.mdc +134 -0
  72. package/.cursor/rules/terse-mode.mdc +41 -0
  73. package/.cursor/rules/trace-requirement.mdc +68 -0
  74. package/.cursor/rules/using-bigpowers.mdc +110 -0
  75. package/.cursor/rules/validate-contracts.mdc +285 -0
  76. package/.cursor/rules/validate-fix.mdc +146 -0
  77. package/.cursor/rules/verify-work.mdc +190 -0
  78. package/.cursor/rules/visual-dashboard.mdc +49 -0
  79. package/.cursor/rules/wire-ci.mdc +380 -0
  80. package/.cursor/rules/wire-observability.mdc +96 -0
  81. package/.cursor/rules/write-document.mdc +280 -0
  82. package/.gemini/extensions/bigpowers/commands/prompts/align-grid.md +109 -0
  83. package/.gemini/extensions/bigpowers/commands/prompts/assess-impact.md +90 -0
  84. package/.gemini/extensions/bigpowers/commands/prompts/audit-code.md +183 -0
  85. package/.gemini/extensions/bigpowers/commands/prompts/audit-plan.md +88 -0
  86. package/.gemini/extensions/bigpowers/commands/prompts/build-epic.md +104 -0
  87. package/.gemini/extensions/bigpowers/commands/prompts/change-request.md +120 -0
  88. package/.gemini/extensions/bigpowers/commands/prompts/commit-message.md +139 -0
  89. package/.gemini/extensions/bigpowers/commands/prompts/compose-workflow.md +81 -0
  90. package/.gemini/extensions/bigpowers/commands/prompts/context7-mcp.md +54 -0
  91. package/.gemini/extensions/bigpowers/commands/prompts/craft-skill.md +195 -0
  92. package/.gemini/extensions/bigpowers/commands/prompts/deepen-architecture.md +259 -0
  93. package/.gemini/extensions/bigpowers/commands/prompts/define-language.md +79 -0
  94. package/.gemini/extensions/bigpowers/commands/prompts/define-success.md +11 -0
  95. package/.gemini/extensions/bigpowers/commands/prompts/delegate-task.md +90 -0
  96. package/.gemini/extensions/bigpowers/commands/prompts/deploy.md +197 -0
  97. package/.gemini/extensions/bigpowers/commands/prompts/design-interface.md +96 -0
  98. package/.gemini/extensions/bigpowers/commands/prompts/develop-tdd.md +415 -0
  99. package/.gemini/extensions/bigpowers/commands/prompts/diagnose-root.md +23 -0
  100. package/.gemini/extensions/bigpowers/commands/prompts/diagnose-stall.md +53 -0
  101. package/.gemini/extensions/bigpowers/commands/prompts/dispatch-agents.md +117 -0
  102. package/.gemini/extensions/bigpowers/commands/prompts/edit-document.md +22 -0
  103. package/.gemini/extensions/bigpowers/commands/prompts/elaborate-spec.md +100 -0
  104. package/.gemini/extensions/bigpowers/commands/prompts/enforce-first.md +44 -0
  105. package/.gemini/extensions/bigpowers/commands/prompts/evolve-skill.md +54 -0
  106. package/.gemini/extensions/bigpowers/commands/prompts/execute-plan.md +60 -0
  107. package/.gemini/extensions/bigpowers/commands/prompts/extract-design.md +131 -0
  108. package/.gemini/extensions/bigpowers/commands/prompts/find-way.md +190 -0
  109. package/.gemini/extensions/bigpowers/commands/prompts/fix-bug.md +66 -0
  110. package/.gemini/extensions/bigpowers/commands/prompts/gate-trace.md +91 -0
  111. package/.gemini/extensions/bigpowers/commands/prompts/generate-allure-report.md +284 -0
  112. package/.gemini/extensions/bigpowers/commands/prompts/grill-me.md +107 -0
  113. package/.gemini/extensions/bigpowers/commands/prompts/grill-with-docs.md +52 -0
  114. package/.gemini/extensions/bigpowers/commands/prompts/guard-git.md +230 -0
  115. package/.gemini/extensions/bigpowers/commands/prompts/harden-vps.md +290 -0
  116. package/.gemini/extensions/bigpowers/commands/prompts/hook-commits.md +93 -0
  117. package/.gemini/extensions/bigpowers/commands/prompts/inspect-quality.md +105 -0
  118. package/.gemini/extensions/bigpowers/commands/prompts/investigate-bug.md +126 -0
  119. package/.gemini/extensions/bigpowers/commands/prompts/kickoff-branch.md +142 -0
  120. package/.gemini/extensions/bigpowers/commands/prompts/maintain-wiki.md +63 -0
  121. package/.gemini/extensions/bigpowers/commands/prompts/map-codebase.md +70 -0
  122. package/.gemini/extensions/bigpowers/commands/prompts/migrate-spec.md +907 -0
  123. package/.gemini/extensions/bigpowers/commands/prompts/model-domain.md +231 -0
  124. package/.gemini/extensions/bigpowers/commands/prompts/orchestrate-project.md +173 -0
  125. package/.gemini/extensions/bigpowers/commands/prompts/organize-workspace.md +163 -0
  126. package/.gemini/extensions/bigpowers/commands/prompts/plan-refactor.md +86 -0
  127. package/.gemini/extensions/bigpowers/commands/prompts/plan-release.md +144 -0
  128. package/.gemini/extensions/bigpowers/commands/prompts/plan-tests.md +74 -0
  129. package/.gemini/extensions/bigpowers/commands/prompts/plan-work.md +271 -0
  130. package/.gemini/extensions/bigpowers/commands/prompts/publish-package.md +337 -0
  131. package/.gemini/extensions/bigpowers/commands/prompts/quick-fix.md +113 -0
  132. package/.gemini/extensions/bigpowers/commands/prompts/release-branch.md +301 -0
  133. package/.gemini/extensions/bigpowers/commands/prompts/request-review.md +112 -0
  134. package/.gemini/extensions/bigpowers/commands/prompts/research-first.md +86 -0
  135. package/.gemini/extensions/bigpowers/commands/prompts/reset-baseline.md +20 -0
  136. package/.gemini/extensions/bigpowers/commands/prompts/respond-review.md +70 -0
  137. package/.gemini/extensions/bigpowers/commands/prompts/run-benchmark.md +84 -0
  138. package/.gemini/extensions/bigpowers/commands/prompts/run-evals.md +79 -0
  139. package/.gemini/extensions/bigpowers/commands/prompts/run-planning.md +100 -0
  140. package/.gemini/extensions/bigpowers/commands/prompts/scope-work.md +62 -0
  141. package/.gemini/extensions/bigpowers/commands/prompts/search-skills.md +72 -0
  142. package/.gemini/extensions/bigpowers/commands/prompts/security-review.md +383 -0
  143. package/.gemini/extensions/bigpowers/commands/prompts/seed-conventions.md +311 -0
  144. package/.gemini/extensions/bigpowers/commands/prompts/session-state.md +145 -0
  145. package/.gemini/extensions/bigpowers/commands/prompts/setup-environment.md +38 -0
  146. package/.gemini/extensions/bigpowers/commands/prompts/simple-english.md +345 -0
  147. package/.gemini/extensions/bigpowers/commands/prompts/simulate-agents.md +25 -0
  148. package/.gemini/extensions/bigpowers/commands/prompts/slice-tasks.md +67 -0
  149. package/.gemini/extensions/bigpowers/commands/prompts/smoke-test.md +260 -0
  150. package/.gemini/extensions/bigpowers/commands/prompts/spike-prototype.md +94 -0
  151. package/.gemini/extensions/bigpowers/commands/prompts/stocktake-skills.md +73 -0
  152. package/.gemini/extensions/bigpowers/commands/prompts/survey-context.md +134 -0
  153. package/.gemini/extensions/bigpowers/commands/prompts/terse-mode.md +41 -0
  154. package/.gemini/extensions/bigpowers/commands/prompts/trace-requirement.md +68 -0
  155. package/.gemini/extensions/bigpowers/commands/prompts/using-bigpowers.md +110 -0
  156. package/.gemini/extensions/bigpowers/commands/prompts/validate-contracts.md +285 -0
  157. package/.gemini/extensions/bigpowers/commands/prompts/validate-fix.md +146 -0
  158. package/.gemini/extensions/bigpowers/commands/prompts/verify-work.md +190 -0
  159. package/.gemini/extensions/bigpowers/commands/prompts/visual-dashboard.md +49 -0
  160. package/.gemini/extensions/bigpowers/commands/prompts/wire-ci.md +380 -0
  161. package/.gemini/extensions/bigpowers/commands/prompts/wire-observability.md +96 -0
  162. package/.gemini/extensions/bigpowers/commands/prompts/write-document.md +280 -0
  163. package/.gemini/extensions/bigpowers/gemini-extension.json +16 -0
  164. package/.gemini/extensions/bigpowers/hooks/HOOKS.md +43 -0
  165. package/.gemini/extensions/bigpowers/hooks/before-tool-git-guard.sh +26 -0
  166. package/.gemini/extensions/bigpowers/hooks/before-tool-rtk.sh +14 -0
  167. package/.gemini/extensions/bigpowers/hooks/before-tool-token-mgmt.sh +19 -0
  168. package/.gemini/extensions/bigpowers/hooks/hooks-manifest.json +36 -0
  169. package/.gemini/extensions/bigpowers/hooks/run-hook.cmd +29 -0
  170. package/.gemini/extensions/bigpowers/hooks/session-start +48 -0
  171. package/.gemini/extensions/bigpowers/hooks/settings.json.example +41 -0
  172. package/.gemini/extensions/bigpowers/skills/align-grid/SKILL.md +111 -0
  173. package/.gemini/extensions/bigpowers/skills/assess-impact/SKILL.md +92 -0
  174. package/.gemini/extensions/bigpowers/skills/audit-code/SKILL.md +185 -0
  175. package/.gemini/extensions/bigpowers/skills/audit-plan/SKILL.md +90 -0
  176. package/.gemini/extensions/bigpowers/skills/build-epic/SKILL.md +106 -0
  177. package/.gemini/extensions/bigpowers/skills/change-request/SKILL.md +122 -0
  178. package/.gemini/extensions/bigpowers/skills/commit-message/SKILL.md +141 -0
  179. package/.gemini/extensions/bigpowers/skills/compose-workflow/SKILL.md +83 -0
  180. package/.gemini/extensions/bigpowers/skills/context7-mcp/SKILL.md +56 -0
  181. package/.gemini/extensions/bigpowers/skills/craft-skill/SKILL.md +197 -0
  182. package/.gemini/extensions/bigpowers/skills/deepen-architecture/SKILL.md +261 -0
  183. package/.gemini/extensions/bigpowers/skills/define-language/SKILL.md +81 -0
  184. package/.gemini/extensions/bigpowers/skills/define-success/SKILL.md +13 -0
  185. package/.gemini/extensions/bigpowers/skills/delegate-task/SKILL.md +92 -0
  186. package/.gemini/extensions/bigpowers/skills/deploy/SKILL.md +199 -0
  187. package/.gemini/extensions/bigpowers/skills/design-interface/SKILL.md +98 -0
  188. package/.gemini/extensions/bigpowers/skills/develop-tdd/SKILL.md +417 -0
  189. package/.gemini/extensions/bigpowers/skills/diagnose-root/SKILL.md +25 -0
  190. package/.gemini/extensions/bigpowers/skills/diagnose-stall/SKILL.md +55 -0
  191. package/.gemini/extensions/bigpowers/skills/dispatch-agents/SKILL.md +119 -0
  192. package/.gemini/extensions/bigpowers/skills/edit-document/SKILL.md +24 -0
  193. package/.gemini/extensions/bigpowers/skills/elaborate-spec/SKILL.md +102 -0
  194. package/.gemini/extensions/bigpowers/skills/enforce-first/SKILL.md +46 -0
  195. package/.gemini/extensions/bigpowers/skills/evolve-skill/SKILL.md +56 -0
  196. package/.gemini/extensions/bigpowers/skills/execute-plan/SKILL.md +62 -0
  197. package/.gemini/extensions/bigpowers/skills/extract-design/SKILL.md +133 -0
  198. package/.gemini/extensions/bigpowers/skills/find-way/SKILL.md +192 -0
  199. package/.gemini/extensions/bigpowers/skills/fix-bug/SKILL.md +68 -0
  200. package/.gemini/extensions/bigpowers/skills/gate-trace/SKILL.md +93 -0
  201. package/.gemini/extensions/bigpowers/skills/generate-allure-report/SKILL.md +286 -0
  202. package/.gemini/extensions/bigpowers/skills/grill-me/SKILL.md +109 -0
  203. package/.gemini/extensions/bigpowers/skills/grill-with-docs/SKILL.md +54 -0
  204. package/.gemini/extensions/bigpowers/skills/guard-git/SKILL.md +232 -0
  205. package/.gemini/extensions/bigpowers/skills/harden-vps/SKILL.md +292 -0
  206. package/.gemini/extensions/bigpowers/skills/hook-commits/SKILL.md +95 -0
  207. package/.gemini/extensions/bigpowers/skills/inspect-quality/SKILL.md +107 -0
  208. package/.gemini/extensions/bigpowers/skills/investigate-bug/SKILL.md +128 -0
  209. package/.gemini/extensions/bigpowers/skills/kickoff-branch/SKILL.md +144 -0
  210. package/.gemini/extensions/bigpowers/skills/maintain-wiki/SKILL.md +65 -0
  211. package/.gemini/extensions/bigpowers/skills/map-codebase/SKILL.md +72 -0
  212. package/.gemini/extensions/bigpowers/skills/migrate-spec/SKILL.md +909 -0
  213. package/.gemini/extensions/bigpowers/skills/model-domain/SKILL.md +233 -0
  214. package/.gemini/extensions/bigpowers/skills/orchestrate-project/SKILL.md +175 -0
  215. package/.gemini/extensions/bigpowers/skills/organize-workspace/SKILL.md +165 -0
  216. package/.gemini/extensions/bigpowers/skills/plan-refactor/SKILL.md +88 -0
  217. package/.gemini/extensions/bigpowers/skills/plan-release/SKILL.md +146 -0
  218. package/.gemini/extensions/bigpowers/skills/plan-tests/SKILL.md +76 -0
  219. package/.gemini/extensions/bigpowers/skills/plan-work/SKILL.md +273 -0
  220. package/.gemini/extensions/bigpowers/skills/publish-package/SKILL.md +339 -0
  221. package/.gemini/extensions/bigpowers/skills/quick-fix/SKILL.md +115 -0
  222. package/.gemini/extensions/bigpowers/skills/release-branch/SKILL.md +303 -0
  223. package/.gemini/extensions/bigpowers/skills/request-review/SKILL.md +114 -0
  224. package/.gemini/extensions/bigpowers/skills/research-first/SKILL.md +88 -0
  225. package/.gemini/extensions/bigpowers/skills/reset-baseline/SKILL.md +22 -0
  226. package/.gemini/extensions/bigpowers/skills/respond-review/SKILL.md +72 -0
  227. package/.gemini/extensions/bigpowers/skills/run-benchmark/SKILL.md +86 -0
  228. package/.gemini/extensions/bigpowers/skills/run-evals/SKILL.md +81 -0
  229. package/.gemini/extensions/bigpowers/skills/run-planning/SKILL.md +102 -0
  230. package/.gemini/extensions/bigpowers/skills/scope-work/SKILL.md +64 -0
  231. package/.gemini/extensions/bigpowers/skills/search-skills/SKILL.md +74 -0
  232. package/.gemini/extensions/bigpowers/skills/security-review/SKILL.md +385 -0
  233. package/.gemini/extensions/bigpowers/skills/seed-conventions/SKILL.md +313 -0
  234. package/.gemini/extensions/bigpowers/skills/session-state/SKILL.md +147 -0
  235. package/.gemini/extensions/bigpowers/skills/setup-environment/SKILL.md +40 -0
  236. package/.gemini/extensions/bigpowers/skills/simple-english/SKILL.md +347 -0
  237. package/.gemini/extensions/bigpowers/skills/simulate-agents/SKILL.md +27 -0
  238. package/.gemini/extensions/bigpowers/skills/slice-tasks/SKILL.md +69 -0
  239. package/.gemini/extensions/bigpowers/skills/smoke-test/SKILL.md +262 -0
  240. package/.gemini/extensions/bigpowers/skills/spike-prototype/SKILL.md +96 -0
  241. package/.gemini/extensions/bigpowers/skills/stocktake-skills/SKILL.md +75 -0
  242. package/.gemini/extensions/bigpowers/skills/survey-context/SKILL.md +136 -0
  243. package/.gemini/extensions/bigpowers/skills/terse-mode/SKILL.md +43 -0
  244. package/.gemini/extensions/bigpowers/skills/trace-requirement/SKILL.md +70 -0
  245. package/.gemini/extensions/bigpowers/skills/using-bigpowers/SKILL.md +112 -0
  246. package/.gemini/extensions/bigpowers/skills/validate-contracts/SKILL.md +287 -0
  247. package/.gemini/extensions/bigpowers/skills/validate-fix/SKILL.md +148 -0
  248. package/.gemini/extensions/bigpowers/skills/verify-work/SKILL.md +192 -0
  249. package/.gemini/extensions/bigpowers/skills/visual-dashboard/SKILL.md +51 -0
  250. package/.gemini/extensions/bigpowers/skills/wire-ci/SKILL.md +382 -0
  251. package/.gemini/extensions/bigpowers/skills/wire-observability/SKILL.md +98 -0
  252. package/.gemini/extensions/bigpowers/skills/write-document/SKILL.md +282 -0
  253. package/.pi/package.json +1 -1
  254. package/CHANGELOG.md +14 -0
  255. package/package.json +1 -1
  256. package/scripts/lib/__pycache__/link_utils.cpython-312.pyc +0 -0
  257. package/scripts/lib/__pycache__/srp_engine_links.cpython-312.pyc +0 -0
  258. package/scripts/lib/install-helpers.js +147 -20
  259. package/scripts/test-install-helpers.js +141 -0
@@ -0,0 +1,98 @@
1
+ ---
2
+ name: design-interface
3
+ model: opus
4
+ description: "Generate multiple radically different interface designs for a module using parallel sub-agents, then compare trade-offs. Based on \"Design It Twice\" from A Philosophy of Software Design. Use when user wants to design an API, explore interface options, compare module shapes, or mentions \"design it twice\"."
5
+ disable-model-invocation: true
6
+ ---
7
+
8
+ # Design Interface
9
+
10
+ Based on "Design It Twice" from "A Philosophy of Software Design": your first idea is unlikely to be the best. Generate multiple radically different designs, then compare.
11
+
12
+ > **HARD GATE** — Multiple design options must be explored. Do NOT settle on first idea. Compare trade-offs (UX, complexity, extensibility, performance) before committing.
13
+
14
+ ## Workflow
15
+
16
+ ### 1. Gather Requirements
17
+
18
+ Before designing, understand:
19
+
20
+ - [ ] What problem does this module solve?
21
+ - [ ] Who are the callers? (other modules, external users, tests)
22
+ - [ ] What are the key operations?
23
+ - [ ] Any constraints? (performance, compatibility, existing patterns)
24
+ - [ ] What should be hidden inside vs exposed?
25
+
26
+ Ask: "What does this module need to do? Who will use it?"
27
+
28
+ ### 2. Generate Designs (Parallel Sub-Agents)
29
+
30
+ Spawn 3+ sub-agents simultaneously using Task tool. Each must produce a **radically different** approach.
31
+
32
+ ```
33
+ Prompt template for each sub-agent:
34
+
35
+ Design an interface for: [module description]
36
+
37
+ Requirements: [gathered requirements]
38
+
39
+ Constraints for this design: [assign a different constraint to each agent]
40
+ - Agent 1: "Minimize method count - aim for 1-3 methods max"
41
+ - Agent 2: "Maximize flexibility - support many use cases"
42
+ - Agent 3: "Optimize for the most common case"
43
+ - Agent 4: "Take inspiration from [specific paradigm/library]"
44
+
45
+ Output format:
46
+ 1. Interface signature (types/methods)
47
+ 2. Usage example (how caller uses it)
48
+ 3. What this design hides internally
49
+ 4. Trade-offs of this approach
50
+ ```
51
+
52
+ ### 3. Present Designs
53
+
54
+ Show each design with:
55
+
56
+ 1. **Interface signature** — types, methods, params
57
+ 2. **Usage examples** — how callers actually use it in practice
58
+ 3. **What it hides** — complexity kept internal
59
+
60
+ Present designs sequentially so user can absorb each approach before comparison.
61
+
62
+ ### 4. Compare Designs
63
+
64
+ After showing all designs, compare them on:
65
+
66
+ - **Interface simplicity**: fewer methods, simpler params
67
+ - **General-purpose vs specialized**: flexibility vs focus
68
+ - **Implementation efficiency**: does shape allow efficient internals?
69
+ - **Depth**: small interface hiding significant complexity (good) vs large interface with thin implementation (bad)
70
+ - **Ease of correct use** vs **ease of misuse**
71
+
72
+ Discuss trade-offs in prose, not tables. Highlight where designs diverge most.
73
+
74
+ ### 5. Synthesize
75
+
76
+ Often the best design combines insights from multiple options. Ask:
77
+
78
+ - "Which design best fits your primary use case?"
79
+ - "Any elements from other designs worth incorporating?"
80
+
81
+ ## Evaluation Criteria
82
+
83
+ From "A Philosophy of Software Design":
84
+
85
+ **Interface simplicity**: Fewer methods, simpler params = easier to learn and use correctly.
86
+
87
+ **General-purpose**: Can handle future use cases without changes. But beware over-generalization.
88
+
89
+ **Implementation efficiency**: Does interface shape allow efficient implementation? Or force awkward internals?
90
+
91
+ **Depth**: Small interface hiding significant complexity = deep module (good). Large interface with thin implementation = shallow module (avoid).
92
+
93
+ ## Anti-Patterns
94
+
95
+ - Don't let sub-agents produce similar designs — enforce radical difference
96
+ - Don't skip comparison — the value is in contrast
97
+ - Don't implement — this is purely about interface shape
98
+ - Don't evaluate based on implementation effort
@@ -0,0 +1,417 @@
1
+ ---
2
+ name: develop-tdd
3
+ model: sonnet
4
+ description: "Test-driven development with red-green-refactor loop using vertical slices. Use for features (epic tasks) or bugs (specs/bugs/BUG-*.md)."
5
+ disable-model-invocation: true
6
+ ---
7
+
8
+ # Develop TDD
9
+
10
+ > **HARD GATE** — Do NOT proceed if on `main` or `master`. Run `kickoff-branch` first to create a feature branch or worktree.
11
+ >
12
+ > **HARD GATE** — Do NOT write code before you have a plan. New feature: `plan-work` → epic capsule tasks. Bug: `investigate-bug` → `specs/bugs/BUG-*.md` (or use `fix-bug` orchestrator).
13
+ >
14
+ > **RECURSIVE DISCIPLINE** — This lifecycle applies to EVERY task, including updating these skills. Never skip planning because a task is "meta" or "just documentation."
15
+
16
+ ## Philosophy
17
+
18
+ Tests verify behavior through public interfaces, not implementation details. A good test reads like a specification. See [REFERENCE.md](REFERENCE.md) for the horizontal-slice anti-pattern and TDD phase detail.
19
+
20
+ ## Red Flags
21
+
22
+ If you catch yourself thinking these, stop and reconsider — you are likely deviating from production-grade craft.
23
+
24
+ | Red Flag | Reality |
25
+ | :--- | :--- |
26
+ | "This is too simple to need tests." | Simple code is where bugs hide. If it's simple, the test is cheap. |
27
+ | "I'll refactor this later." | "Later" is when technical debt becomes bankruptcy. Refactor while Green. |
28
+ | "The tests are already comprehensive." | If you're adding behavior, you need a new test. Coverage ≠ Correctness. |
29
+ | "I'm just fixing a small bug." | Small bugs often indicate deep interface flaws. Investigate root cause. |
30
+ | "I need to mock this internal class." | Mocking internals couples tests to implementation. Mock only I/O. |
31
+ | "This refactor is out of scope." | Leave the code cleaner than you found it (Boy Scout Rule). |
32
+ | "Preflight failed but it's unrelated." | **Always Green:** any reproducible gate failure routes **quick-fix → fix-bug** before forward work. Session boundaries do not waive Preflight. |
33
+ | "I'll note the red gate and continue." | Narrating a failure is banned. fix-or-log is mandatory per CONVENTIONS § Discovered Defects. |
34
+
35
+ ## Workflow
36
+
37
+ > **Timing:** `bash scripts/bp-timing.sh start develop-tdd` at invocation; `bash scripts/bp-timing.sh end develop-tdd` before handoff.
38
+
39
+ ### 1. Planning
40
+
41
+ - [ ] Read active `specs/epics/*/epic.yaml` story tasks or `specs/bugs/BUG-*.md` — understand verify steps
42
+ - [ ] If `specs/tech-architecture/eNN-TEST_PLAN_LATEST.md` exists for the active epic, read it before writing the first test. Implement P0 scenarios (`SC-*-P0-*`) before P1. P2/P3 scenarios are optional per time budget.
43
+ - [ ] Confirm interface changes and behaviors to test (prioritize)
44
+ - [ ] Design interfaces for testability — identify [deep modules](deep-modules.md) opportunities
45
+ - [ ] Get user approval on the plan
46
+
47
+ Apply the **enforce-first** F.I.R.S.T rubric: Fast, Independent, Repeatable, Self-Validating, Timely.
48
+
49
+ ### 2. Tracer Bullet
50
+
51
+ Write ONE test that confirms ONE thing about the system:
52
+
53
+ ```
54
+ RED: Write test for first behavior → test fails → commit: test(<scope>): ... (test-only; red in CI)
55
+ GREEN: Write minimal code to pass → test passes → commit: feat(<scope>): ... (fix commit; green)
56
+ REFACTOR (optional): clean up → commit: refactor(<scope>): ...
57
+ ```
58
+
59
+ > **Two-commit red/green policy (HARD GATE — e45s08)** — Each behavior cycle requires **two separate commits**: (1) test-only commit that fails in CI (RED), then (2) implementation commit that makes it pass (GREEN). Never combine test + fix in one commit. Before proceeding, run the mechanical RED isolation check:
60
+
61
+ ```bash
62
+ bash scripts/verify-tdd-red-commit.sh
63
+ ```
64
+
65
+ Show `git log -2 --oneline` **and** the script output as evidence. If the test-only commit passes in isolation, the RED gate is violated — stop and fix before GREEN.
66
+
67
+ > **tasks.yaml ledger (e45s06)** — After each task's `verify:` exits 0, update `eNNsYY-tasks.yaml`: set that task's `status: passing`. Story-level `status: passing` only when all tasks pass.
68
+
69
+ ### 3. Incremental Loop
70
+
71
+ > **Snapshot-before-transition (e45s34):** Before each RED → GREEN or GREEN → REFACTOR transition, create a checkpoint so a failed transition can be rolled back cleanly:
72
+
73
+ ```bash
74
+ bash scripts/bp-yaml-snapshot.sh specs/state.yaml # if state changed this cycle
75
+ git stash push -m "tdd-checkpoint-$(git rev-parse --short HEAD)-red" --keep-index 2>/dev/null || true
76
+ ```
77
+
78
+ After GREEN passes and is committed, drop the stash (`git stash drop` if empty). Never refactor while RED.
79
+
80
+ For each remaining behavior: RED → GREEN → REFACTOR (optional). One test at a time. **Two commits per behavior** (test-only RED, then fix GREEN). Commit after every GREEN phase.
81
+
82
+ ### 4. Visual Slices (UI alternate workflow)
83
+
84
+ For UI components where behavioral unit testing is brittle: extract logic into a Controller/ViewModel/Hook (pure TDD), then use Visual Slices for the View layer. See [REFERENCE.md](REFERENCE.md) for the full Visual Slices procedure.
85
+
86
+ ### 5. Refactor
87
+
88
+ After all tests pass: extract duplication, deepen modules, apply SOLID principles. **Never refactor while RED.**
89
+
90
+ ### 6. Verify
91
+
92
+ After every behavior cycle, run the verify command from the active epic task. Show evidence before declaring the step done.
93
+
94
+ ### 7. Manual Verification Handover
95
+
96
+ Once all tests pass: locate the Verification Script in the active epic capsule, present it to the user step-by-step, and wait for confirmation of behavioral correctness.
97
+
98
+
99
+ ### 6a. CI dry-run sub-step
100
+
101
+ If this cycle modified files in `.github/workflows/`, run the CI dry-run procedure documented in [REFERENCE.md](REFERENCE.md#ci-dry-run).
102
+
103
+ ## Checklist Per Cycle
104
+
105
+ ```
106
+ [ ] Test describes behavior, not implementation
107
+ [ ] No test is ignored without an explicit ambiguity note (T4)
108
+ [ ] Boundary conditions tested: empty, max, min, off-by-one (T5)
109
+ [ ] Tests verify behavior through public interface only — no private methods (T8)
110
+ [ ] Test would survive internal refactor
111
+ [ ] Code is minimal for this test
112
+ [ ] No speculative features added
113
+ [ ] Every new abstraction has an explicit "Reason for Depth" justification
114
+ [ ] Progress committed (Conventional Commits)
115
+ [ ] verify: command passes
116
+ ```
117
+
118
+
119
+
120
+ ## Handoff
121
+
122
+ Gate: READY -> next: verify-work
123
+ Writes: state.yaml handoff.next_skill = verify-work
124
+
125
+ ## BCP Plus Integration
126
+
127
+ At story completion, if the story was sized with BCP Plus (13-dimension breakdown), log the `bcp_plus.total` alongside the standard `bcps:` count in the story's tasks.yaml. The breakdown is available from the epic capsule's `bcp_plus_breakdown` field. See `docs/references/bcp-plus.md` for the full methodology and NFR Gate pattern.
128
+
129
+ ## Verify
130
+
131
+ → verify: `test -x scripts/verify-tdd-red-commit.sh && bash scripts/verify-tdd-red-commit.sh --self-test && grep -q 'verify-tdd-red-commit' skills/develop-tdd/SKILL.md && echo OK`
132
+
133
+
134
+ <!-- story: e02s04 -->
135
+
136
+ ---
137
+
138
+ # Develop TDD — Reference
139
+
140
+ ## Anti-Pattern: Horizontal Slices
141
+
142
+ **DO NOT write all tests first, then all implementation.** This is "horizontal slicing" — treating RED as "write all tests" and GREEN as "write all code."
143
+
144
+ This produces **crap tests**:
145
+ - Tests written in bulk test _imagined_ behavior, not _actual_ behavior
146
+ - You end up testing the _shape_ of things rather than user-facing behavior
147
+ - Tests become insensitive to real changes
148
+
149
+ **Correct approach**: Vertical slices via tracer bullets. One test → one implementation → repeat.
150
+
151
+ ```
152
+ WRONG (horizontal):
153
+ RED: test1, test2, test3, test4, test5
154
+ GREEN: impl1, impl2, impl3, impl4, impl5
155
+
156
+ RIGHT (vertical):
157
+ RED→GREEN: test1→impl1
158
+ RED→GREEN: test2→impl2
159
+ RED→GREEN: test3→impl3
160
+ ...
161
+ ```
162
+
163
+ > The Red Flags table lives in [SKILL.md](SKILL.md#red-flags) — it is core behavioral guidance, not reference detail.
164
+
165
+ ## TDD Phases (Detail)
166
+
167
+ ### Red Phase
168
+
169
+ Write a failing test first:
170
+ - Test describes the desired observable behavior through the public interface
171
+ - Run the test to confirm it fails for the right reason (not a syntax error, not a typo)
172
+ - Commit: `git commit -m "test(<scope>): <description>"`
173
+
174
+ ### Green Phase
175
+
176
+ Write the minimum code to make the test pass:
177
+ - No extra logic, no anticipated future cases, no premature optimization
178
+ - Focus only on making the current test pass
179
+ - Commit: `git commit -m "feat(<scope>): <description>"` or `"fix(<scope>): <description>"`
180
+
181
+ ### Refactor Phase
182
+
183
+ Improve structure without changing behavior:
184
+ - Extract duplication, apply SOLID principles where natural, deepen modules
185
+ - Run tests after each refactor step to ensure behavior is preserved
186
+ - Commit: `git commit -m "refactor(<scope>): <description>"`
187
+ - Apply the Boy Scout Rule: leave the code cleaner than you found it
188
+
189
+ ## Visual Slices (UI Alternate Workflow)
190
+
191
+ For UI components (SwiftUI, React, Flutter) where behavioral unit testing is brittle or low-signal:
192
+
193
+ 1. **Test-First Logic**: Extract logic (state transitions, formatting, validation) into a Controller, ViewModel, or Hook. This logic MUST follow pure TDD.
194
+ 2. **Visual Verification**: For the View/Component itself:
195
+ - **RED**: Write the component signature and a basic preview/snapshot that fails (or displays placeholder).
196
+ - **GREEN**: Implement the UI and verify visually via manual run, preview, or snapshot test.
197
+ - **REFINE**: Adjust styling and layout until it matches the design.
198
+ 3. **COMMIT**: `git commit -m "feat(ui): <component name> visual slice verified"`
199
+
200
+ ---
201
+
202
+ # Deep Modules
203
+
204
+ From "A Philosophy of Software Design":
205
+
206
+ **Deep module** = small interface + lots of implementation
207
+
208
+ ```
209
+ ┌─────────────────────┐
210
+ │ Small Interface │ ← Few methods, simple params
211
+ ├─────────────────────┤
212
+ │ │
213
+ │ │
214
+ │ Deep Implementation│ ← Complex logic hidden
215
+ │ │
216
+ │ │
217
+ └─────────────────────┘
218
+ ```
219
+
220
+ **Shallow module** = large interface + little implementation (avoid)
221
+
222
+ ```
223
+ ┌─────────────────────────────────┐
224
+ │ Large Interface │ ← Many methods, complex params
225
+ ├─────────────────────────────────┤
226
+ │ Thin Implementation │ ← Just passes through
227
+ └─────────────────────────────────┘
228
+ ```
229
+
230
+ When designing interfaces, ask:
231
+
232
+ - Can I reduce the number of methods?
233
+ - Can I simplify the parameters?
234
+ - Can I hide more complexity inside?
235
+
236
+ ---
237
+
238
+ # Interface Design for Testability
239
+
240
+ Good interfaces make testing natural:
241
+
242
+ 1. **Accept dependencies, don't create them**
243
+
244
+ ```typescript
245
+ // Testable
246
+ function processOrder(order, paymentGateway) {}
247
+
248
+ // Hard to test
249
+ function processOrder(order) {
250
+ const gateway = new StripeGateway();
251
+ }
252
+ ```
253
+
254
+ 2. **Return results, don't produce side effects**
255
+
256
+ ```typescript
257
+ // Testable
258
+ function calculateDiscount(cart): Discount {}
259
+
260
+ // Hard to test
261
+ function applyDiscount(cart): void {
262
+ cart.total -= discount;
263
+ }
264
+ ```
265
+
266
+ 3. **Small surface area**
267
+ - Fewer methods = fewer tests needed
268
+ - Fewer params = simpler test setup
269
+
270
+ ---
271
+
272
+ # When to Mock
273
+
274
+ Mock at **system boundaries** only:
275
+
276
+ - External APIs (payment, email, etc.)
277
+ - Databases (sometimes - prefer test DB)
278
+ - Time/randomness
279
+ - File system (sometimes)
280
+
281
+ Don't mock:
282
+
283
+ - Your own classes/modules
284
+ - Internal collaborators
285
+ - Anything you control
286
+
287
+ ## Designing for Mockability
288
+
289
+ At system boundaries, design interfaces that are easy to mock:
290
+
291
+ **1. Use dependency injection**
292
+
293
+ Pass external dependencies in rather than creating them internally:
294
+
295
+ ```typescript
296
+ // Easy to mock
297
+ function processPayment(order, paymentClient) {
298
+ return paymentClient.charge(order.total);
299
+ }
300
+
301
+ // Hard to mock
302
+ function processPayment(order) {
303
+ const client = new StripeClient(process.env.STRIPE_KEY);
304
+ return client.charge(order.total);
305
+ }
306
+ ```
307
+
308
+ **2. Prefer SDK-style interfaces over generic fetchers**
309
+
310
+ Create specific functions for each external operation instead of one generic function with conditional logic:
311
+
312
+ ```typescript
313
+ // GOOD: Each function is independently mockable
314
+ const api = {
315
+ getUser: (id) => fetch(`/users/${id}`),
316
+ getOrders: (userId) => fetch(`/users/${userId}/orders`),
317
+ createOrder: (data) => fetch('/orders', { method: 'POST', body: data }),
318
+ };
319
+
320
+ // BAD: Mocking requires conditional logic inside the mock
321
+ const api = {
322
+ fetch: (endpoint, options) => fetch(endpoint, options),
323
+ };
324
+ ```
325
+
326
+ The SDK approach means:
327
+ - Each mock returns one specific shape
328
+ - No conditional logic in test setup
329
+ - Easier to see which endpoints a test exercises
330
+ - Type safety per endpoint
331
+
332
+ ---
333
+
334
+ # Refactor Candidates
335
+
336
+ After TDD cycle, look for:
337
+
338
+ - **Duplication** → Extract function/class
339
+ - **Long methods** → Break into private helpers (keep tests on public interface)
340
+ - **Shallow modules** → Combine or deepen
341
+ - **Feature envy** → Move logic to where data lives
342
+ - **Primitive obsession** → Introduce value objects
343
+ - **Existing code** the new code reveals as problematic
344
+
345
+ ---
346
+
347
+ # Good and Bad Tests
348
+
349
+ ## Good Tests
350
+
351
+ **Integration-style**: Test through real interfaces, not mocks of internal parts.
352
+
353
+ ```typescript
354
+ // GOOD: Tests observable behavior
355
+ test("user can checkout with valid cart", async () => {
356
+ const cart = createCart();
357
+ cart.add(product);
358
+ const result = await checkout(cart, paymentMethod);
359
+ expect(result.status).toBe("confirmed");
360
+ });
361
+ ```
362
+
363
+ Characteristics:
364
+
365
+ - Tests behavior users/callers care about
366
+ - Uses public API only
367
+ - Survives internal refactors
368
+ - Describes WHAT, not HOW
369
+ - One logical assertion per test
370
+
371
+ ## Bad Tests
372
+
373
+ **Implementation-detail tests**: Coupled to internal structure.
374
+
375
+ ```typescript
376
+ // BAD: Tests implementation details
377
+ test("checkout calls paymentService.process", async () => {
378
+ const mockPayment = jest.mock(paymentService);
379
+ await checkout(cart, payment);
380
+ expect(mockPayment.process).toHaveBeenCalledWith(cart.total);
381
+ });
382
+ ```
383
+
384
+ Red flags:
385
+
386
+ - Mocking internal collaborators
387
+ - Testing private methods
388
+ - Asserting on call counts/order
389
+ - Test breaks when refactoring without behavior change
390
+ - Test name describes HOW not WHAT
391
+ - Verifying through external means instead of interface
392
+
393
+ ```typescript
394
+ // BAD: Bypasses interface to verify
395
+ test("createUser saves to database", async () => {
396
+ await createUser({ name: "Alice" });
397
+ const row = await db.query("SELECT * FROM users WHERE name = ?", ["Alice"]);
398
+ expect(row).toBeDefined();
399
+ });
400
+
401
+ // GOOD: Verifies through interface
402
+ test("createUser makes user retrievable", async () => {
403
+ const user = await createUser({ name: "Alice" });
404
+ const retrieved = await getUser(user.id);
405
+ expect(retrieved.name).toBe("Alice");
406
+ });
407
+ ```
408
+
409
+ ## Clean Test Heuristics (Uncle Bob, Ch 17)
410
+
411
+ Apply these specific heuristics to maintain a high-quality suite:
412
+
413
+ - **T1: Insufficient Tests**: A test suite should test everything that could possibly break. Don't stop at "it seems to work."
414
+ - **T4: Ignored Tests**: Never ignore a test without documenting the ambiguity. An ignored test is a silent warning of a gap in understanding.
415
+ - **T5: Test Boundary Conditions**: Most bugs happen at the edges. Test the exact boundaries (e.g., empty strings, max integers, off-by-one indices).
416
+ - **T6: Exhaustively Test Near Bugs**: Bugs congregate. If you find one, there are likely others nearby; test that area thoroughly.
417
+ - **T9: Tests Should Be Fast**: Slow tests don't get run. Keep them fast so they remain part of the core developer loop.
@@ -0,0 +1,25 @@
1
+ ---
2
+ name: diagnose-root
3
+ model: sonnet
4
+ description: "Run 4-phase root cause analysis — reproduce, isolate, hypothesize, verify. Use when a bug is confirmed but root cause is unclear, after investigate-bug, or when user mentions root cause analysis."
5
+ disable-model-invocation: true
6
+ ---
7
+
8
+ # Diagnose Root
9
+
10
+ **Boundary**: Canonical, reusable 4-phase RCA engine. Invoked by `investigate-bug` (as step 2 of the end-to-end flow) and by `fix-bug` (when no bug file exists). Does not write the bug file — that is `investigate-bug`'s responsibility.
11
+
12
+ Four phases — do not skip. Update the active `specs/bugs/BUG-*.md` file at each phase.
13
+
14
+ ## Phases
15
+
16
+ 1. **Reproduce** — minimal steps; record environment; capture logs.
17
+ 2. **Isolate** — narrow to module/function; binary-search commits or config.
18
+ 3. **Hypothesize** — list ranked hypotheses with falsification test each.
19
+ 4. **Verify** — run falsification; confirm single root cause; link to fix plan.
20
+
21
+ > **HARD GATE** — Do not propose a fix until phase 4 confirms one root cause with evidence.
22
+
23
+ ## Verify
24
+
25
+ → verify: `[ "$(grep -lE 'Reproduce' specs/bugs/BUG-*.md 2>/dev/null | grep -cv "\.okf\.md$")" -ge 1 ]`
@@ -0,0 +1,55 @@
1
+ ---
2
+ name: diagnose-stall
3
+ model: haiku
4
+ description: "Diagnose why agent orchestration stopped producing progress — silent stalls in /loop, dispatch-agents, or execute-plan. Use when work appears hung, no output for several minutes, or a subagent never returned."
5
+ disable-model-invocation: true
6
+ ---
7
+
8
+ # Diagnose Stall
9
+
10
+ > **HARD GATE** — Do NOT restart work blindly. Run this diagnostic first when orchestration goes quiet without an explicit terminal state.
11
+
12
+ Explicit handler for silent stalls in long-running agent workflows (`/loop`, `dispatch-agents`, `execute-plan`, `build-epic` resume mode).
13
+
14
+ ## Stall signals
15
+
16
+ | Signal | Likely cause |
17
+ |--------|----------------|
18
+ | No stdout for >5 min on a monitored loop tick | Sleep/watcher misconfigured or prompt never re-armed |
19
+ | Subagent dispatched but no completion message | Agent hung, blocked on approval, or scope too large |
20
+ | `dispatch-agents` cycle 3 reached with gaps | Circuit exhausted — needs human escalation |
21
+ | Verify command running >15 min | Missing timeout or waiting on external service |
22
+ | `handoff.next_skill` unchanged across turns | Prior skill never wrote handoff |
23
+
24
+ ## Process
25
+
26
+ 1. **Read state** — `specs/state.yaml`: `handoff.next_skill`, `active_flow`, `metrics.story_start`, open decisions.
27
+ 2. **Check locks** — `bash scripts/check-stale-locks.sh` if present; read `specs/agent-locks.yaml`.
28
+ 3. **Inspect terminals** — list background shells; note PIDs, last output timestamp, exit codes.
29
+ 4. **Classify stall type:**
30
+ - **waiting_approval** — tool blocked on user consent
31
+ - **blocked_dependency** — prior task incomplete or red gate
32
+ - **agent_exhausted** — max iterations/cycles reached
33
+ - **misconfigured_loop** — duplicate sentinel, wrong regex, or sleeper not re-armed
34
+ - **external_io** — network, CI, or deploy wait without timeout
35
+ - **unknown** — escalate with evidence bundle
36
+ 5. **Recommend recovery** — one action only (resume, kill PID, re-dispatch with smaller brief, escalate to user).
37
+ 6. **Write report** — `specs/verifications/STALL-<timestamp>.md` with classification, evidence, and recommended next skill.
38
+
39
+ ## Integration
40
+
41
+ | Caller | When to invoke |
42
+ |--------|----------------|
43
+ | `/loop` (Cursor) | After two consecutive ticks with no observable progress |
44
+ | `dispatch-agents` | When a wave exceeds expected duration with zero returns |
45
+ | `execute-plan` | When a step checkpoint is overdue |
46
+ | User | "Why did this stop?" / "Nothing is happening" |
47
+
48
+ ## Verify
49
+
50
+ → verify: `test -f specs/state.yaml`
51
+
52
+ ## Handoff
53
+
54
+ Gate: READY → next: survey-context (if state unclear) or resume prior skill from `state.yaml`
55
+ Writes: `specs/verifications/STALL-*.md`