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,94 @@
1
+ ---
2
+ name: hook-commits
3
+ model: haiku
4
+ description: "Set up pre-commit hooks with lint-staged (Prettier), type checking, and tests in the current repo. Use when user wants to add pre-commit hooks, set up Husky, configure lint-staged, or add commit-time formatting/typechecking/testing."
5
+ ---
6
+
7
+ # Hook Commits
8
+ > **HARD GATE** — **HARD GATE** — Pre-commit and commit-msg hooks must run before any commit lands. Skipping hooks (`--no-verify`) is forbidden unless explicitly authorized for a specific commit and documented.
9
+
10
+
11
+ ## What This Sets Up
12
+
13
+ - **Husky** pre-commit hook
14
+ - **lint-staged** running Prettier on all staged files
15
+ - **Prettier** config (if missing)
16
+ - **typecheck** and **test** scripts in the pre-commit hook
17
+
18
+ ## Steps
19
+
20
+ ### 1. Detect package manager
21
+
22
+ Check for `package-lock.json` (npm), `pnpm-lock.yaml` (pnpm), `yarn.lock` (yarn), `bun.lockb` (bun). Use whichever is present. Default to npm if unclear.
23
+
24
+ ### 2. Install dependencies
25
+
26
+ Install as devDependencies:
27
+
28
+ ```
29
+ husky lint-staged prettier
30
+ ```
31
+
32
+ ### 3. Initialize Husky
33
+
34
+ ```bash
35
+ npx husky init
36
+ ```
37
+
38
+ This creates `.husky/` dir and adds `prepare: "husky"` to package.json.
39
+
40
+ ### 4. Create `.husky/pre-commit`
41
+
42
+ Write this file (no shebang needed for Husky v9+):
43
+
44
+ ```
45
+ npx lint-staged
46
+ npm run typecheck
47
+ npm run test
48
+ ```
49
+
50
+ **Adapt**: Replace `npm` with detected package manager. If repo has no `typecheck` or `test` script in package.json, omit those lines and tell the user.
51
+
52
+ ### 5. Create `.lintstagedrc`
53
+
54
+ ```json
55
+ {
56
+ "*": "prettier --ignore-unknown --write"
57
+ }
58
+ ```
59
+
60
+ ### 6. Create `.prettierrc` (if missing)
61
+
62
+ Only create if no Prettier config exists. Use these defaults:
63
+
64
+ ```json
65
+ {
66
+ "useTabs": false,
67
+ "tabWidth": 2,
68
+ "printWidth": 80,
69
+ "singleQuote": false,
70
+ "trailingComma": "es5",
71
+ "semi": true,
72
+ "arrowParens": "always"
73
+ }
74
+ ```
75
+
76
+ ### 7. Verify
77
+
78
+ - [ ] `.husky/pre-commit` exists and is executable
79
+ - [ ] `.lintstagedrc` exists
80
+ - [ ] `prepare` script in package.json is `"husky"`
81
+ - [ ] `prettier` config exists
82
+ - [ ] Run `npx lint-staged` to verify it works
83
+
84
+ ### 8. Commit
85
+
86
+ Stage all changed/created files and commit with message: `chore: add pre-commit hooks (husky + lint-staged + prettier)`
87
+
88
+ This will run through the new pre-commit hooks — a good smoke test that everything works.
89
+
90
+ ## Notes
91
+
92
+ - Husky v9+ doesn't need shebangs in hook files
93
+ - `prettier --ignore-unknown` skips files Prettier can't parse (images, etc.)
94
+ - The pre-commit runs lint-staged first (fast, staged-only), then full typecheck and tests
@@ -0,0 +1,106 @@
1
+ ---
2
+ name: inspect-quality
3
+ model: sonnet
4
+ description: "Interactive QA session where user reports bugs or issues conversationally, and the agent logs them to specs/bugs/registry.yaml with a structured audit schema. Explores the codebase in the background for context and domain language. Use when user wants to report bugs, do QA, or mentions \"QA session\"."
5
+ ---
6
+
7
+ # Inspect Quality
8
+ > **HARD GATE** — **HARD GATE** — Quality metrics (coverage, lint, cyclomatic complexity, security scans) must be monitored. If a metric degrades, surface it as a blocker. Do NOT accept regressions.
9
+
10
+
11
+ Run an interactive QA session. The user describes problems they're encountering. You clarify, explore the codebase for context, and log each issue to `specs/bugs/registry.yaml` with a structured, durable format.
12
+
13
+ ## For each issue the user raises
14
+
15
+ ### 1. Listen and lightly clarify
16
+
17
+ Let the user describe the problem in their own words. Ask **at most 2–3 short clarifying questions** focused on:
18
+
19
+ - What they expected vs what actually happened
20
+ - Steps to reproduce (if not obvious)
21
+ - Whether it's consistent or intermittent
22
+
23
+ Do NOT over-interview. If the description is clear enough to log, move on.
24
+
25
+ ### 2. Explore the codebase in the background
26
+
27
+ Kick off an Agent (subagent_type=Explore) to understand the relevant area. The goal is NOT to find a fix — it's to:
28
+
29
+ - Learn the domain language used in that area (check `specs/UBIQUITOUS_LANGUAGE_LATEST.md` if present)
30
+ - Understand what the feature is supposed to do
31
+ - Identify the user-facing behavior boundary
32
+
33
+ ### 3. Assess scope: single issue or breakdown?
34
+
35
+ Break down when:
36
+
37
+ - The fix spans multiple independent areas
38
+ - There are clearly separable concerns that could be worked on in parallel
39
+ - The user describes something with multiple distinct failure modes
40
+
41
+ Keep as a single issue when:
42
+
43
+ - It's one behavior that's wrong in one place
44
+ - The symptoms are all caused by the same root behavior
45
+
46
+ ### 4. Log to specs/bugs/registry.yaml
47
+
48
+ Append the issue to `specs/bugs/registry.yaml`. Create the `specs/bugs/` directory if it doesn't exist.
49
+
50
+ #### registry.yaml format
51
+
52
+ The file maintains a Markdown table with the following columns (derived from structured audit practice):
53
+
54
+ | Field | Description |
55
+ |-------|-------------|
56
+ | `bug_id` | `BUG-YYYY-MM-DDTHHMMSS` |
57
+ | `date` | `YYYY-MM-DD` |
58
+ | `severity` | `critical` / `high` / `medium` / `low` |
59
+ | `priority` | `p0` / `p1` / `p2` / `p3` |
60
+ | `scope` | kebab-case area (e.g. `auth`, `checkout`) |
61
+ | `what_happened` | actual behavior (user-facing terms) |
62
+ | `what_expected` | expected behavior |
63
+ | `steps_to_reproduce` | numbered steps |
64
+ | `root_cause` | one-line hypothesis |
65
+ | `files_changed` | filled in after fix |
66
+ | `approach` | filled in after fix |
67
+ | `risk_level` | `low` / `medium` / `high` |
68
+ | `new_tests` | count (filled in after fix) |
69
+ | `type_check` | `pass` / `fail` (filled in after fix) |
70
+ | `lint` | `pass` / `fail` (filled in after fix) |
71
+ | `commit_type` | `fix` / `fix!` / `feat` (filled in after fix) |
72
+ | `release_type` | `patch` / `minor` / `major` (filled in after fix) |
73
+ | `commit_message` | Conventional Commits message (filled in after fix) |
74
+ | `follow_ups` | semicolon-separated follow-up items |
75
+ | `file` | path to detailed `specs/bugs/BUG-*.md` (filled in by investigate-bug) |
76
+ | `status` | `open` / `in-progress` / `fixed` / `wont-fix` |
77
+
78
+ When a bug is fixed (via `validate-fix`), update the relevant row with the resolution fields.
79
+
80
+ #### Issue body (for context below the table)
81
+
82
+ For each bug, also append a detail section:
83
+
84
+ ```markdown
85
+ ### BUG-YYYY-MM-DDTHHMMSS: [short title]
86
+
87
+ **What happened:** [actual behavior, plain language]
88
+ **What I expected:** [expected behavior]
89
+ **Steps to reproduce:**
90
+ 1. [Step 1]
91
+ 2. [Step 2]
92
+
93
+ **Additional context:** [domain-language observations, no file paths]
94
+ ```
95
+
96
+ #### Rules for all entries
97
+
98
+ - **bug_id** uses full timestamp: `BUG-YYYY-MM-DDTHHMMSS` — matches the individual bug file name in `specs/bugs/`
99
+ - **No file paths or line numbers** — these go stale
100
+ - **Use the project's domain language** (check `specs/UBIQUITOUS_LANGUAGE_LATEST.md` if it exists)
101
+ - **Describe behaviors, not code** — "the sync service fails to apply the patch" not "applyPatch() throws"
102
+ - **Reproduction steps are mandatory** — if you can't determine them, ask the user
103
+
104
+ ### 5. Continue the session
105
+
106
+ After logging, ask: "Next issue, or are we done?" Keep going until the user says done. Each issue is independent — don't batch them.
@@ -0,0 +1,127 @@
1
+ ---
2
+ name: investigate-bug
3
+ model: sonnet
4
+ description: "Investigate a bug or issue by exploring the codebase to find root cause, then write a TDD-based fix plan to specs/bugs/BUG-*.md. Use when user reports a bug, wants to investigate a problem, mentions \"triage\", or wants to plan a fix."
5
+ ---
6
+
7
+ # Investigate Bug
8
+
9
+ **Boundary**: End-to-end bug entry point — history check → RCA (via `diagnose-root`) → fix approach → TDD plan → bug file. Delegates the 4-phase RCA to `diagnose-root`; does not re-implement it.
10
+
11
+ Investigate a reported problem, find its root cause, and write a TDD fix plan to `specs/bugs/BUG-*.md`. This is a mostly hands-off workflow — minimize questions to the user.
12
+
13
+ ## Process
14
+
15
+ ### 0. Read previous bug history
16
+
17
+ Before starting diagnosis:
18
+
19
+ 1. Read `specs/bugs/registry.yaml` (if it exists) — check for prior bugs in the same `scope` or with similar symptoms.
20
+ 2. If a relevant prior bug is found, read the corresponding `specs/bugs/BUG-*.md` file to understand previous root cause analysis and fix approach.
21
+ 3. Note in your investigation whether this is a recurrence, a related issue, or novel.
22
+
23
+ ### 1. Capture the problem
24
+
25
+ Get a brief description of the issue from the user. If they haven't provided one, ask ONE question: "What's the problem you're seeing?"
26
+
27
+ Do NOT ask follow-up questions yet. Start investigating immediately.
28
+
29
+ > **Security-impact assessment** — After capturing the problem, assess and document: `Security impact: NONE / LOW / MEDIUM / HIGH / CRITICAL`. If HIGH or CRITICAL, assign bug severity HIGH and document the exploit path in findings. If MEDIUM+, include exploit path in the bug file. Document "no security exploit path identified" for NONE/LOW.
30
+
31
+ ### 2. Explore and diagnose (4-phase RCA)
32
+
33
+ Run the 4-phase root-cause analysis via the `diagnose-root` skill (Reproduce → Isolate → Hypothesize → Verify). That skill is the canonical RCA engine — do not re-implement the phases here.
34
+
35
+ Also look at:
36
+ - Recent changes to affected files (`git log --oneline <file>`)
37
+ - Existing tests (what's tested, what's missing)
38
+ - Similar patterns elsewhere in the codebase that work correctly
39
+
40
+ > **HARD GATE** — Do NOT proceed to Step 3 (Fix Approach) until `diagnose-root` Phase 4 produces a verified root cause. "It probably is X" is not verified.
41
+
42
+ ### 3. Identify the fix approach
43
+
44
+ Based on your investigation, determine:
45
+
46
+ - The minimal change needed to fix the root cause
47
+ - Which modules/interfaces are affected
48
+ - What behaviors need to be verified via tests
49
+ - Whether this is a regression, missing feature, or design flaw
50
+ - Risk level: Low / Medium / High
51
+
52
+ ### 4. Design TDD fix plan
53
+
54
+ Create a concrete, ordered list of RED-GREEN cycles. Each cycle is one vertical slice:
55
+
56
+ - **RED**: Describe a specific test that captures the broken/missing behavior
57
+ - **GREEN**: Describe the minimal code change to make that test pass
58
+
59
+ Rules:
60
+ - Tests verify behavior through public interfaces, not implementation details
61
+ - One test at a time, vertical slices (NOT all tests first, then all code)
62
+ - Each test should survive internal refactors
63
+ - Include a final refactor step if needed
64
+ - **Durability**: Only suggest fixes that would survive radical codebase changes. Tests assert on observable outcomes (API responses, UI state, user-visible effects), not internal state.
65
+
66
+ ### 5. Write the bug file
67
+
68
+ Save the investigation and fix plan to `specs/bugs/BUG-NNN-slug.md`. Create the `specs/bugs/` directory if it doesn't exist.
69
+
70
+ After writing, append a row to `specs/bugs/registry.yaml` with: bug_id (same timestamp), date, severity, priority, scope, summary, and file path. Create `specs/bugs/registry.yaml` if it doesn't exist.
71
+
72
+ <diagnosis-template>
73
+
74
+ # BUG-YYYY-MM-DDTHHMMSS: [short title]
75
+
76
+ ## Problem
77
+
78
+ A clear description of the bug or issue, including:
79
+ - What happens (actual behavior)
80
+ - What should happen (expected behavior)
81
+ - How to reproduce (if applicable)
82
+
83
+ ## Root Cause Analysis
84
+
85
+ Describe what you found during investigation:
86
+ - The code path involved
87
+ - Why the current code fails
88
+ - Any contributing factors
89
+ - Risk level: Low / Medium / High
90
+
91
+ Do NOT include specific file paths, line numbers, or implementation details that couple to current code layout. Describe modules, behaviors, and contracts instead.
92
+
93
+ ## TDD Fix Plan
94
+
95
+ A numbered list of RED-GREEN cycles:
96
+
97
+ 1. **RED**: Write a test that [describes expected behavior]
98
+ **GREEN**: [Minimal change to make it pass]
99
+ **verify**: [runnable command]
100
+
101
+ 2. **RED**: Write a test that [describes next behavior]
102
+ **GREEN**: [Minimal change to make it pass]
103
+ **verify**: [runnable command]
104
+
105
+ **REFACTOR**: [Any cleanup needed after all tests pass]
106
+
107
+ ## Acceptance Criteria
108
+
109
+ - [ ] Criterion 1
110
+ - [ ] Criterion 2
111
+ - [ ] All new tests pass
112
+ - [ ] Existing tests still pass
113
+
114
+ ## Resolution
115
+
116
+ <!-- filled in by validate-fix -->
117
+
118
+ </diagnosis-template>
119
+
120
+ After writing the bug file, print a one-line summary of the root cause and suggest running `kickoff-branch` next to create a fix branch.
121
+
122
+ ## References
123
+
124
+ <!-- story: e35s10 -->
125
+
126
+ - [Feathers' Seams & Characterization Tests](https://github.com/danielvm-git/bigpowers/blob/main/docs/references/feathers.md) — seam types, characterization tests, and the legacy code change algorithm
127
+ - [Fowler's Code Smells](https://github.com/danielvm-git/bigpowers/blob/main/docs/references/fowler.md) — identifying structural problems by smell before investigating
@@ -0,0 +1,143 @@
1
+ ---
2
+ name: kickoff-branch
3
+ model: haiku
4
+ description: "Create a git worktree and feature branch, then verify a clean test baseline before any code is written. Use when starting a new feature or task, when user wants to work in isolation from main, or mentions \"start a branch\" or \"new worktree\"."
5
+ ---
6
+
7
+ # story: e51s03
8
+ # story: e20s03
9
+
10
+
11
+ # Kickoff Branch
12
+
13
+ > **HARD GATE** — Direct work on `main` or `master` is PROHIBITED. Every task MUST start with this skill to create a feature branch or worktree.
14
+ >
15
+ > **HARD GATE** — Do NOT proceed with development until **Preflight** passes on the default branch. Red Preflight blocks branch creation and all forward work — invoke `quick-fix` or `fix-bug` per CONVENTIONS § Discovered Defects.
16
+
17
+ Create an isolated working environment before touching any code. **Preflight must be green** before you write feature code — solo-default owns the whole tree, not just the current task diff.
18
+
19
+ ## Process
20
+
21
+ ### 1. Confirm task name
22
+
23
+ Ask if not already known: "What's the name of this feature or task?" Use it as the branch name slug (kebab-case, max 40 chars).
24
+
25
+ ### 2. Anchor on default branch (main or master)
26
+
27
+ > **HARD GATE** — Kickoff MUST start from an updated, clean default branch in the **primary** repository root (not a linked worktree).
28
+
29
+ ```bash
30
+ # Detect default branch
31
+ DEFAULT=$(git symbolic-ref refs/remotes/origin/HEAD 2>/dev/null | sed 's@^refs/remotes/origin/@@' || echo main)
32
+
33
+ git checkout "$DEFAULT"
34
+ git pull --ff-only origin "$DEFAULT" # skip if no remote
35
+ git status # working tree MUST be clean
36
+ git log --oneline -5
37
+ ```
38
+
39
+ **Spec-only pre-kickoff** — before enforcing the clean-tree gate, check whether dirty files are spec artifacts:
40
+
41
+ ```bash
42
+ DIRTY=$(git status --porcelain | awk '{print $2}')
43
+ NON_SPEC=$(echo "$DIRTY" | grep -v '^specs/' || true)
44
+
45
+ if [ -z "$DIRTY" ]; then
46
+ : # clean — proceed
47
+ elif [ -z "$NON_SPEC" ]; then
48
+ # spec-only dirty tree — offer auto-commit
49
+ echo "Dirty spec artifacts: $(echo $DIRTY | tr '\n' ' ')"
50
+ read -p "Commit spec artifacts before kickoff? [Y/n]: " CONFIRM
51
+ CONFIRM=${CONFIRM:-Y}
52
+ if [[ "$CONFIRM" =~ ^[Yy] ]]; then
53
+ git add specs/
54
+ git commit -m "chore(state): checkpoint before kickoff"
55
+ fi
56
+ else
57
+ echo "Dirty tree: $NON_SPEC (not a spec artifact). Stash or commit before proceeding."
58
+ exit 1
59
+ fi
60
+ ```
61
+
62
+ - **Spec artifacts** match `specs/` — state.yaml, epics YAMLs, execution-status.yaml, etc.
63
+ - **Non-spec dirty files** (src/, scripts/, SKILL.md, …) still enforce the full clean-tree gate.
64
+ - If not on `$DEFAULT` after checkout, stop and fix before continuing.
65
+
66
+ ### 3. Pre-flight & Conflict Resolution
67
+
68
+ Before creating the worktree, verify the target environment is clean:
69
+
70
+ ```bash
71
+ # 1. Check for existing directory
72
+ ls -d ../<task-slug> 2>/dev/null
73
+
74
+ # 2. Check for existing branch
75
+ git branch --list <task-slug>
76
+
77
+ # 3. Check for "ghost" worktrees (metadata exists but directory is gone)
78
+ git worktree list | grep "<task-slug>"
79
+ ```
80
+
81
+ **Handling Conflicts:**
82
+ - **Directory exists:** If `../<task-slug>` already exists, ask the user if they want to use it or delete it.
83
+ - **Branch exists:** If the branch exists but no worktree is attached, ask to use the existing branch (`git worktree add ../<task-slug> <task-slug>`) or delete it.
84
+ - **Ghost worktree:** If `git worktree list` shows the path but the directory is missing, run `git worktree prune` to clear the stale metadata.
85
+
86
+ ### 4. Create worktree + branch
87
+
88
+ ```bash
89
+ # From the main repo root (not another worktree)
90
+ git worktree add ../<task-slug> -b <task-slug>
91
+ cd ../<task-slug>
92
+ ```
93
+
94
+ If the user prefers a branch without a worktree:
95
+ ```bash
96
+ git checkout -b <task-slug>
97
+ ```
98
+
99
+ ### 4. Verify clean baseline
100
+
101
+ > **HARD GATE (e39s02):** Acquire story lock in `specs/agent-locks.yaml` before running tests.
102
+
103
+ ```bash
104
+ LOCK="specs/agent-locks.yaml"; STORY="<story-id>"
105
+ if [ -f "$LOCK" ]; then
106
+ python3 -c "
107
+ import yaml,sys,datetime
108
+ d=yaml.safe_load(open('$LOCK'))or{'locks':[]}
109
+ for l in d['locks']:
110
+ if l['story_id']=='$STORY':print(f'LOCKED by {l[\"locked_by\"]} at {l[\"locked_at\"]}');sys.exit(1)
111
+ d['locks'].append({'story_id':'$STORY','locked_by':'agent: build-epic','locked_at':datetime.datetime.utcnow().strftime('%Y-%m-%dT%H:%M:%SZ'),'files_touched':[]})
112
+ yaml.dump(d,open('$LOCK','w'),default_flow_style=False)
113
+ print(f'LOCK ACQUIRED: $STORY')
114
+ "
115
+ fi
116
+ ```
117
+
118
+ If locked: abort. If unlocked: entry added, proceed.
119
+
120
+ Run **Preflight** (from `CLAUDE.md` Commands table, or `BP_PREFLIGHT` from `bash scripts/bp-read-agents.sh`) and confirm green before writing any code:
121
+
122
+ ```bash
123
+ # Preflight — project's full local verification stack
124
+ # bigpowers example:
125
+ npm run compliance && bash scripts/run-verification-gates.sh
126
+
127
+ # Or project-specific from CLAUDE.md / AGENTS.md
128
+ ```
129
+
130
+ - [ ] Preflight passes (all chained gates green)
131
+ - [ ] No type errors (`npm run typecheck` or equivalent, if not in Preflight)
132
+ - [ ] No lint errors (`npm run lint` or equivalent, if not in Preflight)
133
+
134
+ If Preflight is red, **stop** — route to `quick-fix` or `fix-bug`. Fix before kickoff continues.
135
+
136
+ ### 5. Confirm readiness
137
+
138
+ Report: `✓ Preflight green` + branch + worktree. Suggest next: `develop-tdd` or `execute-plan`.
139
+
140
+ ## Handoff
141
+
142
+ Gate: READY -> next: develop-tdd
143
+ Writes: state.yaml handoff.next_skill = develop-tdd
@@ -0,0 +1,64 @@
1
+ ---
2
+ name: maintain-wiki
3
+ model: haiku
4
+ description: "Agent-maintained OKF wiki — INGEST source docs, LINT for issues, QUERY across concept pages. Run as part of build-epic Step 8 and verify-work Phase 3."
5
+ ---
6
+
7
+ # Maintain Wiki
8
+
9
+ Three operations for keeping the OKF wiki bundle consistent with its source docs.
10
+
11
+ ## INGEST
12
+
13
+ Read source doc (CLAUDE.md, CONVENTIONS.md, or SKILL.md) and write/update OKF concept pages:
14
+
15
+ ```bash
16
+ # Regenerate skills-wiki from SKILL.md files
17
+ bash scripts/sync-skills.sh --okf
18
+
19
+ # Regenerate conventions-wiki from CONVENTIONS.md
20
+ bash scripts/decompose-conventions.sh
21
+
22
+ # Regenerate agent-guide from CLAUDE.md
23
+ bash scripts/generate-agent-guide.sh
24
+ ```
25
+
26
+ ## LINT
27
+
28
+ Check for common OKF issues:
29
+
30
+ 1. **Stale concepts** — source file mtime vs concept page mtime. If source is newer, concept is stale.
31
+ 2. **Orphan concepts** — concept page exists but source doc section no longer exists.
32
+ 3. **Missing cross-references** — skill concept pages with no `enforced_by` or `references` links.
33
+ 4. **Contradictions** — two concept pages that make opposite claims about the same topic.
34
+ 5. **Broken links** — internal OKF links that point to non-existent concept pages.
35
+
36
+ ```bash
37
+ # Quick stale check: compare source vs concept mtimes
38
+ for page in specs/skills-wiki/skills/*.md; do
39
+ skill=$(basename "$page" .md)
40
+ source="skills/$skill/SKILL.md"
41
+ if [ -f "$source" ] && [ "$page" -ot "$source" ]; then
42
+ echo "STALE: $skill (SKILL.md newer than concept page)"
43
+ fi
44
+ done
45
+ ```
46
+
47
+ ## QUERY
48
+
49
+ Search across OKF concept pages to answer questions:
50
+
51
+ ```bash
52
+ # Find all concepts about a topic
53
+ grep -rl "topic" specs/skills-wiki/ specs/conventions-wiki/ specs/agent-guide/
54
+
55
+ # Trace a convention → enforcing skills
56
+ grep -A1 "enforced_by" specs/conventions-wiki/*.md
57
+
58
+ # Find skill by description keyword
59
+ grep -ril "keyword" specs/skills-wiki/skills/*.md
60
+ ```
61
+
62
+ ## Verify
63
+
64
+ → verify: `test -d specs/skills-wiki && test -d specs/conventions-wiki && test -d specs/agent-guide && echo "OKF wiki present" || echo "FAIL"`
@@ -0,0 +1,71 @@
1
+ ---
2
+ name: map-codebase
3
+ model: sonnet
4
+ description: "Derives the tech-stack doc from scratch by scanning the codebase — analyzes stack, architecture, and gray areas (error handling, API shapes) and persists findings into specs/tech-architecture/tech-stack.md. Run when the tech doc doesn't exist yet; use survey-context to consume it once it does."
5
+ ---
6
+
7
+ # Map Codebase
8
+
9
+ Perform a deep architectural and structural analysis of the codebase. Unlike `survey-context` which identifies "where we are", `map-codebase` identifies "what we are dealing with" and "how things are done".
10
+
11
+ > **Use this vs survey-context:** `map-codebase` BUILDS the tech-stack doc by scanning the codebase from scratch. `survey-context` READS existing specs/tech-architecture docs without re-deriving them. Run `map-codebase` when `specs/tech-architecture/tech-stack.md` doesn't exist yet; run `survey-context` when it does.
12
+
13
+ > **HARD GATE** — Cold analysis only. Do NOT assume architectural patterns without reading the code. If the codebase structure surprises you, call out the delta.
14
+
15
+ ## Process
16
+
17
+ ### 1. Identify Core Stack & Dependencies
18
+ - Scan `package.json`, `Cargo.toml`, `requirements.txt`, etc.
19
+ - Identify primary framework, runtime, and critical libraries (ORM, Auth, State, UI).
20
+ - Note version constraints and any deprecated or unusual dependencies.
21
+
22
+ ### 2. Map High-Level Architecture
23
+ - Identify the entry points (CLI, Web, API).
24
+ - Map the primary data flow (e.g., Controller → Service → Repository).
25
+ - Identify where business logic lives vs. where I/O lives.
26
+ - Look for established patterns (e.g., hexagonal, layered, feature-folders).
27
+
28
+ ### 3. Analyze "Gray Areas" (The "How")
29
+ Search for patterns and anti-patterns in these categories:
30
+ - **Error Handling:** Are exceptions caught early or bubbled? Is there a global error handler? Are error messages structured?
31
+ - **API Shapes:** Is it REST, GraphQL, or RPC? What is the casing (camelCase, snake_case)? How are responses structured?
32
+ - **Type Safety:** Is it strictly typed? Are there many `any` or `unsafe` blocks? Are interfaces used for DIP?
33
+ - **Observability:** Is there structured logging? Are there health checks? Where do logs go?
34
+ - **Testing:** What is the test coverage strategy? Are mocks used? Where do tests live?
35
+
36
+ ### 4. Identify Planning "Signals"
37
+ Look for signals that will influence upcoming plans:
38
+ - **Consistency Gaps:** "Half the project uses async/await, the other half uses Promises."
39
+ - **Debt Hotspots:** "The `AuthManager` is 1500 lines and handles both JWT and session logic."
40
+ - **Integration Points:** "We need to talk to the Stripe API, but there's no wrapper yet."
41
+ - **Conventions:** "The team always uses functional components over classes."
42
+
43
+ ### 5. Persist to specs/tech-architecture/tech-stack.md
44
+ Compile all findings into `specs/tech-architecture/tech-stack.md`. This file serves as the project's "Long-Term Memory".
45
+
46
+ ```markdown
47
+ # Project Context
48
+
49
+ ## Stack
50
+ - [Framework/Language]
51
+ - [Key Libraries]
52
+
53
+ ## Architecture
54
+ - [Pattern Description]
55
+ - [Data Flow]
56
+
57
+ ## Conventions (Observed)
58
+ - [Error Handling Pattern]
59
+ - [API Design]
60
+ - [Type System]
61
+
62
+ ## Signals / Active Considerations
63
+ - [Gap 1]
64
+ - [Hotspot 2]
65
+ ```
66
+
67
+ ## When to Use
68
+ - When first joining a project.
69
+ - Before a major refactor or architectural change.
70
+ - When `survey-context` reveals a lack of domain knowledge.
71
+ - To refresh `specs/tech-architecture/tech-stack.md` after significant changes.