bigpowers 2.87.4 → 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 (258) 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 +7 -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/test-install-helpers.js +31 -0
@@ -0,0 +1,110 @@
1
+ ---
2
+ description: "One-time bootstrap that introduces the bigpowers skills system, the PMBOK lifecycle arc, and tells you which skill to call first for your situation. Use when starting with bigpowers for the first time, when user asks \"where do I start?\", or when the skills system needs to be explained."
3
+ alwaysApply: false
4
+ ---
5
+
6
+ # Using bigpowers
7
+ > **HARD GATE** — **HARD GATE** — This skill is the entry point. Do NOT skip it when onboarding new users or starting a new session. It establishes the bigpowers methodology, lifecycle phases, and conventions.
8
+
9
+
10
+ Welcome to **bigpowers** — a lifecycle of agent skills for production-ready, TDD-driven software by solo developers. The live catalog and its count are generated in [`SKILL-INDEX.md`](../../SKILL-INDEX.md); never hardcode the number here.
11
+
12
+ ## Install
13
+
14
+ ```bash
15
+ npx bigpowers setup # one-shot setup
16
+ npm install -g bigpowers # global install
17
+ bigpowers setup # sync skills + link to your tools
18
+ ```
19
+
20
+ From source: `git clone` → `bash scripts/install.sh`. Package: [bigpowers on npm](https://www.npmjs.com/package/bigpowers).
21
+
22
+ **Reach tools:** **Cline** — native AGENTS.md reader (no extension). **Aider** — opt-in `.aider.conf.yml` with `read: AGENTS.md` ([Aider-AI/aider](https://github.com/Aider-AI/aider)). **Codex CLI** — optional `.codex/config.toml` via seed-conventions; global `~/.codex/AGENTS.md` from install.sh.
23
+
24
+ ## What bigpowers is
25
+
26
+ A curated set of skills organized around the PMBOK developer lifecycle. Each skill does one thing. Skills reference each other by name only — low coupling, high cohesion. All written output goes to `specs/` at your project root.
27
+
28
+ ## The lifecycle at a glance
29
+
30
+ See orchestrate-project for the canonical 6-phase lifecycle.
31
+
32
+ ```
33
+ BOOTSTRAP using-bigpowers (this skill, first time only)
34
+ ↓
35
+ DISCOVER survey-context → research-first → elaborate-spec
36
+ ↓
37
+ DESIGN model-domain / define-language / grill-me / deepen-architecture / design-interface
38
+ ↓
39
+ PLAN scope-work → slice-tasks → plan-work / plan-refactor
40
+ ↓
41
+ INITIATE kickoff-branch → guard-git / hook-commits / seed-conventions
42
+ ↓
43
+ SPIKE? spike-prototype → (feeds back to plan-work)
44
+ ↓
45
+ EXECUTE develop-tdd + enforce-first ←→ delegate-task / dispatch-agents / execute-plan
46
+ ↓
47
+ VERIFY run-evals → verify-work
48
+ ↓
49
+ HARDEN wire-observability (any phase)
50
+ ↓
51
+ BUG? investigate-bug → diagnose-root → validate-fix
52
+ ↓
53
+ REVIEW audit-code → request-review → respond-review
54
+ ↓
55
+ INTEGRATE commit-message → release-branch
56
+ ↓
57
+ SUSTAIN inspect-quality / organize-workspace (ongoing)
58
+
59
+ UTILITY terse-mode / craft-skill / edit-document (any phase)
60
+ ```
61
+
62
+ ## Where to start
63
+
64
+ | Your situation | First skill to call |
65
+ |---------------|---------------------|
66
+ | Greenfield project, nothing set up | `seed-conventions` |
67
+ | Existing project, new task | `survey-context` |
68
+ | Vague idea that needs shaping | `elaborate-spec` |
69
+ | Plan exists, ready to implement | `kickoff-branch` → `develop-tdd` |
70
+ | Bug to fix | `investigate-bug` |
71
+ | Code ready for review | `audit-code` |
72
+ | Shipping a feature | `commit-message` → `release-branch` |
73
+ | Solo dev, PRs feel heavy | Enable `profiles/solo-git.md` → `specs/WORKFLOW-solo-git.md` → land via `scripts/land-branch.sh` |
74
+
75
+ ## Solo Git profile
76
+
77
+ If you work alone and do not want PR ceremony every task:
78
+
79
+ 1. Read [profiles/solo-git.md](../../profiles/solo-git.md).
80
+ 2. Register with `compose-workflow` → `specs/WORKFLOW-solo-git.md`.
81
+ 3. Ship with `release-branch` in **solo-local** mode (`land-branch.sh`), not `gh pr create`.
82
+
83
+ You still use worktrees, protected `main`, and verification gates — only the integrate step changes.
84
+
85
+ ## YAML cockpit and dashboard
86
+
87
+ Operational source of truth:
88
+
89
+ - `specs/state.yaml` — session, active epic/story, handoff
90
+ - `specs/release-plan.yaml` — release index and epic list
91
+ - `specs/epics/eNN-*.yaml` — stories and tasks with `verify`
92
+ - `specs/execution-status.yaml` — done/pending per story
93
+
94
+ Start the HTTP dashboard with `visual-dashboard` → `GET /api/status?projectDir=<abs>` and `GET /cockpit.html` for a read-only PM view.
95
+
96
+ ## Key conventions
97
+
98
+ - **specs/ is your memory.** All domain docs, plans, and investigation outputs go in `specs/` at your project root.
99
+ - **Integrate:** team default is `gh pr` (team-pr); solo profile uses `land-branch.sh`. Never create GitHub issues from skills — use local Markdown files instead.
100
+ - **One skill, one thing.** If you're unsure which skill to call, call `survey-context` — it reads your current state and recommends the next step.
101
+ - **verify: every step.** Every epic task must have `verify: <runnable command>`. Evidence over claims.
102
+ - **The full catalog is auto-generated.** See `SKILL-INDEX.md`; find skills with `search-skills`.
103
+
104
+ ## After this
105
+
106
+ Call `survey-context` to read your project's current state and get a personalized recommendation for where to go next.
107
+
108
+
109
+
110
+ <!-- story: e03s02 -->
@@ -0,0 +1,285 @@
1
+ ---
2
+ description: "Assert data shape consistency across system boundaries — live API responses against JSON Schema, key-set comparison across layers, data shape validation for migrations and exports. Catches silent data corruption before deploy."
3
+ alwaysApply: false
4
+ ---
5
+
6
+ # Validate Contracts
7
+
8
+ > **HARD GATE** — Do NOT deploy or migrate data without running `validate-contracts` first. Silent data divergence between system boundaries causes the hardest-to-debug production bugs.
9
+ >
10
+ > **HARD GATE** — Contract files MUST be version-controlled alongside code. Outdated contracts are worse than no contracts. If a contract hasn't been reviewed in 30 days, flag it as stale.
11
+
12
+ Validate that data structures stay in sync across system boundaries — front-end vs back-end, API responses vs expected schemas, config files vs code assumptions, migration output vs target shape.
13
+
14
+ ## Contract types
15
+
16
+ | Mode | What it catches | When to use |
17
+ |------|----------------|-------------|
18
+ | **Schema** | API response shape mismatches | Before every deploy, after API changes |
19
+ | **Key-set** | Missing/unexpected keys across two data sources | Translation files, configs, enum definitions |
20
+ | **Shape** | Column type or format violations | After migrations, before consuming exports |
21
+
22
+ ## Contract file convention
23
+
24
+ All contract files live in `specs/contracts/` as YAML. See [REFERENCE.md](REFERENCE.md) for extended examples.
25
+
26
+ ### Key-set example
27
+
28
+ ```yaml
29
+ # specs/contracts/i18n-keys.yaml
30
+ sources:
31
+ reference: src/locales/en.json
32
+ target: src/messages/en.json
33
+ mode: subset
34
+ ```
35
+
36
+ ## Process
37
+
38
+ ### 1. Define contract
39
+
40
+ Create a YAML file in `specs/contracts/` following the schema for the mode.
41
+
42
+ ### 2. Run validation
43
+
44
+ ```bash
45
+ bash scripts/validate-contracts.sh specs/contracts/<contract>.yaml
46
+ ```
47
+
48
+ The runner auto-detects key-set contracts (`sources:` block). Schema and shape modes are documented in REFERENCE.md for consumer projects.
49
+
50
+ ### 3. Read the report
51
+
52
+ ```
53
+ PASS: key-set contract
54
+ # or
55
+ FAIL: key-set — N keys in reference missing from target
56
+ ```
57
+
58
+ JSON Lines output for CI is planned for schema/shape modes; key-set failures exit non-zero.
59
+
60
+ ### 4. Fix divergence
61
+
62
+ - **Missing keys** → add to target source
63
+ - **Type mismatches** → update schema or fix producer
64
+ - **Shape violations** → fix migration or consumer
65
+
66
+ ### 5. Re-validate
67
+
68
+ ```bash
69
+ bash scripts/validate-contracts.sh specs/contracts/<contract>.yaml
70
+ ```
71
+
72
+ ## Verify arc
73
+
74
+ Part of **★ VERIFY ★**: `verify-work` → `validate-contracts` → `smoke-test` → `run-evals` → `audit-code`
75
+
76
+ ## Verify
77
+
78
+ → verify: `test -x scripts/validate-contracts.sh && bash scripts/validate-contracts.sh --self-test && grep -q 'validate-contracts.sh' skills/validate-contracts/SKILL.md && echo OK`
79
+
80
+ ---
81
+
82
+ # Validate Contracts — Reference
83
+
84
+ ## Navigation
85
+
86
+ | Lines | Section |
87
+ |-------|---------|
88
+ | 1 | Title |
89
+ | 3–23 | Navigation |
90
+ | 24–32 | Integration |
91
+ | 33–44 | Configuration |
92
+ | 45–54 | Verification |
93
+ | 55–71 | Reference block 1 |
94
+ | 72–92 | Reference block 2 |
95
+ | 93–104 | Example 1 |
96
+ | 105–121 | Example 2 |
97
+ | 122–133 | Example 3 |
98
+ | 134–144 | Example 4 |
99
+ | 145–165 | Example 5 |
100
+ | 166–176 | Example 6 |
101
+ | 177–185 | Integration |
102
+ | 186–197 | Configuration |
103
+ | 198–204 | Verification |
104
+
105
+ ## Integration
106
+
107
+ - **Pre-deploy gate:** The `deploy` skill runs `validate-contracts` before smoke-test.
108
+ - **CI pipeline:** JSON Lines output is CI-friendly; pipe to `jq` for assertions.
109
+ - **Pre-migration:** Run `validate-contracts --shape` before consuming migration output.
110
+
111
+
112
+ ---
113
+
114
+ ## Configuration
115
+
116
+ | Variable | Default | Description |
117
+ |----------|---------|-------------|
118
+ | `CONTRACTS_DIR` | `specs/contracts/` | Directory containing contract YAML files |
119
+ | `VALIDATE_ALL` | `false` | If true, run all contracts in the directory |
120
+ | `STRICT_MODE` | `false` | Treat warnings as failures |
121
+ | `OUTPUT_FORMAT` | `text` | `text` or `json` |
122
+
123
+
124
+ ---
125
+
126
+ ## Verification
127
+
128
+ → verify: `test -f validate-contracts/SKILL.md && grep -q 'name: validate-contracts' validate-contracts/SKILL.md && echo OK`
129
+ → verify: `grep -qi 'specs/contracts\|JSON Schema\|key.set\|data.shape' validate-contracts/SKILL.md && echo OK`
130
+ → verify: `grep -ci 'divergence\|missing key\|type mismatch\|diff\|conforms\|column' validate-contracts/SKILL.md | awk '{if($1>=3) print "OK"; else print "FAIL"}'`
131
+ → verify: `grep -ci 'JSON Lines\|machine.parse\|CI\|deploy.*gate\|pre.deploy' validate-contracts/SKILL.md | awk '{if($1>=2) print "OK"; else print "FAIL"}'`
132
+ → verify: `grep -q 'validate-contracts' SKILL-INDEX.md && echo OK`
133
+
134
+ ---
135
+
136
+ ## Reference block 1
137
+
138
+ ```yaml
139
+ # specs/contracts/users.schema.yaml
140
+ endpoint: /api/users
141
+ method: GET
142
+ schema:
143
+ type: object
144
+ required: [id, name, email]
145
+ properties:
146
+ id: { type: number }
147
+ name: { type: string }
148
+ email: { type: string, format: email }
149
+ ```
150
+
151
+ ---
152
+
153
+ ## Reference block 2
154
+
155
+ ```yaml
156
+ # specs/contracts/migration-output.yaml
157
+ file: data/users-export.json
158
+ format: json
159
+ fields:
160
+ - name: user_id
161
+ type: number
162
+ required: true
163
+ - name: full_name
164
+ type: string
165
+ required: true
166
+ - name: created_at
167
+ type: string
168
+ format: date-time
169
+ required: false
170
+ ```
171
+
172
+ ---
173
+
174
+ ## Example 1
175
+
176
+ ```
177
+ specs/contracts/
178
+ ├── users.schema.yaml # API response schema
179
+ ├── i18n-keys.yaml # Key-set comparison
180
+ ├── migration-output.yaml # Data shape contract
181
+ └── README.md # Local conventions
182
+ ```
183
+
184
+ ---
185
+
186
+ ## Example 2
187
+
188
+ ```yaml
189
+ # specs/contracts/users.schema.yaml
190
+ endpoint: /api/users
191
+ method: GET
192
+ schema:
193
+ type: object
194
+ required: [id, name, email]
195
+ properties:
196
+ id: { type: number }
197
+ name: { type: string }
198
+ email: { type: string, format: email }
199
+ ```
200
+
201
+ ---
202
+
203
+ ## Example 3
204
+
205
+ ```yaml
206
+ # specs/contracts/i18n-keys.yaml
207
+ sources:
208
+ reference: src/frontend/locales/en.json
209
+ target: src/backend/messages/en.json
210
+ mode: subset # all target keys must exist in reference
211
+ ```
212
+
213
+ ---
214
+
215
+ ## Example 4
216
+
217
+ ```bash
218
+ validate-contracts --key-set specs/contracts/i18n-keys.yaml
219
+ # → missing: 2 keys in reference not found in target: ['settings.privacy', 'help.faq']
220
+ # → added: 1 key in target not in reference: ['deprecated.field']
221
+ # → exit 1 (divergence)
222
+ ```
223
+
224
+ ---
225
+
226
+ ## Example 5
227
+
228
+ ```yaml
229
+ # specs/contracts/migration-output.yaml
230
+ file: data/users-export.json
231
+ format: json
232
+ fields:
233
+ - name: user_id
234
+ type: number
235
+ required: true
236
+ - name: full_name
237
+ type: string
238
+ required: true
239
+ - name: created_at
240
+ type: string
241
+ format: date-time
242
+ required: false
243
+ ```
244
+
245
+ ---
246
+
247
+ ## Example 6
248
+
249
+ ```bash
250
+ validate-contracts --shape specs/contracts/migration-output.yaml
251
+ # → PASS: 3/3 fields validated, 5000 rows OK
252
+ # → WARN: field 'full_name' has 12 null values (0.24%)
253
+ # → FAIL: field 'user_id' has 3 rows with type string (expected number)
254
+ ```
255
+
256
+ ---
257
+
258
+ ## Integration
259
+
260
+ - **Pre-deploy gate:** The `deploy` skill runs `validate-contracts` before smoke-test.
261
+ - **CI pipeline:** JSON Lines output is CI-friendly; pipe to `jq` for assertions.
262
+ - **Pre-migration:** Run `validate-contracts --shape` before consuming migration output.
263
+
264
+
265
+ ---
266
+
267
+ ## Configuration
268
+
269
+ | Variable | Default | Description |
270
+ |----------|---------|-------------|
271
+ | `CONTRACTS_DIR` | `specs/contracts/` | Directory containing contract YAML files |
272
+ | `VALIDATE_ALL` | `false` | If true, run all contracts in the directory |
273
+ | `STRICT_MODE` | `false` | Treat warnings as failures |
274
+ | `OUTPUT_FORMAT` | `text` | `text` or `json` |
275
+
276
+
277
+ ---
278
+
279
+ ## Verification
280
+
281
+ → verify: `test -f validate-contracts/SKILL.md && grep -q 'name: validate-contracts' validate-contracts/SKILL.md && echo OK`
282
+ → verify: `grep -qi 'specs/contracts\|JSON Schema\|key.set\|data.shape' validate-contracts/SKILL.md && echo OK`
283
+ → verify: `grep -ci 'divergence\|missing key\|type mismatch\|diff\|conforms\|column' validate-contracts/SKILL.md | awk '{if($1>=3) print "OK"; else print "FAIL"}'`
284
+ → verify: `grep -ci 'JSON Lines\|machine.parse\|CI\|deploy.*gate\|pre.deploy' validate-contracts/SKILL.md | awk '{if($1>=2) print "OK"; else print "FAIL"}'`
285
+ → verify: `grep -q 'validate-contracts' SKILL-INDEX.md && echo OK`
@@ -0,0 +1,146 @@
1
+ ---
2
+ description: "Prove a fix works before declaring done — re-run the failing test, run the full suite, typecheck, lint, and harden against recurrence. Use after implementing a bug fix, when user says \"is this fixed?\", or before closing an investigation."
3
+ alwaysApply: false
4
+ ---
5
+
6
+ # Validate Fix
7
+ > **HARD GATE** — Fix must not regress. Run full test suite and manual UAT before declaring success.
8
+
9
+
10
+ Prove the fix works. "I think it works" is not evidence. Run the suite, show the output, then harden against recurrence.
11
+
12
+ > **Two-commit red/green policy (e45s08)** — Bug fixes follow the same two-commit discipline as `develop-tdd`: first commit adds/adjusts the failing test (`test(<scope>): …`), second commit applies the fix (`fix(<scope>): …`). Do not squash RED and GREEN before review.
13
+
14
+ ## Checklist
15
+
16
+ ### 1. Re-run the originally failing test
17
+
18
+ ```bash
19
+ # Run the specific test that captured the bug
20
+ <test command for the failing test>
21
+ ```
22
+
23
+ - [ ] Previously failing test now passes
24
+
25
+ ### 2. Run the full test suite
26
+
27
+ ```bash
28
+ # Run all tests — no filtering
29
+ <full test command from CLAUDE.md>
30
+ ```
31
+
32
+ - [ ] All tests pass (zero regressions)
33
+
34
+ ### 3. Type check
35
+
36
+ ```bash
37
+ <typecheck command>
38
+ ```
39
+
40
+ - [ ] No type errors introduced
41
+
42
+ ### 4. Lint
43
+
44
+ ```bash
45
+ <lint command>
46
+ ```
47
+
48
+ - [ ] No lint violations introduced
49
+
50
+ ### 5. Harden against recurrence
51
+
52
+ For every bug fixed, add at least one prevention layer:
53
+
54
+ | Mechanism | When to use |
55
+ |-----------|-------------|
56
+ | Type guard | Input could be the wrong shape |
57
+ | Schema validation (Zod, Pydantic, etc.) | External data crossing a boundary |
58
+ | Invariant assertion | Internal state that must always hold |
59
+ | Lint rule | Pattern that's easy to repeat by mistake |
60
+ | Environment check at startup | Missing config causes silent failure |
61
+
62
+ - [ ] At least one hardening mechanism added
63
+ - [ ] Hardening mechanism is tested
64
+
65
+ ### 5b. Generalize-fix (HARD GATE — e80s04 / GH #98)
66
+
67
+ Sweep the **defect class** across the codebase after local hardening — see [REFERENCE-generalize-fix.md](REFERENCE-generalize-fix.md).
68
+
69
+ - [ ] Defect class documented (not just the one-line root cause)
70
+ - [ ] Grep sweep run and `match_count` recorded
71
+ - [ ] `verify-generalize-sweep.sh` passes on the artifact
72
+
73
+ ### 6. Update the bug file and registry.yaml
74
+
75
+ Find the most recent `specs/bugs/BUG-*.md` file and append the resolution:
76
+
77
+ ```markdown
78
+ ## Resolution
79
+
80
+ **Fixed:** [date]
81
+ **Root cause confirmed:** [one sentence]
82
+ **Fix applied:** [what was changed]
83
+ **Hardening added:** [type guard / schema / assertion / lint rule]
84
+ **Evidence:** all tests pass (`<verify command>`)
85
+ **Commit:** `fix(<scope>): <description>`
86
+ ```
87
+
88
+ Also update the corresponding row in `specs/bugs/registry.yaml`: set `status` to `fixed`, fill in `files_changed`, `approach`, `risk_level`, `commit_message`, and any other resolution fields.
89
+
90
+ - [ ] specs/bugs/BUG-*.md updated with resolution
91
+ - [ ] specs/bugs/registry.yaml row updated with resolution fields
92
+
93
+ ### 7. Behavioral Proof (HARD GATE)
94
+
95
+ Mechanical verification (tests passing) is only half the fix. You must prove **behavioral correctness**.
96
+
97
+ - [ ] Manually demonstrate the fixed behavior (e.g., via `run_shell_command` or `web_fetch`)
98
+ - [ ] Compare the output/state against the "Expected Behavior" in the bug file
99
+ - [ ] Show the user evidence of the behavior, not just the test logs
100
+
101
+ ## Rules
102
+
103
+ - **Loop until behavioral correctness is verified**: if any checklist item fails, or if the behavior is still incorrect despite passing tests, return to step 1 and run all checks again from the top — do not declare done until every item is green and the behavior is proven correct in a single run.
104
+ - **Never use `@ts-ignore`, `as any`, or `// eslint-disable`** to "fix" a bug — these suppress the symptom without fixing the root cause
105
+ - **Never mark the task done if any test is still failing**
106
+ - **The verify command from specs/bugs/BUG-*.md or the active epic task `verify` field must pass**
107
+
108
+ Suggest next skill: `audit-code` → `commit-message`.
109
+
110
+ ## Verify
111
+
112
+ → verify: `grep -q 'generalize-fix' skills/validate-fix/SKILL.md && test -x scripts/verify-generalize-sweep.sh && bash scripts/verify-generalize-sweep.sh --self-test && echo OK`
113
+
114
+ ---
115
+
116
+ # Generalize-fix (e80s04 / GH #98)
117
+
118
+ After local hardening in `validate-fix`, sweep the **defect class** across the codebase.
119
+
120
+ ## Steps
121
+
122
+ 1. **Classify** — name the pattern (e.g. `unscoped org query`, `fail-open verify`, `hardcoded package manager`).
123
+ 2. **Sweep** — grep for sibling instances; record `match_count` and `grep_pattern`.
124
+ 3. **Resolve** — patch all matches in this PR **or** file one tracking issue listing every remaining instance.
125
+ 4. **Artifact** — write sweep evidence before declaring done:
126
+
127
+ ```bash
128
+ cat > specs/verifications/generalize-sweep-BUG-YYYY-MM-DD-slug.json <<EOF
129
+ {
130
+ "defect_class": "fail-open-verify",
131
+ "grep_pattern": "\\\\|\\\\| echo",
132
+ "match_count": 0,
133
+ "sweep_scope": "skills/*/SKILL.md",
134
+ "patched_in_pr": [],
135
+ "tracked_issues": []
136
+ }
137
+ EOF
138
+ bash scripts/verify-generalize-sweep.sh specs/verifications/generalize-sweep-*.json
139
+ ```
140
+
141
+ ## Security classes
142
+
143
+ When the defect class is security- or gate-relevant:
144
+
145
+ - Add a row to `security-review` CWE fixture table (see `skills/security-review/SKILL.md` § CWE mapping mandate).
146
+ - If security-impact was MEDIUM+: add regression test, false-positive exclusion rule, and threat-model update (HIGH+).