@zigrivers/scaffold 2.1.2 → 2.38.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 (391) hide show
  1. package/README.md +505 -119
  2. package/dist/cli/commands/build.d.ts.map +1 -1
  3. package/dist/cli/commands/build.js +94 -14
  4. package/dist/cli/commands/build.js.map +1 -1
  5. package/dist/cli/commands/build.test.js +30 -5
  6. package/dist/cli/commands/build.test.js.map +1 -1
  7. package/dist/cli/commands/check.d.ts +12 -0
  8. package/dist/cli/commands/check.d.ts.map +1 -0
  9. package/dist/cli/commands/check.js +311 -0
  10. package/dist/cli/commands/check.js.map +1 -0
  11. package/dist/cli/commands/check.test.d.ts +2 -0
  12. package/dist/cli/commands/check.test.d.ts.map +1 -0
  13. package/dist/cli/commands/check.test.js +412 -0
  14. package/dist/cli/commands/check.test.js.map +1 -0
  15. package/dist/cli/commands/complete.d.ts +12 -0
  16. package/dist/cli/commands/complete.d.ts.map +1 -0
  17. package/dist/cli/commands/complete.js +101 -0
  18. package/dist/cli/commands/complete.js.map +1 -0
  19. package/dist/cli/commands/complete.test.d.ts +2 -0
  20. package/dist/cli/commands/complete.test.d.ts.map +1 -0
  21. package/dist/cli/commands/complete.test.js +133 -0
  22. package/dist/cli/commands/complete.test.js.map +1 -0
  23. package/dist/cli/commands/dashboard.d.ts.map +1 -1
  24. package/dist/cli/commands/dashboard.js +12 -8
  25. package/dist/cli/commands/dashboard.js.map +1 -1
  26. package/dist/cli/commands/info.d.ts.map +1 -1
  27. package/dist/cli/commands/info.js +4 -0
  28. package/dist/cli/commands/info.js.map +1 -1
  29. package/dist/cli/commands/knowledge.d.ts.map +1 -1
  30. package/dist/cli/commands/knowledge.js +6 -2
  31. package/dist/cli/commands/knowledge.js.map +1 -1
  32. package/dist/cli/commands/knowledge.test.js +16 -11
  33. package/dist/cli/commands/knowledge.test.js.map +1 -1
  34. package/dist/cli/commands/next.d.ts.map +1 -1
  35. package/dist/cli/commands/next.js +41 -13
  36. package/dist/cli/commands/next.js.map +1 -1
  37. package/dist/cli/commands/next.test.js +3 -0
  38. package/dist/cli/commands/next.test.js.map +1 -1
  39. package/dist/cli/commands/reset.d.ts +1 -0
  40. package/dist/cli/commands/reset.d.ts.map +1 -1
  41. package/dist/cli/commands/reset.js +179 -67
  42. package/dist/cli/commands/reset.js.map +1 -1
  43. package/dist/cli/commands/reset.test.js +360 -0
  44. package/dist/cli/commands/reset.test.js.map +1 -1
  45. package/dist/cli/commands/rework.d.ts +20 -0
  46. package/dist/cli/commands/rework.d.ts.map +1 -0
  47. package/dist/cli/commands/rework.js +332 -0
  48. package/dist/cli/commands/rework.js.map +1 -0
  49. package/dist/cli/commands/rework.test.d.ts +2 -0
  50. package/dist/cli/commands/rework.test.d.ts.map +1 -0
  51. package/dist/cli/commands/rework.test.js +297 -0
  52. package/dist/cli/commands/rework.test.js.map +1 -0
  53. package/dist/cli/commands/run.d.ts.map +1 -1
  54. package/dist/cli/commands/run.js +59 -31
  55. package/dist/cli/commands/run.js.map +1 -1
  56. package/dist/cli/commands/run.test.js +288 -6
  57. package/dist/cli/commands/run.test.js.map +1 -1
  58. package/dist/cli/commands/skill.d.ts +12 -0
  59. package/dist/cli/commands/skill.d.ts.map +1 -0
  60. package/dist/cli/commands/skill.js +123 -0
  61. package/dist/cli/commands/skill.js.map +1 -0
  62. package/dist/cli/commands/skill.test.d.ts +2 -0
  63. package/dist/cli/commands/skill.test.d.ts.map +1 -0
  64. package/dist/cli/commands/skill.test.js +297 -0
  65. package/dist/cli/commands/skill.test.js.map +1 -0
  66. package/dist/cli/commands/skip.d.ts +1 -1
  67. package/dist/cli/commands/skip.d.ts.map +1 -1
  68. package/dist/cli/commands/skip.js +123 -57
  69. package/dist/cli/commands/skip.js.map +1 -1
  70. package/dist/cli/commands/skip.test.js +91 -0
  71. package/dist/cli/commands/skip.test.js.map +1 -1
  72. package/dist/cli/commands/status.d.ts +1 -0
  73. package/dist/cli/commands/status.d.ts.map +1 -1
  74. package/dist/cli/commands/status.js +57 -10
  75. package/dist/cli/commands/status.js.map +1 -1
  76. package/dist/cli/commands/status.test.js +81 -0
  77. package/dist/cli/commands/status.test.js.map +1 -1
  78. package/dist/cli/commands/update.test.js +252 -0
  79. package/dist/cli/commands/update.test.js.map +1 -1
  80. package/dist/cli/commands/version.test.js +171 -1
  81. package/dist/cli/commands/version.test.js.map +1 -1
  82. package/dist/cli/index.d.ts.map +1 -1
  83. package/dist/cli/index.js +8 -0
  84. package/dist/cli/index.js.map +1 -1
  85. package/dist/core/adapters/adapter.d.ts +14 -0
  86. package/dist/core/adapters/adapter.d.ts.map +1 -1
  87. package/dist/core/adapters/adapter.js.map +1 -1
  88. package/dist/core/adapters/adapter.test.js +10 -0
  89. package/dist/core/adapters/adapter.test.js.map +1 -1
  90. package/dist/core/adapters/claude-code.d.ts.map +1 -1
  91. package/dist/core/adapters/claude-code.js +47 -10
  92. package/dist/core/adapters/claude-code.js.map +1 -1
  93. package/dist/core/adapters/claude-code.test.js +41 -20
  94. package/dist/core/adapters/claude-code.test.js.map +1 -1
  95. package/dist/core/adapters/codex.d.ts.map +1 -1
  96. package/dist/core/adapters/codex.js +5 -1
  97. package/dist/core/adapters/codex.js.map +1 -1
  98. package/dist/core/adapters/codex.test.js +5 -0
  99. package/dist/core/adapters/codex.test.js.map +1 -1
  100. package/dist/core/adapters/universal.d.ts.map +1 -1
  101. package/dist/core/adapters/universal.js +0 -1
  102. package/dist/core/adapters/universal.js.map +1 -1
  103. package/dist/core/adapters/universal.test.js +5 -0
  104. package/dist/core/adapters/universal.test.js.map +1 -1
  105. package/dist/core/assembly/context-gatherer.d.ts.map +1 -1
  106. package/dist/core/assembly/context-gatherer.js +5 -2
  107. package/dist/core/assembly/context-gatherer.js.map +1 -1
  108. package/dist/core/assembly/engine.d.ts.map +1 -1
  109. package/dist/core/assembly/engine.js +10 -2
  110. package/dist/core/assembly/engine.js.map +1 -1
  111. package/dist/core/assembly/engine.test.js +19 -0
  112. package/dist/core/assembly/engine.test.js.map +1 -1
  113. package/dist/core/assembly/knowledge-loader.d.ts +25 -0
  114. package/dist/core/assembly/knowledge-loader.d.ts.map +1 -1
  115. package/dist/core/assembly/knowledge-loader.js +75 -2
  116. package/dist/core/assembly/knowledge-loader.js.map +1 -1
  117. package/dist/core/assembly/knowledge-loader.test.js +388 -1
  118. package/dist/core/assembly/knowledge-loader.test.js.map +1 -1
  119. package/dist/core/assembly/meta-prompt-loader.d.ts +6 -0
  120. package/dist/core/assembly/meta-prompt-loader.d.ts.map +1 -1
  121. package/dist/core/assembly/meta-prompt-loader.js +41 -25
  122. package/dist/core/assembly/meta-prompt-loader.js.map +1 -1
  123. package/dist/core/assembly/preset-loader.d.ts +10 -0
  124. package/dist/core/assembly/preset-loader.d.ts.map +1 -1
  125. package/dist/core/assembly/preset-loader.js +26 -1
  126. package/dist/core/assembly/preset-loader.js.map +1 -1
  127. package/dist/core/assembly/preset-loader.test.js +65 -1
  128. package/dist/core/assembly/preset-loader.test.js.map +1 -1
  129. package/dist/core/assembly/update-mode.d.ts.map +1 -1
  130. package/dist/core/assembly/update-mode.js +10 -4
  131. package/dist/core/assembly/update-mode.js.map +1 -1
  132. package/dist/core/assembly/update-mode.test.js +47 -0
  133. package/dist/core/assembly/update-mode.test.js.map +1 -1
  134. package/dist/core/dependency/dependency.d.ts.map +1 -1
  135. package/dist/core/dependency/dependency.js +3 -2
  136. package/dist/core/dependency/dependency.js.map +1 -1
  137. package/dist/core/dependency/dependency.test.js +2 -0
  138. package/dist/core/dependency/dependency.test.js.map +1 -1
  139. package/dist/core/dependency/eligibility.js +3 -3
  140. package/dist/core/dependency/eligibility.js.map +1 -1
  141. package/dist/core/dependency/eligibility.test.js +2 -0
  142. package/dist/core/dependency/eligibility.test.js.map +1 -1
  143. package/dist/core/dependency/graph.d.ts.map +1 -1
  144. package/dist/core/dependency/graph.js +4 -0
  145. package/dist/core/dependency/graph.js.map +1 -1
  146. package/dist/core/dependency/graph.test.d.ts +2 -0
  147. package/dist/core/dependency/graph.test.d.ts.map +1 -0
  148. package/dist/core/dependency/graph.test.js +262 -0
  149. package/dist/core/dependency/graph.test.js.map +1 -0
  150. package/dist/core/rework/phase-selector.d.ts +24 -0
  151. package/dist/core/rework/phase-selector.d.ts.map +1 -0
  152. package/dist/core/rework/phase-selector.js +98 -0
  153. package/dist/core/rework/phase-selector.js.map +1 -0
  154. package/dist/core/rework/phase-selector.test.d.ts +2 -0
  155. package/dist/core/rework/phase-selector.test.d.ts.map +1 -0
  156. package/dist/core/rework/phase-selector.test.js +138 -0
  157. package/dist/core/rework/phase-selector.test.js.map +1 -0
  158. package/dist/dashboard/generator.d.ts +48 -17
  159. package/dist/dashboard/generator.d.ts.map +1 -1
  160. package/dist/dashboard/generator.js +75 -5
  161. package/dist/dashboard/generator.js.map +1 -1
  162. package/dist/dashboard/generator.test.js +213 -5
  163. package/dist/dashboard/generator.test.js.map +1 -1
  164. package/dist/dashboard/template.d.ts +1 -1
  165. package/dist/dashboard/template.d.ts.map +1 -1
  166. package/dist/dashboard/template.js +755 -114
  167. package/dist/dashboard/template.js.map +1 -1
  168. package/dist/e2e/knowledge.test.js +4 -3
  169. package/dist/e2e/knowledge.test.js.map +1 -1
  170. package/dist/e2e/pipeline.test.js +2 -0
  171. package/dist/e2e/pipeline.test.js.map +1 -1
  172. package/dist/e2e/rework.test.d.ts +6 -0
  173. package/dist/e2e/rework.test.d.ts.map +1 -0
  174. package/dist/e2e/rework.test.js +226 -0
  175. package/dist/e2e/rework.test.js.map +1 -0
  176. package/dist/index.js +0 -0
  177. package/dist/project/adopt.test.js +2 -0
  178. package/dist/project/adopt.test.js.map +1 -1
  179. package/dist/project/claude-md.js +2 -2
  180. package/dist/project/claude-md.js.map +1 -1
  181. package/dist/project/claude-md.test.js +4 -4
  182. package/dist/project/claude-md.test.js.map +1 -1
  183. package/dist/project/detector.d.ts.map +1 -1
  184. package/dist/project/detector.js +4 -1
  185. package/dist/project/detector.js.map +1 -1
  186. package/dist/project/frontmatter.d.ts.map +1 -1
  187. package/dist/project/frontmatter.js +54 -15
  188. package/dist/project/frontmatter.js.map +1 -1
  189. package/dist/project/frontmatter.test.js +2 -2
  190. package/dist/project/frontmatter.test.js.map +1 -1
  191. package/dist/state/rework-manager.d.ts +16 -0
  192. package/dist/state/rework-manager.d.ts.map +1 -0
  193. package/dist/state/rework-manager.js +126 -0
  194. package/dist/state/rework-manager.js.map +1 -0
  195. package/dist/state/rework-manager.test.d.ts +2 -0
  196. package/dist/state/rework-manager.test.d.ts.map +1 -0
  197. package/dist/state/rework-manager.test.js +191 -0
  198. package/dist/state/rework-manager.test.js.map +1 -0
  199. package/dist/state/state-manager.d.ts +13 -0
  200. package/dist/state/state-manager.d.ts.map +1 -1
  201. package/dist/state/state-manager.js +39 -2
  202. package/dist/state/state-manager.js.map +1 -1
  203. package/dist/state/state-manager.test.js +74 -1
  204. package/dist/state/state-manager.test.js.map +1 -1
  205. package/dist/state/state-migration.d.ts +23 -0
  206. package/dist/state/state-migration.d.ts.map +1 -0
  207. package/dist/state/state-migration.js +144 -0
  208. package/dist/state/state-migration.js.map +1 -0
  209. package/dist/state/state-migration.test.d.ts +2 -0
  210. package/dist/state/state-migration.test.d.ts.map +1 -0
  211. package/dist/state/state-migration.test.js +451 -0
  212. package/dist/state/state-migration.test.js.map +1 -0
  213. package/dist/types/assembly.d.ts +2 -0
  214. package/dist/types/assembly.d.ts.map +1 -1
  215. package/dist/types/dependency.d.ts +2 -2
  216. package/dist/types/dependency.d.ts.map +1 -1
  217. package/dist/types/frontmatter.d.ts +100 -7
  218. package/dist/types/frontmatter.d.ts.map +1 -1
  219. package/dist/types/frontmatter.js +89 -1
  220. package/dist/types/frontmatter.js.map +1 -1
  221. package/dist/types/index.d.ts +1 -0
  222. package/dist/types/index.d.ts.map +1 -1
  223. package/dist/types/index.js +1 -0
  224. package/dist/types/index.js.map +1 -1
  225. package/dist/types/lock.d.ts +1 -1
  226. package/dist/types/lock.d.ts.map +1 -1
  227. package/dist/types/rework.d.ts +36 -0
  228. package/dist/types/rework.d.ts.map +1 -0
  229. package/dist/types/rework.js +2 -0
  230. package/dist/types/rework.js.map +1 -0
  231. package/dist/utils/errors.d.ts +1 -0
  232. package/dist/utils/errors.d.ts.map +1 -1
  233. package/dist/utils/errors.js +8 -0
  234. package/dist/utils/errors.js.map +1 -1
  235. package/dist/utils/fs.d.ts +6 -0
  236. package/dist/utils/fs.d.ts.map +1 -1
  237. package/dist/utils/fs.js +13 -0
  238. package/dist/utils/fs.js.map +1 -1
  239. package/dist/validation/config-validator.test.d.ts +2 -0
  240. package/dist/validation/config-validator.test.d.ts.map +1 -0
  241. package/dist/validation/config-validator.test.js +210 -0
  242. package/dist/validation/config-validator.test.js.map +1 -0
  243. package/dist/validation/dependency-validator.test.d.ts +2 -0
  244. package/dist/validation/dependency-validator.test.d.ts.map +1 -0
  245. package/dist/validation/dependency-validator.test.js +215 -0
  246. package/dist/validation/dependency-validator.test.js.map +1 -0
  247. package/dist/validation/frontmatter-validator.test.d.ts +2 -0
  248. package/dist/validation/frontmatter-validator.test.d.ts.map +1 -0
  249. package/dist/validation/frontmatter-validator.test.js +371 -0
  250. package/dist/validation/frontmatter-validator.test.js.map +1 -0
  251. package/dist/validation/state-validator.test.d.ts +2 -0
  252. package/dist/validation/state-validator.test.d.ts.map +1 -0
  253. package/dist/validation/state-validator.test.js +325 -0
  254. package/dist/validation/state-validator.test.js.map +1 -0
  255. package/dist/wizard/suggestion.test.d.ts +2 -0
  256. package/dist/wizard/suggestion.test.d.ts.map +1 -0
  257. package/dist/wizard/suggestion.test.js +115 -0
  258. package/dist/wizard/suggestion.test.js.map +1 -0
  259. package/dist/wizard/wizard.d.ts.map +1 -1
  260. package/dist/wizard/wizard.js +34 -1
  261. package/dist/wizard/wizard.js.map +1 -1
  262. package/knowledge/core/adr-craft.md +57 -0
  263. package/knowledge/core/ai-memory-management.md +246 -0
  264. package/knowledge/core/api-design.md +8 -0
  265. package/knowledge/core/automated-review-tooling.md +203 -0
  266. package/knowledge/core/claude-md-patterns.md +254 -0
  267. package/knowledge/core/coding-conventions.md +246 -0
  268. package/knowledge/core/database-design.md +8 -0
  269. package/knowledge/core/design-system-tokens.md +469 -0
  270. package/knowledge/core/dev-environment.md +223 -0
  271. package/knowledge/core/domain-modeling.md +8 -0
  272. package/knowledge/core/eval-craft.md +1008 -0
  273. package/knowledge/core/git-workflow-patterns.md +200 -0
  274. package/knowledge/core/multi-model-review-dispatch.md +250 -0
  275. package/knowledge/core/operations-runbook.md +40 -225
  276. package/knowledge/core/project-structure-patterns.md +231 -0
  277. package/knowledge/core/review-step-template.md +247 -0
  278. package/knowledge/core/{security-review.md → security-best-practices.md} +9 -1
  279. package/knowledge/core/system-architecture.md +5 -1
  280. package/knowledge/core/task-decomposition.md +174 -36
  281. package/knowledge/core/task-tracking.md +225 -0
  282. package/knowledge/core/tech-stack-selection.md +214 -0
  283. package/knowledge/core/testing-strategy.md +63 -70
  284. package/knowledge/core/user-stories.md +69 -60
  285. package/knowledge/core/user-story-innovation.md +70 -0
  286. package/knowledge/core/ux-specification.md +18 -148
  287. package/knowledge/execution/enhancement-workflow.md +201 -0
  288. package/knowledge/execution/task-claiming-strategy.md +130 -0
  289. package/knowledge/execution/tdd-execution-loop.md +172 -0
  290. package/knowledge/execution/worktree-management.md +205 -0
  291. package/knowledge/finalization/apply-fixes-and-freeze.md +177 -14
  292. package/knowledge/finalization/developer-onboarding.md +4 -0
  293. package/knowledge/finalization/implementation-playbook.md +83 -5
  294. package/knowledge/product/gap-analysis.md +5 -1
  295. package/knowledge/product/prd-craft.md +55 -34
  296. package/knowledge/product/prd-innovation.md +12 -0
  297. package/knowledge/product/vision-craft.md +213 -0
  298. package/knowledge/review/review-adr.md +44 -0
  299. package/knowledge/review/{review-api-contracts.md → review-api-design.md} +47 -1
  300. package/knowledge/review/{review-database-schema.md → review-database-design.md} +40 -1
  301. package/knowledge/review/review-domain-modeling.md +38 -1
  302. package/knowledge/review/review-implementation-tasks.md +108 -1
  303. package/knowledge/review/review-methodology.md +11 -0
  304. package/knowledge/review/review-operations.md +67 -0
  305. package/knowledge/review/review-prd.md +46 -0
  306. package/knowledge/review/review-security.md +65 -0
  307. package/knowledge/review/review-system-architecture.md +32 -2
  308. package/knowledge/review/review-testing-strategy.md +62 -0
  309. package/knowledge/review/review-user-stories.md +65 -0
  310. package/knowledge/review/{review-ux-spec.md → review-ux-specification.md} +50 -2
  311. package/knowledge/review/review-vision.md +255 -0
  312. package/knowledge/tools/release-management.md +222 -0
  313. package/knowledge/tools/session-analysis.md +215 -0
  314. package/knowledge/tools/version-strategy.md +200 -0
  315. package/knowledge/validation/critical-path-analysis.md +1 -1
  316. package/knowledge/validation/cross-phase-consistency.md +12 -0
  317. package/knowledge/validation/decision-completeness.md +13 -1
  318. package/knowledge/validation/dependency-validation.md +12 -0
  319. package/knowledge/validation/scope-management.md +12 -0
  320. package/knowledge/validation/traceability.md +12 -0
  321. package/methodology/README.md +37 -0
  322. package/methodology/custom-defaults.yml +44 -4
  323. package/methodology/deep.yml +43 -3
  324. package/methodology/mvp.yml +43 -3
  325. package/package.json +4 -3
  326. package/pipeline/architecture/review-architecture.md +36 -13
  327. package/pipeline/architecture/system-architecture.md +24 -9
  328. package/pipeline/build/multi-agent-resume.md +245 -0
  329. package/pipeline/build/multi-agent-start.md +236 -0
  330. package/pipeline/build/new-enhancement.md +456 -0
  331. package/pipeline/build/quick-task.md +381 -0
  332. package/pipeline/build/single-agent-resume.md +210 -0
  333. package/pipeline/build/single-agent-start.md +207 -0
  334. package/pipeline/consolidation/claude-md-optimization.md +76 -0
  335. package/pipeline/consolidation/workflow-audit.md +77 -0
  336. package/pipeline/decisions/adrs.md +21 -7
  337. package/pipeline/decisions/review-adrs.md +32 -11
  338. package/pipeline/environment/ai-memory-setup.md +76 -0
  339. package/pipeline/environment/automated-pr-review.md +76 -0
  340. package/pipeline/environment/design-system.md +75 -0
  341. package/pipeline/environment/dev-env-setup.md +68 -0
  342. package/pipeline/environment/git-workflow.md +73 -0
  343. package/pipeline/finalization/apply-fixes-and-freeze.md +17 -6
  344. package/pipeline/finalization/developer-onboarding-guide.md +23 -9
  345. package/pipeline/finalization/implementation-playbook.md +43 -14
  346. package/pipeline/foundation/beads.md +71 -0
  347. package/pipeline/foundation/coding-standards.md +71 -0
  348. package/pipeline/foundation/project-structure.md +73 -0
  349. package/pipeline/foundation/tdd.md +64 -0
  350. package/pipeline/foundation/tech-stack.md +74 -0
  351. package/pipeline/integration/add-e2e-testing.md +80 -0
  352. package/pipeline/modeling/domain-modeling.md +23 -8
  353. package/pipeline/modeling/review-domain-modeling.md +35 -11
  354. package/pipeline/parity/platform-parity-review.md +90 -0
  355. package/pipeline/planning/implementation-plan-review.md +67 -0
  356. package/pipeline/planning/implementation-plan.md +110 -0
  357. package/pipeline/pre/create-prd.md +34 -10
  358. package/pipeline/pre/innovate-prd.md +46 -15
  359. package/pipeline/pre/innovate-user-stories.md +47 -14
  360. package/pipeline/pre/review-prd.md +29 -8
  361. package/pipeline/pre/review-user-stories.md +34 -8
  362. package/pipeline/pre/user-stories.md +23 -8
  363. package/pipeline/quality/create-evals.md +106 -0
  364. package/pipeline/quality/operations.md +46 -17
  365. package/pipeline/quality/review-operations.md +32 -11
  366. package/pipeline/quality/review-security.md +34 -12
  367. package/pipeline/quality/review-testing.md +37 -14
  368. package/pipeline/quality/security.md +36 -10
  369. package/pipeline/quality/story-tests.md +75 -0
  370. package/pipeline/specification/api-contracts.md +28 -8
  371. package/pipeline/specification/database-schema.md +29 -8
  372. package/pipeline/specification/review-api.md +32 -11
  373. package/pipeline/specification/review-database.md +32 -11
  374. package/pipeline/specification/review-ux.md +34 -12
  375. package/pipeline/specification/ux-spec.md +35 -13
  376. package/pipeline/validation/critical-path-walkthrough.md +45 -11
  377. package/pipeline/validation/cross-phase-consistency.md +45 -11
  378. package/pipeline/validation/decision-completeness.md +45 -11
  379. package/pipeline/validation/dependency-graph-validation.md +46 -11
  380. package/pipeline/validation/implementability-dry-run.md +46 -11
  381. package/pipeline/validation/scope-creep-check.md +46 -11
  382. package/pipeline/validation/traceability-matrix.md +51 -11
  383. package/pipeline/vision/create-vision.md +267 -0
  384. package/pipeline/vision/innovate-vision.md +157 -0
  385. package/pipeline/vision/review-vision.md +149 -0
  386. package/skills/multi-model-dispatch/SKILL.md +326 -0
  387. package/skills/scaffold-pipeline/SKILL.md +210 -0
  388. package/skills/scaffold-runner/SKILL.md +619 -0
  389. package/pipeline/planning/implementation-tasks.md +0 -57
  390. package/pipeline/planning/review-tasks.md +0 -38
  391. package/pipeline/quality/testing-strategy.md +0 -42
@@ -0,0 +1,75 @@
1
+ ---
2
+ name: design-system
3
+ description: Create a cohesive design system with tokens and component patterns for frontend
4
+ summary: "Creates a visual language — color palette (WCAG-compliant), typography scale, spacing system, component patterns — and generates working theme config files for your frontend framework."
5
+ phase: "environment"
6
+ order: 320
7
+ dependencies: [dev-env-setup]
8
+ outputs: [docs/design-system.md]
9
+ reads: [create-prd]
10
+ conditional: "if-needed"
11
+ knowledge-base: [design-system-tokens]
12
+ ---
13
+
14
+ ## Purpose
15
+ Define a complete visual language (colors, typography, spacing, borders, shadows)
16
+ and configure the frontend framework's theme with these design tokens. Document
17
+ reusable component patterns so all AI agents build consistent, accessible,
18
+ professional UI without requiring design expertise from the user.
19
+
20
+ ## Inputs
21
+ - docs/tech-stack.md (required) — frontend framework and UI library choices
22
+ - docs/plan.md (required) — application purpose and target users inform design direction
23
+ - User preferences (gathered via questions) — overall feel, color preferences,
24
+ reference apps, dark mode requirement
25
+
26
+ ## Expected Outputs
27
+ - docs/design-system.md — color palette, typography scale, spacing scale, border
28
+ radius, shadows, component patterns (buttons, forms, cards, feedback, navigation,
29
+ data display), layout system, and do's/don'ts
30
+ - Theme configuration files (tailwind.config.js, theme.ts, CSS custom properties, etc.)
31
+ - Example implementation page demonstrating the design system
32
+ - docs/coding-standards.md updated with Styling / Design System section
33
+ - CLAUDE.md updated with Design System section and quick reference
34
+
35
+ ## Quality Criteria
36
+ - (mvp) All colors meet WCAG AA contrast requirements
37
+ - (mvp) Typography scale uses a consistent modular ratio; body text >= 16px; line height >= 1.5 for body text
38
+ - (mvp) Spacing uses a consistent base unit (e.g., 4px increments)
39
+ - (deep) Component patterns cover buttons, forms, cards, feedback, navigation, data display
40
+ - (mvp) Theme configuration files actually work (verified by running dev server)
41
+ - (deep) Both light and dark mode token values provided (if dark mode requested)
42
+ - (deep) Responsive breakpoints defined (mobile, tablet, desktop)
43
+ - No arbitrary hex values or pixel values in component examples (all use tokens)
44
+
45
+ ## Methodology Scaling
46
+ - **deep**: Full design system with all component categories, dark mode support,
47
+ responsive breakpoints, animation guidelines, accessibility audit, and example
48
+ page demonstrating all patterns. 15-20 pages.
49
+ - **mvp**: Color palette, typography, spacing scale, and button/form/card patterns.
50
+ No dark mode. Basic theme config. 3-5 pages.
51
+ - **custom:depth(1-5)**: Depth 1-2: colors + typography + buttons. Depth 3: add
52
+ forms, cards, spacing. Depth 4: add navigation, data display, layout. Depth 5:
53
+ full suite with dark mode and accessibility.
54
+
55
+ ## Conditional Evaluation
56
+ Enable when: tech-stack.md includes a frontend framework (React, Vue, Angular, Svelte,
57
+ etc.), plan.md describes a UI-based application, or project targets web/mobile
58
+ platforms. Skip when: project is backend-only, a CLI tool, or a library with no UI.
59
+
60
+ ## Mode Detection
61
+ Update mode if docs/design-system.md exists. In update mode: never change color
62
+ values, font families, or spacing scales without user approval. Preserve all
63
+ theme config file customizations.
64
+
65
+ ## Update Mode Specifics
66
+ - **Detect prior artifact**: docs/design-system.md exists
67
+ - **Preserve**: color palette, typography scale, spacing scale, existing
68
+ component patterns, theme configuration files, dark mode token values,
69
+ responsive breakpoint definitions
70
+ - **Triggers for update**: new UI features need new component patterns, UX spec
71
+ requires additional interaction states, accessibility audit identified contrast
72
+ issues, user requests design direction change
73
+ - **Conflict resolution**: if a new component pattern conflicts with existing
74
+ token usage, extend the token set rather than modifying existing values;
75
+ always verify WCAG AA compliance after any color changes
@@ -0,0 +1,68 @@
1
+ ---
2
+ name: dev-env-setup
3
+ description: Configure local dev environment with live reload and simple commands
4
+ summary: "Configures your project so a single command starts everything — dev server with live reload, local database, environment variables — and documents the setup in a getting-started guide."
5
+ phase: "environment"
6
+ order: 310
7
+ dependencies: [project-structure]
8
+ outputs: [docs/dev-setup.md]
9
+ conditional: null
10
+ reads: [tdd]
11
+ knowledge-base: [dev-environment]
12
+ ---
13
+
14
+ ## Purpose
15
+ Set up a complete local development environment with a one-command dev experience,
16
+ live/hot reloading, local database configuration, environment variable management,
17
+ and beginner-friendly documentation. Populates the CLAUDE.md Key Commands table
18
+ which becomes the single source of truth for project-specific commands referenced
19
+ by the entire workflow.
20
+
21
+ ## Inputs
22
+ - docs/tech-stack.md (required) — determines dev server, database, and tooling
23
+ - docs/project-structure.md (required) — where config files live
24
+ - docs/coding-standards.md (optional) — linter/formatter already configured
25
+ - docs/tdd-standards.md (optional) — test runner, flags, coverage thresholds, quality gates
26
+
27
+ ## Expected Outputs
28
+ - docs/dev-setup.md — getting started guide, daily development, common tasks,
29
+ troubleshooting, and AI agent instructions
30
+ - Makefile or package.json scripts (dev, test, test:watch, lint, db-setup, db-reset)
31
+ - .env.example with all required variables and sensible local defaults
32
+ - CLAUDE.md updated with Key Commands table and Dev Environment section
33
+
34
+ ## Quality Criteria
35
+ - (mvp) Dev server starts with a single command and supports live/hot reloading
36
+ - (deep) Local database setup is scripted (if applicable)
37
+ - (deep) .env.example documents all variables with comments
38
+ - Key Commands table in CLAUDE.md matches actual Makefile/package.json commands
39
+ - (mvp) Lint and test commands exist and are runnable
40
+ - Verification checklist passes (install, dev server, browser, live reload, tests, db)
41
+ - (mvp) Setup process works for first-time clone (max 5 steps)
42
+ - (mvp) Makefile/package.json includes at minimum: dev, test, lint targets
43
+
44
+ ## Methodology Scaling
45
+ - **deep**: Full environment with database setup, seed data, Docker Compose (if
46
+ needed), watch mode tests, multi-platform instructions (Mac, Linux, WSL),
47
+ troubleshooting section. Complete Key Commands table.
48
+ - **mvp**: Dev server with live reload, basic lint and test commands, .env.example.
49
+ Minimal docs. Key Commands table with essentials only.
50
+ - **custom:depth(1-5)**: Depth 1-2: dev server + test command. Depth 3: add
51
+ database and env vars. Depth 4: add troubleshooting. Depth 5: full docs with
52
+ multi-platform support.
53
+
54
+ ## Mode Detection
55
+ Update mode if docs/dev-setup.md exists. In update mode: preserve port assignments,
56
+ custom scripts, .env variable names, database configuration, and Makefile
57
+ customizations. Update CLAUDE.md Key Commands section in-place.
58
+
59
+ ## Update Mode Specifics
60
+ - **Detect prior artifact**: docs/dev-setup.md exists
61
+ - **Preserve**: port assignments, .env variable names and defaults, database
62
+ connection strings, custom Makefile targets, troubleshooting entries
63
+ - **Triggers for update**: tech stack changed (new dev server or database),
64
+ project structure changed (new config file locations), new dependencies
65
+ require setup steps, tdd-standards.md changed test commands
66
+ - **Conflict resolution**: if a new dependency conflicts with an existing port
67
+ or env var, propose a non-breaking alternative; always update CLAUDE.md Key
68
+ Commands table to match actual Makefile/package.json after changes
@@ -0,0 +1,73 @@
1
+ ---
2
+ name: git-workflow
3
+ description: Configure git workflow with branching, PRs, CI, and worktree scripts for parallel agents
4
+ summary: "Sets up your branching strategy, commit message format, PR workflow, CI pipeline with lint and test jobs, and worktree scripts so multiple AI agents can work in parallel without conflicts."
5
+ phase: "environment"
6
+ order: 330
7
+ dependencies: [dev-env-setup]
8
+ outputs: [docs/git-workflow.md]
9
+ conditional: null
10
+ knowledge-base: [dev-environment, git-workflow-patterns]
11
+ ---
12
+
13
+ ## Purpose
14
+ Configure the repository for parallel Claude Code sessions working simultaneously.
15
+ Define branching strategy (one task = one branch = one PR), commit standards
16
+ (with Beads task IDs if configured, conventional commits otherwise), rebase
17
+ strategy, PR workflow with squash-merge and auto-merge, worktree setup for
18
+ parallel agents, CI pipeline, branch protection, and conflict prevention rules.
19
+
20
+ ## Inputs
21
+ - CLAUDE.md (required) — Key Commands table for lint/test/install commands
22
+ - docs/tech-stack.md (required) — CI environment setup (language, runtime)
23
+ - docs/coding-standards.md (required) — commit message format reference
24
+
25
+ ## Expected Outputs
26
+ - docs/git-workflow.md — branching strategy, commit standards, rebase strategy,
27
+ PR workflow (8 sub-steps), task closure, agent crash recovery, branch protection,
28
+ conflict prevention, and worktree documentation
29
+ - scripts/setup-agent-worktree.sh — permanent worktree creation script
30
+ - .github/workflows/ci.yml — CI workflow with lint and test jobs
31
+ - .github/pull_request_template.md — PR template with task ID format
32
+ - CLAUDE.md updated with Committing/PR Workflow, Task Closure, Parallel Sessions,
33
+ Worktree Awareness, and Code Review sections
34
+
35
+ ## Quality Criteria
36
+ - Branch naming format is consistent (Beads: bd-<task-id>/<desc>. Non-Beads: <type>/<desc>)
37
+ - Commit format is consistent (Beads: [BD-<id>] type(scope): desc. Non-Beads: type(scope): desc)
38
+ - PR workflow includes all 8 sub-steps (commit, AI review, rebase, push, create,
39
+ auto-merge with --delete-branch, watch CI, confirm merge)
40
+ - Worktree script creates permanent worktrees with workspace branches
41
+ - If Beads: BD_ACTOR environment variable documented for agent identity
42
+ - CI workflow job name matches branch protection context
43
+ - Branch cleanup documented for both single-agent and worktree-agent variants
44
+ - Agent crash recovery procedure documented
45
+ - Conflict prevention rule: don't parallelize tasks touching same files
46
+ - (mvp) CI workflow YAML is valid and references commands from Key Commands table
47
+
48
+ ## Methodology Scaling
49
+ - **deep**: Full git workflow with all sections, CI pipeline, branch protection
50
+ via gh api, worktree script, PR template, agent crash recovery, batch branch
51
+ cleanup, and comprehensive CLAUDE.md updates.
52
+ - **mvp**: Branching strategy, commit format, basic PR workflow, CI config.
53
+ Skip worktree script and crash recovery. Minimal CLAUDE.md updates.
54
+ - **custom:depth(1-5)**: Depth 1-2: branching + commits + CI. Depth 3: add PR
55
+ workflow and branch protection. Depth 4: add worktrees and crash recovery.
56
+ Depth 5: full suite with all sections.
57
+
58
+ ## Mode Detection
59
+ Update mode if docs/git-workflow.md exists. In update mode: never rename CI jobs
60
+ without checking branch protection rules, preserve worktree directory naming,
61
+ keep setup-agent-worktree.sh customizations intact.
62
+
63
+ ## Update Mode Specifics
64
+ - **Detect prior artifact**: docs/git-workflow.md exists
65
+ - **Preserve**: branch naming convention, commit message format, CI job names,
66
+ branch protection rules, worktree directory structure, PR template fields,
67
+ setup-agent-worktree.sh customizations
68
+ - **Triggers for update**: coding-standards.md changed commit format, new CI
69
+ stages needed (e.g., evals added), Beads status changed (added or removed),
70
+ new worktree patterns needed for parallel execution
71
+ - **Conflict resolution**: if CI job rename is required, update branch
72
+ protection rules in the same operation; verify CLAUDE.md workflow section
73
+ stays consistent after any changes
@@ -1,8 +1,9 @@
1
1
  ---
2
2
  name: apply-fixes-and-freeze
3
3
  description: Apply validation findings and freeze documentation
4
+ summary: "Applies all findings from the validation phase, fixes blocking issues, and freezes every document with a version marker — signaling that specs are implementation-ready."
4
5
  phase: "finalization"
5
- order: 34
6
+ order: 1410
6
7
  dependencies: [cross-phase-consistency, traceability-matrix, decision-completeness, critical-path-walkthrough, implementability-dry-run, dependency-graph-validation, scope-creep-check]
7
8
  outputs: [docs/validation/fix-log.md]
8
9
  conditional: null
@@ -25,15 +26,25 @@ issue is discovered during implementation.
25
26
  - Freeze marker added to each document (tracking comment)
26
27
 
27
28
  ## Quality Criteria
28
- - All P0 and P1 validation findings addressed
29
- - P2 findings addressed or explicitly deferred with rationale
29
+ - (mvp) All P0 and P1 validation findings addressed
30
+ - (deep) P2 findings addressed or explicitly deferred with rationale
30
31
  - Fix log documents what changed and why
31
- - All documents pass a final consistency check after fixes
32
+ - (deep) Cross-phase-consistency validation re-run after fixes yields no new P0 or P1 findings
33
+ - Every frozen document contains a tracking comment matching `<!-- scaffold:step-name vN YYYY-MM-DD -->`
32
34
 
33
35
  ## Methodology Scaling
34
36
  - **deep**: All findings addressed. Full fix log. Final consistency check.
35
37
  - **mvp**: P0 findings only. Brief fix log.
36
- - **custom:depth(1-5)**: Scale with depth.
38
+ - **custom:depth(1-5)**: Depth 1-2: address P0 findings only with brief fix log. Depth 3: address P0-P1 findings with detailed fix log and deferred rationale. Depth 4: address P0-P2 with full deferred rationale and re-validation passes. Depth 5: all findings addressed, final consistency re-check, and freeze verification audit.
37
39
 
38
40
  ## Mode Detection
39
- Not applicable this step runs once after validation.
41
+ Check if `docs/validation/fix-log.md` already exists.
42
+ - If exists: UPDATE MODE — read existing fix log, identify newly introduced validation findings, apply incremental fixes, preserve previously applied fixes and their verification status.
43
+ - If not: FRESH MODE — apply all validation findings from scratch.
44
+
45
+ ## Update Mode Specifics
46
+
47
+ - **Detect**: `docs/validation/fix-log.md` exists with tracking comment
48
+ - **Preserve**: Previous fix decisions, deferred rationale, freeze markers on already-frozen documents
49
+ - **Triggers**: New validation findings since last freeze, documents modified after freeze
50
+ - **Conflict resolution**: Re-frozen documents with new changes require updated freeze markers and fix-log entries
@@ -1,8 +1,9 @@
1
1
  ---
2
2
  name: developer-onboarding-guide
3
3
  description: Create a guide for developers (human or AI) joining the project
4
+ summary: "Synthesizes all frozen docs into a single onboarding narrative — project purpose, architecture overview, top coding patterns, key commands, and a quick-start checklist — so anyone joining the project knows exactly where to begin."
4
5
  phase: "finalization"
5
- order: 35
6
+ order: 1420
6
7
  dependencies: [apply-fixes-and-freeze]
7
8
  outputs: [docs/onboarding-guide.md]
8
9
  conditional: null
@@ -12,7 +13,9 @@ knowledge-base: [developer-onboarding]
12
13
  ## Purpose
13
14
  Create a comprehensive onboarding guide that gives any developer (human or AI
14
15
  agent) everything they need to understand the project and start contributing.
15
- This is the "start here" document.
16
+ This is the "start here" document. It synthesizes information from all frozen
17
+ artifacts into a single coherent narrative that new contributors can read
18
+ before their first task.
16
19
 
17
20
  ## Inputs
18
21
  - All frozen phase artifacts
@@ -21,16 +24,27 @@ This is the "start here" document.
21
24
  - docs/onboarding-guide.md — developer onboarding guide
22
25
 
23
26
  ## Quality Criteria
24
- - Covers: project purpose, architecture overview, key patterns, where to find what
25
- - A new developer can set up and run the project following this guide
26
- - Key architectural decisions are summarized (with pointers to ADRs)
27
- - Development workflow is clear (branch, code, test, PR)
27
+ - (mvp) Contains sections for: project purpose, architecture overview (with component diagram reference), top 3 coding patterns with examples, and a file/doc lookup table
28
+ - (mvp) Guide includes clone instructions, dependency install command, dev server start command, and test run command; every ADR referenced by number with one-sentence summary
29
+ - (deep) Key architectural decisions are summarized (with pointers to ADRs)
30
+ - (mvp) Development workflow is clear (branch, code, test, PR)
28
31
 
29
32
  ## Methodology Scaling
30
33
  - **deep**: Comprehensive guide. Architecture walkthrough, key pattern explanations,
31
34
  common tasks with examples, troubleshooting section.
32
- - **mvp**: Quick start. Setup instructions, key files, how to run tests.
33
- - **custom:depth(1-5)**: Scale detail with depth.
35
+ - **mvp**: Quick-start guide with: clone command, dependency install, dev server
36
+ start, test run command. Skip architecture overview, key patterns, and
37
+ troubleshooting sections.
38
+ - **custom:depth(1-5)**: Depth 1-2: quick start with setup and test commands only. Depth 3: add architecture overview, key patterns, and common tasks. Depth 4: add troubleshooting section, entry points documentation, and development workflow detail. Depth 5: full guide with architecture walkthrough, decision rationale, and team-specific onboarding paths.
34
39
 
35
40
  ## Mode Detection
36
- Update mode if guide exists.
41
+ Check if `docs/onboarding-guide.md` already exists.
42
+ - If exists: UPDATE MODE — read current guide, diff against upstream docs for changes, propose targeted updates while preserving project-specific customizations and environment-specific instructions.
43
+ - If not: FRESH MODE — generate from scratch using all pipeline artifacts.
44
+
45
+ ## Update Mode Specifics
46
+
47
+ - **Detect**: `docs/onboarding-guide.md` exists with tracking comment
48
+ - **Preserve**: Team-specific customizations, troubleshooting entries added from experience, getting-started verification results
49
+ - **Triggers**: Architecture changes, new tooling, new patterns established
50
+ - **Conflict resolution**: Merge new sections with existing customizations; never remove team-contributed troubleshooting entries
@@ -1,10 +1,12 @@
1
1
  ---
2
2
  name: implementation-playbook
3
3
  description: Create the playbook that AI agents follow during implementation
4
+ summary: "Writes the playbook agents reference during every coding session — task execution order, which docs to read before each task, the TDD loop to follow, quality gates to pass, and the handoff format between agents."
4
5
  phase: "finalization"
5
- order: 36
6
+ order: 1430
6
7
  dependencies: [developer-onboarding-guide]
7
8
  outputs: [docs/implementation-playbook.md]
9
+ reads: [story-tests, create-evals, implementation-plan, database-schema, api-contracts, ux-spec, design-system, system-architecture, tdd, coding-standards, security, operations]
8
10
  conditional: null
9
11
  knowledge-base: [implementation-playbook]
10
12
  ---
@@ -16,30 +18,57 @@ per task, coding standards, git workflow (branching/PR strategy), handoff
16
18
  format between agents, and success criteria.
17
19
 
18
20
  ## Inputs
19
- - docs/implementation-tasks.md (required) — tasks to sequence
21
+ - docs/implementation-plan.md (required) — tasks to sequence
20
22
  - docs/system-architecture.md (required) — architecture context
21
- - docs/testing-strategy.md (required) — testing requirements
23
+ - docs/tdd-standards.md (required) — testing requirements
24
+ - tests/acceptance/ (required if exists) — test skeletons agents implement during TDD
25
+ - docs/story-tests-map.md (required if exists) — story-to-test mapping for progress tracking
26
+ - tests/evals/ (required if exists) — project eval checks to run as quality gates
27
+ - docs/eval-standards.md (required if exists) — what evals check and what they don't
28
+ - docs/plan.md (optional) — PRD for requirement traceability
29
+ - docs/user-stories.md (optional) — acceptance criteria source
30
+ - docs/database-schema.md (optional) — for data-layer task context
31
+ - docs/api-contracts.md (optional) — for API endpoint task context
32
+ - docs/ux-spec.md (optional) — for UI task context
33
+ - docs/design-system.md (optional) — for styling task context
34
+ - docs/security-review.md (optional) — for security control task context
35
+ - docs/operations-runbook.md (optional) — for deployment task context
36
+ - docs/onboarding-guide.md (optional — not available in MVP) — agents should read for project context before playbook
22
37
  - All other frozen artifacts
23
38
 
24
39
  ## Expected Outputs
25
40
  - docs/implementation-playbook.md — agent implementation playbook
26
41
 
27
42
  ## Quality Criteria
28
- - Task execution order is clear and respects dependencies
29
- - Each task has context requirements (which docs to read before starting)
30
- - Coding standards are defined (naming, patterns, error handling)
31
- - Git workflow is defined (branching strategy, commit format, PR process)
32
- - Success criteria per task (how to know it's done)
33
- - Handoff format between agents (what to communicate when passing work)
34
- - Quality gates are defined (what must pass before a task is complete)
43
+ - (mvp) Task execution order is clear and respects dependencies
44
+ - (deep) Each task has context requirements (which docs to read before starting)
45
+ - (mvp) Coding standards are defined (naming, patterns, error handling)
46
+ - (mvp) Git workflow is defined (branching strategy, commit format, PR process)
47
+ - (mvp) Success criteria per task (how to know it's done)
48
+ - (deep) Handoff format between agents (what to communicate when passing work)
49
+ - (mvp) Quality gates are defined (what must pass before a task is complete)
50
+ - Quality gates include `make eval` (or equivalent) as a required check
51
+ - (deep) Agent workflow references test skeleton implementation from tests/acceptance/
52
+ - (deep) Handoff format includes at minimum: implementation summary, assumptions made, known limitations, gotchas, and files modified
35
53
 
36
54
  ## Methodology Scaling
37
55
  - **deep**: Full playbook. Detailed coding standards, git workflow with
38
56
  examples, per-task context briefs, inter-agent communication protocol,
39
57
  rollback procedures for failed tasks.
40
- - **mvp**: Task order, basic coding conventions, commit format, "run tests
41
- before marking done."
42
- - **custom:depth(1-5)**: Scale detail with depth.
58
+ - **mvp**: Minimal playbook with task execution order, basic coding conventions
59
+ reference, commit format, and quality gate commands from CLAUDE.md. Skip
60
+ per-task context blocks, wave assignments, and inter-agent handoff format.
61
+ Reference docs/coding-standards.md and docs/tdd-standards.md directly.
62
+ - **custom:depth(1-5)**: Depth 1-2: task execution order, basic coding conventions reference, commit format, and quality gate commands. Depth 3: add per-task context requirements, wave assignments, and quality gates per wave. Depth 4: add inter-agent communication protocol, handoff format, and error recovery procedures. Depth 5: full playbook with rollback procedures, eval integration, and per-task minimum context blocks.
43
63
 
44
64
  ## Mode Detection
45
- Update mode if playbook exists.
65
+ Check if `docs/implementation-playbook.md` already exists.
66
+ - If exists: UPDATE MODE — read current playbook, identify changes in implementation plan or upstream docs, update per-task context blocks and wave assignments while preserving completed task status and agent allocation history.
67
+ - If not: FRESH MODE — generate from scratch using implementation plan and all supporting docs.
68
+
69
+ ## Update Mode Specifics
70
+
71
+ - **Detect**: `docs/implementation-playbook.md` exists with tracking comment
72
+ - **Preserve**: Completed task statuses, agent handoff notes, established patterns, quality gate results
73
+ - **Triggers**: New tasks added, wave assignments changed, quality gate definitions updated
74
+ - **Conflict resolution**: New tasks append to existing waves; never remove completed task records
@@ -0,0 +1,71 @@
1
+ ---
2
+ name: beads
3
+ description: Initialize Beads task tracking with CLAUDE.md conventions and lessons file
4
+ summary: "Sets up Beads task tracking with a lessons-learned file for cross-session learning, and creates the initial CLAUDE.md skeleton with core principles and workflow conventions."
5
+ phase: "foundation"
6
+ order: 210
7
+ dependencies: []
8
+ outputs: [.beads/, tasks/lessons.md, CLAUDE.md]
9
+ conditional: "if-needed"
10
+ knowledge-base: [task-tracking]
11
+ ---
12
+
13
+ ## Purpose
14
+ Initialize the Beads issue tracker for AI-friendly task tracking, create the
15
+ lessons-learned file for cross-session memory, and establish the initial CLAUDE.md
16
+ skeleton with core principles, task management commands, self-improvement rules,
17
+ and autonomous behavior guidelines.
18
+
19
+ ## Inputs
20
+ - Project root directory (required) — must be a git repository
21
+ - Existing CLAUDE.md (optional) — if present, operates in update mode
22
+
23
+ ## Expected Outputs
24
+ - .beads/ directory — initialized Beads data store with git hooks
25
+ - tasks/lessons.md — patterns and anti-patterns file for cross-session learning
26
+ - CLAUDE.md — initial skeleton with Core Principles, Task Management (Beads),
27
+ Self-Improvement, and Autonomous Behavior sections
28
+
29
+ ## Quality Criteria
30
+ - (mvp) `bd ready` executes without error (Beads is initialized)
31
+ - (mvp) .beads/ directory exists and contains Beads data files
32
+ - (mvp) Beads git hooks are installed (data-sync hooks, not code-quality hooks)
33
+ - (mvp) tasks/lessons.md exists with Patterns, Anti-Patterns, and Common Gotchas sections
34
+ - (mvp) CLAUDE.md contains Core Principles with all four tenets (Simplicity, No Laziness, TDD, Prove It)
35
+ - (mvp) CLAUDE.md contains Beads command reference table
36
+ - CLAUDE.md contains commit-message convention requiring Beads task IDs
37
+ - Bootstrap commit uses `[BD-0]` convention
38
+ - (deep) Cross-doc consistency verified against git-workflow.md and coding-standards.md
39
+
40
+ ## Methodology Scaling
41
+ - **deep**: Full Beads setup with all CLAUDE.md sections, detailed command reference
42
+ table, priority level documentation, and cross-doc consistency checks against
43
+ existing git-workflow.md and coding-standards.md.
44
+ - **mvp**: Initialize Beads, create tasks/lessons.md, add minimal CLAUDE.md
45
+ sections (Core Principles + Beads commands). Skip cross-doc checks.
46
+ - **custom:depth(1-5)**: Depth 1-2: MVP Beads init + minimal CLAUDE.md. Depth 3:
47
+ add full command table and priority docs. Depth 4-5: full setup with cross-doc
48
+ consistency and detailed autonomous behavior rules.
49
+
50
+ ## Conditional Evaluation
51
+ Enable when: project uses Beads task tracking methodology (user selects Beads during
52
+ setup), or user explicitly enables structured task management. Skip when: user prefers
53
+ GitHub Issues, Linear, or another task tracker, or explicitly declines Beads setup.
54
+
55
+ ## Mode Detection
56
+ Update mode if .beads/ contains a config.json or tasks directory (not just an
57
+ empty directory). In update mode: never re-initialize
58
+ .beads/ (existing task data is irreplaceable), never overwrite tasks/lessons.md
59
+ (only add missing sections), update CLAUDE.md Beads sections in-place preserving
60
+ project-specific customizations.
61
+
62
+ ## Update Mode Specifics
63
+ - **Detect prior artifact**: .beads/ directory exists with data files
64
+ - **Preserve**: all existing task data in .beads/, tasks/lessons.md content
65
+ (patterns, anti-patterns, gotchas), CLAUDE.md Beads command table
66
+ customizations, git hook configurations
67
+ - **Triggers for update**: new CLAUDE.md sections need Beads references,
68
+ Beads CLI version changed requiring command updates, git hooks need
69
+ reconfiguration after workflow changes
70
+ - **Conflict resolution**: if CLAUDE.md Beads section was manually customized,
71
+ merge new content around existing customizations rather than replacing
@@ -0,0 +1,71 @@
1
+ ---
2
+ name: coding-standards
3
+ description: Create prescriptive coding standards tailored to the project's tech stack
4
+ summary: "Creates coding standards tailored to your tech stack — naming conventions, error handling patterns, import organization, AI-specific rules — and generates working linter and formatter config files."
5
+ phase: "foundation"
6
+ order: 230
7
+ dependencies: [tech-stack]
8
+ outputs: [docs/coding-standards.md]
9
+ reads: [create-prd]
10
+ conditional: null
11
+ knowledge-base: [coding-conventions]
12
+ ---
13
+
14
+ ## Purpose
15
+ Define the project's coding conventions with concrete, stack-specific examples
16
+ that AI agents reference during every implementation task. Covers project
17
+ structure conventions, code patterns, type safety, security, database access,
18
+ API design, logging, AI-specific pitfalls, commit message format, and a
19
+ self-review checklist.
20
+
21
+ ## Inputs
22
+ - docs/tech-stack.md (required) — determines which languages, frameworks, and tools
23
+ the standards apply to
24
+ - docs/plan.md (required) — application domain informs which patterns matter most
25
+
26
+ ## Expected Outputs
27
+ - docs/coding-standards.md — prescriptive standards document with sections for
28
+ project structure, code patterns, type safety, security, database access, API
29
+ design, logging, AI-specific rules, commit messages, and code review checklist
30
+ - Linter/formatter config files (e.g., .eslintrc, .prettierrc, ruff.toml) created
31
+ alongside the standards doc
32
+
33
+ ## Quality Criteria
34
+ - Every standard references the specific tech stack, not generic principles
35
+ - Includes runnable code examples showing the RIGHT way for the stack
36
+ - Commit message format is [BD-<id>] type(scope): description
37
+ - AI-specific coding rules section addresses common AI mistakes (dead code,
38
+ duplication, magic numbers, premature abstraction, unnecessary features)
39
+ - Linter/formatter configs created and referenced from the document
40
+ - Every standard has a corresponding linter rule, code review checklist item, or test pattern that enforces it
41
+ - Every code review checklist item is a binary yes/no question
42
+ - (mvp) Linter/formatter config files are valid (lint command runs without config errors)
43
+
44
+ ## Methodology Scaling
45
+ - **deep**: Comprehensive standards with examples for every section. Stack-specific
46
+ security patterns. Detailed error handling strategy with code samples. Full
47
+ linter/formatter configuration with custom rules. 15-20 pages.
48
+ - **mvp**: Core naming conventions, commit format, import ordering, error handling
49
+ approach, and AI-specific rules. Basic linter config. 3-5 pages.
50
+ - **custom:depth(1-5)**: Depth 1-2: MVP conventions. Depth 3: add security and
51
+ database patterns. Depth 4: add API design and logging. Depth 5: full suite
52
+ with all sections and custom linter rules.
53
+
54
+ ## Mode Detection
55
+ Update mode if docs/coding-standards.md exists. In update mode: preserve naming
56
+ conventions, lint rule customizations, commit message format, and project-specific
57
+ patterns. Never change commit message format without checking git-workflow.md
58
+ and CI config for references.
59
+
60
+ ## Update Mode Specifics
61
+ - **Detect prior artifact**: docs/coding-standards.md exists
62
+ - **Preserve**: naming conventions, commit message format, lint/formatter
63
+ configurations, AI-specific coding rules, code review checklist, any
64
+ project-specific patterns added by the team
65
+ - **Triggers for update**: tech stack changed (new language or framework
66
+ requires new patterns), new architecture patterns need coding conventions,
67
+ team identified recurring issues needing new rules, commit message format
68
+ changed in docs/git-workflow.md
69
+ - **Conflict resolution**: if tech stack added a new framework, add its
70
+ conventions as a new section rather than modifying existing sections;
71
+ verify commit format consistency with git-workflow.md before any changes
@@ -0,0 +1,73 @@
1
+ ---
2
+ name: project-structure
3
+ description: Design directory layout and scaffold the actual project structure
4
+ summary: "Designs a directory layout optimized for parallel AI agent work (minimizing file conflicts), documents where each type of file belongs, and creates the actual directories in your project."
5
+ phase: "foundation"
6
+ order: 250
7
+ dependencies: [tech-stack, coding-standards]
8
+ outputs: [docs/project-structure.md]
9
+ reads: [create-prd, user-stories, tdd]
10
+ conditional: null
11
+ knowledge-base: [project-structure-patterns]
12
+ ---
13
+
14
+ ## Purpose
15
+ Design the directory layout optimized for parallel AI agent work (minimizing
16
+ merge conflicts and maximizing task independence), document file placement rules,
17
+ and scaffold the actual directories and placeholder files. Updates CLAUDE.md
18
+ with a Quick Reference section for file placement.
19
+
20
+ ## Inputs
21
+ - docs/tech-stack.md (required) — framework conventions determine structure
22
+ - docs/coding-standards.md (required) — naming and organization conventions
23
+ - docs/tdd-standards.md (optional) — test co-location rules
24
+ - docs/plan.md (required) — features inform organization strategy choice
25
+
26
+ ## Expected Outputs
27
+ - docs/project-structure.md — complete directory tree with purpose annotations,
28
+ module organization strategy, file placement rules, shared code strategy,
29
+ import conventions, barrel file policy, test file location, and generated
30
+ vs. committed file rules
31
+ - Scaffolded directories with .gitkeep files
32
+ - Updated .gitignore for the tech stack
33
+ - CLAUDE.md updated with Project Structure Quick Reference section
34
+
35
+ ## Quality Criteria
36
+ - Module organization strategy chosen and justified (feature-based, layer-based, or hybrid)
37
+ - File placement table covers all file types (routes, services, models, types, utils, tests)
38
+ - High-contention files identified with merge-conflict mitigation strategies
39
+ - Shared utilities rule enforced (2+ features before promoting to shared)
40
+ - Import conventions defined with ordering rules
41
+ - Test file location aligns with tdd-standards.md (if it exists)
42
+ - .gitignore covers all generated files for the tech stack
43
+ - Structure follows the chosen framework's conventions
44
+ - CLAUDE.md contains Project Structure Quick Reference section with file placement table
45
+ - (mvp) All documented directories exist on disk with .gitkeep placeholder files
46
+ - CLAUDE.md Project Structure Quick Reference matches the directory tree in docs/project-structure.md
47
+
48
+ ## Methodology Scaling
49
+ - **deep**: Comprehensive structure with high-contention analysis, shared code
50
+ strategy, import path aliases, barrel file policy, responsive breakpoints for
51
+ screenshots, and generated vs. committed file inventory.
52
+ - **mvp**: Directory tree with annotations, basic file placement table, .gitignore.
53
+ Skip shared code strategy and high-contention analysis.
54
+ - **custom:depth(1-5)**: Depth 1-2: tree + placement table. Depth 3: add shared
55
+ code rules. Depth 4: add contention analysis. Depth 5: full suite with barrel
56
+ policy and import aliases.
57
+
58
+ ## Mode Detection
59
+ Update mode if docs/project-structure.md exists. In update mode: never delete
60
+ existing directories (only add new ones), preserve module organization strategy
61
+ choice, update CLAUDE.md Quick Reference section in-place.
62
+
63
+ ## Update Mode Specifics
64
+ - **Detect prior artifact**: docs/project-structure.md exists
65
+ - **Preserve**: module organization strategy (feature-based, layer-based, hybrid),
66
+ existing directory tree, file placement rules, import conventions, barrel file
67
+ policy, .gitignore entries
68
+ - **Triggers for update**: new features require new directories, architecture
69
+ changed module boundaries, tech stack added new file types needing placement
70
+ rules, tdd-standards.md changed test co-location rules
71
+ - **Conflict resolution**: if architecture restructured modules, add new
72
+ directories but do not remove existing ones until migration is complete;
73
+ update CLAUDE.md Quick Reference to reflect additions