bigpowers 2.82.4 → 2.83.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (353) hide show
  1. package/.agents/skills/align-grid/SKILL.md +110 -0
  2. package/.agents/skills/assess-impact/SKILL.md +91 -0
  3. package/.agents/skills/audit-code/SKILL.md +187 -0
  4. package/.agents/skills/audit-plan/SKILL.md +89 -0
  5. package/.agents/skills/build-epic/SKILL.md +105 -0
  6. package/.agents/skills/change-request/SKILL.md +121 -0
  7. package/.agents/skills/commit-message/SKILL.md +140 -0
  8. package/.agents/skills/compose-workflow/SKILL.md +82 -0
  9. package/.agents/skills/context7-mcp/SKILL.md +55 -0
  10. package/.agents/skills/craft-skill/SKILL.md +179 -0
  11. package/.agents/skills/deepen-architecture/SKILL.md +260 -0
  12. package/.agents/skills/define-language/SKILL.md +80 -0
  13. package/.agents/skills/define-success/SKILL.md +65 -0
  14. package/.agents/skills/delegate-task/SKILL.md +91 -0
  15. package/.agents/skills/deploy/SKILL.md +198 -0
  16. package/.agents/skills/design-interface/SKILL.md +97 -0
  17. package/.agents/skills/develop-tdd/SKILL.md +406 -0
  18. package/.agents/skills/diagnose-root/SKILL.md +24 -0
  19. package/.agents/skills/diagnose-stall/SKILL.md +54 -0
  20. package/.agents/skills/dispatch-agents/SKILL.md +118 -0
  21. package/.agents/skills/edit-document/SKILL.md +23 -0
  22. package/.agents/skills/elaborate-spec/SKILL.md +101 -0
  23. package/.agents/skills/enforce-first/SKILL.md +32 -0
  24. package/.agents/skills/evolve-skill/SKILL.md +55 -0
  25. package/.agents/skills/execute-plan/SKILL.md +61 -0
  26. package/.agents/skills/extract-design/SKILL.md +132 -0
  27. package/.agents/skills/find-way/SKILL.md +191 -0
  28. package/.agents/skills/fix-bug/SKILL.md +67 -0
  29. package/.agents/skills/gate-trace/SKILL.md +88 -0
  30. package/.agents/skills/generate-allure-report/SKILL.md +285 -0
  31. package/.agents/skills/grill-me/SKILL.md +96 -0
  32. package/.agents/skills/grill-with-docs/SKILL.md +41 -0
  33. package/.agents/skills/guard-git/SKILL.md +231 -0
  34. package/.agents/skills/harden-vps/SKILL.md +288 -0
  35. package/.agents/skills/hook-commits/SKILL.md +94 -0
  36. package/.agents/skills/inspect-quality/SKILL.md +106 -0
  37. package/.agents/skills/investigate-bug/SKILL.md +127 -0
  38. package/.agents/skills/kickoff-branch/SKILL.md +143 -0
  39. package/.agents/skills/maintain-wiki/SKILL.md +64 -0
  40. package/.agents/skills/map-codebase/SKILL.md +71 -0
  41. package/.agents/skills/migrate-spec/SKILL.md +862 -0
  42. package/.agents/skills/model-domain/SKILL.md +232 -0
  43. package/.agents/skills/orchestrate-project/SKILL.md +174 -0
  44. package/.agents/skills/organize-workspace/SKILL.md +164 -0
  45. package/.agents/skills/plan-refactor/SKILL.md +87 -0
  46. package/.agents/skills/plan-release/SKILL.md +145 -0
  47. package/.agents/skills/plan-tests/SKILL.md +75 -0
  48. package/.agents/skills/plan-work/SKILL.md +260 -0
  49. package/.agents/skills/publish-package/SKILL.md +328 -0
  50. package/.agents/skills/quick-fix/SKILL.md +114 -0
  51. package/.agents/skills/release-branch/SKILL.md +298 -0
  52. package/.agents/skills/request-review/SKILL.md +112 -0
  53. package/.agents/skills/research-first/SKILL.md +87 -0
  54. package/.agents/skills/reset-baseline/SKILL.md +21 -0
  55. package/.agents/skills/respond-review/SKILL.md +71 -0
  56. package/.agents/skills/run-benchmark/SKILL.md +85 -0
  57. package/.agents/skills/run-evals/SKILL.md +80 -0
  58. package/.agents/skills/run-planning/SKILL.md +101 -0
  59. package/.agents/skills/scope-work/SKILL.md +63 -0
  60. package/.agents/skills/search-skills/SKILL.md +73 -0
  61. package/.agents/skills/security-review/SKILL.md +384 -0
  62. package/.agents/skills/seed-conventions/SKILL.md +285 -0
  63. package/.agents/skills/session-state/SKILL.md +146 -0
  64. package/.agents/skills/setup-environment/SKILL.md +39 -0
  65. package/.agents/skills/simulate-agents/SKILL.md +26 -0
  66. package/.agents/skills/slice-tasks/SKILL.md +68 -0
  67. package/.agents/skills/smoke-test/SKILL.md +242 -0
  68. package/.agents/skills/spike-prototype/SKILL.md +95 -0
  69. package/.agents/skills/stocktake-skills/SKILL.md +72 -0
  70. package/.agents/skills/survey-context/SKILL.md +135 -0
  71. package/.agents/skills/terse-mode/SKILL.md +42 -0
  72. package/.agents/skills/trace-requirement/SKILL.md +69 -0
  73. package/.agents/skills/using-bigpowers/SKILL.md +111 -0
  74. package/.agents/skills/validate-contracts/SKILL.md +309 -0
  75. package/.agents/skills/validate-fix/SKILL.md +106 -0
  76. package/.agents/skills/verify-work/SKILL.md +191 -0
  77. package/.agents/skills/visual-dashboard/SKILL.md +50 -0
  78. package/.agents/skills/wire-ci/SKILL.md +375 -0
  79. package/.agents/skills/wire-observability/SKILL.md +97 -0
  80. package/.agents/skills/write-document/SKILL.md +255 -0
  81. package/.hermes/skills/align-grid/SKILL.md +110 -0
  82. package/.hermes/skills/assess-impact/SKILL.md +91 -0
  83. package/.hermes/skills/audit-code/SKILL.md +187 -0
  84. package/.hermes/skills/audit-plan/SKILL.md +89 -0
  85. package/.hermes/skills/build-epic/SKILL.md +105 -0
  86. package/.hermes/skills/change-request/SKILL.md +121 -0
  87. package/.hermes/skills/commit-message/SKILL.md +140 -0
  88. package/.hermes/skills/compose-workflow/SKILL.md +82 -0
  89. package/.hermes/skills/context7-mcp/SKILL.md +55 -0
  90. package/.hermes/skills/craft-skill/SKILL.md +179 -0
  91. package/.hermes/skills/deepen-architecture/SKILL.md +260 -0
  92. package/.hermes/skills/define-language/SKILL.md +80 -0
  93. package/.hermes/skills/define-success/SKILL.md +65 -0
  94. package/.hermes/skills/delegate-task/SKILL.md +91 -0
  95. package/.hermes/skills/deploy/SKILL.md +198 -0
  96. package/.hermes/skills/design-interface/SKILL.md +97 -0
  97. package/.hermes/skills/develop-tdd/SKILL.md +406 -0
  98. package/.hermes/skills/diagnose-root/SKILL.md +24 -0
  99. package/.hermes/skills/diagnose-stall/SKILL.md +54 -0
  100. package/.hermes/skills/dispatch-agents/SKILL.md +118 -0
  101. package/.hermes/skills/edit-document/SKILL.md +23 -0
  102. package/.hermes/skills/elaborate-spec/SKILL.md +101 -0
  103. package/.hermes/skills/enforce-first/SKILL.md +32 -0
  104. package/.hermes/skills/evolve-skill/SKILL.md +55 -0
  105. package/.hermes/skills/execute-plan/SKILL.md +61 -0
  106. package/.hermes/skills/extract-design/SKILL.md +132 -0
  107. package/.hermes/skills/find-way/SKILL.md +191 -0
  108. package/.hermes/skills/fix-bug/SKILL.md +67 -0
  109. package/.hermes/skills/gate-trace/SKILL.md +88 -0
  110. package/.hermes/skills/generate-allure-report/SKILL.md +285 -0
  111. package/.hermes/skills/grill-me/SKILL.md +96 -0
  112. package/.hermes/skills/grill-with-docs/SKILL.md +41 -0
  113. package/.hermes/skills/guard-git/SKILL.md +231 -0
  114. package/.hermes/skills/harden-vps/SKILL.md +288 -0
  115. package/.hermes/skills/hook-commits/SKILL.md +94 -0
  116. package/.hermes/skills/inspect-quality/SKILL.md +106 -0
  117. package/.hermes/skills/investigate-bug/SKILL.md +127 -0
  118. package/.hermes/skills/kickoff-branch/SKILL.md +143 -0
  119. package/.hermes/skills/maintain-wiki/SKILL.md +64 -0
  120. package/.hermes/skills/map-codebase/SKILL.md +71 -0
  121. package/.hermes/skills/migrate-spec/SKILL.md +862 -0
  122. package/.hermes/skills/model-domain/SKILL.md +232 -0
  123. package/.hermes/skills/orchestrate-project/SKILL.md +174 -0
  124. package/.hermes/skills/organize-workspace/SKILL.md +164 -0
  125. package/.hermes/skills/plan-refactor/SKILL.md +87 -0
  126. package/.hermes/skills/plan-release/SKILL.md +145 -0
  127. package/.hermes/skills/plan-tests/SKILL.md +75 -0
  128. package/.hermes/skills/plan-work/SKILL.md +260 -0
  129. package/.hermes/skills/publish-package/SKILL.md +328 -0
  130. package/.hermes/skills/quick-fix/SKILL.md +114 -0
  131. package/.hermes/skills/release-branch/SKILL.md +298 -0
  132. package/.hermes/skills/request-review/SKILL.md +112 -0
  133. package/.hermes/skills/research-first/SKILL.md +87 -0
  134. package/.hermes/skills/reset-baseline/SKILL.md +21 -0
  135. package/.hermes/skills/respond-review/SKILL.md +71 -0
  136. package/.hermes/skills/run-benchmark/SKILL.md +85 -0
  137. package/.hermes/skills/run-evals/SKILL.md +80 -0
  138. package/.hermes/skills/run-planning/SKILL.md +101 -0
  139. package/.hermes/skills/scope-work/SKILL.md +63 -0
  140. package/.hermes/skills/search-skills/SKILL.md +73 -0
  141. package/.hermes/skills/security-review/SKILL.md +384 -0
  142. package/.hermes/skills/seed-conventions/SKILL.md +285 -0
  143. package/.hermes/skills/session-state/SKILL.md +146 -0
  144. package/.hermes/skills/setup-environment/SKILL.md +39 -0
  145. package/.hermes/skills/simulate-agents/SKILL.md +26 -0
  146. package/.hermes/skills/slice-tasks/SKILL.md +68 -0
  147. package/.hermes/skills/smoke-test/SKILL.md +242 -0
  148. package/.hermes/skills/spike-prototype/SKILL.md +95 -0
  149. package/.hermes/skills/stocktake-skills/SKILL.md +72 -0
  150. package/.hermes/skills/survey-context/SKILL.md +135 -0
  151. package/.hermes/skills/terse-mode/SKILL.md +42 -0
  152. package/.hermes/skills/trace-requirement/SKILL.md +69 -0
  153. package/.hermes/skills/using-bigpowers/SKILL.md +111 -0
  154. package/.hermes/skills/validate-contracts/SKILL.md +309 -0
  155. package/.hermes/skills/validate-fix/SKILL.md +106 -0
  156. package/.hermes/skills/verify-work/SKILL.md +191 -0
  157. package/.hermes/skills/visual-dashboard/SKILL.md +50 -0
  158. package/.hermes/skills/wire-ci/SKILL.md +375 -0
  159. package/.hermes/skills/wire-observability/SKILL.md +97 -0
  160. package/.hermes/skills/write-document/SKILL.md +255 -0
  161. package/.mimocode/skills/align-grid/SKILL.md +110 -0
  162. package/.mimocode/skills/assess-impact/SKILL.md +91 -0
  163. package/.mimocode/skills/audit-code/SKILL.md +187 -0
  164. package/.mimocode/skills/audit-plan/SKILL.md +89 -0
  165. package/.mimocode/skills/build-epic/SKILL.md +105 -0
  166. package/.mimocode/skills/change-request/SKILL.md +121 -0
  167. package/.mimocode/skills/commit-message/SKILL.md +140 -0
  168. package/.mimocode/skills/compose-workflow/SKILL.md +82 -0
  169. package/.mimocode/skills/context7-mcp/SKILL.md +55 -0
  170. package/.mimocode/skills/craft-skill/SKILL.md +179 -0
  171. package/.mimocode/skills/deepen-architecture/SKILL.md +260 -0
  172. package/.mimocode/skills/define-language/SKILL.md +80 -0
  173. package/.mimocode/skills/define-success/SKILL.md +65 -0
  174. package/.mimocode/skills/delegate-task/SKILL.md +91 -0
  175. package/.mimocode/skills/deploy/SKILL.md +198 -0
  176. package/.mimocode/skills/design-interface/SKILL.md +97 -0
  177. package/.mimocode/skills/develop-tdd/SKILL.md +406 -0
  178. package/.mimocode/skills/diagnose-root/SKILL.md +24 -0
  179. package/.mimocode/skills/diagnose-stall/SKILL.md +54 -0
  180. package/.mimocode/skills/dispatch-agents/SKILL.md +118 -0
  181. package/.mimocode/skills/edit-document/SKILL.md +23 -0
  182. package/.mimocode/skills/elaborate-spec/SKILL.md +101 -0
  183. package/.mimocode/skills/enforce-first/SKILL.md +32 -0
  184. package/.mimocode/skills/evolve-skill/SKILL.md +55 -0
  185. package/.mimocode/skills/execute-plan/SKILL.md +61 -0
  186. package/.mimocode/skills/extract-design/SKILL.md +132 -0
  187. package/.mimocode/skills/find-way/SKILL.md +191 -0
  188. package/.mimocode/skills/fix-bug/SKILL.md +67 -0
  189. package/.mimocode/skills/gate-trace/SKILL.md +88 -0
  190. package/.mimocode/skills/generate-allure-report/SKILL.md +285 -0
  191. package/.mimocode/skills/grill-me/SKILL.md +96 -0
  192. package/.mimocode/skills/grill-with-docs/SKILL.md +41 -0
  193. package/.mimocode/skills/guard-git/SKILL.md +231 -0
  194. package/.mimocode/skills/harden-vps/SKILL.md +288 -0
  195. package/.mimocode/skills/hook-commits/SKILL.md +94 -0
  196. package/.mimocode/skills/inspect-quality/SKILL.md +106 -0
  197. package/.mimocode/skills/investigate-bug/SKILL.md +127 -0
  198. package/.mimocode/skills/kickoff-branch/SKILL.md +143 -0
  199. package/.mimocode/skills/maintain-wiki/SKILL.md +64 -0
  200. package/.mimocode/skills/map-codebase/SKILL.md +71 -0
  201. package/.mimocode/skills/migrate-spec/SKILL.md +862 -0
  202. package/.mimocode/skills/model-domain/SKILL.md +232 -0
  203. package/.mimocode/skills/orchestrate-project/SKILL.md +174 -0
  204. package/.mimocode/skills/organize-workspace/SKILL.md +164 -0
  205. package/.mimocode/skills/plan-refactor/SKILL.md +87 -0
  206. package/.mimocode/skills/plan-release/SKILL.md +145 -0
  207. package/.mimocode/skills/plan-tests/SKILL.md +75 -0
  208. package/.mimocode/skills/plan-work/SKILL.md +260 -0
  209. package/.mimocode/skills/publish-package/SKILL.md +328 -0
  210. package/.mimocode/skills/quick-fix/SKILL.md +114 -0
  211. package/.mimocode/skills/release-branch/SKILL.md +298 -0
  212. package/.mimocode/skills/request-review/SKILL.md +112 -0
  213. package/.mimocode/skills/research-first/SKILL.md +87 -0
  214. package/.mimocode/skills/reset-baseline/SKILL.md +21 -0
  215. package/.mimocode/skills/respond-review/SKILL.md +71 -0
  216. package/.mimocode/skills/run-benchmark/SKILL.md +85 -0
  217. package/.mimocode/skills/run-evals/SKILL.md +80 -0
  218. package/.mimocode/skills/run-planning/SKILL.md +101 -0
  219. package/.mimocode/skills/scope-work/SKILL.md +63 -0
  220. package/.mimocode/skills/search-skills/SKILL.md +73 -0
  221. package/.mimocode/skills/security-review/SKILL.md +384 -0
  222. package/.mimocode/skills/seed-conventions/SKILL.md +285 -0
  223. package/.mimocode/skills/session-state/SKILL.md +146 -0
  224. package/.mimocode/skills/setup-environment/SKILL.md +39 -0
  225. package/.mimocode/skills/simulate-agents/SKILL.md +26 -0
  226. package/.mimocode/skills/slice-tasks/SKILL.md +68 -0
  227. package/.mimocode/skills/smoke-test/SKILL.md +242 -0
  228. package/.mimocode/skills/spike-prototype/SKILL.md +95 -0
  229. package/.mimocode/skills/stocktake-skills/SKILL.md +72 -0
  230. package/.mimocode/skills/survey-context/SKILL.md +135 -0
  231. package/.mimocode/skills/terse-mode/SKILL.md +42 -0
  232. package/.mimocode/skills/trace-requirement/SKILL.md +69 -0
  233. package/.mimocode/skills/using-bigpowers/SKILL.md +111 -0
  234. package/.mimocode/skills/validate-contracts/SKILL.md +309 -0
  235. package/.mimocode/skills/validate-fix/SKILL.md +106 -0
  236. package/.mimocode/skills/verify-work/SKILL.md +191 -0
  237. package/.mimocode/skills/visual-dashboard/SKILL.md +50 -0
  238. package/.mimocode/skills/wire-ci/SKILL.md +375 -0
  239. package/.mimocode/skills/wire-observability/SKILL.md +97 -0
  240. package/.mimocode/skills/write-document/SKILL.md +255 -0
  241. package/.pi/package.json +1 -1
  242. package/.zcode/skills/align-grid/SKILL.md +110 -0
  243. package/.zcode/skills/assess-impact/SKILL.md +91 -0
  244. package/.zcode/skills/audit-code/SKILL.md +187 -0
  245. package/.zcode/skills/audit-plan/SKILL.md +89 -0
  246. package/.zcode/skills/build-epic/SKILL.md +105 -0
  247. package/.zcode/skills/change-request/SKILL.md +121 -0
  248. package/.zcode/skills/commit-message/SKILL.md +140 -0
  249. package/.zcode/skills/compose-workflow/SKILL.md +82 -0
  250. package/.zcode/skills/context7-mcp/SKILL.md +55 -0
  251. package/.zcode/skills/craft-skill/SKILL.md +179 -0
  252. package/.zcode/skills/deepen-architecture/SKILL.md +260 -0
  253. package/.zcode/skills/define-language/SKILL.md +80 -0
  254. package/.zcode/skills/define-success/SKILL.md +65 -0
  255. package/.zcode/skills/delegate-task/SKILL.md +91 -0
  256. package/.zcode/skills/deploy/SKILL.md +198 -0
  257. package/.zcode/skills/design-interface/SKILL.md +97 -0
  258. package/.zcode/skills/develop-tdd/SKILL.md +406 -0
  259. package/.zcode/skills/diagnose-root/SKILL.md +24 -0
  260. package/.zcode/skills/diagnose-stall/SKILL.md +54 -0
  261. package/.zcode/skills/dispatch-agents/SKILL.md +118 -0
  262. package/.zcode/skills/edit-document/SKILL.md +23 -0
  263. package/.zcode/skills/elaborate-spec/SKILL.md +101 -0
  264. package/.zcode/skills/enforce-first/SKILL.md +32 -0
  265. package/.zcode/skills/evolve-skill/SKILL.md +55 -0
  266. package/.zcode/skills/execute-plan/SKILL.md +61 -0
  267. package/.zcode/skills/extract-design/SKILL.md +132 -0
  268. package/.zcode/skills/find-way/SKILL.md +191 -0
  269. package/.zcode/skills/fix-bug/SKILL.md +67 -0
  270. package/.zcode/skills/gate-trace/SKILL.md +88 -0
  271. package/.zcode/skills/generate-allure-report/SKILL.md +285 -0
  272. package/.zcode/skills/grill-me/SKILL.md +96 -0
  273. package/.zcode/skills/grill-with-docs/SKILL.md +41 -0
  274. package/.zcode/skills/guard-git/SKILL.md +231 -0
  275. package/.zcode/skills/harden-vps/SKILL.md +288 -0
  276. package/.zcode/skills/hook-commits/SKILL.md +94 -0
  277. package/.zcode/skills/inspect-quality/SKILL.md +106 -0
  278. package/.zcode/skills/investigate-bug/SKILL.md +127 -0
  279. package/.zcode/skills/kickoff-branch/SKILL.md +143 -0
  280. package/.zcode/skills/maintain-wiki/SKILL.md +64 -0
  281. package/.zcode/skills/map-codebase/SKILL.md +71 -0
  282. package/.zcode/skills/migrate-spec/SKILL.md +862 -0
  283. package/.zcode/skills/model-domain/SKILL.md +232 -0
  284. package/.zcode/skills/orchestrate-project/SKILL.md +174 -0
  285. package/.zcode/skills/organize-workspace/SKILL.md +164 -0
  286. package/.zcode/skills/plan-refactor/SKILL.md +87 -0
  287. package/.zcode/skills/plan-release/SKILL.md +145 -0
  288. package/.zcode/skills/plan-tests/SKILL.md +75 -0
  289. package/.zcode/skills/plan-work/SKILL.md +260 -0
  290. package/.zcode/skills/publish-package/SKILL.md +328 -0
  291. package/.zcode/skills/quick-fix/SKILL.md +114 -0
  292. package/.zcode/skills/release-branch/SKILL.md +298 -0
  293. package/.zcode/skills/request-review/SKILL.md +112 -0
  294. package/.zcode/skills/research-first/SKILL.md +87 -0
  295. package/.zcode/skills/reset-baseline/SKILL.md +21 -0
  296. package/.zcode/skills/respond-review/SKILL.md +71 -0
  297. package/.zcode/skills/run-benchmark/SKILL.md +85 -0
  298. package/.zcode/skills/run-evals/SKILL.md +80 -0
  299. package/.zcode/skills/run-planning/SKILL.md +101 -0
  300. package/.zcode/skills/scope-work/SKILL.md +63 -0
  301. package/.zcode/skills/search-skills/SKILL.md +73 -0
  302. package/.zcode/skills/security-review/SKILL.md +384 -0
  303. package/.zcode/skills/seed-conventions/SKILL.md +285 -0
  304. package/.zcode/skills/session-state/SKILL.md +146 -0
  305. package/.zcode/skills/setup-environment/SKILL.md +39 -0
  306. package/.zcode/skills/simulate-agents/SKILL.md +26 -0
  307. package/.zcode/skills/slice-tasks/SKILL.md +68 -0
  308. package/.zcode/skills/smoke-test/SKILL.md +242 -0
  309. package/.zcode/skills/spike-prototype/SKILL.md +95 -0
  310. package/.zcode/skills/stocktake-skills/SKILL.md +72 -0
  311. package/.zcode/skills/survey-context/SKILL.md +135 -0
  312. package/.zcode/skills/terse-mode/SKILL.md +42 -0
  313. package/.zcode/skills/trace-requirement/SKILL.md +69 -0
  314. package/.zcode/skills/using-bigpowers/SKILL.md +111 -0
  315. package/.zcode/skills/validate-contracts/SKILL.md +309 -0
  316. package/.zcode/skills/validate-fix/SKILL.md +106 -0
  317. package/.zcode/skills/verify-work/SKILL.md +191 -0
  318. package/.zcode/skills/visual-dashboard/SKILL.md +50 -0
  319. package/.zcode/skills/wire-ci/SKILL.md +375 -0
  320. package/.zcode/skills/wire-observability/SKILL.md +97 -0
  321. package/.zcode/skills/write-document/SKILL.md +255 -0
  322. package/CHANGELOG.md +20 -0
  323. package/bin/setup.js +13 -4
  324. package/package.json +1 -1
  325. package/scripts/adapters/agy.sh +44 -1
  326. package/scripts/adapters/gemini.sh +83 -0
  327. package/scripts/adapters/hermes.sh +53 -1
  328. package/scripts/adapters/mimo.sh +41 -0
  329. package/scripts/adapters/zcode.sh +37 -0
  330. package/scripts/hooks/hermes/gateway/session-log/HOOK.yaml +5 -0
  331. package/scripts/hooks/hermes/gateway/session-log/handler.py +7 -0
  332. package/scripts/hooks/hermes/plugin/guard-git-plugin.py +14 -0
  333. package/scripts/hooks/hermes/shell/block-dangerous-terminal.sh +23 -0
  334. package/scripts/hooks/hermes/shell/hooks-config.example.yaml +7 -0
  335. package/scripts/install-cursor-skills-local.sh +8 -6
  336. package/scripts/install-cursor-skills.sh +15 -25
  337. package/scripts/install.sh +211 -13
  338. package/scripts/lib/__pycache__/link_utils.cpython-312.pyc +0 -0
  339. package/scripts/lib/golden-suite-gates.sh +2 -1
  340. package/scripts/lib/install-helpers.js +199 -4
  341. package/scripts/lib/sync-render.sh +43 -0
  342. package/scripts/lib/target-contracts.sh +22 -0
  343. package/scripts/targets.yaml +31 -1
  344. package/scripts/test-agy-hub.sh +59 -0
  345. package/scripts/test-gemini-adapter.sh +70 -0
  346. package/scripts/test-gemini-hub.sh +55 -0
  347. package/scripts/test-hermes-adapter.sh +85 -0
  348. package/scripts/test-hermes-hub.sh +51 -0
  349. package/scripts/test-install-helpers.js +103 -0
  350. package/scripts/test-install-helpers.sh +7 -0
  351. package/scripts/test-mimo-hub.sh +51 -0
  352. package/scripts/test-zcode-hub.sh +51 -0
  353. package/scripts/verify-install.sh +31 -0
@@ -0,0 +1,110 @@
1
+ ---
2
+ name: align-grid
3
+ model: sonnet
4
+ description: "Build editorial/magazine/report webpages on a GENUINE Müller-Brockmann modular grid (International Typographic Style) — not a decorative one. Encodes the discipline (columns + modules + baseline, grotesque type, flush-left, restrained black/white/red palette) AND the hard-won front-end engineering to make the grid real, visible, and verified: one CSS-variable source of truth, an interactive grid-toggle overlay that lives in the SAME content box as the content, subgrid \"bands\" so every element snaps to a column line, an 8px baseline lock, and runtime OPTICAL ALIGNMENT that puts display type's ink (not its box) on the line. Ships with a scaffold generator and a Puppeteer verification harness that proves 0px adherence."
5
+ ---
6
+
7
+ # Müller-Brockmann Grid Systems — built real, visible, and verified
8
+
9
+ Josef Müller-Brockmann (1914–1996), Zurich; *Grid Systems in Graphic Design* (1981) is the corpus. The grid is treated as an ethic, not decoration: **"The grid system is an aid, not a guarantee. It permits a number of possible uses and each designer can look for a solution appropriate to his personal style. But one must learn how to use the grid; it is an art that requires practice."** This skill encodes that discipline AND — the part most attempts get wrong — the front-end engineering to make the grid genuinely load-bearing on the web, plus a harness that PROVES it.
10
+
11
+ > **HARD GATE** — Do NOT ship a grid page without running `verify_grid.js` first. A visually plausible layout is not evidence of grid adherence — the harness is. Zero failing assertions is the only passing bar.
12
+
13
+ > Two real review notes this skill exists to prevent:
14
+ > 1. *"the grid is just slapped on top and misaligned"* → the overlay wasn't in the same content box as the content (see §2.2).
15
+ > 2. *"the H in the headline is off the grid"* → the headline's BOX was on the grid but its INK wasn't; large glyphs carry a side-bearing (see §2.6). **Box-on-grid ≠ ink-on-grid.**
16
+
17
+ ---
18
+
19
+ ## PART 1 — THE DISCIPLINE (decide before drawing)
20
+ - **Objective order.** The grid brings "constructive thought," legibility, and "objective and functional" design. Restraint is the point; the system, not the ego, organizes the page.
21
+ - **Modular grid.** Divide the type area into a field of **modules** — columns AND rows — separated by consistent **gutters**, inside defined **margins**. Text and images occupy whole modules. Müller-Brockmann specimens common field counts (8 / 20 / 32 fields). For the web, a **12-column grid + 8px baseline** is a robust general default; a **6×6 or 4×8 modular field grid** when you want visible rows too.
22
+ - **Baseline grid.** Vertical rhythm is sacred: **leading = a whole multiple of the baseline unit**, and every element snaps to it. This is what makes facing columns and images line up across the page.
23
+ - **Typography.** A **grotesque sans** (Akzidenz-Grotesk / Helvetica; on the web Inter, Helvetica Now, Archivo). **Flush-left, ragged-right.** Few sizes, large jumps in **scale** for hierarchy; objective, not expressive. Big **numerals/data set large** is a signature move.
24
+ - **Palette.** Pure white paper, near-black ink, **one accent — red is canonical**. Avoid the warm-cream "Claude look"; **never blue/purple gradients** (hard house rule).
25
+ - **White space + asymmetry.** Generous margins; asymmetric compositions held in tension by the grid.
26
+
27
+ ---
28
+
29
+ ## PART 2 — MAKE THE GRID REAL ON THE WEB (the load-bearing engineering)
30
+ `grid_tokens.py` emits this whole scaffold correctly; the rules below are why it's built the way it is.
31
+
32
+ ### 2.1 One source of truth
33
+ Put every grid parameter in `:root` CSS variables — `--cols, --gutter, --margin, --bl (baseline), --lh (leading=3×bl), --maxw`. **Content and the overlay both read these same variables.** Never hand-author the overlay separately or it will drift.
34
+
35
+ ### 2.2 The overlay MUST live in the SAME content box as the content ← #1 bug
36
+ Failure mode: content sits in a centered `max-width` container while the overlay is a **full-width sibling** of the section. On any viewport wider than `--maxw`, the centered content and the full-width overlay no longer share column positions → "slapped on top / misaligned."
37
+ **Fix:** put `.guides` *inside* the same `.wrap`, and draw the column guides with `left/right = var(--margin)` and the **same** `repeat(var(--cols),1fr)` + `column-gap:var(--gutter)`. Then the overlay columns **are** the content columns at every width. Add left/right margin lines at `var(--margin)`.
38
+
39
+ ### 2.3 Place every element by column LINE via subgrid bands
40
+ Don't eyeball spans. Each horizontal **band** spans all columns and re-exposes them:
41
+ ```css
42
+ .band{grid-column:1 / -1; display:grid; grid-template-columns:subgrid; column-gap:var(--gutter); align-items:start;}
43
+ @supports not (grid-template-columns:subgrid){ .band{grid-template-columns:repeat(var(--cols),1fr);} }
44
+ ```
45
+ Children place with `grid-column: <startline> / <endline>` (e.g. `1 / 6`, `6 / 13`). Every headline, paragraph, photo, caption now snaps to identical lines.
46
+
47
+ ### 2.4 Lock vertical rhythm to the baseline
48
+ - Leading = `--lh` (e.g. 24px = 3×8). **Every line-height a multiple of the baseline, in px (not unitless) for display type** — unitless line-heights on large type push the box off the grid.
49
+ - Every margin/padding a multiple of the baseline. Spread top/bottom padding a multiple too, so content starts on a line.
50
+ - **Media heights = multiples of the leading** (e.g. 240/360/432/480px) so a photo's top AND bottom both land on lines.
51
+ - Hairline rules sit inside a baseline-height band, not free-floating.
52
+
53
+ ### 2.5 The toggle (sizzle within the sizzle)
54
+ A control (button **+ `G` key**) toggles `body.grid-on`; overlay fades 0→1. Overlay draws: translucent **numbered column fields**, the **baseline** (major line every `--lh`, faint minor every `--bl`), and **margin lines**. Showing the real grid the page is built on IS the demo.
55
+
56
+ ### 2.6 OPTICAL ALIGNMENT — display ink, not its box ← the subtle bug
57
+ A 180px headline whose layout box is exactly on line 1 still looks misaligned against body text, because the letterform's **ink** is inset by its **left side-bearing**. Cure at runtime:
58
+ ```js
59
+ // after document.fonts.ready and on resize:
60
+ var cvs=document.createElement('canvas'),ctx=cvs.getContext('2d');
61
+ document.querySelectorAll('.masthead,.numeral,.shead h2,.h2b').forEach(function(el){
62
+ el.style.marginLeft='0px';
63
+ var cs=getComputedStyle(el),ch=(el.textContent||'').trim()[0]; if(!ch) return;
64
+ if(cs.textTransform==='uppercase') ch=ch.toUpperCase();
65
+ ctx.font=cs.fontStyle+' '+cs.fontWeight+' '+cs.fontSize+' '+cs.fontFamily; ctx.textAlign='left';
66
+ var abl=ctx.measureText(ch).actualBoundingBoxLeft; // +ve = ink overhangs left of box
67
+ if(isFinite(abl)) el.style.marginLeft=abl.toFixed(2)+'px'; // shift box so INK lands on the line
68
+ });
69
+ ```
70
+ Apply to the masthead, big numerals, and section headlines. It scales with fluid type (re-runs on resize) and uses the **actually-loaded** font, so it's correct in the user's browser.
71
+ **CRITICAL measurement caveat:** side-bearing is **font-specific**. If you measure with the wrong font you get the wrong nudge. Headless/sandbox Chrome usually lacks the webfont, so canvas falls back to a different grotesque (measured **−16px on the fallback vs −7px on real Inter** for the same `H`). To verify optics offline you must **embed the real webfont** via `@font-face` (local TTF). In production the runtime JS measures the loaded font and is correct.
72
+
73
+ ---
74
+
75
+ ## PART 3 — VERIFY (don't trust, measure) → `verify_grid.js`
76
+ Render with headless Chrome (Puppeteer) and assert, at **several widths including > and < `--maxw`** (to catch centered-container drift, e.g. 1440 / 1180 / 900):
77
+ 1. **Column adherence** — every placed `.band > *` left snaps to a column START and right to a column END (~0px). **Exclude the optically-aligned display elements** from this box check (their box is intentionally side-bearing-offset; they're validated in step 4). **Gotcha:** build BOTH the column-start set and the column-end set — a grid item spanning "to line N" ends at the *far* side of the gutter, so single-edge math falsely reports a one-gutter error.
78
+ 2. **Overlay match** — each `.guides .col` rect equals the computed column rect (~0px).
79
+ 3. **Baseline** — text tops modulo the baseline ≈ 0 (tolerance ≈ half a baseline; the box-top is a proxy — the leading does the real work).
80
+ 4. **Optical ink** — each display element's ink-left (box − `actualBoundingBoxLeft`, real font) equals **its own** column line (nearest column-start to its box), not always line 1.
81
+
82
+ Sandbox Chrome flags that work: `--headless=new --no-sandbox --disable-gpu --disable-dbus --use-gl=angle --use-angle=swiftshader`. `file://` works for non-ES-module pages; the CLI `--screenshot` can hang on tall pages — drive via Puppeteer and screenshot per viewport. Read PNGs back with the image-capable Read tool to eyeball a **zoom crop of the top-left corner** (masthead vs body vs column line) — the fastest human check.
83
+
84
+ A clean run looks like: `col=0px overlay=0px baseline≤4px ink=0px` → `GRID VERIFY: PASS`.
85
+
86
+ ---
87
+
88
+ ## PART 4 — CRAFT DEFAULTS (so it looks excellent, not just aligned)
89
+ - **Palette:** white `#fff`, ink `#111`, one accent (Swiss red `#e4002b`). No warm-cream Claude look; no blue/purple gradients.
90
+ - **Type:** a real grotesque webfont (Inter / Helvetica Now / Archivo) for display + body; a **mono** (Space Mono / IBM Plex Mono) for folios, captions, grid annotations — reinforces the technical register. Non-Latin via Noto Sans JP etc.
91
+ - **Hierarchy** through scale + weight + white space, not color. Treat key data as **large numerals**. Kicker labels in mono caps. Per-spread folios.
92
+ - **Real photography.** Ground real subjects in real photos (`SearchImages`). **Host each image via `PublishFilePublicly` and embed the `pub.hyperagent.com` URL** — a `PublishWebpage` artifact runs in a sandboxed iframe that can't authenticate thread-scoped `/api/files/...` URLs (broken-image trap).
93
+ - **Type fidelity if you ever rasterize art** (cairosvg / headless screenshots / image-gen reference): a `Helvetica`/`Arial` CSS stack silently falls back to **Noto Sans** (reads like Calibri). Render in **Liberation Sans** or an embedded Helvetica/Arimo TTF before trusting it. (Same trap as the optical-measurement caveat: wrong font in → wrong result out.)
94
+ - **Spread model:** full-width sections, each its own per-spread `.grid` + `.guides`, consistent margins/folios.
95
+
96
+ ---
97
+
98
+ ## PART 5 — WORKFLOW
99
+ 1. Pick the subject; gather real photos; host them publicly.
100
+ 2. Generate the scaffold: `python3 grid_tokens.py` (or `--scaffold` for a full page; `--cols/--baseline/--gutter/--margin/--maxw/--accent` to taste; it warns if gutter/margin aren't baseline multiples).
101
+ 3. Build spreads as **subgrid bands**; place everything by **column line**; lock spacing/line-heights/media heights to the **baseline**.
102
+ 4. Add the overlay (same content box) + toggle + optical-alignment JS (already in the scaffold; point its selector list at your display elements).
103
+ 5. Publish, then **verify**: `CHROME=… PUP=… node verify_grid.js <file-or-url> --widths=1440,1180,900`. Eyeball a top-left zoom crop. Fix, republish.
104
+
105
+ ## SCRIPTS
106
+ - **`grid_tokens.py`** — deterministic scaffold generator. Emits the `:root` tokens, `.grid`/`.band` (subgrid) scaffold, `.guides` overlay CSS, toggle JS, and the optical-alignment JS — all wired to one source of truth. `--scaffold` emits a full minimal HTML page. No network/credentials.
107
+ - **`verify_grid.js`** — Puppeteer harness implementing all four checks above with the corrected both-edges column math, the optical-exclusion, per-element column-line ink targeting, and PASS/FAIL output at multiple widths. Env: `CHROME` (chrome binary), `PUP` (puppeteer-core module path).
108
+
109
+ ## CREED
110
+ A grid you can't toggle on and measure is a mood board, not a system. Build it from one source of truth, prove it at 0px, and align the **ink**.
@@ -0,0 +1,91 @@
1
+ ---
2
+ name: assess-impact
3
+ model: sonnet
4
+ description: "Analyze the blast radius of a proposed change before any code is written. Maps dependents, affected stories, and test coverage. Produces specs/IMPACT_LATEST.md. Use before plan-work on any non-trivial change, when touching a shared module, or when the user asks \"what does this break?\"."
5
+ ---
6
+
7
+ # Assess Impact
8
+
9
+ > **HARD GATE** — Run this skill before `plan-work` whenever a change touches an existing module, symbol, or file used by more than one caller. Skip only for net-new code with no existing dependents.
10
+
11
+ Find the blast radius of the proposed change before a single line is written.
12
+
13
+ ## Modes
14
+
15
+ - Default: full impact analysis (dependents + affected stories + test coverage mapping)
16
+ - --lightweight: Fast fan-in/fan-out only (<10s). Maps callers and imports without test coverage mapping. Used by build-epic step 2 as a pre-plan gate. Risk score > 7 triggers a mandatory grill-me session before proceeding.
17
+
18
+ ## Process
19
+
20
+ ### 1. Identify the target
21
+
22
+ Name the symbol, module, or file being changed. If the user hasn't specified, ask one question: "What exactly are you changing?"
23
+
24
+ ### 2. Find dependents
25
+
26
+ ```
27
+ grep -rn "[symbol-name]" . --include="*.ts" | grep -v node_modules
28
+ git log --oneline -10 -- [file-path]
29
+ ```
30
+
31
+ → verify: `grep -rn "[target]" . | wc -l`
32
+
33
+ ### 3. Map to release plan stories
34
+
35
+ Read `specs/release-plan.yaml + epic capsule directories` (if it exists). For each dependent found in Step 2, identify which story owns that module. List stories that will be affected by the change.
36
+
37
+ → verify: `grep -c "Story" specs/release-plan.yaml + epic capsule directories 2>/dev/null || echo "no release plan"`
38
+
39
+ ### 4. List test coverage
40
+
41
+ Find tests that exercise the target:
42
+
43
+ ```
44
+ grep -rn "[symbol-name]" . --include="*.test.*" --include="*.spec.*"
45
+ ```
46
+
47
+ → verify: `grep -rn "[target]" . --include="*.test.*" | wc -l`
48
+
49
+ ### 5. Classify risk
50
+
51
+ | Level | Condition |
52
+ |-------|-----------|
53
+ | Low | ≤ 2 callers, all covered by tests |
54
+ | Medium | 3–10 callers, partial test coverage |
55
+ | High | > 10 callers, or shared API/interface, or no tests |
56
+
57
+ ### 6. Write specs/IMPACT_LATEST.md
58
+
59
+ ```
60
+ ## Target
61
+ [symbol or file being changed]
62
+
63
+ ## Dependents ([count])
64
+ - [file]: [caller or usage]
65
+
66
+ ## Affected Stories
67
+ - Story [X.Y]: [title]
68
+
69
+ ## Test Coverage
70
+ - [test file]: covers [scenario]
71
+ - Gap: [untested behavior]
72
+
73
+ ## Risk: Low / Medium / High
74
+ [One-sentence rationale]
75
+
76
+ ## Recommended action
77
+ [Proceed / Add tests first / Discuss design]
78
+ ```
79
+
80
+ → verify: `grep "Risk:" specs/IMPACT_LATEST.md`
81
+
82
+ Suggest `plan-work` once risk is understood and any test gaps are noted.
83
+
84
+ ## Risk score gating
85
+
86
+ In `--lightweight` mode (used by build-epic step 2), assign a numeric risk score (1–10):
87
+ - Fan-in (how many callers): 0–4 points
88
+ - Fan-out (how many dependencies the module itself uses): 0–3 points
89
+ - Recent churn (git log --oneline -5 count): 0–3 points
90
+
91
+ **Risk score > 7**: Gate — require a `grill-me` session before proceeding to implementation. Document the grill-me result in the impact report at `specs/IMPACT-<epic>-<story>.md`.
@@ -0,0 +1,187 @@
1
+ ---
2
+ name: audit-code
3
+ model: haiku
4
+ description: "Self-review checklist for the coding agent to run before dispatching a reviewer. Checks CONVENTIONS.md compliance, Boy Scout Rule, test coverage, types, and SOLID. Produces a pass/fail checklist. Use before request-review, before committing, or when user asks for a code quality check."
5
+ ---
6
+
7
+ # Audit Code
8
+ > **HARD GATE** — **HARD GATE** — Audit must check for: bugs (correctness), security, performance, and clarity. Do NOT skip security review if the code touches user data, auth, or external APIs.
9
+
10
+
11
+ Run this self-review before asking anyone else to look at the code. The goal is to catch everything that is clearly wrong or missing — so the reviewer can focus on design and architecture, not hygiene.
12
+
13
+ **Distinct from `request-review`:** This is the coding agent checking its own work. No second agent is involved. Run this first; run `request-review` after this passes.
14
+
15
+ ## Look-here-first (churn heuristic)
16
+
17
+ Before the checklist, rank changed files by git churn and review **high-churn hotspots first** — they carry the most latent risk regardless of diff size.
18
+
19
+ ```bash
20
+ bash scripts/bp-churn-rank.sh --since 90.days --limit 15
21
+ ```
22
+
23
+ Apply the full checklist to churn-ranked files in descending order. Files with zero recent commits but large diffs still get reviewed; churn only sets priority, not scope.
24
+
25
+ ## Modes
26
+
27
+ - Default: full checklist
28
+ - --quick: Run only Supply Chain and Test Coverage. Use for changes under 50 LOC.
29
+ - --gate: Non-interactive mode for automated CI gating (used by build-epic step 6). Exit with non-zero status code (`exit 1`) on ANY checklist failure; `exit 0` only if ALL items pass. Produces a compact pass/fail summary to stderr. On failure, list every ✗ item with reason.
30
+ - --parallel: Run checklist sections in **isolated git worktrees** (e45s18) so concurrent checks cannot corrupt each other's working tree:
31
+
32
+ ```bash
33
+ bash scripts/lib/parallel-review-worktrees.sh audit-code
34
+ ```
35
+
36
+
37
+ ## Checklist
38
+
39
+ ### Supply Chain & Security
40
+
41
+ - [ ] slopcheck run for new dependencies; packages tagged in plan-work: `[OK]`, `[SUS]`, or `[SLOP]`
42
+ - [ ] No `[SLOP]` packages without documented human approval
43
+ - [ ] No secrets in diff (`sk-`, `ghp_`, `AKIA`, `.env` values) — see `guard-git` patterns
44
+ - [ ] OWASP Top 10 spot-check: injection, broken auth, sensitive data exposure, misconfiguration (see `docs/references/security-threats.md`)
45
+ - [ ] Security: diff scanned — no unaddressed HIGH findings (or deviations documented in `specs/security/EXCEPTIONS.md`)
46
+
47
+ ### Provenance & Metadata
48
+
49
+ - [ ] New plan artefacts include `type:` and `context:` metadata
50
+ - [ ] Implementation steps reference ADR or commit SHA where decisions were made
51
+
52
+ ### Law of Demeter
53
+
54
+ - [ ] No method chains through unrelated objects (e.g. `a.getB().getC().doX()`)
55
+ - [ ] Collaborators talk to immediate neighbors only; law violations need explicit justification
56
+
57
+ ### CONVENTIONS.md Compliance
58
+
59
+ - [ ] All output files are in `specs/` (no docs written to project root)
60
+ - [ ] No `gh issue create` calls anywhere in new/modified skills or scripts
61
+ - [ ] `gh` used only for PRs and repo clone operations
62
+ - [ ] No GitHub REST API called directly (no curl/fetch to api.github.com)
63
+
64
+ ### Scope
65
+
66
+ - [ ] Changes are limited to what was asked — nothing extra refactored or reorganized
67
+ - [ ] No speculative features added
68
+ - [ ] No files touched outside the stated scope
69
+ - [ ] **Discovered defects:** Reproducible gate failures (Preflight, CI, golden suite) require fix-or-log — `quick-fix` or `fix-bug` — even when "outside" the story scope. Scope-minimization does not waive Always Green.
70
+ - [ ] Boy Scout Rule applies to files opened to fix a gate failure; it does not excuse skipping red Preflight
71
+
72
+ ### Boy Scout Rule
73
+
74
+ - [ ] Every file I touched is cleaner than when I found it
75
+ - [ ] No dead code left behind
76
+ - [ ] No commented-out code blocks
77
+
78
+ ### Types and Safety
79
+
80
+ - [ ] No `any` types introduced (TypeScript) or untyped public functions (Python/Go/etc.)
81
+ - [ ] No `@ts-ignore` or `// eslint-disable` added
82
+ - [ ] No `as unknown as X` casts that bypass type safety
83
+
84
+ ### Test Coverage
85
+
86
+ - [ ] Every new function has at least one test
87
+ - [ ] Every bug fix has a regression test
88
+ - [ ] Tests verify behavior through public interfaces (not implementation details)
89
+ - [ ] Tests are F.I.R.S.T compliant (per CONVENTIONS.md §Tests; use `enforce-first` if unsure)
90
+
91
+ ### SOLID and Heuristics
92
+
93
+ - [ ] Single Responsibility: no function or module doing two unrelated things
94
+ - [ ] Open/Closed: extended through interfaces, not by modifying stable code
95
+ - [ ] Dependency Inversion: dependencies injected, not imported globally where avoidable
96
+ - [ ] **Chapter 17 Heuristics**: Code is free of smells documented in `audit-code/HEURISTICS.md` (G, N, C, T)
97
+
98
+ ### Code Style (CONVENTIONS.md)
99
+
100
+ - [ ] Functions: 4–20 lines; split if longer
101
+ - [ ] Functions: descend exactly one level of abstraction (The Stepdown Rule / G34)
102
+ - [ ] Files: under 300 lines (ideally 200–300)
103
+ - [ ] Names: specific and unique (grep returns < 5 hits for each name)
104
+ - [ ] No duplication — shared logic extracted (DRY / G5)
105
+ - [ ] Early returns over nested ifs; max 2 levels of indentation
106
+ - [ ] Conditionals: expressed as positives (G29)
107
+ - [ ] Comments explain WHY, not WHAT
108
+
109
+ ### Agent Readability (Akita's Lens)
110
+
111
+ - [ ] Functions are small enough to fit in a standard context window (4–20 lines)
112
+ - [ ] Names are unique and specific enough to be `grep`-able (grep returns < 5 hits)
113
+ - [ ] Types are explicit (no `any`, no inferred return types for public APIs)
114
+ - [ ] Code avoids deep nesting (max 2 levels) and uses early returns
115
+
116
+ ### Red Flags
117
+
118
+ Before reporting, name any rationalization you caught yourself making for skipping a checklist item. Silence is not acceptable — if you skipped an item, state the reason explicitly.
119
+
120
+ ## Output
121
+
122
+ Report the checklist with ✓ / ✗ per item. For each ✗, describe what needs to be fixed.
123
+
124
+ If all items pass: suggest running `request-review` for an independent second opinion.
125
+ If any items fail: fix them before proceeding.
126
+
127
+ In `--gate` mode, print one summary line per checklist section (`PASS Supply Chain` / `FAIL Provenance (2 items)`). Exit `0` only if all PASS. Write full report to `specs/verifications/AUDIT-<epic>-<story>.md`.
128
+
129
+ ## Verify
130
+
131
+ → verify: `test -f CONVENTIONS.md && test -d skills/enforce-first && test -d skills/request-review && echo "OK: audit-code dependencies present" || echo "FAIL"`
132
+
133
+ ## Handoff
134
+
135
+ Gate: READY -> next: commit-message
136
+ Writes: state.yaml handoff.next_skill = commit-message
137
+
138
+
139
+ <!-- story: e01s02 -->
140
+ <!-- story: e06s03 -->
141
+ <!-- story: e07s01 -->
142
+
143
+ ---
144
+
145
+ # Clean Code Heuristics (Chapter 17)
146
+
147
+ A summary of Robert C. Martin's catalogue of code smells and heuristics, used as the technical benchmark for `audit-code`.
148
+
149
+ ## Comments (C)
150
+ - **C1: Inappropriate Information**: Comments should only hold technical notes. Metadata (author, change history) belongs in Git.
151
+ - **C2: Obsolete Comment**: Update or delete comments that are no longer accurate.
152
+ - **C3: Redundant Comment**: Don't describe code that adequately describes itself (e.g., `i++; // increment i`).
153
+ - **C4: Poorly Written Comment**: If you write a comment, spend time making it the best it can be.
154
+ - **C5: Commented-Out Code**: Delete it. Git remembers it.
155
+
156
+ ## Environment (E)
157
+ - **E1: Build Requires More Than One Step**: Building should be a single trivial operation (e.g., `bash install.sh`).
158
+ - **E2: Tests Require More Than One Step**: Running all tests should be one simple command (e.g., `npm test`).
159
+
160
+ ## Functions (F)
161
+ - **F1: Too Many Arguments**: 0 is ideal, 1-2 is fine, 3 requires special justification. Never > 3.
162
+ - **F2: Output Arguments**: Avoid them. If a function changes state, it should change the state of its owning object.
163
+ - **F3: Flag Arguments**: Boolean arguments are a smell that the function does > 1 thing.
164
+ - **F4: Dead Function**: Discard methods that are never called.
165
+
166
+ ## General (G)
167
+ - **G1: Multiple Languages in One Source File**: Try to minimize the mixing of languages (e.g., HTML inside Java).
168
+ - **G5: Duplication (DRY)**: **The root of all evil.** Every time you see duplication, it's a missed opportunity for abstraction.
169
+ - **G6: Code at Wrong Level of Abstraction**: High-level concepts in base classes; low-level details in derivatives.
170
+ - **G25: Replace Magic Numbers with Named Constants**: No "naked" numbers or strings.
171
+ - **G28: Encapsulate Conditionals**: Prefer `if (shouldBePublished())` over complex boolean logic.
172
+ - **G29: Avoid Negative Conditionals**: Prefer `if (buffer.shouldCompact())` over `if (!buffer.shouldNotCompact())`.
173
+ - **G30: Functions Should Do One Thing**: If a function can be split into sections, it's doing too much.
174
+ - **G31: Hidden Temporal Couplings**: If execution order matters, make the dependency explicit via arguments.
175
+ - **G34: Functions Should Descend Only One Level of Abstraction**: The Stepdown Rule.
176
+
177
+ ## Naming (N)
178
+ - **N1: Choose Descriptive Names**: Names should reveal intent and be updated as code evolves.
179
+ - **N4: Unambiguous Names**: Names should make the working of a function/variable clear.
180
+ - **N7: Names Should Describe Side-Effects**: Describe everything the function is or does.
181
+
182
+ ## Tests (T)
183
+ - **T1: Insufficient Tests**: A test suite should test everything that could possibly break.
184
+ - **T4: An Ignored Test Is a Question about an Ambiguity**: Document the reason for `@Ignore`.
185
+ - **T5: Test Boundary Conditions**: Most bugs happen at the boundaries; test them exhaustively.
186
+ - **T8: Test Coverage Patterns Can Be Revealing**: Analyze what code is *not* executed to find gaps.
187
+ - **T9: Tests Should Be Fast**: Slow tests don't get run.
@@ -0,0 +1,89 @@
1
+ ---
2
+ name: audit-plan
3
+ model: sonnet
4
+ description: "Evaluate an incoming project plan against bigpowers principles and conventions, surface gaps, and produce a READY/NOT READY verdict before engagement begins. Use when a new project arrives, when adapting a foreign plan, or before running seed-conventions on an unfamiliar codebase."
5
+ ---
6
+
7
+ # Audit Plan
8
+
9
+ > **HARD GATE** — Do NOT start build skills (kickoff-branch, develop-tdd) until audit-plan returns a READY verdict. A plan missing test commands, scope boundaries, or success criteria will produce drift and rework downstream.
10
+
11
+ Assess an incoming project plan for alignment with bigpowers principles, identify what's missing, and produce a structured readiness report before any skill execution begins.
12
+
13
+ ## Three lenses
14
+
15
+ ### 1. Principles alignment
16
+ - Are stories vertical slices (not horizontal layers)?
17
+ - Is scope bounded — explicit in_scope + out_of_scope?
18
+ - Are success criteria defined (how do we know we're done)?
19
+ - Are HARD GATE candidates identifiable (critical decision points)?
20
+ - Is there a domain language / ubiquitous terminology?
21
+
22
+ ### 2. Conventions completeness
23
+ - Does `CLAUDE.md` or `AGENTS.md` exist?
24
+ - Does `CONVENTIONS.md` exist?
25
+ - Is the `specs/` directory layout in place?
26
+ - Are commit conventions documented (Conventional Commits)?
27
+ - Is the git workflow mode identified (`solo-git` | `team-pr`)?
28
+
29
+ ### 3. Bigpowers pre-flight (must all be answered before build)
30
+ | Question | Why |
31
+ |----------|-----|
32
+ | What is the **test command**? | `develop-tdd` verify steps require it |
33
+ | What is the **build command**? | `verify-work` mechanical gate |
34
+ | What is the **lint command**? | `audit-code` lint gate |
35
+ | What is the **typecheck command**? | `verify-work` typecheck gate |
36
+ | What **CI platform** is in use? | `wire-ci` configuration |
37
+ | **Solo or team**? | `release-branch` integration mode |
38
+ | Primary **language + framework**? | model routing + conventions |
39
+ | **Greenfield or existing** codebase? | determines whether to run `seed-conventions` or `migrate-spec` first |
40
+
41
+ ## Process
42
+
43
+ 1. **Ingest the plan** — accept a file path, pasted PRD text, or existing `specs/` artifacts. Read `CLAUDE.md` and `CONVENTIONS.md` if present.
44
+
45
+ 2. **Score each lens** — for every item above, mark:
46
+ - ✅ Present and adequate
47
+ - ⚠️ Present but incomplete — note what's missing
48
+ - ❌ Absent
49
+
50
+ 3. **Close gaps conversationally** — for each ❌ or ⚠️, ask one question at a time. Record each answer before moving to the next.
51
+
52
+ 4. **Write `specs/PLAN-AUDIT_LATEST.md`**:
53
+
54
+ ```markdown
55
+ # Plan Audit — <project>
56
+ **Date:** YYYY-MM-DD · **Verdict:** READY | NOT READY
57
+
58
+ ## Principles Alignment
59
+ | Check | Status | Note |
60
+ | Vertical slices | ✅ | 4 stories, each shippable |
61
+ | Scope bounded | ⚠️ | in_scope present; out_of_scope missing |
62
+
63
+ ## Conventions Completeness
64
+ | Check | Status | Note |
65
+
66
+ ## Pre-flight Answers
67
+ | Command | Value |
68
+ | test | `npm test` |
69
+ | build | `npm run build` |
70
+
71
+ ## Open Gaps
72
+ - [ ] Add out_of_scope to scope definition (run scope-work)
73
+ - [ ] Create CLAUDE.md (run seed-conventions)
74
+
75
+ ## Verdict
76
+ READY — proceed with survey-context
77
+ NOT READY — N gaps remain; close before proceeding
78
+ ```
79
+
80
+ 5. **Recommend next skill**:
81
+ - READY → `survey-context`
82
+ - Needs bootstrapping → `seed-conventions`
83
+ - Needs spec elaboration → `elaborate-spec`
84
+ - Has foreign spec format → `migrate-spec`
85
+ - Plan assumptions need challenging → `grill-me`
86
+
87
+ ## Verify
88
+
89
+ → verify: `test -f specs/PLAN-AUDIT_LATEST.md && grep -q 'Verdict' specs/PLAN-AUDIT_LATEST.md && echo OK || echo FAIL`
@@ -0,0 +1,105 @@
1
+ ---
2
+ name: build-epic
3
+ model: sonnet
4
+ description: "Eight-step epic build cycle — reads state.yaml, execution-status.yaml, and one epic capsule; updates status via bp-yaml-set or direct edit. Resume mode runs one step per invocation. Use instead of ad-hoc execute-plan for release work."
5
+ ---
6
+
7
+ # story: e20s05
8
+
9
+ # Build Epic
10
+
11
+ Scope: one story. Called by orchestrate-project Phase 4. Not a replacement for orchestrate-project.
12
+
13
+ Orchestrates the **build** flow for a single epic: survey → plan tasks → kickoff → TDD → verify → audit → commit → release.
14
+
15
+ > **HARD GATE** — Set `specs/state.yaml` `active_flow: build_epic` and `active_epic: eNN` before starting.
16
+ >
17
+ > **HARD GATE** — Not on `main`/`master` before step 3 (kickoff-branch).
18
+
19
+ ## Nine steps (`epic_cycle` in state.yaml)
20
+
21
+ | Step | Skill / action |
22
+ |------|----------------|
23
+ | 0 | `security-review` — threat-model epic scope → `specs/security/epics/<id>/THREAT_MODEL.md` |
24
+ | 1 | `survey-context` — confirm epic + story |
25
+ | 2 | `plan-work` — flesh out story `tasks[]` in `specs/epics/eNN-slug/epic.yaml` |
26
+ | 3 | `kickoff-branch` — feature branch + clean baseline |
27
+ | 4 | `develop-tdd` — red-green per task |
28
+ | 5 | `verify-work` — UAT + mechanical gates |
29
+ | 6 | `audit-code` — **non-optional gate** (pass/fail; fail → loop back to step 4) |
30
+ | 7 | `commit-message` — Conventional Commits draft |
31
+ | 8 | `release-branch` — PR or solo land (supports `--squash-state`) | |
32
+
33
+ ## Process
34
+
35
+ 1. Read `specs/state.yaml`, `specs/execution-status.yaml`, `specs/release-plan.yaml`, active `specs/epics/eNN-slug/epic.yaml`.
36
+ - **On story start (step 1):** Write `started_at` ISO 8601 timestamp to `execution-status.yaml` under the story's key in the `stories:` section. The `bp-timing.sh` script already tracks skill-level timings — this is story-level.
37
+ 2. **Step 0 — Threat Model:** Run `security-review` against the epic's scope (read from the epic capsule). Output `specs/security/epics/<epic-id>/THREAT_MODEL.md` with surface area, vulnerability categories, risk level, and mitigation guidance.
38
+ 3. **Assess Impact (Step 2):** Before writing tasks, run `assess-impact --lightweight` on the proposed change. If the risk score exceeds 7, gate — require a `grill-me` session. Write the impact report to `specs/IMPACT-<epic>-<story>.md`. For net-new code with no existing dependents, skip.
39
+ 4. **BCP Tracking (Step 2):** After `plan-work` completes, read the `bcps:` count (Business Complexity Points story size) from the epic capsule and carry it into `state.yaml` as `epic_cycle.story_bcps = N`.
40
+ 5. **BCP Plus (Step 2, optional):** When the epic capsule carries a `bcp_plus_breakdown` (13-dimension sizing), also carry it into `state.yaml` as `epic_cycle.bcp_plus`. The breakdown maps each of the 13 dimensions to an integer count. NFR dimensions (11–13) that are N/A per the NFR Gate may be set to 0.
41
+ 6. If `epic_cycle.step` missing, set to `1`.
42
+ 6. Run **only the current step** (resume mode) unless user asked for full auto-run.
43
+ 7. After step verify passes, increment `epic_cycle.step` in `state.yaml` (or `bash scripts/bp-yaml-set.sh` if available).
44
+ 8. On story complete, set `execution-status.yaml` story key to `done`; run `bash scripts/sync-status-from-epics.sh`.
45
+ - **On story complete (step 8):** Write `completed_at` ISO 8601 timestamp to `execution-status.yaml` under the same story key. Format:
46
+
47
+ ```yaml
48
+ stories:
49
+ e01s01:
50
+ status: done
51
+ started_at: "2026-07-12T16:00:00-03:00"
52
+ completed_at: "2026-07-12T18:45:00-03:00"
53
+ ```
54
+ 9. **Traceability refresh:** Before step 8 (release-branch), run `bash scripts/trace-stories.sh` to regenerate `specs/traceability-matrix.json`, `specs/TRACEABILITY_LATEST.md`, and the `specs/codebase-wiki/` OKF bundle. Surface dark/orphan/stale findings for the just-built epic in your verify summary. If `scripts/trace-stories.sh` is missing or fails, note "trace skipped" and continue — trace failure must be visible, not silent (blocking is gate-trace's job, e38s06).
55
+
56
+ 9b. **OKF wiki refresh (e39s08):** Before step 8, run maintain-wiki INGEST to refresh the OKF wiki bundle:
57
+ ```bash
58
+ bash scripts/decompose-conventions.sh
59
+ bash scripts/generate-agent-guide.sh
60
+ ```
61
+ If any script is missing or fails, note "OKF wiki refresh skipped" and continue.
62
+ This is non-blocking — stale concepts are caught by LINT in verify-work Phase 3.
63
+
64
+ ### Step 6 — audit-code gate (non-optional)
65
+
66
+ After step 5 (verify-work) completes successfully, step 6 runs `audit-code` automatically in `--gate` mode:
67
+
68
+ 1. **Run audit:** Invoke `audit-code --gate` on the complete diff for this story.
69
+ 2. **Pass (exit 0):** All checklist sections pass → advance to step 7 (commit-message). Record `epic_cycle.audit_result: pass` in `state.yaml`.
70
+ 3. **Fail (exit 1):** One or more checklist sections fail → **reset `epic_cycle.current_step` to `4`** (develop-tdd) and add the failing section IDs to `completed_steps` as `"1,2,3,4,5,6(fail: ...)"`. Record `epic_cycle.audit_result: fail` in `state.yaml`. Do NOT advance past step 6 until audit passes.
71
+ 4. **Audit artifact:** Full audit report saved to `specs/verifications/AUDIT-<epic>-<story>.md` regardless of pass/fail, for reviewer traceability.
72
+ 5. **Enforce F.I.R.S.T:** After audit-code passes, run `enforce-first --quick` on new/modified tests. Append F.I.R.S.T violations (if any) to the audit report. Failing F.I.R.S.T criteria trigger the same loop-back to step 4.
73
+
74
+ ## --fast mode
75
+
76
+ Coalesces read-and-report steps to reduce token overhead. Activate with `build-epic --fast`.
77
+
78
+ | Normal | --fast | Change |
79
+ |--------|--------|--------|
80
+ | Step 1 (survey-context) | 1+2 together | survey + plan in one invocation |
81
+ | Step 2 (plan-work) | (absorbed into 1) | — |
82
+ | Step 3 (kickoff-branch) | Step 2 | unchanged, sequential |
83
+ | Step 4 (develop-tdd) | Step 3 | unchanged, sequential |
84
+ | Step 5 (verify-work) | Step 4 | unchanged, sequential |
85
+ | Step 6 (audit-code) | 5+6 together | audit + commit-message in one invocation |
86
+ | Step 7 (commit-message) | (absorbed into 6) | — |
87
+ | Step 8 (release-branch) | Step 7 | unchanged, sequential |
88
+
89
+ **Total invocations:** 8 → 6 per story.
90
+
91
+ **Rules:**
92
+ - Steps 3/4/5/8 (kickoff, develop, verify, release) still run sequentially — they require user interaction or branch state.
93
+ - `--fast` does NOT skip any checklist items; it only coalesces steps that are pure read-and-report.
94
+ - Record `epic_cycle.fast_mode: true` in `state.yaml` when this flag is active.
95
+
96
+ ## Handoff
97
+
98
+ Write `handoff.next_skill` and `handoff.context` in `state.yaml` when pausing mid-epic.
99
+
100
+ ## Verify
101
+
102
+ → verify: `test -f specs/state.yaml && test -f specs/execution-status.yaml && test -f specs/release-plan.yaml && test -d skills/assess-impact && test -d skills/audit-code && test -d skills/security-review && echo "OK: build-epic dependencies present" || echo "FAIL"`
103
+
104
+
105
+ <!-- story: e38s02 -->