bigpowers 2.86.5 → 2.86.6

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