prizmkit 1.1.99 → 1.1.101

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 (321) hide show
  1. package/bin/create-prizmkit.js +4 -4
  2. package/bundled/VERSION.json +3 -3
  3. package/bundled/dev-pipeline/.env.example +3 -3
  4. package/bundled/dev-pipeline/README.md +110 -90
  5. package/bundled/dev-pipeline/assets/prizm-dev-team-integration.md +1 -1
  6. package/bundled/dev-pipeline/cli.py +27 -0
  7. package/bundled/dev-pipeline/prizmkit_runtime/__init__.py +13 -0
  8. package/bundled/dev-pipeline/prizmkit_runtime/__main__.py +9 -0
  9. package/bundled/dev-pipeline/prizmkit_runtime/cli.py +193 -0
  10. package/bundled/dev-pipeline/prizmkit_runtime/commands.py +313 -0
  11. package/bundled/dev-pipeline/prizmkit_runtime/compat.py +32 -0
  12. package/bundled/dev-pipeline/prizmkit_runtime/config.py +410 -0
  13. package/bundled/dev-pipeline/prizmkit_runtime/daemon.py +478 -0
  14. package/bundled/dev-pipeline/prizmkit_runtime/gitops.py +734 -0
  15. package/bundled/dev-pipeline/prizmkit_runtime/heartbeat.py +256 -0
  16. package/bundled/dev-pipeline/prizmkit_runtime/interoperability.py +109 -0
  17. package/bundled/dev-pipeline/prizmkit_runtime/paths.py +110 -0
  18. package/bundled/dev-pipeline/prizmkit_runtime/processes.py +373 -0
  19. package/bundled/dev-pipeline/prizmkit_runtime/reset.py +389 -0
  20. package/bundled/dev-pipeline/prizmkit_runtime/runner_bookkeeping.py +51 -0
  21. package/bundled/dev-pipeline/prizmkit_runtime/runner_classification.py +179 -0
  22. package/bundled/dev-pipeline/prizmkit_runtime/runner_models.py +345 -0
  23. package/bundled/dev-pipeline/prizmkit_runtime/runner_prompts.py +118 -0
  24. package/bundled/dev-pipeline/prizmkit_runtime/runner_recovery.py +187 -0
  25. package/bundled/dev-pipeline/prizmkit_runtime/runner_status.py +147 -0
  26. package/bundled/dev-pipeline/prizmkit_runtime/runners.py +422 -0
  27. package/bundled/dev-pipeline/prizmkit_runtime/sessions.py +552 -0
  28. package/bundled/dev-pipeline/prizmkit_runtime/status.py +71 -0
  29. package/bundled/dev-pipeline/scripts/check-session-status.py +74 -1
  30. package/bundled/dev-pipeline/scripts/continuation.py +374 -0
  31. package/bundled/dev-pipeline/scripts/generate-bootstrap-prompt.py +64 -52
  32. package/bundled/dev-pipeline/scripts/generate-bugfix-prompt.py +35 -25
  33. package/bundled/dev-pipeline/scripts/generate-recovery-prompt.py +2 -2
  34. package/bundled/dev-pipeline/scripts/generate-refactor-prompt.py +15 -20
  35. package/bundled/dev-pipeline/scripts/parse-stream-progress.py +185 -16
  36. package/bundled/dev-pipeline/scripts/update-bug-status.py +214 -6
  37. package/bundled/dev-pipeline/scripts/update-feature-status.py +237 -6
  38. package/bundled/dev-pipeline/scripts/update-refactor-status.py +214 -6
  39. package/bundled/dev-pipeline/templates/agent-prompts/dev-implement.md +8 -2
  40. package/bundled/dev-pipeline/templates/bootstrap-prompt.md +4 -0
  41. package/bundled/dev-pipeline/templates/bootstrap-tier1.md +14 -5
  42. package/bundled/dev-pipeline/templates/bootstrap-tier2.md +16 -6
  43. package/bundled/dev-pipeline/templates/bootstrap-tier3.md +16 -6
  44. package/bundled/dev-pipeline/templates/bugfix-bootstrap-prompt.md +1 -1
  45. package/bundled/dev-pipeline/templates/refactor-bootstrap-prompt.md +3 -3
  46. package/bundled/dev-pipeline/templates/sections/context-budget-rules.md +2 -0
  47. package/bundled/dev-pipeline/templates/sections/log-size-awareness.md +13 -69
  48. package/bundled/dev-pipeline/templates/sections/phase-context-snapshot-agent-suffix.md +15 -7
  49. package/bundled/dev-pipeline/templates/sections/phase-implement-agent.md +42 -29
  50. package/bundled/dev-pipeline/templates/sections/phase-implement-full.md +41 -39
  51. package/bundled/dev-pipeline/templates/sections/test-failure-recovery-agent.md +4 -0
  52. package/bundled/dev-pipeline/templates/sections/test-failure-recovery-lite.md +4 -0
  53. package/bundled/dev-pipeline/templates/session-status-schema.json +1 -1
  54. package/bundled/dev-pipeline/tests/conftest.py +1 -0
  55. package/bundled/dev-pipeline/tests/test_auto_skip.py +932 -0
  56. package/bundled/dev-pipeline/tests/test_generate_bootstrap_prompt.py +207 -0
  57. package/bundled/dev-pipeline/tests/test_generate_bugfix_prompt.py +100 -0
  58. package/bundled/dev-pipeline/tests/test_generate_refactor_prompt.py +43 -0
  59. package/bundled/dev-pipeline/tests/test_python_runner_parity.py +1138 -0
  60. package/bundled/dev-pipeline/tests/test_unified_cli.py +1045 -0
  61. package/bundled/skills/_metadata.json +1 -1
  62. package/bundled/skills/bugfix-pipeline-launcher/SKILL.md +29 -34
  63. package/bundled/skills/bugfix-pipeline-launcher/references/configuration.md +6 -5
  64. package/bundled/skills/feature-pipeline-launcher/SKILL.md +29 -35
  65. package/bundled/skills/feature-pipeline-launcher/references/configuration.md +7 -6
  66. package/bundled/skills/feature-workflow/SKILL.md +3 -6
  67. package/bundled/skills/recovery-workflow/SKILL.md +23 -32
  68. package/bundled/skills/refactor-pipeline-launcher/SKILL.md +29 -35
  69. package/bundled/skills/refactor-pipeline-launcher/references/configuration.md +7 -6
  70. package/bundled/skills/refactor-workflow/SKILL.md +3 -6
  71. package/bundled/templates/hooks/commit-intent.json +2 -2
  72. package/bundled/templates/hooks/diff-prizm-docs.py +226 -0
  73. package/bundled/templates/hooks/prizm-pre-commit.py +45 -0
  74. package/bundled/templates/hooks/validate-prizm-docs.py +240 -0
  75. package/package.json +1 -1
  76. package/src/config.js +33 -12
  77. package/src/index.js +3 -6
  78. package/src/manifest.js +3 -2
  79. package/src/metadata.js +7 -18
  80. package/src/prompts.js +0 -12
  81. package/src/runtimes.js +18 -11
  82. package/src/scaffold.js +133 -116
  83. package/src/upgrade.js +1 -1
  84. package/bundled/dev-pipeline/launch-bugfix-daemon.sh +0 -500
  85. package/bundled/dev-pipeline/launch-feature-daemon.sh +0 -657
  86. package/bundled/dev-pipeline/launch-refactor-daemon.sh +0 -502
  87. package/bundled/dev-pipeline/lib/branch.sh +0 -326
  88. package/bundled/dev-pipeline/lib/common.sh +0 -1257
  89. package/bundled/dev-pipeline/lib/heartbeat.sh +0 -469
  90. package/bundled/dev-pipeline/reset-bug.sh +0 -395
  91. package/bundled/dev-pipeline/reset-feature.sh +0 -406
  92. package/bundled/dev-pipeline/reset-refactor.sh +0 -393
  93. package/bundled/dev-pipeline/run-bugfix.sh +0 -1315
  94. package/bundled/dev-pipeline/run-feature.sh +0 -1602
  95. package/bundled/dev-pipeline/run-recovery.sh +0 -648
  96. package/bundled/dev-pipeline/run-refactor.sh +0 -1348
  97. package/bundled/dev-pipeline/scripts/monitor-log.sh +0 -104
  98. package/bundled/dev-pipeline/tests/test-path-resolution.sh +0 -100
  99. package/bundled/dev-pipeline-windows/.env.example +0 -36
  100. package/bundled/dev-pipeline-windows/README.md +0 -30
  101. package/bundled/dev-pipeline-windows/SCHEMA_ANALYSIS.md +0 -533
  102. package/bundled/dev-pipeline-windows/assets/feature-list-example.json +0 -146
  103. package/bundled/dev-pipeline-windows/assets/prizm-dev-team-integration.md +0 -137
  104. package/bundled/dev-pipeline-windows/launch-bugfix-daemon.ps1 +0 -9
  105. package/bundled/dev-pipeline-windows/launch-feature-daemon.ps1 +0 -9
  106. package/bundled/dev-pipeline-windows/launch-refactor-daemon.ps1 +0 -9
  107. package/bundled/dev-pipeline-windows/lib/branch.ps1 +0 -235
  108. package/bundled/dev-pipeline-windows/lib/common.ps1 +0 -829
  109. package/bundled/dev-pipeline-windows/lib/daemon.ps1 +0 -140
  110. package/bundled/dev-pipeline-windows/lib/pipeline.ps1 +0 -967
  111. package/bundled/dev-pipeline-windows/lib/reset.ps1 +0 -87
  112. package/bundled/dev-pipeline-windows/reset-bug.ps1 +0 -9
  113. package/bundled/dev-pipeline-windows/reset-feature.ps1 +0 -9
  114. package/bundled/dev-pipeline-windows/reset-refactor.ps1 +0 -9
  115. package/bundled/dev-pipeline-windows/run-bugfix.ps1 +0 -9
  116. package/bundled/dev-pipeline-windows/run-feature.ps1 +0 -9
  117. package/bundled/dev-pipeline-windows/run-recovery.ps1 +0 -179
  118. package/bundled/dev-pipeline-windows/run-refactor.ps1 +0 -9
  119. package/bundled/dev-pipeline-windows/scripts/check-session-status.py +0 -228
  120. package/bundled/dev-pipeline-windows/scripts/detect-stuck.py +0 -530
  121. package/bundled/dev-pipeline-windows/scripts/generate-bootstrap-prompt.py +0 -2282
  122. package/bundled/dev-pipeline-windows/scripts/generate-bugfix-prompt.py +0 -767
  123. package/bundled/dev-pipeline-windows/scripts/generate-recovery-prompt.py +0 -805
  124. package/bundled/dev-pipeline-windows/scripts/generate-refactor-prompt.py +0 -845
  125. package/bundled/dev-pipeline-windows/scripts/init-bugfix-pipeline.py +0 -316
  126. package/bundled/dev-pipeline-windows/scripts/init-dev-team.py +0 -134
  127. package/bundled/dev-pipeline-windows/scripts/init-pipeline.py +0 -382
  128. package/bundled/dev-pipeline-windows/scripts/init-refactor-pipeline.py +0 -399
  129. package/bundled/dev-pipeline-windows/scripts/monitor-log.ps1 +0 -102
  130. package/bundled/dev-pipeline-windows/scripts/parse-stream-progress.py +0 -1232
  131. package/bundled/dev-pipeline-windows/scripts/patch-completion-notes.py +0 -191
  132. package/bundled/dev-pipeline-windows/scripts/prizmkit-test-gate.py +0 -446
  133. package/bundled/dev-pipeline-windows/scripts/update-bug-status.py +0 -913
  134. package/bundled/dev-pipeline-windows/scripts/update-checkpoint.py +0 -173
  135. package/bundled/dev-pipeline-windows/scripts/update-feature-status.py +0 -1558
  136. package/bundled/dev-pipeline-windows/scripts/update-refactor-status.py +0 -1119
  137. package/bundled/dev-pipeline-windows/scripts/utils.py +0 -542
  138. package/bundled/dev-pipeline-windows/templates/agent-prompts/critic-plan-challenge.md +0 -7
  139. package/bundled/dev-pipeline-windows/templates/agent-prompts/dev-fix.md +0 -7
  140. package/bundled/dev-pipeline-windows/templates/agent-prompts/dev-implement.md +0 -65
  141. package/bundled/dev-pipeline-windows/templates/agent-prompts/dev-resume.md +0 -5
  142. package/bundled/dev-pipeline-windows/templates/agent-prompts/reviewer-review.md +0 -7
  143. package/bundled/dev-pipeline-windows/templates/bootstrap-prompt.md +0 -73
  144. package/bundled/dev-pipeline-windows/templates/bootstrap-tier1.md +0 -589
  145. package/bundled/dev-pipeline-windows/templates/bootstrap-tier2.md +0 -710
  146. package/bundled/dev-pipeline-windows/templates/bootstrap-tier3.md +0 -791
  147. package/bundled/dev-pipeline-windows/templates/bug-fix-list-schema.json +0 -263
  148. package/bundled/dev-pipeline-windows/templates/bugfix-bootstrap-prompt.md +0 -326
  149. package/bundled/dev-pipeline-windows/templates/feature-list-schema.json +0 -237
  150. package/bundled/dev-pipeline-windows/templates/refactor-bootstrap-prompt.md +0 -340
  151. package/bundled/dev-pipeline-windows/templates/refactor-list-schema.json +0 -270
  152. package/bundled/dev-pipeline-windows/templates/sections/ac-verification-checklist.md +0 -7
  153. package/bundled/dev-pipeline-windows/templates/sections/checkpoint-system.md +0 -91
  154. package/bundled/dev-pipeline-windows/templates/sections/context-budget-rules.md +0 -34
  155. package/bundled/dev-pipeline-windows/templates/sections/critical-paths-agent.md +0 -10
  156. package/bundled/dev-pipeline-windows/templates/sections/critical-paths-full.md +0 -12
  157. package/bundled/dev-pipeline-windows/templates/sections/critical-paths-lite.md +0 -7
  158. package/bundled/dev-pipeline-windows/templates/sections/directory-convention-agent.md +0 -8
  159. package/bundled/dev-pipeline-windows/templates/sections/directory-convention-full.md +0 -9
  160. package/bundled/dev-pipeline-windows/templates/sections/directory-convention-lite.md +0 -6
  161. package/bundled/dev-pipeline-windows/templates/sections/failure-capture.md +0 -21
  162. package/bundled/dev-pipeline-windows/templates/sections/feature-context.md +0 -21
  163. package/bundled/dev-pipeline-windows/templates/sections/log-size-awareness.md +0 -78
  164. package/bundled/dev-pipeline-windows/templates/sections/phase-browser-verification-auto.md +0 -283
  165. package/bundled/dev-pipeline-windows/templates/sections/phase-browser-verification-opencli.md +0 -112
  166. package/bundled/dev-pipeline-windows/templates/sections/phase-browser-verification.md +0 -168
  167. package/bundled/dev-pipeline-windows/templates/sections/phase-commit-full.md +0 -82
  168. package/bundled/dev-pipeline-windows/templates/sections/phase-commit.md +0 -75
  169. package/bundled/dev-pipeline-windows/templates/sections/phase-context-snapshot-agent-suffix.md +0 -23
  170. package/bundled/dev-pipeline-windows/templates/sections/phase-context-snapshot-base.md +0 -14
  171. package/bundled/dev-pipeline-windows/templates/sections/phase-context-snapshot-lite-suffix.md +0 -19
  172. package/bundled/dev-pipeline-windows/templates/sections/phase-critic-plan-full.md +0 -63
  173. package/bundled/dev-pipeline-windows/templates/sections/phase-critic-plan.md +0 -42
  174. package/bundled/dev-pipeline-windows/templates/sections/phase-implement-agent.md +0 -44
  175. package/bundled/dev-pipeline-windows/templates/sections/phase-implement-full.md +0 -59
  176. package/bundled/dev-pipeline-windows/templates/sections/phase-implement-lite.md +0 -39
  177. package/bundled/dev-pipeline-windows/templates/sections/phase-plan-agent.md +0 -27
  178. package/bundled/dev-pipeline-windows/templates/sections/phase-plan-lite.md +0 -27
  179. package/bundled/dev-pipeline-windows/templates/sections/phase-prizmkit-test.md +0 -39
  180. package/bundled/dev-pipeline-windows/templates/sections/phase-review-agent.md +0 -35
  181. package/bundled/dev-pipeline-windows/templates/sections/phase-review-full.md +0 -35
  182. package/bundled/dev-pipeline-windows/templates/sections/phase-specify-plan-full.md +0 -73
  183. package/bundled/dev-pipeline-windows/templates/sections/phase0-init.md +0 -13
  184. package/bundled/dev-pipeline-windows/templates/sections/phase0-test-baseline.md +0 -21
  185. package/bundled/dev-pipeline-windows/templates/sections/session-context.md +0 -5
  186. package/bundled/dev-pipeline-windows/templates/sections/subagent-timeout-recovery.md +0 -6
  187. package/bundled/dev-pipeline-windows/templates/sections/task-contract.md +0 -34
  188. package/bundled/dev-pipeline-windows/templates/sections/test-failure-recovery-agent.md +0 -48
  189. package/bundled/dev-pipeline-windows/templates/sections/test-failure-recovery-lite.md +0 -48
  190. package/bundled/dev-pipeline-windows/templates/session-status-schema.json +0 -83
  191. package/bundled/skills-windows/app-planner/SKILL.md +0 -296
  192. package/bundled/skills-windows/app-planner/assets/app-design-guide.md +0 -101
  193. package/bundled/skills-windows/app-planner/references/architecture-decisions.md +0 -52
  194. package/bundled/skills-windows/app-planner/references/brainstorm-guide.md +0 -101
  195. package/bundled/skills-windows/app-planner/references/frontend-design-guide.md +0 -71
  196. package/bundled/skills-windows/app-planner/references/infrastructure-convention-discovery.md +0 -108
  197. package/bundled/skills-windows/app-planner/references/project-brief-guide.md +0 -82
  198. package/bundled/skills-windows/app-planner/references/project-conventions-discovery.md +0 -59
  199. package/bundled/skills-windows/app-planner/references/project-state-detection.md +0 -90
  200. package/bundled/skills-windows/app-planner/references/red-team-checklist.md +0 -40
  201. package/bundled/skills-windows/app-planner/references/rules/backend/derivation-rules.md +0 -619
  202. package/bundled/skills-windows/app-planner/references/rules/backend/fixed-rules.md +0 -285
  203. package/bundled/skills-windows/app-planner/references/rules/backend/question-bank.md +0 -249
  204. package/bundled/skills-windows/app-planner/references/rules/backend/question-manifest.json +0 -46
  205. package/bundled/skills-windows/app-planner/references/rules/backend/template.md +0 -173
  206. package/bundled/skills-windows/app-planner/references/rules/database/derivation-rules.md +0 -382
  207. package/bundled/skills-windows/app-planner/references/rules/database/fixed-rules.md +0 -211
  208. package/bundled/skills-windows/app-planner/references/rules/database/question-bank.md +0 -184
  209. package/bundled/skills-windows/app-planner/references/rules/database/question-manifest.json +0 -39
  210. package/bundled/skills-windows/app-planner/references/rules/database/template.md +0 -158
  211. package/bundled/skills-windows/app-planner/references/rules/frontend/derivation-rules.md +0 -820
  212. package/bundled/skills-windows/app-planner/references/rules/frontend/fixed-rules.md +0 -188
  213. package/bundled/skills-windows/app-planner/references/rules/frontend/question-bank.md +0 -319
  214. package/bundled/skills-windows/app-planner/references/rules/frontend/question-manifest.json +0 -51
  215. package/bundled/skills-windows/app-planner/references/rules/frontend/template.md +0 -339
  216. package/bundled/skills-windows/app-planner/references/rules/mobile/derivation-rules.md +0 -649
  217. package/bundled/skills-windows/app-planner/references/rules/mobile/fixed-rules.md +0 -290
  218. package/bundled/skills-windows/app-planner/references/rules/mobile/question-bank.md +0 -232
  219. package/bundled/skills-windows/app-planner/references/rules/mobile/question-manifest.json +0 -47
  220. package/bundled/skills-windows/app-planner/references/rules/mobile/template.md +0 -175
  221. package/bundled/skills-windows/app-planner/references/rules-configuration.md +0 -46
  222. package/bundled/skills-windows/bug-fix-workflow/SKILL.md +0 -379
  223. package/bundled/skills-windows/bug-fix-workflow/references/bug-diagnosis.md +0 -41
  224. package/bundled/skills-windows/bug-planner/SKILL.md +0 -402
  225. package/bundled/skills-windows/bug-planner/assets/bug-confirmation-template.md +0 -43
  226. package/bundled/skills-windows/bug-planner/references/critic-and-verification.md +0 -44
  227. package/bundled/skills-windows/bug-planner/references/error-recovery.md +0 -73
  228. package/bundled/skills-windows/bug-planner/references/input-formats.md +0 -53
  229. package/bundled/skills-windows/bug-planner/references/schema-validation.md +0 -25
  230. package/bundled/skills-windows/bug-planner/references/severity-rules.md +0 -16
  231. package/bundled/skills-windows/bug-planner/scripts/validate-bug-list.py +0 -322
  232. package/bundled/skills-windows/bugfix-pipeline-launcher/SKILL.md +0 -304
  233. package/bundled/skills-windows/bugfix-pipeline-launcher/references/configuration.md +0 -84
  234. package/bundled/skills-windows/feature-pipeline-launcher/SKILL.md +0 -381
  235. package/bundled/skills-windows/feature-pipeline-launcher/references/configuration.md +0 -67
  236. package/bundled/skills-windows/feature-pipeline-launcher/scripts/preflight-check.py +0 -462
  237. package/bundled/skills-windows/feature-planner/SKILL.md +0 -397
  238. package/bundled/skills-windows/feature-planner/assets/evaluation-guide.md +0 -64
  239. package/bundled/skills-windows/feature-planner/assets/planning-guide.md +0 -214
  240. package/bundled/skills-windows/feature-planner/references/browser-interaction.md +0 -59
  241. package/bundled/skills-windows/feature-planner/references/completeness-review.md +0 -57
  242. package/bundled/skills-windows/feature-planner/references/decomposition-patterns.md +0 -75
  243. package/bundled/skills-windows/feature-planner/references/error-recovery.md +0 -90
  244. package/bundled/skills-windows/feature-planner/references/incremental-feature-planning.md +0 -112
  245. package/bundled/skills-windows/feature-planner/references/new-project-planning.md +0 -85
  246. package/bundled/skills-windows/feature-planner/scripts/validate-and-generate.py +0 -1020
  247. package/bundled/skills-windows/feature-workflow/SKILL.md +0 -374
  248. package/bundled/skills-windows/feature-workflow/references/brainstorm-guide.md +0 -137
  249. package/bundled/skills-windows/prizm-kit/SKILL.md +0 -93
  250. package/bundled/skills-windows/prizmkit-code-review/SKILL.md +0 -161
  251. package/bundled/skills-windows/prizmkit-code-review/references/dev-agent-prompt.md +0 -30
  252. package/bundled/skills-windows/prizmkit-code-review/references/review-report-template.md +0 -31
  253. package/bundled/skills-windows/prizmkit-code-review/references/reviewer-agent-prompt.md +0 -66
  254. package/bundled/skills-windows/prizmkit-code-review/scripts/check_loop.py +0 -186
  255. package/bundled/skills-windows/prizmkit-committer/SKILL.md +0 -89
  256. package/bundled/skills-windows/prizmkit-deploy/SKILL.md +0 -444
  257. package/bundled/skills-windows/prizmkit-deploy/references/ci-cd-workflows.md +0 -115
  258. package/bundled/skills-windows/prizmkit-deploy/references/cloud-platform-deploy.md +0 -93
  259. package/bundled/skills-windows/prizmkit-deploy/references/data-safety-examples.md +0 -120
  260. package/bundled/skills-windows/prizmkit-deploy/references/database-setup.md +0 -46
  261. package/bundled/skills-windows/prizmkit-deploy/references/deploy-config-schema.md +0 -148
  262. package/bundled/skills-windows/prizmkit-deploy/references/deploy-history-schema.md +0 -62
  263. package/bundled/skills-windows/prizmkit-deploy/references/deployment-modes.md +0 -50
  264. package/bundled/skills-windows/prizmkit-deploy/references/direct-upload.md +0 -26
  265. package/bundled/skills-windows/prizmkit-deploy/references/dns-setup.md +0 -42
  266. package/bundled/skills-windows/prizmkit-deploy/references/docker-deploy.md +0 -31
  267. package/bundled/skills-windows/prizmkit-deploy/references/firewall-setup.md +0 -37
  268. package/bundled/skills-windows/prizmkit-deploy/references/live-validation-notes.md +0 -21
  269. package/bundled/skills-windows/prizmkit-deploy/references/nginx-blue-green.md +0 -59
  270. package/bundled/skills-windows/prizmkit-deploy/references/ssh-bootstrap-flow.md +0 -49
  271. package/bundled/skills-windows/prizmkit-deploy/references/ssh-execution-flow.md +0 -41
  272. package/bundled/skills-windows/prizmkit-deploy/references/ssh-takeover.md +0 -20
  273. package/bundled/skills-windows/prizmkit-deploy/references/ssl-setup.md +0 -56
  274. package/bundled/skills-windows/prizmkit-implement/SKILL.md +0 -71
  275. package/bundled/skills-windows/prizmkit-init/SKILL.md +0 -356
  276. package/bundled/skills-windows/prizmkit-init/assets/project-brief-template.md +0 -82
  277. package/bundled/skills-windows/prizmkit-init/references/config-schema.md +0 -70
  278. package/bundled/skills-windows/prizmkit-init/references/rules/layer-detection.md +0 -41
  279. package/bundled/skills-windows/prizmkit-init/references/tech-stack-catalog.md +0 -13
  280. package/bundled/skills-windows/prizmkit-init/references/update-supplement.md +0 -9
  281. package/bundled/skills-windows/prizmkit-plan/SKILL.md +0 -102
  282. package/bundled/skills-windows/prizmkit-plan/assets/plan-template.md +0 -115
  283. package/bundled/skills-windows/prizmkit-plan/assets/spec-template.md +0 -73
  284. package/bundled/skills-windows/prizmkit-plan/references/clarify-guide.md +0 -67
  285. package/bundled/skills-windows/prizmkit-plan/references/examples.md +0 -85
  286. package/bundled/skills-windows/prizmkit-plan/references/verification-checklist.md +0 -60
  287. package/bundled/skills-windows/prizmkit-prizm-docs/SKILL.md +0 -129
  288. package/bundled/skills-windows/prizmkit-prizm-docs/assets/prizm-docs-format.md +0 -613
  289. package/bundled/skills-windows/prizmkit-prizm-docs/references/op-init.md +0 -45
  290. package/bundled/skills-windows/prizmkit-prizm-docs/references/op-rebuild.md +0 -15
  291. package/bundled/skills-windows/prizmkit-prizm-docs/references/op-status.md +0 -14
  292. package/bundled/skills-windows/prizmkit-prizm-docs/references/op-update.md +0 -19
  293. package/bundled/skills-windows/prizmkit-prizm-docs/references/op-validate.md +0 -17
  294. package/bundled/skills-windows/prizmkit-retrospective/SKILL.md +0 -87
  295. package/bundled/skills-windows/prizmkit-retrospective/references/knowledge-injection-steps.md +0 -50
  296. package/bundled/skills-windows/prizmkit-retrospective/references/structural-sync-steps.md +0 -43
  297. package/bundled/skills-windows/prizmkit-test/SKILL.md +0 -227
  298. package/bundled/skills-windows/prizmkit-test/references/boundary-coverage-protocol.md +0 -220
  299. package/bundled/skills-windows/prizmkit-test/references/examples.md +0 -143
  300. package/bundled/skills-windows/prizmkit-test/references/service-boundary-test-catalog.md +0 -225
  301. package/bundled/skills-windows/prizmkit-test/references/test-generation-steps.md +0 -109
  302. package/bundled/skills-windows/prizmkit-test/references/test-report-template.md +0 -111
  303. package/bundled/skills-windows/prizmkit-test/scripts/validate_boundary_report.py +0 -347
  304. package/bundled/skills-windows/recovery-workflow/SKILL.md +0 -355
  305. package/bundled/skills-windows/recovery-workflow/evals/evals.json +0 -46
  306. package/bundled/skills-windows/recovery-workflow/references/detection.md +0 -58
  307. package/bundled/skills-windows/recovery-workflow/scripts/detect-recovery-state.py +0 -544
  308. package/bundled/skills-windows/refactor-pipeline-launcher/SKILL.md +0 -346
  309. package/bundled/skills-windows/refactor-pipeline-launcher/references/configuration.md +0 -72
  310. package/bundled/skills-windows/refactor-planner/SKILL.md +0 -398
  311. package/bundled/skills-windows/refactor-planner/assets/planning-guide.md +0 -292
  312. package/bundled/skills-windows/refactor-planner/references/behavior-preservation.md +0 -301
  313. package/bundled/skills-windows/refactor-planner/references/fast-path.md +0 -59
  314. package/bundled/skills-windows/refactor-planner/references/planning-phases.md +0 -135
  315. package/bundled/skills-windows/refactor-planner/references/refactor-scoping-guide.md +0 -221
  316. package/bundled/skills-windows/refactor-planner/scripts/validate-and-generate-refactor.py +0 -858
  317. package/bundled/skills-windows/refactor-workflow/SKILL.md +0 -343
  318. package/bundled/skills-windows/refactor-workflow/references/brainstorm-guide.md +0 -116
  319. package/bundled/templates/hooks/diff-prizm-docs.sh +0 -158
  320. package/bundled/templates/hooks/prizm-pre-commit.sh +0 -108
  321. package/bundled/templates/hooks/validate-prizm-docs.sh +0 -139
@@ -1,13 +0,0 @@
1
- ### Phase 0: Project Bootstrap
2
- - Run `/prizmkit-init` (invoke the prizmkit-init skill)
3
- - Run `Invoke-PrizmPython {{INIT_SCRIPT_PATH}} --project-root {{PROJECT_ROOT}} --feature-id {{FEATURE_ID}} --feature-slug {{FEATURE_SLUG}}`
4
- - **CP-0**: Verify `.prizmkit/prizm-docs/root.prizm`, `.prizmkit/config.json` exist
5
-
6
-
7
- **Checkpoint update**: Run the update script to set step `prizmkit-init` to `"completed"`:
8
- ```powershell
9
- Invoke-PrizmPython {{PIPELINE_DIR}}\scripts\update-checkpoint.py `
10
- --checkpoint-path {{CHECKPOINT_PATH}} `
11
- --step prizmkit-init `
12
- --status completed
13
- ```
@@ -1,21 +0,0 @@
1
- ### Phase 0: Record Test Baseline & Detect Test Commands
2
-
3
- **Step 1 — Detect test commands**: You know this project's tech stack. Identify ALL test commands that apply (e.g., `go test ./...`, `npm test`, `cargo test`, `pytest`, `make test`, etc.). Record them as `TEST_CMDS`.
4
-
5
- **Step 2 — Record pre-existing failure baseline**:
6
- ```powershell
7
- # Run each test command, capture output
8
- & { {{TEST_CMD}} } 2>&1 | Tee-Object (Join-Path $env:TEMP "test-baseline.txt") | Select-Object -Last 20
9
- ```
10
- Save the list of **pre-existing failing tests** (if any) as `BASELINE_FAILURES`. These are known failures that existed before this session — Dev must NOT be blamed for them, but must list them in COMPLETION_SIGNAL.
11
-
12
- > **Test Output Rule**: Always capture test output to a temp file (`Tee-Object (Join-Path $env:TEMP "test-out.txt")`). Then use Select-String on the file instead of re-running the suite.
13
-
14
-
15
- **Checkpoint update**: Run the update script to set step `test-baseline` to `"completed"`:
16
- ```powershell
17
- Invoke-PrizmPython {{PIPELINE_DIR}}\scripts\update-checkpoint.py `
18
- --checkpoint-path {{CHECKPOINT_PATH}} `
19
- --step test-baseline `
20
- --status completed
21
- ```
@@ -1,5 +0,0 @@
1
- ## Session Context
2
-
3
- - **Feature ID**: {{FEATURE_ID}} | **Session**: {{SESSION_ID}} | **Run**: {{RUN_ID}}
4
- - **Complexity**: {{COMPLEXITY}}
5
- - **Init**: {{INIT_DONE}} | Artifacts: spec={{HAS_SPEC}} plan={{HAS_PLAN}}
@@ -1,6 +0,0 @@
1
- ## Subagent Timeout Recovery
2
-
3
- If any agent times out:
4
- 1. `Get-ChildItem -LiteralPath ".prizmkit/specs/{{FEATURE_SLUG}}/" -ErrorAction SilentlyContinue` — check what exists
5
- 2. If `context-snapshot.md` exists: open recovery prompt with `"Read .prizmkit/specs/{{FEATURE_SLUG}}/context-snapshot.md for project context and any Implementation Log/Review Notes from previous agents. Run git diff HEAD to see actual code changes already made. Do NOT re-read individual source files unless the File Manifest directs you to."` + only remaining steps + `model: "lite"`
6
- 3. Max 2 retries per phase. After 2 failures, orchestrator completes the work directly and appends a Recovery Note to context-snapshot.md.
@@ -1,34 +0,0 @@
1
- ## Task Contract
2
-
3
- This section defines the only work that belongs to this session.
4
-
5
- ### Objective
6
-
7
- Implement {{FEATURE_ID}}: "{{FEATURE_TITLE}}".
8
-
9
- {{FEATURE_DESCRIPTION}}
10
-
11
- ### Scope Rule
12
-
13
- Current scope is limited to the intersection of:
14
-
15
- 1. The Objective above
16
- 2. The Verification Gates below
17
- 3. Dependencies required to complete those gates
18
-
19
- Raw user context, project brief, and completed dependency notes are authoritative context, but they do not expand scope by themselves.
20
-
21
- ### Non-Scope Rule
22
-
23
- Do NOT implement unrelated backlog items, already completed features, or adjacent modules unless they are required by the Objective or a Verification Gate.
24
-
25
- ### Verification Gates
26
-
27
- These gates are generated from `feature.acceptance_criteria` and are the only acceptance requirements for this session.
28
-
29
- {{AC_CHECKLIST}}
30
-
31
- Gate rule:
32
- - `[x]` means verified with implementation or test evidence.
33
- - Any remaining `[ ]` means the feature is incomplete.
34
- - If a gate is blocked, document the reason in `failure-log.md`; blocked is not success.
@@ -1,48 +0,0 @@
1
- ## Test Failure Recovery Protocol
2
-
3
- Use this protocol whenever implementation or review tests fail. Its purpose is to distinguish tolerated pre-existing failures from blockers introduced by this session.
4
-
5
- ### Failure Classes
6
-
7
- | Class | Meaning | Required Action | May Continue? |
8
- |-------|---------|-----------------|---------------|
9
- | Baseline failure | Existed before this session | Document in Implementation Log or review notes | Yes |
10
- | New regression | Introduced by this session | Fix before reporting success | No |
11
- | Brittle test | Test expectation/setup is wrong for the intended behavior | Fix the test or environment setup, then rerun | Only after fixed or documented as blocked |
12
- | Environment/tooling failure | External tool, network, install, or local environment prevents verification | Document in `failure-log.md` with impact on gates | Only if no Verification Gate is blocked |
13
-
14
- ### Recovery Loop
15
-
16
- 1. Run tests and record: failing test names, failure count, and class for each failure.
17
- 2. Compare with `BASELINE_FAILURES`; never blame baseline failures on this feature.
18
- 3. Fix new regressions and brittle tests while progress is being made.
19
- 4. Stop after a plateau: same failure count and same failing tests for 3 consecutive rounds.
20
- 5. If failures decrease, reset the plateau counter.
21
-
22
- ### Success Rule
23
-
24
- Proceed to review only when:
25
-
26
- 1. all new regressions are fixed;
27
- 2. baseline failures are documented;
28
- 3. every Verification Gate is verified.
29
-
30
- Blocked gates are not success. If any gate cannot be verified, follow the Blocked Rule.
31
-
32
- ### Blocked Rule
33
-
34
- If a remaining failure prevents any Verification Gate from being verified, the feature is incomplete. Write `failure-log.md` and do not report success.
35
-
36
- ### Failure Capture Format
37
-
38
- ```markdown
39
- ## Test Failures Encountered
40
-
41
- - **Test**: [test name/path]
42
- - Root Cause: [explanation]
43
- - Category: [baseline failure | new regression | brittle test | environment/tooling]
44
- - Rounds Attempted: [N rounds, plateau at round M]
45
- - Status: [fixed | still failing | blocked]
46
-
47
- - **Impact on Verification Gates**: [verified | not affected | blocked + reason]
48
- ```
@@ -1,48 +0,0 @@
1
- ## Test Failure Recovery Protocol
2
-
3
- Use this protocol whenever implementation tests fail. Its purpose is to distinguish tolerated pre-existing failures from blockers introduced by this session.
4
-
5
- ### Failure Classes
6
-
7
- | Class | Meaning | Required Action | May Continue? |
8
- |-------|---------|-----------------|---------------|
9
- | Baseline failure | Existed before this session | Document in Implementation Log | Yes |
10
- | New regression | Introduced by this session | Fix before reporting success | No |
11
- | Brittle test | Test expectation/setup is wrong for the intended behavior | Fix the test or environment setup, then rerun | Only after fixed or documented as blocked |
12
- | Environment/tooling failure | External tool, network, install, or local environment prevents verification | Document in `failure-log.md` with impact on gates | Only if no Verification Gate is blocked |
13
-
14
- ### Recovery Loop
15
-
16
- 1. Run tests and record: failing test names, failure count, and class for each failure.
17
- 2. Compare with `BASELINE_FAILURES`; never blame baseline failures on this feature.
18
- 3. Fix new regressions and brittle tests while progress is being made.
19
- 4. Stop after a plateau: same failure count and same failing tests for 3 consecutive rounds.
20
- 5. If failures decrease, reset the plateau counter.
21
-
22
- ### Success Rule
23
-
24
- Proceed only when:
25
-
26
- 1. all new regressions are fixed;
27
- 2. baseline failures are documented;
28
- 3. every Verification Gate is verified.
29
-
30
- Blocked gates are not success. If any gate cannot be verified, follow the Blocked Rule.
31
-
32
- ### Blocked Rule
33
-
34
- If a remaining failure prevents any Verification Gate from being verified, the feature is incomplete. Write `failure-log.md` and do not report success.
35
-
36
- ### Failure Capture Format
37
-
38
- ```markdown
39
- ## Test Failures Encountered
40
-
41
- - **Test**: [test name/path]
42
- - Root Cause: [explanation]
43
- - Category: [baseline failure | new regression | brittle test | environment/tooling]
44
- - Rounds Attempted: [N rounds, plateau at round M]
45
- - Status: [fixed | still failing | blocked]
46
-
47
- - **Impact on Verification Gates**: [verified | not affected | blocked + reason]
48
- ```
@@ -1,83 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "title": "Dev-Pipeline Session Status",
4
- "description": "Schema for session-status.json written by agent at session end",
5
- "type": "object",
6
- "required": ["session_id", "feature_id", "status", "timestamp"],
7
- "properties": {
8
- "session_id": {
9
- "type": "string",
10
- "minLength": 1
11
- },
12
- "feature_id": {
13
- "type": "string",
14
- "pattern": "^F-\\d{3}(-[A-Z])?$"
15
- },
16
- "status": {
17
- "type": "string",
18
- "enum": ["success", "partial", "failed", "commit_missing", "docs_missing", "merge_conflict"]
19
- },
20
- "completed_phases": {
21
- "type": "array",
22
- "items": {
23
- "type": "integer",
24
- "minimum": 0,
25
- "maximum": 7
26
- }
27
- },
28
- "current_phase": {
29
- "type": "integer",
30
- "minimum": 0,
31
- "maximum": 7
32
- },
33
- "checkpoint_reached": {
34
- "type": "string",
35
- "pattern": "^CP-[0-3]$"
36
- },
37
- "tasks_completed": {
38
- "type": "integer",
39
- "minimum": 0
40
- },
41
- "tasks_total": {
42
- "type": "integer",
43
- "minimum": 0
44
- },
45
- "errors": {
46
- "type": "array",
47
- "items": {
48
- "type": "object",
49
- "required": ["message"],
50
- "properties": {
51
- "phase": { "type": "integer" },
52
- "type": { "type": "string" },
53
- "message": { "type": "string" },
54
- "recoverable": { "type": "boolean" }
55
- }
56
- }
57
- },
58
- "can_resume": {
59
- "type": "boolean"
60
- },
61
- "docs_maintained": {
62
- "type": "boolean"
63
- },
64
- "retrospective_done": {
65
- "type": "boolean"
66
- },
67
- "resume_from_phase": {
68
- "type": ["integer", "null"]
69
- },
70
- "artifacts": {
71
- "type": "object",
72
- "properties": {
73
- "spec_path": { "type": "string" },
74
- "plan_path": { "type": "string" },
75
- "context_snapshot_path": { "type": "string" }
76
- }
77
- },
78
- "timestamp": {
79
- "type": "string",
80
- "format": "date-time"
81
- }
82
- }
83
- }
@@ -1,296 +0,0 @@
1
- ---
2
- name: "app-planner"
3
- description: "Plan an application through interactive conversation — capture vision, tech stack, constraints, dev rules, and project brief. Works for both new (greenfield) and existing (brownfield) projects that need app-level planning. Also use for configuring per-layer development rules (frontend/backend/database/mobile) that AI coding assistants should follow. Use this skill when users say 'plan an app', 'design a new project', 'start from scratch', 'build a new application', 'set up dev rules', 'configure frontend rules', 'configure backend rules', or discuss app-level architecture and design. Also use for existing projects that need a project brief or app-level context. For adding features to existing projects that already have a project brief, use feature-planner instead."
4
- ---
5
-
6
- # app planner
7
-
8
- Plan an application from idea to actionable project context through interactive conversation. Works for both **greenfield** (new) and **brownfield** (existing) projects:
9
- - Vision and problem statement
10
- - Tech stack selection (or confirmation of existing stack)
11
- - Constraints and design direction
12
- - Architecture decision capture
13
- - Project brief accumulation (`.prizmkit/plans/project-brief.md`)
14
-
15
- This skill captures **project-level context only**: vision, tech stack, conventions, architecture decisions, and project brief. It does not do feature decomposition. (See **Scope Boundary** for the authoritative output rules.)
16
-
17
- For adding features to an **existing** project that already has a project brief, use `feature-planner` directly.
18
-
19
- ## Invocation Commitment (Hard Rule)
20
- You must NEVER:
21
- - Bypass the interactive phases because you judge the task to be "simple"
22
-
23
- If you believe the task is better suited for a different workflow, you MUST:
24
- 1. **Explain why** you think a different path is more appropriate
25
- 2. **Ask the user explicitly** whether they want to switch
26
- 3. **Only switch if the user confirms**
27
-
28
- ## Scope Boundary (Hard Rule)
29
-
30
- **This skill is PLANNING ONLY.** You must NEVER:
31
- - Create, modify, or delete source code files (*.js, *.ts, *.py, *.go, *.html, *.css, etc.)
32
- - Create project scaffolding, directories, or boilerplate (exception: `.prizmkit/rules/` and `.prizmkit/prizm-docs/` directories may be created for dev rules and root.prizm output)
33
- - Run build/install/test commands (npm init, pip install, etc.)
34
- - Execute any implementation action beyond writing planning artifacts
35
-
36
- **Your ONLY writable outputs are:**
37
- 1. `.prizmkit/plans/project-brief.md` (`.prizmkit/plans/` — accumulated project context brief)
38
- 2. Project conventions and architecture decisions appended to `AGENTS.md` / `CLAUDE.md` / `CODEBUDDY.md` (with user consent)
39
- 3. Infrastructure configuration (database conventions, deployment config, **cloud services**) appended to `AGENTS.md` / `CLAUDE.md` / `CODEBUDDY.md` `### Infrastructure` section
40
- 4. `.prizmkit/rules/<layer>-rules.md` — per-layer development rules generated by Rules Configuration
41
- 5. `.prizmkit/prizm-docs/root.prizm` — `RULES:` pointer line only (not other root.prizm content; created minimally if absent)
42
-
43
- **Project instruction file selection**:
44
- - If `.prizmkit/manifest.json` exists, use its `platform` field as the source of truth.
45
- - Codex → `AGENTS.md`
46
- - Claude Code → `CLAUDE.md`
47
- - CodeBuddy → `CODEBUDDY.md`
48
- - `all` → all three files. Legacy manifests may contain `both`; treat it as read-only compatibility and update `CLAUDE.md` and `CODEBUDDY.md` only when encountered.
49
- - Only when the manifest is missing, fall back to installed PrizmKit-owned platform files such as `.codex/agents/*.toml`, `.claude/commands/prizm-kit.md`, or `.codebuddy/skills/prizm-kit/SKILL.md`. Do not treat a generic `.agents/` directory as Codex.
50
-
51
- **After planning is complete**, you MUST:
52
- 1. Present the summary of captured project-level context (vision, conventions, architecture decisions, project brief)
53
- 2. List the artifacts produced and suggest possible next steps (e.g., `feature-planner`, `prizmkit-plan`, etc.) — but do NOT auto-invoke any of them
54
- 3. **NEVER auto-execute** the pipeline, feature-planner, or any implementation step
55
- 4. **NEVER generate `feature-list.json`** — that is exclusively `feature-planner`'s responsibility
56
-
57
- ## When to Use
58
-
59
- The skill `description` lists the trigger phrases. Beyond those, use this section to disambiguate from `feature-planner` and other workflows.
60
-
61
- Do NOT use this skill when:
62
- - The user already has a project brief and wants to add features → use `feature-planner`
63
- - The user wants to run the pipeline → use `feature-pipeline-launcher`
64
- - The user is debugging/refactoring or wants to write source code directly
65
-
66
- ## Resource Loading Rules (Mandatory)
67
-
68
- 1. **App design reference** — always load at session start:
69
- - Read `${SKILL_DIR}/assets/app-design-guide.md` for vision templates and tech stack matrix
70
-
71
- 2. **Load on-demand references when triggered**:
72
- - Architecture decisions emerged → read `${SKILL_DIR}/references/architecture-decisions.md`
73
- - Frontend/UI project detected → read `${SKILL_DIR}/references/frontend-design-guide.md`
74
- - User wants to explore ideas before committing → read `${SKILL_DIR}/references/brainstorm-guide.md`
75
- - During brainstorm Phase C → also read `${SKILL_DIR}/references/red-team-checklist.md`
76
-
77
- 3. **Project conventions discovery** — after Intent Confirmation, before brainstorm or vision work:
78
- → Read `AGENTS.md` / `CLAUDE.md` / `CODEBUDDY.md` and check for `### Project Conventions` section
79
- → If section exists and covers the project well → skip silently
80
- → If section is missing or incomplete → run the **AI-driven convention discovery** below:
81
-
82
- **Do NOT follow any fixed checklist.** Every project is different. You must analyze the project first, then reason about what system-level conventions this specific project needs.
83
-
84
- → Read `${SKILL_DIR}/references/project-conventions-discovery.md` for the full AI-driven discovery procedure (Analyze → Reason → Present via AskUserQuestion).
85
-
86
- → Save answers to `AGENTS.md` / `CLAUDE.md` / `CODEBUDDY.md` under `### Project Conventions` section (format: one bullet per convention)
87
- → Output format will naturally vary per project — that is the intended behavior
88
-
89
- **Infrastructure Convention Discovery (Database + Deployment)**
90
-
91
- After project conventions are captured, check the project instruction file for `### Infrastructure` section status. Read `${SKILL_DIR}/references/infrastructure-convention-discovery.md` for the full database (6 topics — table naming, field naming, migrations, primary keys, indexes, environment separation), deployment (4 topics — target refinement, existing infrastructure, AI-assisted deploy, env var management), and cloud services (2-round AskUserQuestion) inquiry procedures. Follow the inquiry flow there — use `AskUserQuestion` for each batch. Each question MUST include a "Skip — decide later" option.
92
-
93
- After inquiry, update the `### Infrastructure` section in the project instruction file with all collected information (see reference file for full output format). Items still marked "Skip — decide later" remain as `<!-- [topic]: deferred -->` for `prizmkit-deploy` to pick up later.
94
-
95
- 4. **Project brief accumulation** — throughout all interactive phases:
96
- → Read `${SKILL_DIR}/references/project-brief-guide.md` for template and rules
97
- → Update after each meaningful user response containing business intent, constraints, or design decisions
98
-
99
- ## Rules Configuration (after Infrastructure)
100
-
101
- After Infrastructure configuration is complete (CP-AP-1.5), check whether the project's development layers have custom rules configured. Rules are per-layer documents (frontend-rules.md, backend-rules.md, database-rules.md, mobile-rules.md) that tell AI coding assistants how to generate code for that layer — UI framework, state management, naming conventions, etc.
102
-
103
- Rules are optional. If the user skips, AI uses general best practices freely — no reminders, no blocking.
104
-
105
- → Read `${SKILL_DIR}/references/rules-configuration.md` for the full procedure: layer detection, configuration mode selection, interactive Q&A per layer, template rendering, and root.prizm RULES pointer update.
106
-
107
- ### After rules configuration
108
-
109
- Proceed to Prerequisites and continue the app-planner workflow.
110
-
111
- ## Prerequisites
112
-
113
- Before questions, check optional context files (never block if absent):
114
- - `.prizmkit/prizm-docs/root.prizm` (architecture/project context)
115
- - `.prizmkit/config.json` (existing stack preferences and detected tech stack)
116
- - `AGENTS.md` / `CLAUDE.md` / `CODEBUDDY.md` `### Project Conventions` section (previously answered project conventions)
117
- - `AGENTS.md` / `CLAUDE.md` / `CODEBUDDY.md` `### Infrastructure` section (database and deployment config from prizmkit-init or previous app-planner run)
118
-
119
- **Tech stack auto-population from config.json:**
120
- - If `.prizmkit/config.json` contains a `tech_stack` object, use it to pre-fill tech assumptions.
121
- - Map config fields: `language`, `runtime`, `frontend_framework`, `frontend_styling`, `backend_framework`, `database`, `orm`, `testing`, `bundler`, `project_type`.
122
- - Do NOT re-ask for tech stack info already in config.json. Show the detected stack and ask: "Is this correct? Any changes?"
123
- - If config.json has no `tech_stack`, fall back to asking during Phase 2.
124
-
125
- Note:
126
- - This skill **reads** `.prizmkit/config.json` if present.
127
- - This skill does **not** create `.prizmkit/config.json` directly.
128
- - Creation/update is handled by bootstrap/init flows (e.g., `prizmkit-init`, `.prizmkit/dev-pipeline/scripts/init-dev-team.py`).
129
-
130
- ## Interaction Style (Hard Rule)
131
-
132
- **ALL decision points MUST use the `AskUserQuestion` tool** to present interactive, selectable options. Do NOT render options as plain text (e.g., `[A] option [B] option`) — the user must be able to click/select, not type a letter.
133
-
134
- This applies to:
135
- - Intent confirmation
136
- - Project conventions
137
- - Tech stack selection
138
- - Architecture decisions
139
- - Session exit gates
140
- - Brownfield prerequisite check
141
- - Any other decision point
142
-
143
- **How to use `AskUserQuestion`:**
144
- - Each decision point → one `AskUserQuestion` call with 1-4 questions. Use multiple calls as needed — there is NO limit on total rounds for project-level convention discovery. Keep going until everything is covered.
145
- - Each question has 2-4 selectable options (the tool auto-adds "Other" for custom input)
146
- - Use `multiSelect: true` when the user can pick more than one
147
- - Mark the recommended option first and append "(Recommended)" to its label
148
- - Use the `description` field to explain trade-offs or implications
149
- - **Every non-essential question MUST include a "Skip" option** (e.g., "Skip — decide later"). Users should never be forced to answer something they want to defer. Skipped items are simply not written to conventions — they can be added in a future session.
150
-
151
- **What can be skipped vs. what cannot:**
152
- - **Cannot skip**: Intent confirmation (must know the session goal)
153
- - **Everything else can be skipped**: conventions, tech stack choices, architecture decisions, design direction, etc. If the user skips, move on — do not re-ask or block progress.
154
-
155
- **When gathering open-ended information** (e.g., "describe your app idea"), use regular text questions — but follow up with `AskUserQuestion`-based clarifications wherever possible.
156
-
157
- ## Intent Confirmation (Mandatory First Step)
158
-
159
- After initial greeting, use `AskUserQuestion` to confirm intent:
160
-
161
- **Question**: "What would you like to do?"
162
- - **Explore ideas first (Recommended)** — brainstorm and refine ideas before committing to a plan
163
- - **Produce a project plan** — define vision, tech stack, and constraints → generates project-brief.md for pipeline use
164
- - **Generate project context only** — for an existing project that needs a project brief without full planning
165
-
166
- Route by answer:
167
- - **Produce a project plan** → Continue to Core Workflow. Set session goal = `produce`.
168
- - **Explore ideas first** → Enter **Exploration Mode**:
169
- - Run project conventions check first
170
- - Load `${SKILL_DIR}/references/brainstorm-guide.md` and follow its structured ideation process (Phases A-D)
171
- - Brainstorm Phase D output serves as the Vision Summary (CP-AP-2)
172
- - After brainstorm completes, use `AskUserQuestion`: "Ideas are taking shape. What's next?"
173
- - **Continue to project planning (Recommended)** — capture tech stack, conventions, and architecture decisions
174
- - **Continue refining** — keep brainstorming
175
- - **Save draft & exit** — save progress to .prizmkit/planning/
176
- - **Checkpoints in explore mode**: CP-AP-0 (required), CP-AP-1 (required), CP-AP-2 (from brainstorm output), CP-AP-3 (only if user proceeds to Phase 2), CP-AP-4 and CP-AP-5 (only if user transitions to produce mode)
177
- - **Generate project context only** → Enter **Quick Context Mode** (brownfield only):
178
- - Run Project State Detection → if greenfield, redirect to produce mode
179
- - Proactively scan the project (same as brownfield behavior)
180
- - Generate project-brief.md from inferred context
181
- - Skip extensive brainstorming and constraint phases
182
- - Present brief for user confirmation → write → done
183
-
184
- Session goal tracking: Track the intent (`produce`, `explore`, or `quick_context`) throughout the session. If `explore`, always re-prompt before ending.
185
-
186
- ## Project State Detection (after Intent Confirmation)
187
-
188
- Detect whether this is a **greenfield** (new) or **brownfield** (existing) project and adapt the workflow accordingly.
189
-
190
- ### Detection Signals
191
-
192
- | Signal | Greenfield | Brownfield |
193
- |--------|-----------|------------|
194
- | `package.json` / `pyproject.toml` / `go.mod` / `Cargo.toml` / `pom.xml` | absent | present |
195
- | `src/` or `app/` directory with source files | absent | present |
196
- | `.git` with commit history | absent or initial commit only | present with history |
197
- | Empty or near-empty directory | yes | no |
198
-
199
- ### Greenfield Behavior (default)
200
-
201
- Proceed with the standard Core Workflow — ask all questions from scratch.
202
-
203
- ### Brownfield Behavior
204
-
205
- When an existing project is detected, read `${SKILL_DIR}/references/project-state-detection.md` for the full 4-step brownfield procedure:
206
-
207
- - **Step 1**: Prerequisite check — verify `.prizmkit/prizm-docs/root.prizm`, `.prizmkit/config.json`, `.prizmkit/plans/project-brief.md` exist. If missing, offer to run `prizmkit-init` first.
208
- - **Step 2**: Proactive scanning — read codebase structure, metadata files, and key source files yourself
209
- - **Step 3**: Present inferred summary and confirm with `AskUserQuestion`
210
- - **Step 4**: Pre-fill known information, focus questions on what cannot be inferred
211
-
212
- ## Core Workflow
213
-
214
- Execute the planning workflow in conversation mode with mandatory checkpoints:
215
-
216
- ### Interactive Phases
217
- 1. Clarify business goal and scope
218
- 1.1 Confirm deliverable intent (→ Intent Confirmation — option-based)
219
- 1.2 **Requirement clarification** — for ANY unclear aspect of the user's vision, goals, target users, or scope, use option-based questions where possible. When common patterns exist, present them as choices. Only use open-ended questions for truly unique input (e.g., "describe your app idea"). Follow up with option-based clarifications.
220
- 2. Confirm constraints and tech assumptions
221
- 2.1 Tech stack selection — use `${SKILL_DIR}/assets/app-design-guide.md` §2 decision matrix. Use `AskUserQuestion` for each major tech decision (framework, database, styling, etc.)
222
- 2.2 **Frontend design check** (for frontend projects) — scan for existing UI/UX design docs. If none found, use `AskUserQuestion`:
223
- - Question: "No UI/UX design docs found. Would you like to establish design direction?"
224
- - Options: "Establish design direction now (Recommended)", "Skip for now", "I have external designs"
225
- 3. Capture architecture decisions and finalize project brief
226
- 4. Present completion summary with artifacts produced and possible next steps
227
-
228
- ### Checkpoints (Mandatory Gates)
229
-
230
- Checkpoints catch cascading errors early — skipping one means the next phase builds on unvalidated assumptions.
231
-
232
- | Checkpoint | Artifact/State | Criteria | Phase |
233
- |-----------|----------------|----------|-------|
234
- | **CP-AP-0** | Intent Confirmed | User confirmed session goal (produce / explore) | 1 |
235
- | **CP-AP-1** | Conventions Checked | Project conventions loaded or asked; `### Project Conventions` section in `AGENTS.md` / `CLAUDE.md` / `CODEBUDDY.md` up to date | 1 |
236
- | **CP-AP-1.5** | Infrastructure Checked | Infrastructure config loaded or asked; `### Infrastructure` section in `AGENTS.md` / `CLAUDE.md` / `CODEBUDDY.md` addressed — database, deployment **and cloud services** each configured or explicitly deferred | 1-2 |
237
- | **CP-AP-1.6** | Rules Configured | For each detected layer (from config.json or self-detection), rules file exists in `.prizmkit/rules/` or user explicitly skipped. `root.prizm` `RULES:` pointer up-to-date. | 2 |
238
- | **CP-AP-2** | Vision Summary | Goal/users/differentiators confirmed by user. For brownfield: existing purpose confirmed or refined. | 1-2 |
239
- | **CP-AP-3** | Frontend Design Evaluated | For frontend projects: checked for existing UI/UX design system; user was asked if missing. **Auto-pass** for backend-only or non-UI projects. | 2 |
240
- | **CP-AP-4** | Project Brief Accumulated | `.prizmkit/plans/project-brief.md` exists at `.prizmkit/plans/` with at least 3 ideas listed. For brownfield: already-implemented items marked `[x]` count toward this total. | 3 |
241
- | **CP-AP-5** | Planning Complete | All project-level context captured: conventions, infrastructure config, tech stack, architecture decisions, project brief finalized | 4 |
242
-
243
- ## Architecture Decision Capture
244
-
245
- After Phase 2, if framework-shaping architecture decisions emerged during planning (tech stack, communication patterns, data model strategies — not individual feature details), read `${SKILL_DIR}/references/architecture-decisions.md` and follow the capture flow. Most sessions will NOT produce architecture decisions — only capture when genuinely impactful.
246
-
247
- **How it works**:
248
- 1. If decisions are captured → append to `AGENTS.md` / `CLAUDE.md` / `CODEBUDDY.md` under `### Architecture Decisions` section
249
- 2. Downstream skills (feature-planner, prizmkit-plan, etc.) read `AGENTS.md` / `CLAUDE.md` / `CODEBUDDY.md` as standard context, so they automatically receive these decisions
250
- 3. Do NOT write architecture decision content directly to `.prizmkit/prizm-docs/root.prizm` — that file is maintained by `prizmkit-prizm-docs` and `prizmkit-retrospective`. (The `RULES:` pointer line is managed by Rules Configuration, not by this section.) If the project needs `.prizmkit/prizm-docs/`, recommend the user run `prizmkit-prizm-docs` init after planning.
251
-
252
- ## Project Brief Accumulation
253
-
254
- During interactive planning, maintain a `.prizmkit/plans/project-brief.md` at `.prizmkit/plans/` as a simple checklist of product ideas.
255
-
256
- → Read `${SKILL_DIR}/references/project-brief-guide.md` for full format and rules.
257
-
258
- ## Session Exit Gate
259
-
260
- Prevent accidental session exit without completing the planning artifacts.
261
-
262
- ### Trigger Conditions
263
-
264
- Activate when ALL true:
265
- - Session goal = `produce`
266
- - `.prizmkit/plans/project-brief.md` has not been written or is incomplete (fewer than 3 ideas listed)
267
-
268
- ### Gate Behavior
269
-
270
- When the session appears to be ending:
271
- 1. **Remind**: "You set out to produce a project plan but `.prizmkit/plans/project-brief.md` isn't complete yet."
272
- 2. Use `AskUserQuestion`: "How would you like to proceed?"
273
- - **Continue to completion (Recommended)** — finish the project brief
274
- - **Save draft & exit** — write current progress as draft to `.prizmkit/planning/`
275
- - **Abandon** — exit without saving
276
-
277
- ## Completion Summary
278
-
279
- After all checkpoints pass, present a summary and end the session:
280
-
281
- 1. **Summary** (as text): List all project-level artifacts produced:
282
- - Project conventions → `AGENTS.md` / `CLAUDE.md` / `CODEBUDDY.md` `### Project Conventions`
283
- - Infrastructure config → `AGENTS.md` / `CLAUDE.md` / `CODEBUDDY.md` `### Infrastructure` (database conventions + deployment config)
284
- - Tech stack → `.prizmkit/config.json`
285
- - Architecture decisions (if any) → `AGENTS.md` / `CLAUDE.md` / `CODEBUDDY.md` `### Architecture Decisions`
286
- - Dev rules (if configured) → `.prizmkit/rules/<layer>-rules.md` (with `root.prizm` `RULES:` pointer)
287
- - Project brief → `.prizmkit/plans/project-brief.md`
288
-
289
- 2. **Suggest possible next steps** (as text, NOT auto-invoked):
290
- > Project-level planning is complete. When you're ready, here are some possible next steps:
291
- > - `feature-planner` — decompose the project into features and generate `feature-list.json`
292
- > - `prizmkit-plan` — start working on a specific feature directly
293
- > - `prizmkit-prizm-docs` — initialize or update project documentation
294
- > - `prizmkit-deploy` — supplement infrastructure config or execute deployment (if AI-assisted deploy was configured)
295
-
296
- **Do NOT invoke any of these.** The user decides what to do next, in their own time.