@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,12 +1,13 @@
1
1
  ---
2
2
  name: implementability-dry-run
3
3
  description: Dry-run specs as implementing agent, catching ambiguity
4
+ summary: "Simulates picking up each task as an implementing agent and flags anything ambiguous — unclear acceptance criteria, missing input files, undefined error handling — that would force an agent to guess."
4
5
  phase: "validation"
5
6
  order: 1350
6
7
  dependencies: [implementation-plan-review, review-security]
7
8
  outputs: [docs/validation/implementability-dry-run.md, docs/validation/implementability-dry-run/review-summary.md, docs/validation/implementability-dry-run/codex-review.json, docs/validation/implementability-dry-run/gemini-review.json]
8
9
  conditional: null
9
- knowledge-base: [implementability-review]
10
+ knowledge-base: [implementability-review, multi-model-review-dispatch]
10
11
  ---
11
12
 
12
13
  ## Purpose
@@ -30,9 +31,12 @@ when simulating implementation.
30
31
  - docs/validation/implementability-dry-run/gemini-review.json (depth 4+, if available) — raw Gemini findings
31
32
 
32
33
  ## Quality Criteria
33
- - Analysis is comprehensive (not superficial)
34
- - Findings are actionable (specific file, section, and issue)
35
- - Severity categorization (P0-P3)
34
+ - (mvp) Every task has sufficient input specification for an agent to start without guessing
35
+ - (mvp) Every task has testable acceptance criteria
36
+ - (deep) No task references undefined concepts, components, or APIs
37
+ - (deep) Every task's dependencies are present in the implementation plan
38
+ - (deep) Shared code patterns identified and documented (no duplication risk across tasks)
39
+ - Findings categorized P0-P3 with specific file, section, and issue for each
36
40
  - (depth 4+) Multi-model findings synthesized with consensus/disagreement analysis
37
41
 
38
42
  ## Finding Disposition
@@ -53,11 +57,15 @@ proceeding without acknowledgment.
53
57
  dispatched to Codex and Gemini if available, with graceful fallback to
54
58
  Claude-only enhanced validation.
55
59
  - **mvp**: High-level scan for blocking issues only.
56
- - **custom:depth(1-5)**: Depth 1-3: scale thoroughness with depth. Depth 4:
57
- full analysis + one external model (if CLI available). Depth 5: full
58
- analysis + multi-model with reconciliation.
60
+ - **custom:depth(1-5)**: Depth 1: verify each task has enough context to start. Depth 2: add tool/dependency availability check. Depth 3: full dry-run simulation of first 3 tasks with quality gate verification. Depth 4: add external model dry-run. Depth 5: multi-model dry-run with implementation plan revision recommendations.
59
61
 
60
62
  ## Mode Detection
61
63
  Not applicable — validation always runs fresh against current artifacts. If
62
64
  multi-model artifacts exist under docs/validation/implementability-dry-run/,
63
65
  they are regenerated each run.
66
+
67
+ ## Update Mode Specifics
68
+ - **Detect**: `docs/validation/implementability-dry-run/` directory exists with prior multi-model artifacts
69
+ - **Preserve**: Prior multi-model artifacts are regenerated each run (not preserved). However, if prior findings were resolved and documented, reference the resolution log to distinguish regressions from known-resolved issues.
70
+ - **Triggers**: Any upstream artifact change triggers fresh validation
71
+ - **Conflict resolution**: If a previously-resolved finding reappears, flag as regression rather than new finding
@@ -1,12 +1,13 @@
1
1
  ---
2
2
  name: scope-creep-check
3
3
  description: Verify specs stay aligned to PRD boundaries
4
+ summary: "Compares everything that has been specified against the original PRD and flags anything that was not in the requirements — features, components, or tasks that crept in without justification."
4
5
  phase: "validation"
5
6
  order: 1370
6
7
  dependencies: [implementation-plan-review, review-security]
7
8
  outputs: [docs/validation/scope-creep-check.md, docs/validation/scope-creep-check/review-summary.md, docs/validation/scope-creep-check/codex-review.json, docs/validation/scope-creep-check/gemini-review.json]
8
9
  conditional: null
9
- knowledge-base: [scope-management]
10
+ knowledge-base: [scope-management, multi-model-review-dispatch]
10
11
  ---
11
12
 
12
13
  ## Purpose
@@ -32,9 +33,12 @@ differently, surfacing subtle creep.
32
33
  - docs/validation/scope-creep-check/gemini-review.json (depth 4+, if available) — raw Gemini findings
33
34
 
34
35
  ## Quality Criteria
35
- - Analysis is comprehensive (not superficial)
36
- - Findings are actionable (specific file, section, and issue)
37
- - Severity categorization (P0-P3)
36
+ - (mvp) Every user story traces back to a PRD feature or requirement
37
+ - (mvp) Every architecture component traces to a PRD requirement
38
+ - Items beyond PRD scope are flagged with disposition (remove, defer, or justify)
39
+ - (deep) No "gold-plating" — implementation tasks do not exceed story acceptance criteria
40
+ - (deep) Feature count has not grown beyond PRD scope without documented justification
41
+ - Findings categorized P0-P3 with specific file, section, and issue for each
38
42
  - (depth 4+) Multi-model findings synthesized with consensus/disagreement analysis
39
43
 
40
44
  ## Finding Disposition
@@ -55,11 +59,15 @@ proceeding without acknowledgment.
55
59
  dispatched to Codex and Gemini if available, with graceful fallback to
56
60
  Claude-only enhanced validation.
57
61
  - **mvp**: High-level scan for blocking issues only.
58
- - **custom:depth(1-5)**: Depth 1-3: scale thoroughness with depth. Depth 4:
59
- full analysis + one external model (if CLI available). Depth 5: full
60
- analysis + multi-model with reconciliation.
62
+ - **custom:depth(1-5)**: Depth 1: feature count comparison (PRD vs implementation plan). Depth 2: add component-level tracing. Depth 3: full story-level and task-level audit against original PRD scope. Depth 4: add external model scope assessment. Depth 5: multi-model scope review with risk-weighted creep analysis.
61
63
 
62
64
  ## Mode Detection
63
65
  Not applicable — validation always runs fresh against current artifacts. If
64
66
  multi-model artifacts exist under docs/validation/scope-creep-check/,
65
67
  they are regenerated each run.
68
+
69
+ ## Update Mode Specifics
70
+ - **Detect**: `docs/validation/scope-creep-check/` directory exists with prior multi-model artifacts
71
+ - **Preserve**: Prior multi-model artifacts are regenerated each run (not preserved). However, if prior findings were resolved and documented, reference the resolution log to distinguish regressions from known-resolved issues.
72
+ - **Triggers**: Any upstream artifact change triggers fresh validation
73
+ - **Conflict resolution**: If a previously-resolved finding reappears, flag as regression rather than new finding
@@ -1,12 +1,14 @@
1
1
  ---
2
2
  name: traceability-matrix
3
3
  description: Build traceability from PRD requirements through architecture to implementation tasks
4
+ summary: "Builds a map showing that every PRD requirement traces through to user stories, architecture components, implementation tasks, and test cases — with no gaps in either direction."
4
5
  phase: "validation"
5
6
  order: 1320
6
7
  dependencies: [implementation-plan-review, review-security]
7
8
  outputs: [docs/validation/traceability-matrix.md, docs/validation/traceability-matrix/review-summary.md, docs/validation/traceability-matrix/codex-review.json, docs/validation/traceability-matrix/gemini-review.json]
9
+ reads: [story-tests, create-evals]
8
10
  conditional: null
9
- knowledge-base: [traceability]
11
+ knowledge-base: [traceability, multi-model-review-dispatch]
10
12
  ---
11
13
 
12
14
  ## Purpose
@@ -22,6 +24,9 @@ coverage gaps.
22
24
  ## Inputs
23
25
  - All phase output artifacts (docs/plan.md, docs/domain-models/, docs/adrs/,
24
26
  docs/system-architecture.md, etc.)
27
+ - docs/story-tests-map.md (required if exists) — AC-to-test-case traceability
28
+ - tests/acceptance/ (required if exists) — test skeleton files for verification
29
+ - docs/eval-standards.md (required if exists) — eval coverage documentation
25
30
 
26
31
  ## Expected Outputs
27
32
  - docs/validation/traceability-matrix.md — findings report
@@ -30,9 +35,13 @@ coverage gaps.
30
35
  - docs/validation/traceability-matrix/gemini-review.json (depth 4+, if available) — raw Gemini findings
31
36
 
32
37
  ## Quality Criteria
33
- - Analysis is comprehensive (not superficial)
34
- - Findings are actionable (specific file, section, and issue)
35
- - Severity categorization (P0-P3)
38
+ - (mvp) Every PRD requirement maps to >= 1 user story
39
+ - (mvp) Every user story maps to >= 1 implementation task
40
+ - (deep) Every acceptance criterion maps to >= 1 test case (verified against `docs/story-tests-map.md`)
41
+ - (deep) Every test case maps to >= 1 implementation task
42
+ - (deep) No orphan items in either direction at any layer
43
+ - (deep) Bidirectional traceability verified: PRD → Stories → Domain → Architecture → Tasks
44
+ - Findings categorized P0-P3 with specific file, section, and issue for each
36
45
  - (depth 4+) Multi-model findings synthesized with consensus/disagreement analysis
37
46
 
38
47
  ## Finding Disposition
@@ -53,11 +62,15 @@ proceeding without acknowledgment.
53
62
  dispatched to Codex and Gemini if available, with graceful fallback to
54
63
  Claude-only enhanced validation.
55
64
  - **mvp**: High-level scan for blocking issues only.
56
- - **custom:depth(1-5)**: Depth 1-3: scale thoroughness with depth. Depth 4:
57
- full analysis + one external model (if CLI available). Depth 5: full
58
- analysis + multi-model with reconciliation.
65
+ - **custom:depth(1-5)**: Depth 1: PRD requirement to user story mapping only. Depth 2: add story to implementation task mapping. Depth 3: full bidirectional chain (PRD → story → task → test → eval). Depth 4: add external model verification of coverage gaps. Depth 5: multi-model reconciliation with gap resolution recommendations.
59
66
 
60
67
  ## Mode Detection
61
68
  Not applicable — validation always runs fresh against current artifacts. If
62
69
  multi-model artifacts exist under docs/validation/traceability-matrix/,
63
70
  they are regenerated each run.
71
+
72
+ ## Update Mode Specifics
73
+ - **Detect**: `docs/validation/traceability-matrix/` directory exists with prior multi-model artifacts
74
+ - **Preserve**: Prior multi-model artifacts are regenerated each run (not preserved). However, if prior findings were resolved and documented, reference the resolution log to distinguish regressions from known-resolved issues.
75
+ - **Triggers**: Any upstream artifact change triggers fresh validation
76
+ - **Conflict resolution**: If a previously-resolved finding reappears, flag as regression rather than new finding
@@ -0,0 +1,267 @@
1
+ ---
2
+ name: create-vision
3
+ description: Create a comprehensive product vision document from a project idea
4
+ summary: "Asks about your idea — who it's for, what problem it solves, what makes it different — and produces a vision document with elevator pitch, target audience, competitive positioning, guiding principles, and success criteria."
5
+ phase: "vision"
6
+ order: 010
7
+ dependencies: []
8
+ outputs: [docs/vision.md]
9
+ conditional: null
10
+ knowledge-base: [vision-craft]
11
+ ---
12
+
13
+ ## Purpose
14
+ Transform a project idea into a strategic product vision document that defines
15
+ the product's purpose, target audience, competitive positioning, and guiding
16
+ principles. This is the North Star document that all subsequent phases reference.
17
+ The vision drives the PRD, architecture decisions, and implementation priorities
18
+ throughout the entire pipeline.
19
+
20
+ ## Inputs
21
+ - Project idea (provided by user verbally or in a brief)
22
+ - Existing project files (if brownfield — any README, docs, or code)
23
+ - Market context or competitive research (if available)
24
+
25
+ ## Expected Outputs
26
+ - docs/vision.md — Product vision document
27
+
28
+ ## Quality Criteria
29
+ - (mvp) Problem statement is specific and testable (not vague aspirations)
30
+ - (mvp) Vision statement describes positive change in the world, not a product feature
31
+ - (mvp) Vision statement is a single sentence of 25 words or fewer
32
+ - (mvp) Target audience defined by behaviors and motivations, not demographics
33
+ - (deep) For each competitor, at least one strength is documented alongside weaknesses
34
+ - (mvp) Each guiding principle is framed as 'We choose X over Y' where Y is a legitimate alternative
35
+ - (deep) Anti-vision contains >= 3 named traps, each referencing a concrete product direction or feature class
36
+ - (deep) Business model addresses sustainability without being a full business plan
37
+ - (mvp) Every section names at least one concrete decision or constraint
38
+ - (mvp) Vision does not contradict docs/plan.md (if PRD exists in update mode)
39
+
40
+ ## Methodology Scaling
41
+ - **deep**: Comprehensive vision document. Full competitive research, detailed
42
+ personas, 3-5 guiding principles with tradeoff framing, business model
43
+ analysis, multi-year success horizon. 3-5 pages.
44
+ - **mvp**: Vision statement, target audience, core problem, value proposition,
45
+ 2-3 guiding principles. 1 page. Enough to anchor the PRD.
46
+ - **custom:depth(1-5)**: Depth 1-2: MVP-style. Depth 3: add competitive
47
+ landscape and anti-vision. Depth 4: add business model and strategic risks.
48
+ Depth 5: full document with all 12 sections.
49
+
50
+ ## Mode Detection
51
+ If docs/vision.md exists, this is an update. Read and analyze the existing
52
+ document. Check for tracking comment: `<!-- scaffold:vision v<ver> <date> -->`.
53
+
54
+ ## Update Mode Specifics
55
+ - **Detect prior artifact**: docs/vision.md exists
56
+ - **Preserve**: Vision statement (unless user explicitly wants to change it),
57
+ guiding principles already validated, competitive analysis findings,
58
+ user-approved strategic decisions
59
+ - **Triggers for update**: Strategic direction changed, new competitive intel,
60
+ target audience refined, user wants deeper analysis
61
+ - **Conflict resolution**: if update contradicts existing guiding principles,
62
+ surface the conflict to the user before proceeding
63
+
64
+ ## Instructions
65
+
66
+ I have an idea for an application and I want you to help me create a
67
+ comprehensive product vision document that will serve as the strategic North
68
+ Star for all downstream product decisions.
69
+
70
+ ### Mode Detection
71
+
72
+ Before starting, check if `docs/vision.md` already exists:
73
+
74
+ **If the file does NOT exist → FRESH MODE**: Skip to Phase 1 and create from scratch.
75
+
76
+ **If the file exists → UPDATE MODE**:
77
+ 1. **Read & analyze**: Read the existing document completely. Check for a tracking comment on line 1: `<!-- scaffold:vision v<ver> <date> -->`. If absent, treat as legacy/manual — be extra conservative.
78
+ 2. **Diff against current structure**: Compare the existing document's sections against what this prompt would produce fresh. Categorize every piece of content:
79
+ - **ADD** — Required by current prompt but missing from existing doc
80
+ - **RESTRUCTURE** — Exists but doesn't match current prompt's structure or best practices
81
+ - **PRESERVE** — Project-specific decisions, rationale, and customizations
82
+ 3. **Cross-doc consistency**: Read `docs/plan.md` if it exists and verify updates won't contradict it.
83
+ 4. **Preview changes**: Present the user a summary:
84
+ | Action | Section | Detail |
85
+ |--------|---------|--------|
86
+ | ADD | ... | ... |
87
+ | RESTRUCTURE | ... | ... |
88
+ | PRESERVE | ... | ... |
89
+ If >60% of content is unrecognized PRESERVE, note: "Document has been significantly customized. Update will add missing sections but won't force restructuring."
90
+ Wait for user approval before proceeding.
91
+ 5. **Execute update**: Restructure to match current prompt's layout. Preserve all project-specific content. Add missing sections with project-appropriate content.
92
+ 6. **Update tracking comment**: Add/update on line 1: `<!-- scaffold:vision v<ver> <date> -->`
93
+ 7. **Post-update summary**: Report sections added, sections restructured, content preserved, and any cross-doc issues found.
94
+
95
+ **In both modes**, follow all instructions below — update mode starts from existing content rather than a blank slate.
96
+
97
+ ### Update Mode Specifics
98
+ - **Primary output**: `docs/vision.md`
99
+ - **Preserve**: Vision statement (unless user explicitly requests change), guiding principles, competitive findings, strategic decisions
100
+ - **Related docs**: `docs/plan.md`
101
+ - **Special rules**: Never change guiding principles without user approval. Preserve any strategic decisions that were explicitly made by the user.
102
+
103
+ ## Here's my idea:
104
+ $ARGUMENTS
105
+
106
+ ## Phase 1: Strategic Discovery
107
+
108
+ Use AskUserQuestionTool throughout this phase. Batch related questions together — don't ask one at a time.
109
+
110
+ ### Understand the Problem Space
111
+ - What problem exists in the world? Who suffers from it? How do they cope today?
112
+ - Push for specificity — "everyone" is not a target audience, "it's slow" is not a problem statement
113
+ - What's the root cause of the pain, not just the symptom?
114
+ - How big is this problem? How many people experience it? How often?
115
+
116
+ ### Articulate the Vision
117
+ - What does the world look like when this product succeeds?
118
+ - Craft the Geoffrey Moore elevator pitch together: For [target customer] who [need], the [product] is a [category] that [key benefit]. Unlike [alternative], our product [differentiation].
119
+ - Is this vision inspiring enough that someone would want to work on it?
120
+ - Could someone evaluate a product decision against this vision and get a clear yes/no?
121
+
122
+ ### Define the Target Audience
123
+ - Deep persona work — behaviors, motivations, contexts of use (not demographics)
124
+ - Primary vs secondary audiences — who is the main user? Who else benefits?
125
+ - What are they doing the moment before they reach for this product?
126
+ - What does "success" look like from their perspective?
127
+
128
+ ### Understand the Market
129
+ - What alternatives exist today? Direct competitors, indirect alternatives, "do nothing"
130
+ - Why do existing solutions fall short? Be specific.
131
+ - What's the market gap or timing advantage?
132
+ - Is this a new category, a better mousetrap, or a different approach entirely?
133
+
134
+ ### Challenge and Innovate
135
+ - Challenge assumptions — if something doesn't make sense or is overengineered, say so
136
+ - Identify areas not considered (edge cases, market dynamics, competitive threats)
137
+ - Propose strategic angles the user hasn't thought of
138
+ - Be honest about weaknesses in the positioning
139
+
140
+ ## Phase 2: Strategic Depth
141
+
142
+ Use AskUserQuestionTool. Batch related questions together.
143
+
144
+ ### Business Model & Viability
145
+ - How does this make money (or sustain itself)?
146
+ - What's the go-to-market intuition? (Not a full business plan — directional thinking)
147
+ - What are the key unit economics assumptions?
148
+ - What would make this economically unviable?
149
+
150
+ ### Guiding Principles
151
+ - Define 3-5 design tenets that will guide every downstream decision
152
+ - Frame as "When in doubt, we choose X over Y"
153
+ - These must actually constrain decisions — test each: would a reasonable team choose the opposite?
154
+ - If nobody would disagree with a principle, it's a platitude — cut it
155
+
156
+ ### Anti-Vision
157
+ - What is this product explicitly NOT?
158
+ - What traps in this product space catch every competitor?
159
+ - What features or directions would dilute the vision?
160
+ - "If we find ourselves doing X, we've lost the plot"
161
+
162
+ ### Success Horizon
163
+ - What does year 1 vs year 3 look like?
164
+ - What are the leading indicators that the vision is being realized?
165
+ - What would make this a failure even if it ships on time?
166
+ - How will we know if the guiding principles are actually guiding decisions?
167
+
168
+ ## Phase 3: Competitive & Market Research
169
+
170
+ Research the competitive landscape using web search and any context the user provides:
171
+ - Identify direct competitors, indirect alternatives, and the "do nothing" option
172
+ - For each: what they do well, where they fall short, why users would choose this product instead
173
+ - Surface market trends, emerging patterns, and timing considerations
174
+ - Validate or challenge the user's assumptions about the market gap
175
+ - Be honest about what competitors do better — acknowledge strengths, don't dismiss them
176
+
177
+ ## Phase 4: Documentation
178
+
179
+ Create `docs/vision.md` (create the `docs/` directory if it doesn't already exist) with tracking comment `<!-- scaffold:vision v1 YYYY-MM-DD -->` on line 1.
180
+
181
+ ### Required Sections
182
+
183
+ 1. **Vision Statement** — One inspiring sentence. The North Star. Should describe the positive change the product creates in the world, not a product feature. Must be concise enough to remember and repeat.
184
+
185
+ 2. **Elevator Pitch** — Geoffrey Moore template filled in:
186
+ > For [target customer] who [need], [product name] is a [product category] that [key benefit]. Unlike [primary alternative], our product [primary differentiation].
187
+
188
+ 3. **Problem Space** — The pain in vivid detail: who feels it, how they cope today, why existing solutions fail, what the root cause is. Grounded in evidence, not assumptions.
189
+
190
+ 4. **Target Audience** — Primary and secondary personas with:
191
+ - Behaviors and motivations (not demographics)
192
+ - Context of use (when, where, why they reach for this product)
193
+ - Current workarounds and their limitations
194
+ - What "success" looks like from their perspective
195
+
196
+ 5. **Value Proposition** — The unique value delivered, framed as outcomes not features. Why someone would choose this over alternatives (including doing nothing).
197
+
198
+ 6. **Competitive Landscape** — Market map showing:
199
+ - Direct competitors and their strengths/weaknesses
200
+ - Indirect alternatives (different approaches to the same problem)
201
+ - The "do nothing" option and why it's insufficient
202
+ - The product's genuine differentiation (not wishful thinking)
203
+
204
+ 7. **Guiding Principles** — 3-5 design tenets framed as prioritization tradeoffs:
205
+ - "We choose simplicity over power" or "We choose correctness over speed"
206
+ - Each must actually constrain decisions — if nobody would disagree, it's not a principle
207
+
208
+ 8. **Anti-Vision** — What the product is NOT:
209
+ - Features and directions explicitly excluded
210
+ - Common traps in this product space to avoid
211
+ - "If we find ourselves doing X, we've lost the plot"
212
+
213
+ 9. **Business Model Intuition** — Directional thinking about sustainability:
214
+ - Revenue model (or how it sustains itself if non-commercial)
215
+ - Key unit economics assumptions
216
+ - Go-to-market direction (not a full GTM plan)
217
+
218
+ 10. **Success Criteria** — Measurable indicators across time horizons:
219
+ - Leading indicators (early signals the vision is working)
220
+ - Year 1 milestones
221
+ - Year 3 aspirations
222
+ - What failure looks like (even if the product ships)
223
+
224
+ 11. **Strategic Risks & Assumptions** — Explicit bets being made:
225
+ - Key assumptions that must hold true for the vision to succeed
226
+ - What could invalidate each assumption
227
+ - Risk severity and mitigation thinking
228
+
229
+ 12. **Open Questions** — Unresolved strategic questions:
230
+ - Questions that don't need answers now but will need them eventually
231
+ - Research or validation needed before committing to specific directions
232
+
233
+ ### Documentation Quality Standards
234
+ - Every section must be specific enough to guide PRD writing without strategic ambiguity
235
+ - Avoid corporate boilerplate: "user-friendly interface" and "seamless experience" are banned
236
+ - The vision statement must be testable: could you evaluate a product decision against it and get a clear yes/no?
237
+ - Guiding principles must create real tradeoffs, not platitudes
238
+ - Competitive analysis must be honest about the product's weaknesses, not just strengths
239
+
240
+ ## How to Work With Me
241
+ - Treat me as the product owner. I make the strategic calls, you make them happen.
242
+ - Don't overwhelm me with business jargon. Translate everything.
243
+ - Push back if my vision is unfocused, my positioning is weak, or my assumptions are wrong.
244
+ - Be honest about competitive threats. I'd rather adjust my strategy than be blindsided.
245
+ - Batch your questions using AskUserQuestionTool — don't pepper me one at a time.
246
+
247
+ ## What This Document Should NOT Be
248
+ - A product requirements document — that comes later in create-prd
249
+ - A feature list — the vision is about purpose and positioning, not functionality
250
+ - Vague — "make the world a better place" is not a vision. Be specific.
251
+ - A business plan — business model intuition, not a 50-page plan
252
+ - Corporate boilerplate — if it could apply to any product, it's useless
253
+
254
+ I don't just want a document. I want a North Star that every team member can point to when making a difficult product decision.
255
+
256
+ ## After This Step
257
+
258
+ When this step is complete, tell the user:
259
+
260
+ ---
261
+ **Phase 0 complete** — `docs/vision.md` created.
262
+
263
+ **Next:** Run `/scaffold:review-vision` — Review the vision for clarity, coherence, and downstream readiness.
264
+
265
+ **Pipeline reference:** `/scaffold:prompt-pipeline`
266
+
267
+ ---
@@ -0,0 +1,157 @@
1
+ ---
2
+ name: innovate-vision
3
+ description: Discover strategic innovation opportunities in the product vision
4
+ summary: "Explores untapped opportunities — adjacent markets, AI-native capabilities, ecosystem partnerships, and contrarian positioning — and proposes innovations for your approval."
5
+ phase: "vision"
6
+ order: 030
7
+ dependencies: [review-vision]
8
+ outputs: [docs/vision.md]
9
+ conditional: "if-needed"
10
+ knowledge-base: [vision-craft]
11
+ ---
12
+
13
+ ## Purpose
14
+ Discover strategic innovation opportunities within the product vision. This
15
+ covers market positioning, competitive strategy, ecosystem thinking, and
16
+ contrarian bets. It operates at the strategic level — should the product be
17
+ positioned differently? Are there market opportunities being missed? What
18
+ would an AI-native rethinking look like?
19
+
20
+ This is distinct from PRD innovation (innovate-prd), which covers feature-level
21
+ gaps. If an idea is about a specific feature, it belongs in PRD innovation,
22
+ not here.
23
+
24
+ ## Inputs
25
+ - docs/vision.md (required) — Vision document to analyze
26
+ - docs/reviews/vision-review-vision.md (optional) — review findings for context
27
+
28
+ ## Expected Outputs
29
+ - docs/vision.md — updated with approved strategic innovations
30
+
31
+ ## Quality Criteria
32
+ - Innovations are strategic-level, not feature-level
33
+ - (mvp) Each innovation categorized: market opportunity, positioning, AI-native, ecosystem, or contrarian
34
+ - (mvp) Each innovation includes: what to change, why, impact (high/medium/low), cost estimate
35
+ - (mvp) Each suggestion has an implementation cost estimate (trivial/moderate/significant)
36
+ - (mvp) Recommended disposition stated for each: must-have, backlog, or reject with rationale
37
+ - (deep) Impact assessments compared to existing document content
38
+ - (deep) Each approved innovation is integrated with the same subsection headings and detail level as existing vision sections
39
+ - Vision scope is respected — no uncontrolled strategic drift
40
+ - User approval is obtained before modifying the vision document
41
+
42
+ ## Methodology Scaling
43
+ - **deep**: Full innovation pass across all 5 dimensions. Competitive research
44
+ via web search. Detailed integration of approved innovations into vision.
45
+ - **mvp**: Not applicable — this step is conditional and skipped in MVP.
46
+ - **custom:depth(1-5)**: Depth 1-2: Quick scan only — identify 1-2 high-impact
47
+ strategic angles with brief rationale. Depth 3: quick scan for positioning
48
+ gaps and obvious market opportunities. Depth 4-5: full innovation pass
49
+ across all 5 dimensions.
50
+
51
+ ## Conditional Evaluation
52
+ Enable when: project has competitive landscape content in vision.md, user
53
+ explicitly requests a strategic innovation pass, or the vision review
54
+ (review-vision) identifies strategic gaps or weak positioning. Skip when:
55
+ vision is minimal/exploratory, depth < 3, or user explicitly declines innovation.
56
+
57
+ ## Mode Detection
58
+ If this step has been run before (tracking comment
59
+ `<!-- scaffold:innovate-vision -->` exists in docs/vision.md), this is a
60
+ re-innovation pass. Focus on new opportunities from vision changes since last run.
61
+
62
+ ## Update Mode Specifics
63
+ - **Detect prior artifact**: `<!-- scaffold:innovate-vision -->` tracking
64
+ comment in docs/vision.md
65
+ - **Preserve**: Previously accepted strategic decisions, positioning choices
66
+ approved by user
67
+ - **Triggers for update**: Vision strategy changed, new market data available,
68
+ user requests re-evaluation
69
+ - **Conflict resolution**: if a previously rejected strategic angle is now
70
+ relevant due to vision changes, re-propose with updated rationale
71
+
72
+ ## Instructions
73
+
74
+ Deeply research docs/vision.md and identify strategic innovation opportunities
75
+ across 5 dimensions. This is the last chance to strengthen the vision before
76
+ it drives the PRD and everything downstream.
77
+
78
+ ### Dimension 1: Market Opportunity Expansion
79
+
80
+ Research adjacent opportunities:
81
+ - Adjacent markets or segments not currently addressed
82
+ - Underserved niches within the target audience
83
+ - Timing advantages (regulatory changes, technology shifts, cultural moments)
84
+ - Platform or ecosystem opportunities that could amplify reach
85
+ - Geographic or demographic expansion possibilities
86
+
87
+ ### Dimension 2: Positioning Alternatives
88
+
89
+ Explore how the product could be positioned differently:
90
+ - Could the product be positioned differently for greater impact?
91
+ - Alternative framings of the value proposition
92
+ - Category creation vs category competition — which is the stronger play?
93
+ - Messaging angles that haven't been explored
94
+ - What would a "10x better positioning" look like?
95
+
96
+ ### Dimension 3: AI-Native Rethinking
97
+
98
+ If this product were conceived today with AI capabilities assumed:
99
+ - What changes fundamentally about the product concept?
100
+ - Features that become trivial with AI (and therefore table stakes)
101
+ - Experiences that become possible that were previously impractical
102
+ - Intelligence that can be embedded vs bolted on
103
+ - How does AI change the competitive landscape for this product?
104
+
105
+ ### Dimension 4: Ecosystem Thinking
106
+
107
+ Explore how the product fits into a broader ecosystem:
108
+ - Partners and integrations that amplify the product's value
109
+ - Platform effects or network effects available
110
+ - Data advantages that compound over time
111
+ - Build vs buy vs partner decisions at the strategic level
112
+ - Community or marketplace opportunities
113
+
114
+ ### Dimension 5: Contrarian Bets
115
+
116
+ Challenge the vision's assumptions:
117
+ - What does the vision assume that most people agree with? What if the opposite were true?
118
+ - Industry orthodoxies worth challenging
119
+ - One genuinely contrarian strategic angle, evaluated honestly
120
+ - "What would we do differently if we believed X?"
121
+ - Which assumptions, if wrong, would invalidate the entire vision?
122
+
123
+ ### For Each Innovation Idea, Present:
124
+ - **What**: The strategic innovation
125
+ - **Why**: Strategic rationale and market context
126
+ - **Impact**: How much better the product positioning gets (high / medium / low)
127
+ - **Cost**: Implementation effort (trivial / moderate / significant)
128
+ - **Recommendation**: Must-have for vision, or backlog for future consideration
129
+
130
+ ### Process
131
+
132
+ 1. Research competitive landscape and market trends via web search
133
+ 2. Generate innovation ideas across all 5 dimensions
134
+ 3. Use AskUserQuestionTool to present innovations grouped by dimension for user approval
135
+ 4. For each approved innovation, integrate it into the appropriate section of docs/vision.md
136
+ 5. Update tracking comment: add `<!-- scaffold:innovate-vision v1 YYYY-MM-DD -->` after the vision tracking comment
137
+ 6. Provide a summary of what was added, modified, or deferred
138
+
139
+ ### Quality Standards
140
+ - Strategic-level only — feature ideas belong in innovate-prd
141
+ - Honest about costs and risks — don't oversell
142
+ - Respect the existing guiding principles — innovations should align, not contradict
143
+ - Do NOT modify the vision statement without explicit user approval
144
+ - Do NOT add approved innovations as vague one-liners — document them to the same standard as existing sections
145
+
146
+ ## After This Step
147
+
148
+ When this step is complete, tell the user:
149
+
150
+ ---
151
+ **Innovation complete** — `docs/vision.md` updated with approved strategic innovations.
152
+
153
+ **Next:** Run `/scaffold:create-prd` — Translate the vision into product requirements.
154
+
155
+ **Pipeline reference:** `/scaffold:prompt-pipeline`
156
+
157
+ ---