@zigrivers/scaffold 2.28.1 → 2.38.1

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 (375) hide show
  1. package/README.md +309 -136
  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 +103 -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 +4 -0
  263. package/knowledge/core/api-design.md +4 -0
  264. package/knowledge/core/automated-review-tooling.md +203 -0
  265. package/knowledge/core/coding-conventions.md +1 -1
  266. package/knowledge/core/database-design.md +4 -0
  267. package/knowledge/core/design-system-tokens.md +4 -0
  268. package/knowledge/core/domain-modeling.md +4 -0
  269. package/knowledge/core/git-workflow-patterns.md +200 -0
  270. package/knowledge/core/operations-runbook.md +5 -1
  271. package/knowledge/core/security-best-practices.md +4 -0
  272. package/knowledge/core/system-architecture.md +5 -1
  273. package/knowledge/core/task-decomposition.md +118 -3
  274. package/knowledge/core/user-story-innovation.md +13 -0
  275. package/knowledge/core/ux-specification.md +13 -0
  276. package/knowledge/execution/enhancement-workflow.md +201 -0
  277. package/knowledge/execution/task-claiming-strategy.md +130 -0
  278. package/knowledge/execution/tdd-execution-loop.md +172 -0
  279. package/knowledge/execution/worktree-management.md +205 -0
  280. package/knowledge/finalization/apply-fixes-and-freeze.md +12 -0
  281. package/knowledge/finalization/developer-onboarding.md +4 -0
  282. package/knowledge/finalization/implementation-playbook.md +83 -5
  283. package/knowledge/product/gap-analysis.md +5 -1
  284. package/knowledge/product/prd-innovation.md +12 -0
  285. package/knowledge/product/vision-craft.md +213 -0
  286. package/knowledge/review/review-adr.md +12 -0
  287. package/knowledge/review/review-api-design.md +13 -0
  288. package/knowledge/review/review-database-design.md +13 -0
  289. package/knowledge/review/review-domain-modeling.md +5 -1
  290. package/knowledge/review/review-implementation-tasks.md +58 -1
  291. package/knowledge/review/review-methodology.md +11 -0
  292. package/knowledge/review/review-operations.md +12 -0
  293. package/knowledge/review/review-prd.md +13 -0
  294. package/knowledge/review/review-security.md +12 -0
  295. package/knowledge/review/review-system-architecture.md +4 -2
  296. package/knowledge/review/review-testing-strategy.md +11 -0
  297. package/knowledge/review/review-user-stories.md +11 -0
  298. package/knowledge/review/review-ux-specification.md +13 -1
  299. package/knowledge/review/review-vision.md +255 -0
  300. package/knowledge/tools/release-management.md +222 -0
  301. package/knowledge/tools/session-analysis.md +215 -0
  302. package/knowledge/tools/version-strategy.md +200 -0
  303. package/knowledge/validation/critical-path-analysis.md +1 -1
  304. package/knowledge/validation/cross-phase-consistency.md +12 -0
  305. package/knowledge/validation/decision-completeness.md +13 -1
  306. package/knowledge/validation/dependency-validation.md +12 -0
  307. package/knowledge/validation/scope-management.md +12 -0
  308. package/knowledge/validation/traceability.md +12 -0
  309. package/methodology/README.md +37 -0
  310. package/methodology/custom-defaults.yml +12 -1
  311. package/methodology/deep.yml +11 -0
  312. package/methodology/mvp.yml +11 -0
  313. package/package.json +3 -3
  314. package/pipeline/architecture/review-architecture.md +18 -7
  315. package/pipeline/architecture/system-architecture.md +11 -8
  316. package/pipeline/build/multi-agent-resume.md +245 -0
  317. package/pipeline/build/multi-agent-start.md +236 -0
  318. package/pipeline/build/new-enhancement.md +456 -0
  319. package/pipeline/build/quick-task.md +381 -0
  320. package/pipeline/build/single-agent-resume.md +210 -0
  321. package/pipeline/build/single-agent-start.md +207 -0
  322. package/pipeline/consolidation/claude-md-optimization.md +11 -8
  323. package/pipeline/consolidation/workflow-audit.md +15 -11
  324. package/pipeline/decisions/adrs.md +7 -5
  325. package/pipeline/decisions/review-adrs.md +14 -6
  326. package/pipeline/environment/ai-memory-setup.md +18 -12
  327. package/pipeline/environment/automated-pr-review.md +10 -4
  328. package/pipeline/environment/design-system.md +9 -7
  329. package/pipeline/environment/dev-env-setup.md +8 -5
  330. package/pipeline/environment/git-workflow.md +3 -1
  331. package/pipeline/finalization/apply-fixes-and-freeze.md +16 -5
  332. package/pipeline/finalization/developer-onboarding-guide.md +22 -8
  333. package/pipeline/finalization/implementation-playbook.md +40 -11
  334. package/pipeline/foundation/beads.md +10 -7
  335. package/pipeline/foundation/coding-standards.md +6 -3
  336. package/pipeline/foundation/project-structure.md +5 -1
  337. package/pipeline/foundation/tdd.md +10 -6
  338. package/pipeline/foundation/tech-stack.md +9 -9
  339. package/pipeline/integration/add-e2e-testing.md +21 -6
  340. package/pipeline/modeling/domain-modeling.md +10 -7
  341. package/pipeline/modeling/review-domain-modeling.md +17 -6
  342. package/pipeline/parity/platform-parity-review.md +31 -11
  343. package/pipeline/planning/implementation-plan-review.md +21 -10
  344. package/pipeline/planning/implementation-plan.md +52 -19
  345. package/pipeline/pre/create-prd.md +22 -7
  346. package/pipeline/pre/innovate-prd.md +10 -8
  347. package/pipeline/pre/innovate-user-stories.md +9 -7
  348. package/pipeline/pre/review-prd.md +11 -2
  349. package/pipeline/pre/review-user-stories.md +12 -3
  350. package/pipeline/pre/user-stories.md +12 -7
  351. package/pipeline/quality/create-evals.md +10 -6
  352. package/pipeline/quality/operations.md +16 -12
  353. package/pipeline/quality/review-operations.md +19 -10
  354. package/pipeline/quality/review-security.md +21 -11
  355. package/pipeline/quality/review-testing.md +23 -12
  356. package/pipeline/quality/security.md +17 -13
  357. package/pipeline/quality/story-tests.md +6 -4
  358. package/pipeline/specification/api-contracts.md +11 -6
  359. package/pipeline/specification/database-schema.md +12 -6
  360. package/pipeline/specification/review-api.md +18 -9
  361. package/pipeline/specification/review-database.md +18 -9
  362. package/pipeline/specification/review-ux.md +20 -10
  363. package/pipeline/specification/ux-spec.md +8 -5
  364. package/pipeline/validation/critical-path-walkthrough.md +14 -7
  365. package/pipeline/validation/cross-phase-consistency.md +14 -7
  366. package/pipeline/validation/decision-completeness.md +14 -7
  367. package/pipeline/validation/dependency-graph-validation.md +15 -7
  368. package/pipeline/validation/implementability-dry-run.md +15 -7
  369. package/pipeline/validation/scope-creep-check.md +15 -7
  370. package/pipeline/validation/traceability-matrix.md +20 -7
  371. package/pipeline/vision/create-vision.md +267 -0
  372. package/pipeline/vision/innovate-vision.md +157 -0
  373. package/pipeline/vision/review-vision.md +149 -0
  374. package/skills/scaffold-pipeline/SKILL.md +33 -18
  375. package/skills/scaffold-runner/SKILL.md +172 -18
@@ -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
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
  ---
@@ -19,27 +21,54 @@ format between agents, and success criteria.
19
21
  - docs/implementation-plan.md (required) — tasks to sequence
20
22
  - docs/system-architecture.md (required) — architecture context
21
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
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  name: beads
3
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."
4
5
  phase: "foundation"
5
6
  order: 210
6
7
  dependencies: []
@@ -26,14 +27,15 @@ and autonomous behavior guidelines.
26
27
  Self-Improvement, and Autonomous Behavior sections
27
28
 
28
29
  ## Quality Criteria
29
- - `bd ready` executes without error (Beads is initialized)
30
- - .beads/ directory exists and contains Beads data files
31
- - Beads git hooks are installed (data-sync hooks, not code-quality hooks)
32
- - tasks/lessons.md exists with Patterns, Anti-Patterns, and Common Gotchas sections
33
- - CLAUDE.md contains Core Principles with all four tenets (Simplicity, No Laziness, TDD, Prove It)
34
- - CLAUDE.md contains Beads command reference table
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
35
36
  - CLAUDE.md contains commit-message convention requiring Beads task IDs
36
37
  - Bootstrap commit uses `[BD-0]` convention
38
+ - (deep) Cross-doc consistency verified against git-workflow.md and coding-standards.md
37
39
 
38
40
  ## Methodology Scaling
39
41
  - **deep**: Full Beads setup with all CLAUDE.md sections, detailed command reference
@@ -51,7 +53,8 @@ setup), or user explicitly enables structured task management. Skip when: user p
51
53
  GitHub Issues, Linear, or another task tracker, or explicitly declines Beads setup.
52
54
 
53
55
  ## Mode Detection
54
- Update mode if .beads/ directory exists. In update mode: never re-initialize
56
+ Update mode if .beads/ contains a config.json or tasks directory (not just an
57
+ empty directory). In update mode: never re-initialize
55
58
  .beads/ (existing task data is irreplaceable), never overwrite tasks/lessons.md
56
59
  (only add missing sections), update CLAUDE.md Beads sections in-place preserving
57
60
  project-specific customizations.
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  name: coding-standards
3
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."
4
5
  phase: "foundation"
5
6
  order: 230
6
7
  dependencies: [tech-stack]
@@ -36,8 +37,9 @@ self-review checklist.
36
37
  - AI-specific coding rules section addresses common AI mistakes (dead code,
37
38
  duplication, magic numbers, premature abstraction, unnecessary features)
38
39
  - Linter/formatter configs created and referenced from the document
39
- - No aspirational standards only rules enforced from day one
40
- - Code review checklist is actionable (not vague)
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)
41
43
 
42
44
  ## Methodology Scaling
43
45
  - **deep**: Comprehensive standards with examples for every section. Stack-specific
@@ -62,7 +64,8 @@ and CI config for references.
62
64
  project-specific patterns added by the team
63
65
  - **Triggers for update**: tech stack changed (new language or framework
64
66
  requires new patterns), new architecture patterns need coding conventions,
65
- team identified recurring issues needing new rules
67
+ team identified recurring issues needing new rules, commit message format
68
+ changed in docs/git-workflow.md
66
69
  - **Conflict resolution**: if tech stack added a new framework, add its
67
70
  conventions as a new section rather than modifying existing sections;
68
71
  verify commit format consistency with git-workflow.md before any changes
@@ -1,11 +1,12 @@
1
1
  ---
2
2
  name: project-structure
3
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."
4
5
  phase: "foundation"
5
6
  order: 250
6
7
  dependencies: [tech-stack, coding-standards]
7
8
  outputs: [docs/project-structure.md]
8
- reads: [create-prd, user-stories]
9
+ reads: [create-prd, user-stories, tdd]
9
10
  conditional: null
10
11
  knowledge-base: [project-structure-patterns]
11
12
  ---
@@ -40,6 +41,9 @@ with a Quick Reference section for file placement.
40
41
  - Test file location aligns with tdd-standards.md (if it exists)
41
42
  - .gitignore covers all generated files for the tech stack
42
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
43
47
 
44
48
  ## Methodology Scaling
45
49
  - **deep**: Comprehensive structure with high-contention analysis, shared code
@@ -1,11 +1,12 @@
1
1
  ---
2
2
  name: tdd
3
3
  description: Define testing conventions and TDD standards for the tech stack
4
+ summary: "Defines your testing approach — which types of tests to write at each layer, coverage targets, what to mock and what not to, test data patterns — so agents write the right tests from the start."
4
5
  phase: "foundation"
5
6
  order: 240
6
7
  dependencies: [coding-standards]
7
8
  outputs: [docs/tdd-standards.md]
8
- reads: [create-prd]
9
+ reads: [create-prd, system-architecture]
9
10
  conditional: null
10
11
  knowledge-base: [testing-strategy]
11
12
  ---
@@ -14,6 +15,8 @@ knowledge-base: [testing-strategy]
14
15
  Define the project's testing conventions, TDD workflow, test pyramid, coverage
15
16
  goals, quality gates, and testing patterns. This tells agents how to test the
16
17
  code they write and establishes testing standards before implementation begins.
18
+ Includes concrete reference examples for each test category using the project's
19
+ actual test framework and assertion library.
17
20
 
18
21
  ## Inputs
19
22
  - docs/tech-stack.md (required) — determines test runner, assertion library, and framework-specific testing patterns
@@ -27,18 +30,19 @@ code they write and establishes testing standards before implementation begins.
27
30
  - docs/tdd-standards.md — testing approach with coverage goals and patterns
28
31
 
29
32
  ## Quality Criteria
30
- - Test pyramid defined with coverage targets per layer
31
- - Testing patterns specified for each layer (unit, integration, e2e)
32
- - Quality gates defined (what must pass before merge)
33
+ - (mvp) Test pyramid defined with coverage targets per layer
34
+ - (mvp) Testing patterns specified for each layer (unit, integration, e2e)
35
+ - (mvp) Quality gates defined (what must pass before merge)
33
36
  - Edge cases from domain invariants are test scenarios
34
- - Performance testing approach for critical paths
37
+ - (deep) Performance testing approach for critical paths
38
+ - (deep) Contract testing strategy documented for service boundaries
35
39
 
36
40
  ## Methodology Scaling
37
41
  - **deep**: Comprehensive strategy. Test matrix by layer and component. Specific
38
42
  test patterns per architecture pattern. Performance benchmarks. CI integration.
39
43
  Test data strategy. Mutation testing approach.
40
44
  - **mvp**: Test pyramid overview. Key testing patterns. What must pass before deploy.
41
- - **custom:depth(1-5)**: Scale detail with depth.
45
+ - **custom:depth(1-5)**: Depth 1-2: test pyramid overview with key patterns and example test for each layer. Depth 3: add per-layer test patterns, coverage targets, CI integration, and test data strategy. Depth 4: add performance benchmarks, mutation testing approach, and cross-module integration patterns. Depth 5: full suite with contract testing, visual regression strategy, and automated quality gate calibration.
42
46
 
43
47
  ## Mode Detection
44
48
  Check for docs/tdd-standards.md. If it exists, operate in update mode: read
@@ -1,13 +1,14 @@
1
1
  ---
2
2
  name: tech-stack
3
3
  description: Research and document tech stack decisions with rationale for each choice
4
+ summary: "Researches technology options for your project — language, framework, database, hosting, auth — evaluates each against your requirements, and documents every choice with rationale and alternatives considered."
4
5
  phase: "foundation"
5
6
  order: 220
6
7
  dependencies: []
7
8
  outputs: [docs/tech-stack.md]
8
9
  reads: [create-prd]
9
10
  conditional: null
10
- knowledge-base: [tech-stack-selection]
11
+ knowledge-base: [tech-stack-selection, multi-model-review-dispatch]
11
12
  ---
12
13
 
13
14
  ## Purpose
@@ -33,14 +34,13 @@ about ecosystem maturity, alternatives, and gotchas.
33
34
  - docs/reviews/tech-stack/gemini-review.json (depth 4+, if available) — raw Gemini recommendations
34
35
 
35
36
  ## Quality Criteria
36
- - Every PRD feature cross-referenced against the proposed stack (no capability gaps)
37
- - Each technology choice documents what, why, why not alternatives, and AI compatibility
38
- - Architecture pattern chosen and justified (monolith vs. microservices, MVC vs. clean, etc.)
39
- - No speculative technologies ("might need someday")
40
- - Every choice is a decision, not a menu of options
41
- - Quick Reference section lists every dependency with version
42
- - Stack optimizes for AI familiarity, convention over configuration, minimal dependencies,
43
- strong typing, and mature ecosystem
37
+ - (mvp) Every PRD feature cross-referenced against the proposed stack (no capability gaps)
38
+ - (mvp) Each technology choice documents what, why, why not alternatives, and AI compatibility
39
+ - (mvp) Architecture pattern chosen and justified (monolith vs. microservices, MVC vs. clean, etc.)
40
+ - (mvp) No speculative technologies ("might need someday")
41
+ - (mvp) Every choice is a decision, not a menu of options
42
+ - (mvp) Quick Reference section lists every dependency with version
43
+ - (deep) Each technology choice documents AI compatibility assessment (training data availability, convention strength); total direct dependencies counted and justified
44
44
  - (depth 4+) Multi-model recommendations cross-referenced — agreements flagged as high-confidence, disagreements flagged for human decision
45
45
 
46
46
  ## Methodology Scaling
@@ -1,11 +1,12 @@
1
1
  ---
2
2
  name: add-e2e-testing
3
3
  description: Configure end-to-end testing (Playwright for web, Maestro for mobile) based on detected project platform
4
+ summary: "Detects whether your project is web or mobile, then configures Playwright (web) or Maestro (mobile) with a working smoke test, baseline screenshots, and guidance on when to use E2E vs. unit tests."
4
5
  phase: "integration"
5
6
  order: 410
6
7
  dependencies: [git-workflow, tdd]
7
8
  outputs: [tests/screenshots/, maestro/]
8
- reads: [tdd, coding-standards]
9
+ reads: [coding-standards, user-stories]
9
10
  conditional: "if-needed"
10
11
  knowledge-base: [testing-strategy]
11
12
  ---
@@ -34,13 +35,17 @@ Outputs vary by detected platform:
34
35
  - (both) All of the above
35
36
 
36
37
  ## Quality Criteria
37
- - Platform detection is explicit and logged (web, mobile, both, or skip)
38
- - (web) Playwright config uses framework-specific dev server command and port
39
- - (web) Smoke test passes (navigate, screenshot, close)
40
- - (mobile) Maestro CLI installed, sample flow executes, screenshot captured
38
+ - (mvp) Platform detection is explicit and logged (web, mobile, both, or skip)
39
+ - (mvp) (web) Playwright config uses framework-specific dev server command and port
40
+ - (mvp) (web) Smoke test passes (navigate, screenshot, close)
41
+ - (mvp) (mobile) Maestro CLI installed, sample flow executes, screenshot captured
41
42
  - (mobile) testID naming convention defined and documented
42
- - E2E section in tdd-standards.md distinguishes when to use E2E vs unit tests
43
+ - (mvp) E2E section in tdd-standards.md distinguishes when to use E2E vs unit tests
43
44
  - Baseline screenshots committed, current screenshots gitignored
45
+ - CLAUDE.md contains browser/mobile testing section
46
+ - tdd-standards.md E2E section updated with when-to-use guidance
47
+ - (deep) CI integration configured for E2E test execution
48
+ - (deep) Sub-flows defined for common user journeys
44
49
 
45
50
  ## Methodology Scaling
46
51
  - **deep**: Full setup for all detected platforms. All visual testing patterns,
@@ -63,3 +68,13 @@ Check for existing E2E config: Playwright config file (playwright.config.ts or
63
68
  .js) and/or maestro/ directory. If either exists, run in update mode for that
64
69
  platform. Preserve baseline screenshots, custom viewports, existing flows,
65
70
  and environment variables.
71
+
72
+ ## Update Mode Specifics
73
+ - **Detect prior artifact**: playwright.config.ts/.js exists and/or maestro/
74
+ directory exists with flow files
75
+ - **Preserve**: baseline screenshots, custom viewports, existing test flows,
76
+ environment variables, testID naming conventions
77
+ - **Triggers for update**: new user stories with UI interactions added,
78
+ platform targets changed in tech-stack.md, tdd-standards.md E2E section updated
79
+ - **Conflict resolution**: preserve existing baselines, add new flows alongside
80
+ existing ones rather than replacing
@@ -1,11 +1,12 @@
1
1
  ---
2
2
  name: domain-modeling
3
3
  description: Deep domain modeling across all identified project domains
4
+ summary: "Analyzes your user stories to identify the core concepts in your project (entities, their relationships, the rules that must always hold true), and establishes a shared vocabulary that all docs and code will use."
4
5
  phase: "modeling"
5
6
  order: 510
6
7
  dependencies: [review-user-stories]
7
8
  outputs: [docs/domain-models/]
8
- reads: [coding-standards]
9
+ reads: [coding-standards, innovate-user-stories]
9
10
  conditional: null
10
11
  knowledge-base: [domain-modeling]
11
12
  ---
@@ -34,13 +35,15 @@ and aggregate boundaries. User actions reveal the domain model.
34
35
  - docs/domain-models/index.md — overview of all domains and their relationships
35
36
 
36
37
  ## Quality Criteria
37
- - Every PRD feature maps to at least one domain
38
- - Entity relationships are explicit (not implied)
39
- - Aggregate boundaries are justified (why this grouping?)
40
- - Domain events cover all state transitions
41
- - Invariants are testable assertions, not vague rules
38
+ - (mvp) Every PRD feature maps to at least one domain
39
+ - (mvp) Entity relationships are explicit (not implied)
40
+ - (mvp) Each aggregate boundary documents: the invariant it protects, the consistency boundary it enforces, and why included entities must change together
41
+ - (deep) Domain events cover all state transitions
42
+ - (deep) Each invariant is phrased as a boolean condition checkable in code (e.g., `order.total >= 0`, `user.email matches /^[^@]+@[^@]+$/`), not a narrative description
42
43
  - Ubiquitous language is consistent across all domain models
43
- - Cross-domain relationships are documented at context boundaries
44
+ - (mvp) All entity and concept names used consistently across domain model files (ubiquitous language enforced)
45
+ - (deep) Cross-aggregate event flows documented for every state change that crosses aggregate boundaries
46
+ - (deep) Cross-domain relationships are documented at context boundaries
44
47
 
45
48
  ## Methodology Scaling
46
49
  - **deep**: Full DDD tactical patterns. Detailed entity specs with TypeScript-style
@@ -1,12 +1,13 @@
1
1
  ---
2
2
  name: review-domain-modeling
3
3
  description: Review domain models for completeness, consistency, and downstream readiness
4
+ summary: "Verifies every PRD feature maps to a domain entity, checks that business rules are enforceable, and ensures the shared vocabulary is consistent across all project files."
4
5
  phase: "modeling"
5
6
  order: 520
6
7
  dependencies: [domain-modeling]
7
8
  outputs: [docs/reviews/review-domain-modeling.md, docs/reviews/domain-modeling/review-summary.md, docs/reviews/domain-modeling/codex-review.json, docs/reviews/domain-modeling/gemini-review.json]
8
9
  conditional: null
9
- knowledge-base: [review-methodology, review-domain-modeling]
10
+ knowledge-base: [review-methodology, review-domain-modeling, multi-model-review-dispatch, review-step-template]
10
11
  ---
11
12
 
12
13
  ## Purpose
@@ -29,11 +30,14 @@ independent review validation.
29
30
  - docs/reviews/domain-modeling/gemini-review.json (depth 4+, if available) — raw Gemini findings
30
31
 
31
32
  ## Quality Criteria
32
- - All review passes executed with findings documented
33
- - Every finding categorized by severity (P0-P3)
34
- - Fix plan created for P0 and P1 findings
35
- - Fixes applied and re-validated
36
- - Downstream readiness confirmed (decisions phase can proceed)
33
+ - (mvp) All review passes executed with findings documented
34
+ - (mvp) Every finding categorized by severity (P0-P3)
35
+ - (mvp) Fix plan created for P0 and P1 findings
36
+ - (mvp) Fixes applied and re-validated
37
+ - (mvp) Downstream readiness confirmed (decisions phase can proceed)
38
+ - (mvp) Entity coverage verified (every PRD feature maps to at least one entity)
39
+ - (deep) Aggregate boundaries verified (each aggregate protects at least one invariant)
40
+ - (deep) Ubiquitous language consistency verified across all domain model files
37
41
  - (depth 4+) Multi-model findings synthesized with consensus/disagreement analysis
38
42
 
39
43
  ## Methodology Scaling
@@ -52,3 +56,10 @@ If docs/reviews/review-domain-modeling.md exists, this is a re-review. Read prev
52
56
  findings, check which were addressed, run review passes again on updated models.
53
57
  If multi-model review artifacts exist under docs/reviews/domain-modeling/,
54
58
  preserve prior findings still valid.
59
+
60
+ ## Update Mode Specifics
61
+
62
+ - **Detect**: `docs/reviews/review-domain-modeling.md` exists with tracking comment
63
+ - **Preserve**: Prior findings still valid, resolution decisions, multi-model review artifacts
64
+ - **Triggers**: Upstream artifact changed since last review (compare tracking comment dates)
65
+ - **Conflict resolution**: Previously resolved findings reappearing = regression; flag and re-evaluate
@@ -1,13 +1,14 @@
1
1
  ---
2
2
  name: platform-parity-review
3
3
  description: Audit all documentation for platform-specific gaps across target platforms
4
+ summary: "Audits all documentation for platform-specific gaps — features missing on one platform, input pattern differences (touch vs. mouse), and platform-specific testing coverage."
4
5
  phase: "parity"
5
6
  order: 1010
6
7
  dependencies: [review-architecture, review-database, review-api, review-ux]
7
8
  outputs: [docs/reviews/platform-parity-review.md, docs/reviews/platform-parity/review-summary.md, docs/reviews/platform-parity/codex-review.json, docs/reviews/platform-parity/gemini-review.json]
8
- reads: [user-stories, coding-standards, tech-stack, project-structure, tdd]
9
+ reads: [user-stories, coding-standards, tech-stack, project-structure, tdd, design-system]
9
10
  conditional: "if-needed"
10
- knowledge-base: [cross-phase-consistency]
11
+ knowledge-base: [cross-phase-consistency, multi-model-review-dispatch, review-step-template, review-methodology]
11
12
  ---
12
13
 
13
14
  ## Purpose
@@ -20,6 +21,14 @@ input patterns, and UX considerations are documented.
20
21
  At depth 4+, dispatches to external AI models (Codex, Gemini) for
21
22
  independent platform gap analysis.
22
23
 
24
+ ## Conditional Evaluation
25
+ This step is conditional ("if-needed"). Enable when:
26
+ - The project targets 2+ platforms (e.g., web + mobile, iOS + Android)
27
+ - `docs/tech-stack.md` lists a cross-platform framework (React Native, Flutter, Expo)
28
+ - `docs/plan.md` mentions multiple deployment targets
29
+
30
+ Skip when the project targets a single platform only.
31
+
23
32
  ## Inputs
24
33
  - docs/plan.md (required) — target platforms and version requirements
25
34
  - docs/tech-stack.md (required) — cross-platform framework and build approach
@@ -28,7 +37,7 @@ independent platform gap analysis.
28
37
  - docs/project-structure.md (optional) — platform-specific file organization
29
38
  - docs/tdd-standards.md (optional) — platform-specific testing approach
30
39
  - docs/design-system.md (optional) — responsive breakpoints and platform patterns
31
- - docs/implementation-plan.md (optional) — tasks covering each platform
40
+ - docs/implementation-plan.md (optional — not available, runs before implementation-plan) — tasks covering each platform
32
41
  - CLAUDE.md (required) — platform-specific workflow notes
33
42
 
34
43
  ## Expected Outputs
@@ -39,14 +48,15 @@ independent platform gap analysis.
39
48
  - docs/reviews/platform-parity/gemini-review.json (depth 4+, if available) — raw Gemini findings
40
49
 
41
50
  ## Quality Criteria
42
- - All target platforms identified from PRD and tech-stack.md
43
- - Every user story checked for platform-specific acceptance criteria
44
- - Feature parity matrix shows which features work on which platforms
45
- - Input pattern differences documented (touch vs. mouse, keyboard shortcuts, gestures)
46
- - Platform-specific testing documented (Playwright for web, Maestro for mobile)
47
- - Navigation patterns appropriate per platform (sidebar vs. tab bar, etc.)
48
- - Offline/connectivity handling addressed per platform (if applicable)
49
- - Web version is treated as first-class (not afterthought) if PRD specifies it
51
+ - (mvp) All target platforms identified from PRD and tech-stack.md
52
+ - (mvp) Every user story checked for platform-specific acceptance criteria
53
+ - (deep) Feature parity matrix shows which features work on which platforms
54
+ - (deep) Input pattern differences documented (touch vs. mouse, keyboard shortcuts, gestures)
55
+ - (deep) Platform-specific testing documented (Playwright for web, Maestro for mobile)
56
+ - (deep) Navigation patterns appropriate per platform (sidebar vs. tab bar, etc.)
57
+ - (deep) Offline/connectivity handling addressed per platform (if applicable)
58
+ - (deep) Web version is treated as first-class (not afterthought) if PRD specifies it
59
+ - Fix plan documented for all P0/P1 findings with specific document and section to update
50
60
  - (depth 4+) Multi-model findings synthesized with consensus/disagreement analysis
51
61
 
52
62
  ## Methodology Scaling
@@ -68,3 +78,13 @@ re-run audit against current documents, preserve prior findings still valid,
68
78
  note which gaps have been addressed since last review. If multi-model review
69
79
  artifacts exist under docs/reviews/platform-parity/, preserve prior findings
70
80
  still valid.
81
+
82
+ ## Update Mode Specifics
83
+ - **Detect prior artifact**: docs/reviews/platform-parity-review.md exists
84
+ - **Preserve**: existing parity findings still valid, platform-specific decisions,
85
+ feature parity matrix entries for unchanged features
86
+ - **Triggers for update**: specification changes (tech-stack.md, user-stories.md,
87
+ system-architecture.md updated), new target platform added to PRD, platform-specific
88
+ coding standards changed
89
+ - **Conflict resolution**: preserve platform-specific decisions already made,
90
+ merge new findings alongside existing ones rather than replacing
@@ -1,18 +1,20 @@
1
1
  ---
2
2
  name: implementation-plan-review
3
3
  description: Review implementation tasks for coverage, feasibility, and multi-model validation
4
+ summary: "Verifies every feature has implementation tasks, no task is too large for one session, the dependency graph has no cycles, and every acceptance criterion maps to at least one task."
4
5
  phase: "planning"
5
6
  order: 1220
6
7
  dependencies: [implementation-plan]
7
8
  outputs: [docs/reviews/review-tasks.md, docs/reviews/implementation-plan/task-coverage.json, docs/reviews/implementation-plan/review-summary.md]
8
9
  conditional: null
9
- knowledge-base: [review-methodology, review-implementation-tasks, task-decomposition]
10
+ knowledge-base: [review-methodology, review-implementation-tasks, task-decomposition, multi-model-review-dispatch, review-step-template]
10
11
  ---
11
12
 
12
13
  ## Purpose
13
14
  Review implementation tasks targeting task-specific failure modes: architecture
14
15
  coverage gaps, missing dependencies, tasks too large or too vague for agents,
15
- critical path inaccuracy, and invalid parallelization assumptions. At depth 4+,
16
+ agent executability violations, critical path inaccuracy, and invalid
17
+ parallelization assumptions. At depth 4+,
16
18
  dispatch to independent AI models (Codex/Gemini CLIs) for multi-model validation
17
19
  and produce a structured coverage matrix and review summary.
18
20
 
@@ -34,14 +36,16 @@ and produce a structured coverage matrix and review summary.
34
36
  - docs/reviews/implementation-plan/gemini-review.json — raw Gemini findings (depth 4+, if available)
35
37
 
36
38
  ## Quality Criteria
37
- - Architecture coverage verified (every component has tasks)
38
- - Dependency graph is valid DAG
39
- - No task is too large for a single agent session
40
- - Critical path is accurate
41
- - Parallelization assumptions are valid
42
- - Every acceptance criterion maps to at least one task (100% AC coverage)
43
- - Task descriptions are unambiguous enough for AI agents (agent-implementable)
44
- - At depth 4+: independent model reviews completed and reconciled
39
+ - (mvp) Architecture coverage verified (every component has tasks)
40
+ - (mvp) Dependency graph is valid DAG
41
+ - (mvp) No task is too large for a single agent session
42
+ - (deep) Critical path is accurate
43
+ - (deep) Parallelization assumptions are valid
44
+ - (deep) Every acceptance criterion maps to at least one task (100% AC coverage)
45
+ - (deep) Every task has verb-first description, >= 1 input file reference, >= 1 acceptance criterion, and defined output artifact
46
+ - (mvp) Every task complies with agent executability rules (3-file, 150-line, single-concern, decision-free, test co-location)
47
+ - (mvp) Tasks exceeding limits have explicit `<!-- agent-size-exception -->` justification
48
+ - (depth 4+) Independent model reviews completed and reconciled
45
49
 
46
50
  ## Methodology Scaling
47
51
  - **deep**: Full multi-pass review with multi-model validation. AC coverage
@@ -54,3 +58,10 @@ and produce a structured coverage matrix and review summary.
54
58
  ## Mode Detection
55
59
  Re-review mode if previous review exists. If multi-model review artifacts exist
56
60
  under docs/reviews/implementation-plan/, preserve prior findings still valid.
61
+
62
+ ## Update Mode Specifics
63
+
64
+ - **Detect**: `docs/reviews/review-implementation-plan.md` exists with tracking comment
65
+ - **Preserve**: Prior findings still valid, resolution decisions, multi-model review artifacts
66
+ - **Triggers**: Upstream artifact changed since last review (compare tracking comment dates)
67
+ - **Conflict resolution**: Previously resolved findings reappearing = regression; flag and re-evaluate