@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
@@ -1,33 +1,38 @@
1
1
  ---
2
2
  name: create-prd
3
3
  description: Create a product requirements document from a project idea
4
+ summary: "Translates your vision (or idea, if no vision exists) into a product requirements document with problem statement, user personas, prioritized feature list, constraints, non-functional requirements, and measurable success criteria."
4
5
  phase: "pre"
5
- order: 1
6
+ order: 110
6
7
  dependencies: []
7
- outputs: [docs/prd.md]
8
+ outputs: [docs/plan.md]
8
9
  conditional: null
9
10
  knowledge-base: [prd-craft]
11
+ reads: [create-vision]
10
12
  ---
11
13
 
12
14
  ## Purpose
13
15
  Transform a project idea into a structured product requirements document that
14
16
  defines the problem, target users, features, constraints, and success criteria.
15
17
  This is the foundation document that all subsequent phases reference.
18
+ The PRD drives user stories, architecture decisions, and implementation planning
19
+ throughout the entire pipeline.
16
20
 
17
21
  ## Inputs
18
22
  - Project idea (provided by user verbally or in a brief)
19
23
  - Existing project files (if brownfield — any README, docs, or code)
20
24
 
21
25
  ## Expected Outputs
22
- - docs/prd.md — Product requirements document
26
+ - docs/plan.md — Product requirements document
23
27
 
24
28
  ## Quality Criteria
25
- - Problem statement is specific and testable (not vague aspirations)
26
- - Target users are identified with their needs
27
- - Features are scoped with clear boundaries (what's in, what's out)
28
- - Success criteria are measurable
29
- - Constraints (technical, timeline, budget, team) are documented
30
- - Non-functional requirements are explicit (performance, security, accessibility)
29
+ - (mvp) Problem statement names a specific user group, a specific pain point, and a falsifiable hypothesis about the solution
30
+ - (mvp) Target users are identified with their needs
31
+ - (mvp) Features are scoped with clear boundaries (what's in, what's out)
32
+ - (mvp) Success criteria are measurable
33
+ - (mvp) Each non-functional requirement has a measurable target or threshold (e.g., 'page load < 2s', 'WCAG AA')
34
+ - (mvp) No two sections contain contradictory statements about the same concept
35
+ - (deep) Constraints (technical, timeline, budget, team) are documented
31
36
 
32
37
  ## Methodology Scaling
33
38
  - **deep**: Comprehensive PRD. Competitive analysis, detailed user personas,
@@ -40,6 +45,25 @@ This is the foundation document that all subsequent phases reference.
40
45
  phased delivery.
41
46
 
42
47
  ## Mode Detection
43
- If docs/prd.md exists, operate in update mode: read existing content, identify
48
+ If docs/plan.md exists, operate in update mode: read existing content, identify
44
49
  what has changed or been learned since it was written, propose targeted updates.
45
50
  Preserve existing decisions unless explicitly revisiting them.
51
+
52
+ ## Update Mode Specifics
53
+ - **Detect prior artifact**: docs/plan.md exists
54
+ - **Preserve**: problem statement, existing feature definitions, success criteria,
55
+ user personas, scope boundaries, and enhancement markers (`<!-- enhancement: ... -->`)
56
+ unless user explicitly requests changes
57
+ - **Triggers for update**: user provides new requirements, scope adjustment
58
+ requested, constraints changed (timeline, budget, team), new user research
59
+ - **Conflict resolution**: new features are appended to the feature list with
60
+ clear versioning; changed constraints are documented with rationale for change
61
+
62
+ ### Understand the Vision
63
+
64
+ **If `docs/vision.md` exists**: Read it completely. This is your strategic foundation — the vision document has already established the problem space, target audience, value proposition, competitive landscape, and guiding principles. Skip the vision discovery questions below and use the vision document as the North Star for this PRD. Reference it throughout, ensuring every requirement aligns with the stated vision and guiding principles. Focus your discovery questions on translating the vision into concrete product requirements rather than re-exploring strategic direction.
65
+
66
+ **If `docs/vision.md` does NOT exist**:
67
+ - What problem does this solve and for whom? Push me to be specific about the target user.
68
+ - What does success look like? How will we know this is working?
69
+ - What's the single most important thing this app must do well?
@@ -1,12 +1,13 @@
1
1
  ---
2
2
  name: innovate-prd
3
3
  description: Discover feature-level innovation opportunities in the PRD
4
+ summary: "Analyzes the PRD for feature-level gaps — competitive blind spots, UX enhancements, AI-native possibilities — and proposes additions for your approval."
4
5
  phase: "pre"
5
- order: 3
6
+ order: 130
6
7
  dependencies: [review-prd]
7
- outputs: [docs/prd-innovation.md]
8
+ outputs: [docs/prd-innovation.md, docs/plan.md, docs/reviews/prd-innovation/review-summary.md, docs/reviews/prd-innovation/codex-review.json, docs/reviews/prd-innovation/gemini-review.json]
8
9
  conditional: "if-needed"
9
- knowledge-base: [prd-innovation, prd-craft]
10
+ knowledge-base: [prd-innovation, prd-craft, multi-model-review-dispatch]
10
11
  ---
11
12
 
12
13
  ## Purpose
@@ -15,33 +16,63 @@ new capabilities, competitive positioning, and defensive product gaps. It is
15
16
  NOT UX-level enhancement (that belongs in user story innovation) — it focuses
16
17
  on whether the right features are in the PRD at all.
17
18
 
19
+ At depth 4+, dispatches to external AI models (Codex, Gemini) for
20
+ independent innovation brainstorming — different models surface different
21
+ creative opportunities and competitive insights.
22
+
18
23
  ## Inputs
19
- - docs/prd.md (required) — PRD to analyze for innovation opportunities
24
+ - docs/plan.md (required) — PRD to analyze for innovation opportunities
20
25
  - docs/reviews/pre-review-prd.md (optional) — review findings for context
21
26
 
22
27
  ## Expected Outputs
23
28
  - docs/prd-innovation.md — innovation findings, suggestions with cost/impact
24
29
  assessment, and disposition (accepted/rejected/deferred)
25
- - docs/prd.md — updated with approved innovations
30
+ - docs/plan.md — updated with approved innovations
31
+ - docs/reviews/prd-innovation/review-summary.md (depth 4+) — multi-model innovation synthesis
32
+ - docs/reviews/prd-innovation/codex-review.json (depth 4+, if available) — raw Codex suggestions
33
+ - docs/reviews/prd-innovation/gemini-review.json (depth 4+, if available) — raw Gemini suggestions
26
34
 
27
35
  ## Quality Criteria
28
- - Enhancements are feature-level, not UX-level polish
29
- - Each suggestion has a cost estimate (trivial/moderate/significant)
30
- - Each suggestion has a clear user benefit and impact assessment
31
- - Approved innovations are documented to the same standard as existing features
32
- - PRD scope boundaries are respected — no uncontrolled scope creep
36
+ - (mvp) Enhancements are feature-level, not UX-level polish
37
+ - (mvp) Each suggestion has a cost estimate (trivial/moderate/significant)
38
+ - (mvp) Each suggestion has a clear user benefit and impact assessment
39
+ - (mvp) Each approved innovation includes: problem it solves, target users, scope boundaries, and success criteria
40
+ - (mvp) PRD scope boundaries are respected — no uncontrolled scope creep
33
41
  - User approval is obtained before modifying the PRD
42
+ - User approval for each accepted innovation documented as a question-response pair with timestamp (e.g., "Q: Accept feature X? A: Yes — 2025-01-15T14:30Z")
43
+ - (depth 4+) Multi-model suggestions deduplicated and synthesized with unique ideas from each model highlighted
34
44
 
35
45
  ## Methodology Scaling
36
46
  - **deep**: Full innovation pass across all categories (competitive research,
37
47
  UX gaps, AI-native opportunities, defensive product thinking). Cost/impact
38
- matrix. Detailed integration of approved innovations into PRD.
48
+ matrix. Detailed integration of approved innovations into PRD. Multi-model
49
+ innovation dispatched to Codex and Gemini if available, with graceful
50
+ fallback to Claude-only enhanced brainstorming.
39
51
  - **mvp**: Not applicable — this step is conditional and skipped in MVP.
40
- - **custom:depth(1-5)**: Depth 1-2: not typically enabled. Depth 3: quick scan
41
- for obvious gaps and missing expected features. Depth 4-5: full innovation
42
- pass with evaluation framework.
52
+ - **custom:depth(1-5)**: Depth 1-2: skip (not enough context for meaningful innovation at this depth). Depth 3: quick scan
53
+ for obvious gaps and missing expected features. Depth 4: full innovation
54
+ pass + one external model (if CLI available). Depth 5: full innovation pass
55
+ + multi-model with deduplication and synthesis.
56
+
57
+ ## Conditional Evaluation
58
+ Enable when: project has a competitive landscape section in plan.md, user explicitly
59
+ requests an innovation pass, or the PRD review (review-prd) identifies feature gaps
60
+ or missing capabilities. Skip when: PRD is minimal/exploratory, depth < 3, or user
61
+ explicitly declines innovation.
43
62
 
44
63
  ## Mode Detection
45
64
  If docs/prd-innovation.md exists, this is a re-innovation pass. Read previous
46
65
  suggestions and their disposition (accepted/rejected/deferred), focus on new
47
- opportunities from PRD changes since last run.
66
+ opportunities from PRD changes since last run. If multi-model artifacts exist
67
+ under docs/reviews/prd-innovation/, preserve prior suggestion dispositions.
68
+
69
+ ## Update Mode Specifics
70
+ - **Detect prior artifact**: docs/prd-innovation.md exists with suggestion
71
+ dispositions
72
+ - **Preserve**: accepted/rejected/deferred dispositions from prior runs,
73
+ cost/impact assessments already reviewed by user, multi-model review artifacts
74
+ - **Triggers for update**: PRD scope changed (new features added or removed),
75
+ user requests re-evaluation of deferred suggestions, new external model
76
+ available for additional perspectives
77
+ - **Conflict resolution**: if a previously rejected suggestion is now relevant
78
+ due to PRD changes, re-propose with updated rationale referencing the change
@@ -1,12 +1,13 @@
1
1
  ---
2
2
  name: innovate-user-stories
3
3
  description: Discover UX-level enhancements and innovation opportunities in user stories
4
+ summary: "Identifies UX enhancement opportunities — progressive disclosure, smart defaults, accessibility improvements — and integrates approved changes into existing stories."
4
5
  phase: "pre"
5
- order: 6
6
+ order: 160
6
7
  dependencies: [review-user-stories]
7
- outputs: [docs/user-stories-innovation.md]
8
+ outputs: [docs/user-stories-innovation.md, docs/reviews/user-stories-innovation/review-summary.md, docs/reviews/user-stories-innovation/codex-review.json, docs/reviews/user-stories-innovation/gemini-review.json]
8
9
  conditional: "if-needed"
9
- knowledge-base: [user-stories, user-story-innovation]
10
+ knowledge-base: [user-stories, user-story-innovation, multi-model-review-dispatch]
10
11
  ---
11
12
 
12
13
  ## Purpose
@@ -16,32 +17,64 @@ innovation — `innovate-prd`) — it focuses on making existing features better
16
17
  through smart defaults,
17
18
  progressive disclosure, accessibility improvements, and AI-native capabilities.
18
19
 
20
+ At depth 4+, dispatches to external AI models (Codex, Gemini) for
21
+ independent UX innovation brainstorming — different models surface different
22
+ enhancement opportunities.
23
+
19
24
  ## Inputs
20
25
  - docs/user-stories.md (required) — stories to enhance
21
- - docs/prd.md (required) — PRD boundaries (innovation must not exceed scope)
26
+ - docs/plan.md (required) — PRD boundaries (innovation must not exceed scope)
22
27
 
23
28
  ## Expected Outputs
24
29
  - docs/user-stories-innovation.md — innovation findings, suggestions with
25
30
  cost/impact assessment, and disposition (accepted/rejected/deferred)
26
31
  - docs/user-stories.md — updated with approved enhancements
32
+ - docs/reviews/user-stories-innovation/review-summary.md (depth 4+) — multi-model innovation synthesis
33
+ - docs/reviews/user-stories-innovation/codex-review.json (depth 4+, if available) — raw Codex suggestions
34
+ - docs/reviews/user-stories-innovation/gemini-review.json (depth 4+, if available) — raw Gemini suggestions
27
35
 
28
36
  ## Quality Criteria
29
- - Enhancements are UX-level, not new features
30
- - Each suggestion has a cost estimate (trivial/moderate/significant)
31
- - Each suggestion has a clear user benefit
32
- - Approved enhancements are integrated into existing stories (not new stories)
33
- - PRD scope boundaries are respected — no scope creep
37
+ - (mvp) Enhancements are UX-level, not new features
38
+ - (mvp) Each suggestion has a cost estimate (trivial/moderate/significant)
39
+ - (mvp) Each suggestion has a clear user benefit
40
+ - (mvp) Approved enhancements are integrated into existing stories (not new stories)
41
+ - (mvp) PRD scope boundaries are respected — no scope creep
42
+ - User approval for each accepted innovation documented as a question-response pair with timestamp (e.g., "Q: Accept enhancement X? A: Yes — 2025-01-15T14:30Z")
43
+ - (depth 4+) Multi-model suggestions deduplicated and synthesized with unique ideas from each model highlighted
34
44
 
35
45
  ## Methodology Scaling
36
46
  - **deep**: Full innovation pass across all three categories (high-value
37
47
  low-effort, differentiators, defensive gaps). Cost/impact matrix.
38
- Detailed integration of approved enhancements into stories.
48
+ Detailed integration of approved enhancements into stories. Multi-model
49
+ innovation dispatched to Codex and Gemini if available, with graceful
50
+ fallback to Claude-only enhanced brainstorming.
39
51
  - **mvp**: Not applicable — this step is conditional and skipped in MVP.
40
- - **custom:depth(1-5)**: Depth 1-2: not typically enabled. Depth 3: quick
41
- scan for obvious improvements. Depth 4-5: full innovation pass with
42
- evaluation framework.
52
+ - **custom:depth(1-5)**: Depth 1-2: skip (not enough context for meaningful innovation at this depth). Depth 3: quick
53
+ scan for obvious improvements. Depth 4: full innovation pass + one external
54
+ model (if CLI available). Depth 5: full innovation pass + multi-model with
55
+ deduplication and synthesis.
56
+
57
+ ## Conditional Evaluation
58
+ Enable when: user stories review identifies UX gaps, project targets a consumer-facing
59
+ audience, or progressive disclosure patterns would benefit users. Skip when: stories
60
+ are backend-only with no user-facing UI, depth < 3, or user explicitly declines
61
+ innovation.
43
62
 
44
63
  ## Mode Detection
45
64
  If docs/user-stories-innovation.md exists, this is a re-innovation pass. Read
46
65
  previous suggestions and their disposition (accepted/rejected), focus on new
47
- opportunities from story changes since last run.
66
+ opportunities from story changes since last run. If multi-model artifacts
67
+ exist under docs/reviews/user-stories-innovation/, preserve prior suggestion
68
+ dispositions.
69
+
70
+ ## Update Mode Specifics
71
+ - **Detect prior artifact**: docs/user-stories-innovation.md exists with
72
+ suggestion dispositions
73
+ - **Preserve**: accepted/rejected dispositions from prior runs, cost/impact
74
+ assessments already reviewed, multi-model review artifacts
75
+ - **Triggers for update**: user stories changed (new stories added, existing
76
+ stories rewritten), PRD innovation accepted new features that need UX
77
+ enhancement analysis
78
+ - **Conflict resolution**: if a previously rejected UX enhancement is now
79
+ relevant due to story changes, re-propose with updated rationale; never
80
+ re-suggest rejected enhancements without a material change in context
@@ -1,12 +1,13 @@
1
1
  ---
2
2
  name: review-prd
3
3
  description: Multi-pass review of the PRD for completeness, clarity, and downstream readiness
4
+ summary: "Reviews the PRD across eight passes — problem rigor, persona coverage, feature scoping, success criteria, internal consistency, constraints, non-functional requirements — and fixes blocking issues."
4
5
  phase: "pre"
5
- order: 2
6
+ order: 120
6
7
  dependencies: [create-prd]
7
- outputs: [docs/reviews/pre-review-prd.md]
8
+ outputs: [docs/reviews/pre-review-prd.md, docs/reviews/prd/review-summary.md, docs/reviews/prd/codex-review.json, docs/reviews/prd/gemini-review.json]
8
9
  conditional: null
9
- knowledge-base: [review-methodology, review-prd, prd-craft, gap-analysis]
10
+ knowledge-base: [review-methodology, review-prd, prd-craft, gap-analysis, multi-model-review-dispatch, review-step-template]
10
11
  ---
11
12
 
12
13
  ## Purpose
@@ -15,30 +16,50 @@ product requirements artifacts. Identify issues, create a fix plan, execute
15
16
  fixes, and re-validate. Ensures the PRD is complete, clear, consistent, and
16
17
  ready for User Stories to consume.
17
18
 
19
+ At depth 4+, dispatches to external AI models (Codex, Gemini) for
20
+ independent review validation.
21
+
18
22
  ## Inputs
19
- - docs/prd.md (required) — PRD to review
23
+ - docs/plan.md (required) — PRD to review
20
24
  - Project idea or brief (context from user, if available)
21
25
 
22
26
  ## Expected Outputs
23
27
  - docs/reviews/pre-review-prd.md — review findings, fix plan, and resolution log
24
- - docs/prd.md — updated with fixes
28
+ - docs/plan.md — updated with fixes
29
+ - docs/reviews/prd/review-summary.md (depth 4+) — multi-model review synthesis
30
+ - docs/reviews/prd/codex-review.json (depth 4+, if available) — raw Codex findings
31
+ - docs/reviews/prd/gemini-review.json (depth 4+, if available) — raw Gemini findings
25
32
 
26
33
  ## Quality Criteria
34
+ - (mvp) Passes 1-2 executed with findings documented
27
35
  - All review passes executed with findings documented
28
36
  - Every finding categorized by severity (P0-P3)
29
37
  - Fix plan created for P0 and P1 findings
30
38
  - Fixes applied and re-validated
31
- - Downstream readiness confirmed (User Stories can proceed)
39
+ - (mvp) Downstream readiness confirmed (User Stories can proceed)
40
+ - (depth 4+) Multi-model findings synthesized with consensus/disagreement analysis
32
41
 
33
42
  ## Methodology Scaling
34
43
  - **deep**: All 8 review passes from the knowledge base. Full findings report
35
- with severity categorization. Fixes applied and re-validated.
44
+ with severity categorization. Fixes applied and re-validated. Multi-model
45
+ review dispatched to Codex and Gemini if available, with graceful fallback
46
+ to Claude-only enhanced review.
36
47
  - **mvp**: Passes 1-2 only (Problem Statement Rigor, Persona Coverage). Focus
37
48
  on blocking gaps — requirements too vague to write stories from.
38
49
  - **custom:depth(1-5)**: Depth 1-2: passes 1-2 only (Problem Statement Rigor,
39
50
  Persona Coverage). Depth 3: passes 1-4 (add Feature Scoping, Success
40
- Criteria). Depth 4-5: all 8 passes.
51
+ Criteria). Depth 4: all 8 passes + one external model review (if CLI
52
+ available). Depth 5: all 8 passes + multi-model review with reconciliation.
41
53
 
42
54
  ## Mode Detection
43
55
  If docs/reviews/pre-review-prd.md exists, this is a re-review. Read previous
44
56
  findings, check which were addressed, run review passes again on updated PRD.
57
+ If multi-model review artifacts exist under docs/reviews/prd/, preserve prior
58
+ findings still valid.
59
+
60
+ ## Update Mode Specifics
61
+
62
+ - **Detect**: `docs/reviews/review-prd.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,12 +1,13 @@
1
1
  ---
2
2
  name: review-user-stories
3
3
  description: Multi-pass review of user stories for PRD coverage, quality, and downstream readiness
4
+ summary: "Verifies every PRD feature maps to at least one story, checks that acceptance criteria are specific enough to test, validates story independence, and builds a requirements traceability index at higher depths."
4
5
  phase: "pre"
5
- order: 5
6
+ order: 150
6
7
  dependencies: [user-stories]
7
- outputs: [docs/reviews/pre-review-user-stories.md]
8
+ outputs: [docs/reviews/pre-review-user-stories.md, docs/reviews/user-stories/requirements-index.md, docs/reviews/user-stories/coverage.json, docs/reviews/user-stories/review-summary.md]
8
9
  conditional: null
9
- knowledge-base: [review-methodology, review-user-stories]
10
+ knowledge-base: [review-methodology, review-user-stories, multi-model-review-dispatch, review-step-template]
10
11
  ---
11
12
 
12
13
  ## Purpose
@@ -14,30 +15,55 @@ Deep multi-pass review of user stories, targeting failure modes specific to
14
15
  story artifacts. Identify coverage gaps, quality issues, and downstream
15
16
  readiness problems. Create a fix plan, execute fixes, and re-validate.
16
17
 
18
+ At higher depths, builds a formal requirements index with traceability matrix
19
+ and optionally dispatches to external AI models (Codex, Gemini) for
20
+ independent coverage validation.
21
+
17
22
  ## Inputs
18
23
  - docs/user-stories.md (required) — stories to review
19
- - docs/prd.md (required) — source requirements for coverage checking
24
+ - docs/plan.md (required) — source requirements for coverage checking
25
+ - docs/reviews/user-stories/ artifacts (optional) — prior review findings in update mode
20
26
 
21
27
  ## Expected Outputs
22
28
  - docs/reviews/pre-review-user-stories.md — review findings, fix plan, and resolution log
23
29
  - docs/user-stories.md — updated with fixes
30
+ - docs/reviews/user-stories/requirements-index.md (depth 4+) — atomic requirements
31
+ extracted from PRD with REQ-xxx IDs
32
+ - docs/reviews/user-stories/coverage.json (depth 4+) — requirement-to-story mapping
33
+ - docs/reviews/user-stories/review-summary.md (depth 5) — multi-model review
34
+ synthesis with coverage verification
24
35
 
25
36
  ## Quality Criteria
37
+ - (mvp) Pass 1 (PRD coverage) executed with findings documented
26
38
  - All review passes executed with findings documented
27
39
  - Every finding categorized by severity (P0-P3)
28
40
  - Fix plan created for P0 and P1 findings
29
41
  - Fixes applied and re-validated
30
- - Downstream readiness confirmed (modeling phase can proceed)
42
+ - (mvp) Every story has at least one testable acceptance criterion, and every PRD feature maps to at least one story
43
+ - (depth 4+) Every atomic PRD requirement has a REQ-xxx ID in the requirements index
44
+ - (depth 4+) Coverage matrix maps every REQ to at least one US (100% coverage target)
45
+ - (depth 4+) Multi-model findings synthesized with consensus/disagreement analysis
31
46
 
32
47
  ## Methodology Scaling
33
48
  - **deep**: All 6 review passes from the knowledge base. Full findings report
34
- with severity categorization. Fixes applied and re-validated.
49
+ with severity categorization. Fixes applied and re-validated. Requirements
50
+ index and coverage matrix built. Multi-model review dispatched to Codex and
51
+ Gemini if available, with graceful fallback to Claude-only enhanced review.
35
52
  - **mvp**: Pass 1 only (PRD coverage). Focus on blocking gaps — PRD features
36
53
  with no corresponding story.
37
54
  - **custom:depth(1-5)**: Depth 1: pass 1 only. Depth 2: passes 1-2.
38
- Depth 3: passes 1-4. Depth 4-5: all 6 passes.
55
+ Depth 3: passes 1-4. Depth 4: all 6 passes + requirements index + coverage
56
+ matrix. Depth 5: all of depth 4 + multi-model review (if CLIs available).
39
57
 
40
58
  ## Mode Detection
41
59
  If docs/reviews/pre-review-user-stories.md exists, this is a re-review. Read
42
60
  previous findings, check which were addressed, run review passes again on
43
- updated stories.
61
+ updated stories. If docs/reviews/user-stories/requirements-index.md exists,
62
+ preserve requirement IDs — never renumber REQ-xxx IDs.
63
+
64
+ ## Update Mode Specifics
65
+
66
+ - **Detect**: `docs/reviews/pre-review-user-stories.md` exists with tracking comment
67
+ - **Preserve**: Prior findings still valid, REQ-xxx IDs, resolution decisions, multi-model review artifacts
68
+ - **Triggers**: Upstream artifact changed since last review (compare tracking comment dates)
69
+ - **Conflict resolution**: Previously resolved findings reappearing = regression; flag and re-evaluate
@@ -1,10 +1,12 @@
1
1
  ---
2
2
  name: user-stories
3
3
  description: Translate PRD features into user stories with acceptance criteria
4
+ summary: "Breaks every PRD feature into user stories organized by epic, each with testable acceptance criteria in Given/When/Then format."
4
5
  phase: "pre"
5
- order: 4
6
+ order: 140
6
7
  dependencies: [review-prd]
7
8
  outputs: [docs/user-stories.md]
9
+ reads: [innovate-prd]
8
10
  conditional: null
9
11
  knowledge-base: [user-stories]
10
12
  ---
@@ -16,7 +18,7 @@ that are testable and specific enough to drive domain modeling, UX design, and
16
18
  task decomposition downstream.
17
19
 
18
20
  ## Inputs
19
- - docs/prd.md (required) — features, personas, and requirements to translate
21
+ - docs/plan.md (required) — features, personas, and requirements to translate
20
22
  - docs/reviews/pre-review-prd.md (optional) — review findings for context
21
23
  - docs/prd-innovation.md (optional) — innovation findings and approved enhancements
22
24
 
@@ -25,12 +27,13 @@ task decomposition downstream.
25
27
  criteria scaled to the configured depth level
26
28
 
27
29
  ## Quality Criteria
28
- - Every PRD feature maps to at least one user story
29
- - Stories follow INVEST criteria (Independent, Negotiable, Valuable, Estimable, Small, Testable)
30
- - Acceptance criteria are testable — unambiguous pass/fail
31
- - No story too large to implement in 1-3 focused agent sessions
32
- - Every PRD persona is represented in at least one story
33
- - Stories describe user behavior, not implementation details
30
+ - (mvp) Every PRD feature maps to at least one user story
31
+ - (deep) Stories follow INVEST criteria (Independent, Negotiable, Valuable, Estimable, Small, Testable)
32
+ - (mvp) Acceptance criteria are testable — unambiguous pass/fail
33
+ - (deep) No story has more than 7 acceptance criteria
34
+ - (mvp) Every PRD persona is represented in at least one story
35
+ - (mvp) Stories describe user behavior, not implementation details
36
+ - (mvp) Each story is independent — reordering stories does not break acceptance criteria
34
37
 
35
38
  ## Methodology Scaling
36
39
  - **deep**: Full story template with IDs, persona journey maps, cross-story
@@ -46,3 +49,15 @@ task decomposition downstream.
46
49
  If docs/user-stories.md exists, operate in update mode: read existing stories,
47
50
  identify changes needed based on updated PRD, categorize as ADD/RESTRUCTURE/
48
51
  PRESERVE, get approval before modifying. Preserve existing story IDs.
52
+
53
+ ## Update Mode Specifics
54
+ - **Detect prior artifact**: docs/user-stories.md exists
55
+ - **Preserve**: existing story IDs, epic groupings, acceptance criteria that
56
+ haven't been invalidated, story-to-PRD-feature traceability, enhancement
57
+ markers (`<!-- enhancement: ... -->`), priority decisions, story ID format
58
+ (US-xxx)
59
+ - **Triggers for update**: PRD features added or changed, innovation suggestions
60
+ accepted, user personas expanded, review findings require story adjustments
61
+ - **Conflict resolution**: never reuse a retired story ID; if a story's scope
62
+ changed, update its acceptance criteria in-place rather than creating a
63
+ duplicate story
@@ -0,0 +1,106 @@
1
+ ---
2
+ name: create-evals
3
+ description: Generate project-specific eval checks from standards documentation
4
+ summary: "Generates automated checks that verify your code matches your documented standards — file placement, naming conventions, feature-to-test coverage, API contract alignment — using your project's own test framework."
5
+ phase: "quality"
6
+ order: 920
7
+ dependencies: [tdd, story-tests]
8
+ outputs: [tests/evals/, docs/eval-standards.md]
9
+ reads: [security, dev-env-setup, api-contracts, database-schema, ux-spec]
10
+ conditional: null
11
+ knowledge-base: [eval-craft, testing-strategy]
12
+ ---
13
+
14
+ ## Purpose
15
+ Generate automated eval checks that verify AI-generated code meets the project's
16
+ own documented standards. Evals are test files in the project's own test framework
17
+ — not a separate tool. They check up to 13 categories: 5 core (always generated)
18
+ and 8 conditional (generated when their source document exists). Core: consistency,
19
+ structure, adherence, coverage, cross-doc. Conditional: architecture conformance,
20
+ API contract, security patterns, database schema, accessibility, performance budget,
21
+ configuration validation, error handling completeness.
22
+
23
+ ## Inputs
24
+ - docs/tech-stack.md (required) — determines test framework and stack-specific patterns
25
+ - docs/coding-standards.md (required) — adherence and error handling patterns
26
+ - docs/tdd-standards.md (required) — test co-location rules, mocking strategy
27
+ - docs/project-structure.md (required) — file placement rules for structure evals
28
+ - CLAUDE.md (required) — Key Commands table for consistency evals
29
+ - Makefile or package.json (required) — build targets to match against
30
+ - tests/acceptance/ (optional) — story test skeletons for coverage validation
31
+ - docs/user-stories.md (optional) — acceptance criteria for coverage evals
32
+ - docs/plan.md (optional) — feature list for coverage evals, performance NFRs
33
+ - docs/system-architecture.md (optional) — architecture conformance evals
34
+ - docs/api-contracts.md (optional) — API contract validation evals
35
+ - docs/security-review.md (optional) — security pattern verification evals
36
+ - docs/database-schema.md (optional) — database schema conformance evals
37
+ - docs/ux-spec.md (optional) — accessibility compliance evals
38
+ - docs/dev-setup.md (optional) — configuration validation evals
39
+
40
+ ## Expected Outputs
41
+
42
+ Core (always generated):
43
+ - tests/evals/consistency.test.* — command matching, format checking, cross-doc refs
44
+ - tests/evals/structure.test.* — file placement, shared code rules, test co-location
45
+ - tests/evals/adherence.test.* — coding convention patterns, mock rules, TODO format
46
+ - tests/evals/coverage.test.* — feature-to-code mapping, AC-to-test mapping
47
+ - tests/evals/cross-doc.test.* — tech stack consistency, path consistency, terminology
48
+
49
+ Conditional (generated when source doc exists):
50
+ - tests/evals/architecture.test.* — layer direction, module boundaries, circular deps
51
+ - tests/evals/api-contract.test.* — endpoint existence, methods, error codes
52
+ - tests/evals/security.test.* — auth middleware, secrets, input validation, SQL injection
53
+ - tests/evals/database.test.* — migration coverage, columns, indexes, relationships
54
+ - tests/evals/accessibility.test.* — ARIA, alt text, focus styles, contrast
55
+ - tests/evals/performance.test.* — budget files, bundle tracking, perf test existence
56
+ - tests/evals/config.test.* — env var docs, dead config, startup validation
57
+ - tests/evals/error-handling.test.* — bare catches, error responses tested, custom errors
58
+
59
+ Supporting:
60
+ - tests/evals/helpers.* — shared utilities
61
+ - docs/eval-standards.md — documents what is and isn't checked
62
+ - make eval target added to Makefile/package.json
63
+
64
+ ## Quality Criteria
65
+ - (mvp) Consistency + Structure evals generated
66
+ - (mvp) Evals use the project's own test framework from docs/tech-stack.md
67
+ - (mvp) All generated evals pass on the current codebase (no false positives)
68
+ - (mvp) Eval results are binary PASS/FAIL, not scores
69
+ - (mvp) make eval is separate from make test and make check (opt-in for CI)
70
+ - (deep) All applicable eval categories generated including security, API, DB, accessibility (conditional on source doc existence)
71
+ - (deep) Adherence, security, and error-handling evals include exclusion mechanisms
72
+ - (deep) docs/eval-standards.md explicitly documents what evals do NOT check
73
+ - (deep) Full eval suite runs in under 30 seconds
74
+ - (mvp) `make eval` (or equivalent) runs and all generated evals pass
75
+ - (deep) Eval false-positive assessment: each eval category documents at least one scenario where valid code might incorrectly fail, with exclusion mechanism
76
+
77
+ ## Methodology Scaling
78
+ - **deep**: All 13 eval categories (conditional on doc existence). Stack-specific
79
+ patterns. Coverage with keyword extraction. Cross-doc consistency. Architecture
80
+ conformance. API contract validation. Security patterns. Full suite.
81
+ - **mvp**: Consistency + Structure only. Skip everything else.
82
+ - **custom:depth(1-5)**:
83
+ - Depth 1-2: Consistency + Structure
84
+ - Depth 3: Add Adherence + Cross-doc
85
+ - Depth 4: Add Coverage + Architecture + Config + Error handling
86
+ - Depth 5: All 13 categories (Security, API, Database, Accessibility, Performance)
87
+
88
+ ## Mode Detection
89
+ Update mode if tests/evals/ directory or docs/eval-standards.md exists. In
90
+ update mode: regenerate consistency, structure, cross-doc, and conditional
91
+ category evals. Preserve adherence, security, and error-handling eval
92
+ exclusions. Regenerate coverage evals only if plan.md or user-stories.md
93
+ changed. Add/remove conditional categories based on whether their source doc
94
+ exists.
95
+
96
+ ## Update Mode Specifics
97
+ - **Detect prior artifact**: tests/evals/ directory exists with eval test files
98
+ - **Preserve**: adherence eval exclusions, security eval exclusions,
99
+ error-handling eval exclusions, custom helper utilities in tests/evals/helpers,
100
+ make eval target configuration
101
+ - **Triggers for update**: source docs changed (coding-standards, project-structure,
102
+ tech-stack), new conditional source docs appeared (e.g., security-review.md
103
+ now exists), Makefile targets changed, user-stories.md changed
104
+ - **Conflict resolution**: if a source doc was removed, archive its conditional
105
+ eval category rather than deleting; if exclusion patterns conflict with new
106
+ standards, flag for user review