bigpowers 2.87.4 → 2.87.6

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 +33 -17
  259. package/scripts/test-install-helpers.js +31 -0
@@ -0,0 +1,100 @@
1
+ ---
2
+ name: elaborate-spec
3
+ description: "Refine a rough idea into a clear, detailed specification through dialogue. Does not produce code. Use when user has a vague idea, wants to think through a feature before planning, or needs to turn \"I want X\" into a concrete spec."
4
+ ---
5
+
6
+ # Elaborate Spec
7
+
8
+ Turn a rough idea into a clear specification through focused dialogue. No code is written during this skill — the output is shared understanding and a refined problem statement.
9
+
10
+ > **HARD GATE** — Do NOT proceed with planning or implementation until the problem space is clearly understood. Success criteria, actors, and scope must be explicit before drafting a plan.
11
+
12
+ ## Process
13
+
14
+ ### 1. Listen first
15
+
16
+ Let the user describe their idea in their own words. Do not interrupt or redirect. Take notes on:
17
+ - The core problem they're trying to solve
18
+ - Who is affected (actors)
19
+ - What success looks like to them
20
+ - Any constraints they've already identified
21
+
22
+ ### 2. Ask clarifying questions
23
+
24
+ Ask one question at a time. Work through these areas:
25
+
26
+ **Problem clarity**
27
+ - What is the current behavior (or lack of behavior) that prompted this?
28
+ - Who experiences this problem? How often?
29
+ - What's the cost of not solving it?
30
+
31
+ **Solution boundaries**
32
+ - What is explicitly IN scope?
33
+ - What is explicitly OUT of scope?
34
+ - Are there existing solutions (internal or external) this replaces or integrates with?
35
+
36
+ **Success criteria**
37
+ - How will you know this is done?
38
+ - What does the happy path look like end-to-end?
39
+ - What are the key failure modes to handle?
40
+
41
+ **Constraints**
42
+ - Any performance requirements?
43
+ - Any compatibility constraints (existing APIs, data formats)?
44
+ - Any non-negotiable implementation decisions already made?
45
+
46
+ ### 2.5. Multiple Interpretations (HARD GATE)
47
+
48
+ > **HARD GATE** — If the request admits ≥2 valid interpretations, do NOT guess. You must list them and ask the user to choose before proceeding. Proceeding with unresolved ambiguity is a failure of integrity.
49
+
50
+ Present the options clearly:
51
+ > "I see two ways to read this:
52
+ > 1. [Interpretation A] — my recommendation because [reason]
53
+ > 2. [Interpretation B]
54
+ > Which is closer to what you mean?"
55
+
56
+ ### 3. Surface hidden assumptions
57
+
58
+ Once the user has answered the main questions, probe for assumptions:
59
+ - "You mentioned X — does that mean Y is also true?"
60
+ - "What happens when Z fails?"
61
+ - "Is this for internal users, external users, or both?"
62
+
63
+ ### 4. Synthesize and confirm
64
+
65
+ Summarize your understanding in 3–5 bullet points aligned with [countable-story-format.md](../../docs/countable-story-format.md):
66
+ - The problem (feeds into §1 Business narrative)
67
+ - The solution and main flow (feeds into §5)
68
+ - The key constraints and alternative flows (feeds into §6)
69
+ - The success criteria (feeds into §17 Gherkin)
70
+ - What's out of scope (feeds into §18)
71
+
72
+ Ask: "Is this an accurate summary? Anything missing or wrong?"
73
+
74
+ ### 5. Write specs/planning-context.yaml
75
+
76
+ After the user confirms the summary in step 4, persist the key decisions:
77
+
78
+ ```yaml
79
+ # specs/planning-context.yaml — written by elaborate-spec; consumed by scope-work and slice-tasks
80
+ feature_name: "<from step 1>"
81
+ problem_statement: "<one paragraph>"
82
+ constraints:
83
+ - "<constraint 1>"
84
+ out_of_scope:
85
+ - "<excluded item 1>"
86
+ key_decisions:
87
+ - decision: "<what was decided>"
88
+ rationale: "<why>"
89
+ ```
90
+
91
+ If `specs/planning-context.yaml` already exists, ask: `"Planning context from a prior session exists. Update it? [Y/n]"`. Overwrite on Y; leave unchanged on N.
92
+
93
+ ### 6. Suggest next skill
94
+
95
+ Once the spec is clear, recommend the next step:
96
+ - If domain model needs work → `model-domain`
97
+ - If ready to plan → `plan-release` (creates epic capsules with `epic.yaml` + story `.md` + `-tasks.yaml`) then `plan-work` per story
98
+ - If a spike is needed first → `spike-prototype`
99
+ - If architecture decisions are needed → `deepen-architecture` or `grill-me`
100
+ - If the plan depends on a specific library or API → `grill-me` in docs mode
@@ -0,0 +1,44 @@
1
+ ---
2
+ name: enforce-first
3
+ description: "Apply the F.I.R.S.T test quality rubric (per CONVENTIONS.md §Tests) to a test suite or individual tests. Use when develop-tdd is writing tests, when test quality needs to be checked, or when user mentions F.I.R.S.T or \"test quality\"."
4
+ ---
5
+
6
+ # Enforce FIRST
7
+ > **HARD GATE** — **HARD GATE** — Before shipping, ALL enforcement checks must pass: lint, typecheck, tests, coverage gates. Do NOT disable or skip checks to get to green.
8
+
9
+
10
+ Apply the F.I.R.S.T rubric per CONVENTIONS.md §Tests to evaluate and improve tests.
11
+
12
+ This skill is typically invoked internally by `develop-tdd` during the test-writing phase. It can also be run standalone on an existing test suite.
13
+
14
+ ## Modes
15
+
16
+ - Default: full F.I.R.S.T audit (all 5 criteria)
17
+ - --quick: Check Fast, Independent, and Self-Validating criteria only (per CONVENTIONS.md §Tests). Used by build-epic step 6 as a mechanical gate after audit-code. Skips Repeatable and Timely which require contextual judgment.
18
+
19
+ ## The F.I.R.S.T Rubric
20
+
21
+ See CONVENTIONS.md §Tests for the canonical F.I.R.S.T rubric definition, checklists, and fix patterns.
22
+
23
+ Mechanical self-check (runs before reporting audit complete):
24
+
25
+ ```bash
26
+ grep -q '## Tests (F.I.R.S.T' CONVENTIONS.md
27
+ grep -qE 'Fast|Independent|Repeatable|Self-Validating|Timely' CONVENTIONS.md
28
+ ```
29
+
30
+ Each criterion must be explicitly addressed in the audit report with pass/fail per test file reviewed.
31
+
32
+ ## Applying the rubric
33
+
34
+ For each failing criterion:
35
+ 1. Identify which tests violate it
36
+ 2. Describe the fix
37
+ 3. Apply the fix
38
+ 4. Re-run the suite to confirm it still passes
39
+
40
+ Report: "F.I.R.S.T audit complete. X criteria passed, Y fixed."
41
+
42
+ ## Verify
43
+
44
+ → verify: `grep -q '## Tests (F.I.R.S.T' CONVENTIONS.md && grep -qE 'Self-Validating|Repeatable' skills/enforce-first/SKILL.md && echo OK`
@@ -0,0 +1,54 @@
1
+ ---
2
+ name: evolve-skill
3
+ description: "Benchmark-gated skill evolution — consume bigpowers-benchmark report, propose plan-work change, edit skill via craft-skill, re-run benchmark, record ADR. Use when a skill underperforms on benchmark or stocktake finds systemic gap."
4
+ ---
5
+
6
+ # story: e23s03
7
+
8
+ # story: e09s01
9
+ # story: e09s05
10
+
11
+ # Evolve Skill
12
+
13
+ > **HARD GATE** — No skill change ships without benchmark score ≥ pre-change baseline. Learning is measured and versioned — never implicit.
14
+
15
+ ## Loop
16
+
17
+ 1. **Regression gate** — Run `bash scripts/run-verification-gates.sh` to catch mechanical regressions (compliance, sync pipeline, size budget) before spending time on benchmark evals. If golden suite fails, fix regressions first — they are pre-requisites for any capability improvement.
18
+ 2. **Establish baseline** — Run `run-benchmark <skill> --baseline`. If no definition exists at `specs/benchmarks/<skill>.yaml`, create one following `specs/benchmarks/SCHEMA.md` first. Save report path in `state.yaml`. If `specs/benchmarks/reports/BASELINE-<skill>.yaml` already exists, skip this step.
19
+
20
+ 3. **Identify gap** — Read the baseline report (`specs/benchmarks/reports/BASELINE-<skill>.yaml`). Find scenarios with `result: FAIL` or low `pass_at_k`. This is the measurable gap.
21
+
22
+ 4. **`plan-work`** — Write a minimal change proposal targeting the failing scenarios. Include verify commands.
23
+
24
+ 5. **Edit** via `craft-skill` / direct SKILL.md edit; run `bash scripts/sync-skills.sh`.
25
+
26
+ 6. **Re-run benchmark** — `run-benchmark <skill>`. Compare new `pass_at_k` against baseline.
27
+ - **IMPROVED or STABLE** → advance to step 6.
28
+ - **REGRESSION** (`new pass_at_k < baseline`) → revert the change and loop back to step 3.
29
+
30
+ 7. **Record decision** — Write `specs/adr/NNNN-evolve-<skill>.md` with before/after `pass_at_k` scores. Update `session-state`.
31
+
32
+ ## Verify
33
+
34
+ → verify: `test -d specs/benchmarks && test -f skills/run-benchmark/SKILL.md`
35
+
36
+ See [REFERENCE.md](REFERENCE.md) for ADR template.
37
+
38
+
39
+ <!-- story: e31s07 -->
40
+
41
+ ---
42
+
43
+ # Evolve Skill — ADR snippet
44
+
45
+ ```markdown
46
+ ## ADR-XXXX: Evolve &lt;skill-name&gt;
47
+
48
+ **Status:** Accepted
49
+ **Benchmark:** before X% / after Y%
50
+ **Change:** one-sentence summary
51
+ **Evidence:** path/to/benchmark-report.md
52
+ ```
53
+
54
+ Benchmark repo: `bigpowers-benchmark` — resolve the local clone on this machine; clone it from wherever your fork lives if absent. Never assume a hard-coded absolute path or a specific owner.
@@ -0,0 +1,60 @@
1
+ ---
2
+ name: execute-plan
3
+ description: "Batch-execute tasks from the active epic capsule sequentially, with a human checkpoint after each step. Use when user has an approved plan and wants step-by-step oversight."
4
+ ---
5
+
6
+ # Execute Plan
7
+
8
+ Execute tasks from the **active epic** (`specs/epics/eNN-slug/epic.yaml` story `tasks[]`) one at a time, showing evidence after each step before proceeding.
9
+
10
+ > **HARD GATE** — Do NOT proceed if on `main` or `master`. Run `kickoff-branch` first.
11
+ >
12
+ > **HARD GATE** — Active epic must exist with runnable `verify` on each task. If missing, run `plan-release` then `plan-work` or `build-epic`.
13
+
14
+ ## Process
15
+
16
+ ### 1. Read the plan
17
+
18
+ Read `specs/state.yaml` (`active_epic`, `active_story`) and the matching `specs/epics/*/epic.yaml`. Parse `depends-on` in task descriptions for execution waves.
19
+
20
+ > **CONTEXT ISOLATION** — Spawn each skill with a **fresh context window**. Pass decisions only through `specs/state.yaml` `handoff` — never rely on prior chat history.
21
+
22
+ Confirm with the user: step count, skip/reorder, stop-after step.
23
+
24
+ ### 2. Execute step by step
25
+
26
+ For each task in the active story:
27
+
28
+ **a. Announce** — task `desc` and `verify` command.
29
+
30
+ **b. Execute** — code or `delegate-task` / `dispatch-agents` for waves.
31
+
32
+ **c. Run verify** — must be green before advancing.
33
+
34
+ **d. Log** — non-obvious decisions in `specs/state.yaml` under `decisions[]` or `handoff` block.
35
+
36
+ **e. Checkpoint** — ask to proceed unless autonomous mode requested.
37
+
38
+ **f. Story UAT** — after last task, run manual verification script from story notes or `verify-work`.
39
+
40
+ On verify failure: fix and re-run; never advance on red.
41
+
42
+ Update `specs/execution-status.yaml` when a story/epic completes (`bash scripts/sync-status-from-epics.sh` or direct edit).
43
+
44
+ ### 3. Blockers
45
+
46
+ Report blocker; ask skip/adapt/stop; update epic capsule if plan changes.
47
+
48
+ ### 4. Final report
49
+
50
+ Suggest: `verify-work` → `run-evals` → `audit-code` → `simulate-agents` → `commit-message` → `release-branch`
51
+
52
+ ## Rules
53
+
54
+ - **Loop until behavioral correctness is verified**: if a verify command passes but the observed behavior is still wrong, return to step 1 and run the execution cycle again.
55
+
56
+
57
+
58
+ <!-- story: e02s03 -->
59
+ <!-- story: e05s02 -->
60
+ <!-- story: e08s01 -->
@@ -0,0 +1,131 @@
1
+ ---
2
+ name: extract-design
3
+ description: "Extract a Google DESIGN.md file from an HTML prototype (claude.ai/design or any styled page) using Puppeteer, producing machine-readable tokens and AI-generated prose. Use when the user has an HTML prototype and wants a DESIGN.md to anchor their project's visual identity, or when seed-conventions has just scaffolded a new project."
4
+ ---
5
+
6
+ # Extract DESIGN.md from HTML
7
+
8
+ > **HARD GATE** — Do NOT write DESIGN.md without Puppeteer dual-pass extraction. Tokens from static HTML (Cheerio, regex, string scanning) are invalid — they miss cascade, custom properties, and Tailwind resolution.
9
+ >
10
+ > **HARD GATE** — Do NOT claim certainty where evidence is thin. Low-confidence color roles, component classifications, and prose assertions MUST be flagged with `<!-- AGENT NOTE: uncertain — validate during grill-me. Evidence: [what was observed] -->`.
11
+ >
12
+ > **HARD GATE** — Do NOT ship DESIGN.md without running `npx @google/design.md lint`. Unvalidated output is unverified output. If lint is unavailable (offline), flag prominently in terminal and in DESIGN.md prose.
13
+
14
+ ## Quick Start
15
+
16
+ ```bash
17
+ # First run — extract from HTML prototype
18
+ node extract-design/scripts/extract.js --source ./prototype.html
19
+
20
+ # From a published URL
21
+ node extract-design/scripts/extract.js --source https://my-prototype.example.com
22
+
23
+ # With a custom name
24
+ node extract-design/scripts/extract.js --source ./proto.html --name "My Design System"
25
+
26
+ # Update — re-extract from new HTML, diff against existing
27
+ node extract-design/scripts/extract.js --source ./proto-v2.html
28
+
29
+ # Lint-only — validate existing DESIGN.md without re-extraction
30
+ node extract-design/scripts/extract.js --lint-only
31
+ ```
32
+
33
+ ## Flow
34
+
35
+ 1. **Launch Puppeteer** — dual-pass (light + dark) with retry + timeout. CI flags: `--headless=new --no-sandbox --disable-gpu --disable-dbus --use-gl=angle --use-angle=swiftshader`.
36
+ 2. **Collect styles** — `page.evaluate()` collects computed styles from every element. Returns raw JSON to Node.js. Browser = sensor; Node = brain.
37
+ 3. **Classify tokens** — modular pipeline: colors (Material 3 roles), typography (scale detection), spacing (tolerance GCD), rounded (clustering), components (visual signature + pseudo-state variants).
38
+ 4. **Generate prose** — AI heuristics produce all 8 DESIGN.md sections. Overview and Do's/Don'ts flagged with agent notes.
39
+ 5. **Write + validate** — serialize to `specs/tech-architecture/DESIGN_LATEST.md`, run `npx @google/design.md lint`, report to terminal.
40
+ 6. **Handoff** — writes `handoff.next_skill: grill-me` to `specs/state.yaml` with uncertain decisions context.
41
+
42
+ ## Inputs
43
+
44
+ | Parameter | Required | Description |
45
+ |-----------|----------|-------------|
46
+ | `--source <file\|url>` | First run: yes. Update: optional | HTML prototype path or URL |
47
+ | `--name <string>` | No | Design system name (defaults to `<title>` or directory name) |
48
+ | `--lint-only` | No | Validate existing DESIGN.md without re-extraction |
49
+
50
+ ## Output
51
+
52
+ - `specs/tech-architecture/DESIGN_LATEST.md` — replaces `DESIGN_PLAN_LATEST.md` as the canonical design artifact
53
+ - Terminal summary: token counts, component count, lint result, uncertain decisions
54
+ - Structured JSON log to stderr: extraction events, timing, counts
55
+ - `specs/state.yaml` → `handoff.next_skill: grill-me` with context
56
+
57
+ ## Error Tiers
58
+
59
+ | Tier | Condition | Response |
60
+ |------|-----------|----------|
61
+ | Fatal | No Chrome, page load timeout after retries | Exit non-zero, suggest fixes |
62
+ | Degraded | Zero colors, zero typography, SPA shell | Write DESIGN.md with degradation warning |
63
+ | Warned | Lint errors, uncertain decisions | Write DESIGN.md, flag in terminal, hand off to grill-me |
64
+
65
+ ## Dependencies
66
+
67
+ - **Puppeteer** (Chrome binary) — wrapped behind `BrowserExtractor` interface for testability
68
+ - **`@google/design.md`** (soft, via `npx`) — wrapped behind `DesignValidator` interface. Warns and skips if offline.
69
+
70
+ ## verify
71
+
72
+ ```bash
73
+ node extract-design/tests/test-extraction.js
74
+ ```
75
+
76
+ See [REFERENCE.md](REFERENCE.md) for extraction algorithms and heuristics.
77
+
78
+ ---
79
+
80
+ # Extract Design — Reference
81
+
82
+ ## Extraction Algorithms
83
+
84
+ ### Color Classification
85
+ 1. Collect unique computed `background-color`, `color`, `border-color` from every DOM element.
86
+ 2. Count frequency and context (text vs. bg vs. border vs. button).
87
+ 3. Classify using Material 3 roles: surface = largest-area bg, on-surface = most-used text, tertiary = highest-saturation on CTAs, error = reddish.
88
+ 4. Surface container levels: luminance-ordered. Hard-cap at 3 unless data supports 5.
89
+ 5. Low-confidence → `<!-- AGENT NOTE -->` in Colors prose.
90
+
91
+ ### Typography Classification
92
+ 1. Collect unique (fontFamily, fontSize, fontWeight, lineHeight, letterSpacing) tuples.
93
+ 2. Cluster by fontSize (±2px) → type scale.
94
+ 3. Detect heading hierarchy from HTML tag + computed size.
95
+ 4. Name levels: display-lg, headline-lg/md/sm, title-lg, body-lg/md/sm, label-lg/md/sm.
96
+ 5. Parse `<link>` and `@font-face`; warn if computed font differs from declared.
97
+
98
+ ### Spacing Classification
99
+ 1. Collect unique padding, margin, gap values. Filter: ignore values < 3 occurrences.
100
+ 2. Compute tolerance-based GCD (0.5px tolerance).
101
+ 3. Declare base unit. Detect half-step if gcd/2 values present ≥3 times.
102
+ 4. Map: unit×1 → sm, ×2 → md, ×4 → lg, ×8 → xl.
103
+
104
+ ### Rounded Classification
105
+ 1. Collect unique border-radius values. Cluster (1px tolerance).
106
+ 2. Name: none (0), sm (smallest), md (median), lg (large), xl (largest), full (9999px).
107
+
108
+ ### Component Detection
109
+ - Button: w<300px, h<64px, bg+radius set, short text. cursor:pointer is bonus.
110
+ - Card: bg+radius+padding set, larger area.
111
+ - Input: `<input>` or `<textarea>` tag.
112
+ - Pseudo-state variants: force :hover, :active, :focus for high-confidence components.
113
+
114
+ ### Prose Generation
115
+ Generates all 8 DESIGN.md sections. Overview and Do's/Don'ts flagged with `<!-- AGENT NOTE: Generated from visual analysis. Grill-me should validate. -->`.
116
+
117
+ ## Material 3 Token Conventions
118
+ Colors: primary, on-primary, secondary, tertiary, error, surface, on-surface, surface-container-*, outline, background, on-background.
119
+ Typography: display-lg/md/sm, headline-lg/md/sm, title-lg/md/sm, body-lg/md/sm, label-lg/md/sm.
120
+ Rounded: none, xs, sm, md, lg, xl, full.
121
+
122
+ ## CI Compatibility
123
+ Chrome flags: `--headless=new --no-sandbox --disable-gpu --disable-dbus --use-gl=angle --use-angle=swiftshader`
124
+
125
+ ## Defensive Code
126
+ Retry with backoff (3 attempts, 1s/2s/4s), Timeout (30s page load, 10s pseudo-state), Graceful degradation (Tier 2 on empty extraction).
127
+
128
+ ## Known Risks
129
+ - DESIGN.md spec is alpha. Skill pins to current spec.
130
+ - Puppeteer is heavy (~300MB Chrome). Document requirement clearly.
131
+ - Prose quality depends on AI heuristics. grill-me is the validation gate.
@@ -0,0 +1,190 @@
1
+ ---
2
+ name: find-way
3
+ description: "Plan a large effort as a shared map of decision tickets on an issue tracker, resolving them one at a time until the way is clear. Use when an idea is too big for one session, needs structured exploration before implementation, or requires mapping decisions before building."
4
+ ---
5
+
6
+ # Find Way
7
+
8
+ ## Concept
9
+
10
+ A large effort arrives — too big for one session, wrapped in fog. **Find-way** charts the way as a **shared map** on the repo's issue tracker, then works **decision tickets** — questions whose resolution is a decision, not build slices — one at a time until the route is clear.
11
+
12
+ **Plan, don't do.** Each ticket resolves a decision. The map is done when the way is clear — nothing left to decide before someone executes.
13
+
14
+ **Refer by name.** Every map and ticket is an issue with a title. Always use the name, never bare ids or numbers.
15
+
16
+ ## The Map
17
+
18
+ A single issue labelled `wayfinder:map` — the canonical artifact. Child issues are its tickets.
19
+
20
+ ```markdown
21
+ ## Destination
22
+ <what reaching the end looks like — one or two lines>
23
+
24
+ ## Notes
25
+ <domain, skills to consult, standing preferences>
26
+
27
+ ## Decisions so far
28
+ - [closed ticket title](link) — one-line gist
29
+
30
+ ## Not yet specified
31
+ <in-scope fog you can't ticket yet>
32
+
33
+ ## Out of scope
34
+ <work ruled beyond the destination>
35
+ ```
36
+
37
+ ## Ticket Types
38
+
39
+ | Type | Label | Mode | Purpose |
40
+ |------|-------|------|---------|
41
+ | Research | `wayfinder:research` | AFK | Surface facts from docs/APIs |
42
+ | Prototype | `wayfinder:prototype` | HITL | Cheap artifact to react to |
43
+ | Grilling | `wayfinder:grilling` | HITL | One-question-at-a-time dialogue |
44
+ | Task | `wayfinder:task` | Either | Manual work unblocking a decision |
45
+
46
+ **HITL** = human in the loop. **AFK** = agent alone.
47
+
48
+ ## Two Modes
49
+
50
+ ### Chart the Map
51
+
52
+ User invokes with a loose idea.
53
+
54
+ 1. **Name the destination** — grill to pin down what this map finds its way to
55
+ 2. **Map the frontier** — breadth-first: surface open decisions and first steps. If no fog emerges, the effort fits one session — skip the map
56
+ 3. **Create the map** issue (label `wayfinder:map`)
57
+ 4. **Create tickets** as child issues, then wire blocking edges in a second pass
58
+ 5. **Fire research subagents** for each `research` ticket in parallel
59
+ 6. Stop — charting resolves nothing
60
+
61
+ ### Work Through the Map
62
+
63
+ User invokes with a map (URL/number). Ticket optional — without one, pick the next frontier ticket.
64
+
65
+ 1. Load the map (low-res view)
66
+ 2. **Choose & claim** — assign ticket before any work
67
+ 3. **Resolve** — zoom into related/closed tickets as needed
68
+ 4. **Record** — post resolution comment, close issue, append to Decisions-so-far
69
+ 5. **Graduate fog** — create new tickets from newly-specifiable fog, clear from Not-yet-specified
70
+ 6. **Rule out of scope** if resolution reveals something past the destination
71
+
72
+ **Never resolve more than one ticket per session** (except research).
73
+
74
+ ## Fog of War
75
+
76
+ Beyond live tickets lies the **fog** — decisions you can tell are coming but can't pin down yet. The **Not yet specified** section holds this dim view.
77
+
78
+ **Fog or ticket?** Test: can you state the question precisely now?
79
+
80
+ - **Ticket** when the question is sharp (even if blocked)
81
+ - **Not yet specified** when you can't phrase it sharply yet
82
+
83
+ ## Out of Scope
84
+
85
+ Work beyond the destination. Ruling something out is a scoping act, not a route step. Never graduates — returns only if destination is redrawn.
86
+
87
+ If an existing ticket sits past the destination, close it and note in Out of scope.
88
+
89
+ ## Blocking & Frontier
90
+
91
+ - **Blocking**: tracker's native dependency relationship
92
+ - **Unblocked**: every blocker is closed
93
+ - **Frontier**: open, unblocked, unclaimed children — the edge of the known
94
+
95
+ ## Detailed Reference
96
+
97
+ See [REFERENCE.md](REFERENCE.md) for ticket anatomy, resolution protocol, and examples.
98
+
99
+ ---
100
+
101
+ # Find-Way Reference
102
+
103
+ ## Ticket Anatomy
104
+
105
+ Each ticket holds one question, sized to one 100K token agent session:
106
+
107
+ ```markdown
108
+ ## Question
109
+
110
+ <the decision or investigation this ticket resolves>
111
+ ```
112
+
113
+ **Labels:** `wayfinder:research`, `wayfinder:prototype`, `wayfinder:grilling`, or `wayfinder:task`
114
+
115
+ **Claim:** Assign to yourself before any work — claim blocks concurrent sessions.
116
+
117
+ **Blocking:** Use tracker's native dependency relationship so the frontier renders visually.
118
+
119
+ **Resolution:** Post answer as a comment, close the issue, append to map's Decisions-so-far.
120
+
121
+ ## Resolution Protocol
122
+
123
+ 1. **Load the map** — read low-res view, not every ticket body
124
+ 2. **Choose & claim** — assign ticket to yourself (or take first frontier ticket if not named)
125
+ 3. **Resolve** — zoom into related/closed tickets as needed; invoke skills the Notes block names
126
+ 4. **Record** — post resolution comment with the answer, close the issue
127
+ 5. **Update map** — append to Decisions-so-far with one-line gist + link
128
+ 6. **Graduate fog** — create new tickets from newly-specifiable fog; clear from Not-yet-specified
129
+ 7. **Rule out of scope** if resolution reveals something past the destination
130
+
131
+ ## Ticket Types in Detail
132
+
133
+ ### Research (AFK)
134
+ Surfacing facts from docs, APIs, or knowledge bases that a decision waits on.
135
+ - Resolved by a `/research` subagent
136
+ - Use when knowledge outside the working directory is required
137
+ - **Label:** `wayfinder:research`
138
+
139
+ ### Prototype (HITL)
140
+ Raise fidelity by building cheap, rough, concrete artifact to react to — outline, stub, UI/logic code.
141
+ - Use the `/prototype` skill
142
+ - Links the prototype as an asset
143
+ - Use when "how should it look" or "how should it behave" is key
144
+ - **Label:** `wayfinder:prototype`
145
+
146
+ ### Grilling (HITL)
147
+ Conversation via `/grilling` and `/domain-modeling` skills, one question at a time.
148
+ - The default case for clarifying decisions
149
+ - **Label:** `wayfinder:grilling`
150
+
151
+ ### Task (HITL or AFK)
152
+ Manual work unblocking a decision — signing up for service, provisioning access, moving data.
153
+ - This is the **only** type that does rather than decides
154
+ - Earns its place by unblocking a decision, not by delivering the destination
155
+ - Agent drives AFK tasks alone; HITL tasks get precise checklist
156
+ - **Label:** `wayfinder:task`
157
+
158
+ ## Fog-to-Ticket Graduation
159
+
160
+ When resolving a ticket clears fog, graduate the newly-specifiable bits into fresh tickets:
161
+
162
+ 1. **Identify the fog** in Not-yet-specified that the resolution illuminates
163
+ 2. **Create new tickets** with crisp question statements
164
+ 3. **Wire blocking edges** if the new tickets depend on each other or existing ones
165
+ 4. **Clear from fog** — remove the graduated patch from Not-yet-specified so it lives only as its ticket
166
+
167
+ ## Out-of-Scope Close Protocol
168
+
169
+ If a ticket turns out to sit past the destination:
170
+
171
+ 1. **Close the ticket** — mark it resolved or won't-fix
172
+ 2. **Add one line to Out of scope** — gist + why it's out of scope, linking the closed ticket
173
+ 3. **Never append to Decisions so far** — scope boundaries aren't steps on the route
174
+
175
+ ## Map State Transitions
176
+
177
+ | State | Meaning | Action |
178
+ |-------|---------|--------|
179
+ | **Open, unblocked, unclaimed** | Frontier — ready to take | Claim and resolve |
180
+ | **Open, blocked** | Waiting on something | Wait for blockers to close |
181
+ | **Open, claimed** | Concurrent session working | Skip for now |
182
+ | **Closed** | Decided — lives in Decisions so far | Reference, don't re-open |
183
+
184
+ ## Concurrency
185
+
186
+ Users may run unblocked tickets in parallel, so expect the tracker to be edited concurrently. Always:
187
+
188
+ - Refresh the map before picking a ticket
189
+ - Claim immediately before starting work
190
+ - Never assume state hasn't changed since last read
@@ -0,0 +1,66 @@
1
+ ---
2
+ name: fix-bug
3
+ description: "Bug fix orchestrator — active_flow fix_bug; reads specs/bugs/BUG-*.md; chains investigate-bug, develop-tdd, validate-fix. Use when user reports a defect."
4
+ ---
5
+
6
+ # Fix Bug
7
+
8
+ **Boundary**: Orchestrator flow — chains `investigate-bug` (entry point + RCA via `diagnose-root`) → `develop-tdd` → `validate-fix`. Does not implement RCA or write bug files directly.
9
+
10
+ Orchestrates **fix_bug** flow without mixing epic build state.
11
+
12
+ > **HARD GATE** — Set `specs/state.yaml` `active_flow: fix_bug` and `bug_cycle.current_step: 1` before starting.
13
+
14
+ ## Discovered gate failures (e51s04)
15
+
16
+ Valid entry **without a user-reported bug** when:
17
+
18
+ - **Preflight** or **CI** is red at kickoff or verify-work
19
+ - **Golden suite** or project baseline is red (`bash scripts/run-verification-gates.sh` or equivalent)
20
+ - A reproducible gate failure during unrelated epic work exceeds quick-fix guardrails
21
+
22
+ Create `specs/bugs/BUG-*.md` via `investigate-bug` (or inline in fix-bug step 1) describing the gate failure, then run the standard fix_bug chain.
23
+
24
+ ## Five steps (`bug_cycle` in state.yaml)
25
+
26
+ | Step | Skill / action |
27
+ |------|----------------|
28
+ | 1 | `investigate-bug` — create BUG-*.md with RCA |
29
+ | 2 | `diagnose-root` — 4-phase root cause analysis |
30
+ | 3 | `develop-tdd` — red-green against bug file verify steps |
31
+ | 4 | `validate-fix` — re-run failing test, full suite, lint |
32
+ | 5 | `release-branch` — PR or solo land the fix |
33
+
34
+ ### Checkpoint / resume
35
+
36
+ Track progress via `specs/state.yaml` `bug_cycle`:
37
+ - `bug_cycle.current_step`: current step (1–5)
38
+ - `bug_cycle.completed_steps`: completed step numbers
39
+ - `handoff.next_skill`: skill for the current step
40
+ - On resume, read `bug_cycle.current_step` and continue from there
41
+
42
+ ## Process
43
+
44
+ 1. **Step 1 — investigate-bug:** If no `specs/bugs/BUG-*.md`, run `investigate-bug` first — it handles history check, RCA (via `diagnose-root`), fix approach, and writes the bug file. Increment `bug_cycle.current_step` to 2 on completion.
45
+ 2. **Step 2 — diagnose-root:** Run 4-phase RCA (reproduce → isolate → hypothesize → verify). Record findings in the bug file. Increment to step 3.
46
+ 3. **Step 3 — develop-tdd:** `develop-tdd` against the bug file's verify steps. Increment to step 4 on all-green.
47
+ 4. **Step 4 — validate-fix:** `validate-fix` — re-run failing test, full suite, typecheck, lint. Increment to step 5.
48
+ 5. **Step 5 — release-branch:** Land the fix via `release-branch`. Clear `bug_cycle` and `active_flow` when done.
49
+
50
+ ## Bug file SoT
51
+
52
+ One markdown file per bug with frontmatter:
53
+
54
+ ```yaml
55
+ ---
56
+ bug_id: BUG-001
57
+ status: open
58
+ severity: high
59
+ scope: api
60
+ title: Short title
61
+ ---
62
+ ```
63
+
64
+ ## Verify
65
+
66
+ → verify: `test -d specs/bugs && test -f scripts/run-skill-verify.sh`