prizmkit 1.1.100 → 1.1.102

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 (317) 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 +355 -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 +153 -0
  26. package/bundled/dev-pipeline/prizmkit_runtime/runners.py +425 -0
  27. package/bundled/dev-pipeline/prizmkit_runtime/sessions.py +560 -0
  28. package/bundled/dev-pipeline/prizmkit_runtime/status.py +71 -0
  29. package/bundled/dev-pipeline/scripts/generate-bootstrap-prompt.py +51 -36
  30. package/bundled/dev-pipeline/scripts/generate-bugfix-prompt.py +20 -5
  31. package/bundled/dev-pipeline/scripts/generate-recovery-prompt.py +2 -2
  32. package/bundled/dev-pipeline/scripts/parse-stream-progress.py +39 -0
  33. package/bundled/dev-pipeline/templates/agent-prompts/dev-implement.md +8 -2
  34. package/bundled/dev-pipeline/templates/agent-prompts/reviewer-review.md +1 -1
  35. package/bundled/dev-pipeline/templates/bootstrap-prompt.md +6 -2
  36. package/bundled/dev-pipeline/templates/bootstrap-tier1.md +14 -6
  37. package/bundled/dev-pipeline/templates/bootstrap-tier2.md +14 -4
  38. package/bundled/dev-pipeline/templates/bootstrap-tier3.md +14 -4
  39. package/bundled/dev-pipeline/templates/sections/context-budget-rules.md +2 -0
  40. package/bundled/dev-pipeline/templates/sections/log-size-awareness.md +9 -30
  41. package/bundled/dev-pipeline/templates/sections/phase-context-snapshot-agent-suffix.md +15 -7
  42. package/bundled/dev-pipeline/templates/sections/phase-implement-agent.md +42 -29
  43. package/bundled/dev-pipeline/templates/sections/phase-implement-full.md +41 -39
  44. package/bundled/dev-pipeline/templates/sections/phase-implement-lite.md +8 -17
  45. package/bundled/dev-pipeline/templates/sections/phase-prizmkit-test.md +2 -2
  46. package/bundled/dev-pipeline/templates/sections/phase-review-agent.md +1 -3
  47. package/bundled/dev-pipeline/templates/sections/phase-review-full.md +1 -3
  48. package/bundled/dev-pipeline/templates/sections/phase0-test-baseline.md +3 -8
  49. package/bundled/dev-pipeline/templates/sections/test-failure-recovery-agent.md +6 -2
  50. package/bundled/dev-pipeline/templates/sections/test-failure-recovery-lite.md +5 -1
  51. package/bundled/dev-pipeline/tests/test_auto_skip.py +436 -14
  52. package/bundled/dev-pipeline/tests/test_generate_bootstrap_prompt.py +115 -7
  53. package/bundled/dev-pipeline/tests/test_generate_bugfix_prompt.py +40 -0
  54. package/bundled/dev-pipeline/tests/test_python_runner_parity.py +1226 -0
  55. package/bundled/dev-pipeline/tests/test_unified_cli.py +1045 -0
  56. package/bundled/skills/_metadata.json +1 -1
  57. package/bundled/skills/bugfix-pipeline-launcher/SKILL.md +29 -34
  58. package/bundled/skills/bugfix-pipeline-launcher/references/configuration.md +6 -5
  59. package/bundled/skills/feature-pipeline-launcher/SKILL.md +29 -35
  60. package/bundled/skills/feature-pipeline-launcher/references/configuration.md +7 -6
  61. package/bundled/skills/feature-workflow/SKILL.md +3 -6
  62. package/bundled/skills/recovery-workflow/SKILL.md +23 -32
  63. package/bundled/skills/refactor-pipeline-launcher/SKILL.md +29 -35
  64. package/bundled/skills/refactor-pipeline-launcher/references/configuration.md +7 -6
  65. package/bundled/skills/refactor-workflow/SKILL.md +3 -6
  66. package/bundled/templates/hooks/commit-intent.json +2 -2
  67. package/bundled/templates/hooks/diff-prizm-docs.py +226 -0
  68. package/bundled/templates/hooks/prizm-pre-commit.py +45 -0
  69. package/bundled/templates/hooks/validate-prizm-docs.py +240 -0
  70. package/package.json +1 -1
  71. package/src/config.js +42 -19
  72. package/src/external-skills.js +14 -14
  73. package/src/index.js +3 -6
  74. package/src/manifest.js +11 -5
  75. package/src/metadata.js +7 -18
  76. package/src/platforms.js +25 -0
  77. package/src/prompts.js +0 -12
  78. package/src/runtimes.js +18 -11
  79. package/src/scaffold.js +144 -122
  80. package/src/upgrade.js +12 -3
  81. package/bundled/dev-pipeline/launch-bugfix-daemon.sh +0 -500
  82. package/bundled/dev-pipeline/launch-feature-daemon.sh +0 -657
  83. package/bundled/dev-pipeline/launch-refactor-daemon.sh +0 -502
  84. package/bundled/dev-pipeline/lib/branch.sh +0 -326
  85. package/bundled/dev-pipeline/lib/common.sh +0 -1476
  86. package/bundled/dev-pipeline/lib/heartbeat.sh +0 -469
  87. package/bundled/dev-pipeline/reset-bug.sh +0 -425
  88. package/bundled/dev-pipeline/reset-feature.sh +0 -436
  89. package/bundled/dev-pipeline/reset-refactor.sh +0 -423
  90. package/bundled/dev-pipeline/run-bugfix.sh +0 -1430
  91. package/bundled/dev-pipeline/run-feature.sh +0 -1718
  92. package/bundled/dev-pipeline/run-recovery.sh +0 -648
  93. package/bundled/dev-pipeline/run-refactor.sh +0 -1463
  94. package/bundled/dev-pipeline/tests/test-path-resolution.sh +0 -100
  95. package/bundled/dev-pipeline-windows/.env.example +0 -36
  96. package/bundled/dev-pipeline-windows/README.md +0 -30
  97. package/bundled/dev-pipeline-windows/SCHEMA_ANALYSIS.md +0 -533
  98. package/bundled/dev-pipeline-windows/assets/feature-list-example.json +0 -146
  99. package/bundled/dev-pipeline-windows/assets/prizm-dev-team-integration.md +0 -137
  100. package/bundled/dev-pipeline-windows/launch-bugfix-daemon.ps1 +0 -9
  101. package/bundled/dev-pipeline-windows/launch-feature-daemon.ps1 +0 -9
  102. package/bundled/dev-pipeline-windows/launch-refactor-daemon.ps1 +0 -9
  103. package/bundled/dev-pipeline-windows/lib/branch.ps1 +0 -235
  104. package/bundled/dev-pipeline-windows/lib/common.ps1 +0 -991
  105. package/bundled/dev-pipeline-windows/lib/daemon.ps1 +0 -140
  106. package/bundled/dev-pipeline-windows/lib/pipeline.ps1 +0 -1051
  107. package/bundled/dev-pipeline-windows/lib/reset.ps1 +0 -121
  108. package/bundled/dev-pipeline-windows/reset-bug.ps1 +0 -10
  109. package/bundled/dev-pipeline-windows/reset-feature.ps1 +0 -10
  110. package/bundled/dev-pipeline-windows/reset-refactor.ps1 +0 -10
  111. package/bundled/dev-pipeline-windows/run-bugfix.ps1 +0 -9
  112. package/bundled/dev-pipeline-windows/run-feature.ps1 +0 -9
  113. package/bundled/dev-pipeline-windows/run-recovery.ps1 +0 -179
  114. package/bundled/dev-pipeline-windows/run-refactor.ps1 +0 -9
  115. package/bundled/dev-pipeline-windows/scripts/check-session-status.py +0 -301
  116. package/bundled/dev-pipeline-windows/scripts/continuation.py +0 -374
  117. package/bundled/dev-pipeline-windows/scripts/detect-stuck.py +0 -530
  118. package/bundled/dev-pipeline-windows/scripts/generate-bootstrap-prompt.py +0 -2279
  119. package/bundled/dev-pipeline-windows/scripts/generate-bugfix-prompt.py +0 -763
  120. package/bundled/dev-pipeline-windows/scripts/generate-recovery-prompt.py +0 -805
  121. package/bundled/dev-pipeline-windows/scripts/generate-refactor-prompt.py +0 -841
  122. package/bundled/dev-pipeline-windows/scripts/init-bugfix-pipeline.py +0 -316
  123. package/bundled/dev-pipeline-windows/scripts/init-dev-team.py +0 -134
  124. package/bundled/dev-pipeline-windows/scripts/init-pipeline.py +0 -382
  125. package/bundled/dev-pipeline-windows/scripts/init-refactor-pipeline.py +0 -399
  126. package/bundled/dev-pipeline-windows/scripts/parse-stream-progress.py +0 -1362
  127. package/bundled/dev-pipeline-windows/scripts/patch-completion-notes.py +0 -191
  128. package/bundled/dev-pipeline-windows/scripts/prizmkit-test-gate.py +0 -446
  129. package/bundled/dev-pipeline-windows/scripts/update-bug-status.py +0 -1121
  130. package/bundled/dev-pipeline-windows/scripts/update-checkpoint.py +0 -173
  131. package/bundled/dev-pipeline-windows/scripts/update-feature-status.py +0 -1789
  132. package/bundled/dev-pipeline-windows/scripts/update-refactor-status.py +0 -1327
  133. package/bundled/dev-pipeline-windows/scripts/utils.py +0 -542
  134. package/bundled/dev-pipeline-windows/templates/agent-prompts/critic-plan-challenge.md +0 -7
  135. package/bundled/dev-pipeline-windows/templates/agent-prompts/dev-fix.md +0 -7
  136. package/bundled/dev-pipeline-windows/templates/agent-prompts/dev-implement.md +0 -65
  137. package/bundled/dev-pipeline-windows/templates/agent-prompts/dev-resume.md +0 -5
  138. package/bundled/dev-pipeline-windows/templates/agent-prompts/reviewer-review.md +0 -7
  139. package/bundled/dev-pipeline-windows/templates/bootstrap-prompt.md +0 -73
  140. package/bundled/dev-pipeline-windows/templates/bootstrap-tier1.md +0 -589
  141. package/bundled/dev-pipeline-windows/templates/bootstrap-tier2.md +0 -710
  142. package/bundled/dev-pipeline-windows/templates/bootstrap-tier3.md +0 -791
  143. package/bundled/dev-pipeline-windows/templates/bug-fix-list-schema.json +0 -263
  144. package/bundled/dev-pipeline-windows/templates/bugfix-bootstrap-prompt.md +0 -326
  145. package/bundled/dev-pipeline-windows/templates/feature-list-schema.json +0 -237
  146. package/bundled/dev-pipeline-windows/templates/refactor-bootstrap-prompt.md +0 -340
  147. package/bundled/dev-pipeline-windows/templates/refactor-list-schema.json +0 -270
  148. package/bundled/dev-pipeline-windows/templates/sections/ac-verification-checklist.md +0 -7
  149. package/bundled/dev-pipeline-windows/templates/sections/checkpoint-system.md +0 -91
  150. package/bundled/dev-pipeline-windows/templates/sections/context-budget-rules.md +0 -34
  151. package/bundled/dev-pipeline-windows/templates/sections/critical-paths-agent.md +0 -10
  152. package/bundled/dev-pipeline-windows/templates/sections/critical-paths-full.md +0 -12
  153. package/bundled/dev-pipeline-windows/templates/sections/critical-paths-lite.md +0 -7
  154. package/bundled/dev-pipeline-windows/templates/sections/directory-convention-agent.md +0 -8
  155. package/bundled/dev-pipeline-windows/templates/sections/directory-convention-full.md +0 -9
  156. package/bundled/dev-pipeline-windows/templates/sections/directory-convention-lite.md +0 -6
  157. package/bundled/dev-pipeline-windows/templates/sections/failure-capture.md +0 -21
  158. package/bundled/dev-pipeline-windows/templates/sections/feature-context.md +0 -21
  159. package/bundled/dev-pipeline-windows/templates/sections/log-size-awareness.md +0 -41
  160. package/bundled/dev-pipeline-windows/templates/sections/phase-browser-verification-auto.md +0 -283
  161. package/bundled/dev-pipeline-windows/templates/sections/phase-browser-verification-opencli.md +0 -112
  162. package/bundled/dev-pipeline-windows/templates/sections/phase-browser-verification.md +0 -168
  163. package/bundled/dev-pipeline-windows/templates/sections/phase-commit-full.md +0 -82
  164. package/bundled/dev-pipeline-windows/templates/sections/phase-commit.md +0 -75
  165. package/bundled/dev-pipeline-windows/templates/sections/phase-context-snapshot-agent-suffix.md +0 -23
  166. package/bundled/dev-pipeline-windows/templates/sections/phase-context-snapshot-base.md +0 -14
  167. package/bundled/dev-pipeline-windows/templates/sections/phase-context-snapshot-lite-suffix.md +0 -19
  168. package/bundled/dev-pipeline-windows/templates/sections/phase-critic-plan-full.md +0 -63
  169. package/bundled/dev-pipeline-windows/templates/sections/phase-critic-plan.md +0 -42
  170. package/bundled/dev-pipeline-windows/templates/sections/phase-implement-agent.md +0 -44
  171. package/bundled/dev-pipeline-windows/templates/sections/phase-implement-full.md +0 -59
  172. package/bundled/dev-pipeline-windows/templates/sections/phase-implement-lite.md +0 -39
  173. package/bundled/dev-pipeline-windows/templates/sections/phase-plan-agent.md +0 -27
  174. package/bundled/dev-pipeline-windows/templates/sections/phase-plan-lite.md +0 -27
  175. package/bundled/dev-pipeline-windows/templates/sections/phase-prizmkit-test.md +0 -39
  176. package/bundled/dev-pipeline-windows/templates/sections/phase-review-agent.md +0 -35
  177. package/bundled/dev-pipeline-windows/templates/sections/phase-review-full.md +0 -35
  178. package/bundled/dev-pipeline-windows/templates/sections/phase-specify-plan-full.md +0 -73
  179. package/bundled/dev-pipeline-windows/templates/sections/phase0-init.md +0 -13
  180. package/bundled/dev-pipeline-windows/templates/sections/phase0-test-baseline.md +0 -21
  181. package/bundled/dev-pipeline-windows/templates/sections/session-context.md +0 -5
  182. package/bundled/dev-pipeline-windows/templates/sections/subagent-timeout-recovery.md +0 -6
  183. package/bundled/dev-pipeline-windows/templates/sections/task-contract.md +0 -34
  184. package/bundled/dev-pipeline-windows/templates/sections/test-failure-recovery-agent.md +0 -48
  185. package/bundled/dev-pipeline-windows/templates/sections/test-failure-recovery-lite.md +0 -48
  186. package/bundled/dev-pipeline-windows/templates/session-status-schema.json +0 -83
  187. package/bundled/skills-windows/app-planner/SKILL.md +0 -296
  188. package/bundled/skills-windows/app-planner/assets/app-design-guide.md +0 -101
  189. package/bundled/skills-windows/app-planner/references/architecture-decisions.md +0 -52
  190. package/bundled/skills-windows/app-planner/references/brainstorm-guide.md +0 -101
  191. package/bundled/skills-windows/app-planner/references/frontend-design-guide.md +0 -71
  192. package/bundled/skills-windows/app-planner/references/infrastructure-convention-discovery.md +0 -108
  193. package/bundled/skills-windows/app-planner/references/project-brief-guide.md +0 -82
  194. package/bundled/skills-windows/app-planner/references/project-conventions-discovery.md +0 -59
  195. package/bundled/skills-windows/app-planner/references/project-state-detection.md +0 -90
  196. package/bundled/skills-windows/app-planner/references/red-team-checklist.md +0 -40
  197. package/bundled/skills-windows/app-planner/references/rules/backend/derivation-rules.md +0 -619
  198. package/bundled/skills-windows/app-planner/references/rules/backend/fixed-rules.md +0 -285
  199. package/bundled/skills-windows/app-planner/references/rules/backend/question-bank.md +0 -249
  200. package/bundled/skills-windows/app-planner/references/rules/backend/question-manifest.json +0 -46
  201. package/bundled/skills-windows/app-planner/references/rules/backend/template.md +0 -173
  202. package/bundled/skills-windows/app-planner/references/rules/database/derivation-rules.md +0 -382
  203. package/bundled/skills-windows/app-planner/references/rules/database/fixed-rules.md +0 -211
  204. package/bundled/skills-windows/app-planner/references/rules/database/question-bank.md +0 -184
  205. package/bundled/skills-windows/app-planner/references/rules/database/question-manifest.json +0 -39
  206. package/bundled/skills-windows/app-planner/references/rules/database/template.md +0 -158
  207. package/bundled/skills-windows/app-planner/references/rules/frontend/derivation-rules.md +0 -820
  208. package/bundled/skills-windows/app-planner/references/rules/frontend/fixed-rules.md +0 -188
  209. package/bundled/skills-windows/app-planner/references/rules/frontend/question-bank.md +0 -319
  210. package/bundled/skills-windows/app-planner/references/rules/frontend/question-manifest.json +0 -51
  211. package/bundled/skills-windows/app-planner/references/rules/frontend/template.md +0 -339
  212. package/bundled/skills-windows/app-planner/references/rules/mobile/derivation-rules.md +0 -649
  213. package/bundled/skills-windows/app-planner/references/rules/mobile/fixed-rules.md +0 -290
  214. package/bundled/skills-windows/app-planner/references/rules/mobile/question-bank.md +0 -232
  215. package/bundled/skills-windows/app-planner/references/rules/mobile/question-manifest.json +0 -47
  216. package/bundled/skills-windows/app-planner/references/rules/mobile/template.md +0 -175
  217. package/bundled/skills-windows/app-planner/references/rules-configuration.md +0 -46
  218. package/bundled/skills-windows/bug-fix-workflow/SKILL.md +0 -379
  219. package/bundled/skills-windows/bug-fix-workflow/references/bug-diagnosis.md +0 -41
  220. package/bundled/skills-windows/bug-planner/SKILL.md +0 -402
  221. package/bundled/skills-windows/bug-planner/assets/bug-confirmation-template.md +0 -43
  222. package/bundled/skills-windows/bug-planner/references/critic-and-verification.md +0 -44
  223. package/bundled/skills-windows/bug-planner/references/error-recovery.md +0 -73
  224. package/bundled/skills-windows/bug-planner/references/input-formats.md +0 -53
  225. package/bundled/skills-windows/bug-planner/references/schema-validation.md +0 -25
  226. package/bundled/skills-windows/bug-planner/references/severity-rules.md +0 -16
  227. package/bundled/skills-windows/bug-planner/scripts/validate-bug-list.py +0 -322
  228. package/bundled/skills-windows/bugfix-pipeline-launcher/SKILL.md +0 -304
  229. package/bundled/skills-windows/bugfix-pipeline-launcher/references/configuration.md +0 -84
  230. package/bundled/skills-windows/feature-pipeline-launcher/SKILL.md +0 -381
  231. package/bundled/skills-windows/feature-pipeline-launcher/references/configuration.md +0 -67
  232. package/bundled/skills-windows/feature-pipeline-launcher/scripts/preflight-check.py +0 -462
  233. package/bundled/skills-windows/feature-planner/SKILL.md +0 -397
  234. package/bundled/skills-windows/feature-planner/assets/evaluation-guide.md +0 -64
  235. package/bundled/skills-windows/feature-planner/assets/planning-guide.md +0 -214
  236. package/bundled/skills-windows/feature-planner/references/browser-interaction.md +0 -59
  237. package/bundled/skills-windows/feature-planner/references/completeness-review.md +0 -57
  238. package/bundled/skills-windows/feature-planner/references/decomposition-patterns.md +0 -75
  239. package/bundled/skills-windows/feature-planner/references/error-recovery.md +0 -90
  240. package/bundled/skills-windows/feature-planner/references/incremental-feature-planning.md +0 -112
  241. package/bundled/skills-windows/feature-planner/references/new-project-planning.md +0 -85
  242. package/bundled/skills-windows/feature-planner/scripts/validate-and-generate.py +0 -1020
  243. package/bundled/skills-windows/feature-workflow/SKILL.md +0 -374
  244. package/bundled/skills-windows/feature-workflow/references/brainstorm-guide.md +0 -137
  245. package/bundled/skills-windows/prizm-kit/SKILL.md +0 -93
  246. package/bundled/skills-windows/prizmkit-code-review/SKILL.md +0 -161
  247. package/bundled/skills-windows/prizmkit-code-review/references/dev-agent-prompt.md +0 -30
  248. package/bundled/skills-windows/prizmkit-code-review/references/review-report-template.md +0 -31
  249. package/bundled/skills-windows/prizmkit-code-review/references/reviewer-agent-prompt.md +0 -66
  250. package/bundled/skills-windows/prizmkit-code-review/scripts/check_loop.py +0 -186
  251. package/bundled/skills-windows/prizmkit-committer/SKILL.md +0 -89
  252. package/bundled/skills-windows/prizmkit-deploy/SKILL.md +0 -444
  253. package/bundled/skills-windows/prizmkit-deploy/references/ci-cd-workflows.md +0 -115
  254. package/bundled/skills-windows/prizmkit-deploy/references/cloud-platform-deploy.md +0 -93
  255. package/bundled/skills-windows/prizmkit-deploy/references/data-safety-examples.md +0 -120
  256. package/bundled/skills-windows/prizmkit-deploy/references/database-setup.md +0 -46
  257. package/bundled/skills-windows/prizmkit-deploy/references/deploy-config-schema.md +0 -148
  258. package/bundled/skills-windows/prizmkit-deploy/references/deploy-history-schema.md +0 -62
  259. package/bundled/skills-windows/prizmkit-deploy/references/deployment-modes.md +0 -50
  260. package/bundled/skills-windows/prizmkit-deploy/references/direct-upload.md +0 -26
  261. package/bundled/skills-windows/prizmkit-deploy/references/dns-setup.md +0 -42
  262. package/bundled/skills-windows/prizmkit-deploy/references/docker-deploy.md +0 -31
  263. package/bundled/skills-windows/prizmkit-deploy/references/firewall-setup.md +0 -37
  264. package/bundled/skills-windows/prizmkit-deploy/references/live-validation-notes.md +0 -21
  265. package/bundled/skills-windows/prizmkit-deploy/references/nginx-blue-green.md +0 -59
  266. package/bundled/skills-windows/prizmkit-deploy/references/ssh-bootstrap-flow.md +0 -49
  267. package/bundled/skills-windows/prizmkit-deploy/references/ssh-execution-flow.md +0 -41
  268. package/bundled/skills-windows/prizmkit-deploy/references/ssh-takeover.md +0 -20
  269. package/bundled/skills-windows/prizmkit-deploy/references/ssl-setup.md +0 -56
  270. package/bundled/skills-windows/prizmkit-implement/SKILL.md +0 -71
  271. package/bundled/skills-windows/prizmkit-init/SKILL.md +0 -356
  272. package/bundled/skills-windows/prizmkit-init/assets/project-brief-template.md +0 -82
  273. package/bundled/skills-windows/prizmkit-init/references/config-schema.md +0 -70
  274. package/bundled/skills-windows/prizmkit-init/references/rules/layer-detection.md +0 -41
  275. package/bundled/skills-windows/prizmkit-init/references/tech-stack-catalog.md +0 -13
  276. package/bundled/skills-windows/prizmkit-init/references/update-supplement.md +0 -9
  277. package/bundled/skills-windows/prizmkit-plan/SKILL.md +0 -102
  278. package/bundled/skills-windows/prizmkit-plan/assets/plan-template.md +0 -115
  279. package/bundled/skills-windows/prizmkit-plan/assets/spec-template.md +0 -73
  280. package/bundled/skills-windows/prizmkit-plan/references/clarify-guide.md +0 -67
  281. package/bundled/skills-windows/prizmkit-plan/references/examples.md +0 -85
  282. package/bundled/skills-windows/prizmkit-plan/references/verification-checklist.md +0 -60
  283. package/bundled/skills-windows/prizmkit-prizm-docs/SKILL.md +0 -129
  284. package/bundled/skills-windows/prizmkit-prizm-docs/assets/prizm-docs-format.md +0 -613
  285. package/bundled/skills-windows/prizmkit-prizm-docs/references/op-init.md +0 -45
  286. package/bundled/skills-windows/prizmkit-prizm-docs/references/op-rebuild.md +0 -15
  287. package/bundled/skills-windows/prizmkit-prizm-docs/references/op-status.md +0 -14
  288. package/bundled/skills-windows/prizmkit-prizm-docs/references/op-update.md +0 -19
  289. package/bundled/skills-windows/prizmkit-prizm-docs/references/op-validate.md +0 -17
  290. package/bundled/skills-windows/prizmkit-retrospective/SKILL.md +0 -87
  291. package/bundled/skills-windows/prizmkit-retrospective/references/knowledge-injection-steps.md +0 -50
  292. package/bundled/skills-windows/prizmkit-retrospective/references/structural-sync-steps.md +0 -43
  293. package/bundled/skills-windows/prizmkit-test/SKILL.md +0 -227
  294. package/bundled/skills-windows/prizmkit-test/references/boundary-coverage-protocol.md +0 -220
  295. package/bundled/skills-windows/prizmkit-test/references/examples.md +0 -143
  296. package/bundled/skills-windows/prizmkit-test/references/service-boundary-test-catalog.md +0 -225
  297. package/bundled/skills-windows/prizmkit-test/references/test-generation-steps.md +0 -109
  298. package/bundled/skills-windows/prizmkit-test/references/test-report-template.md +0 -111
  299. package/bundled/skills-windows/prizmkit-test/scripts/validate_boundary_report.py +0 -347
  300. package/bundled/skills-windows/recovery-workflow/SKILL.md +0 -355
  301. package/bundled/skills-windows/recovery-workflow/evals/evals.json +0 -46
  302. package/bundled/skills-windows/recovery-workflow/references/detection.md +0 -58
  303. package/bundled/skills-windows/recovery-workflow/scripts/detect-recovery-state.py +0 -544
  304. package/bundled/skills-windows/refactor-pipeline-launcher/SKILL.md +0 -346
  305. package/bundled/skills-windows/refactor-pipeline-launcher/references/configuration.md +0 -72
  306. package/bundled/skills-windows/refactor-planner/SKILL.md +0 -398
  307. package/bundled/skills-windows/refactor-planner/assets/planning-guide.md +0 -292
  308. package/bundled/skills-windows/refactor-planner/references/behavior-preservation.md +0 -301
  309. package/bundled/skills-windows/refactor-planner/references/fast-path.md +0 -59
  310. package/bundled/skills-windows/refactor-planner/references/planning-phases.md +0 -135
  311. package/bundled/skills-windows/refactor-planner/references/refactor-scoping-guide.md +0 -221
  312. package/bundled/skills-windows/refactor-planner/scripts/validate-and-generate-refactor.py +0 -858
  313. package/bundled/skills-windows/refactor-workflow/SKILL.md +0 -343
  314. package/bundled/skills-windows/refactor-workflow/references/brainstorm-guide.md +0 -116
  315. package/bundled/templates/hooks/diff-prizm-docs.sh +0 -158
  316. package/bundled/templates/hooks/prizm-pre-commit.sh +0 -108
  317. package/bundled/templates/hooks/validate-prizm-docs.sh +0 -139
@@ -1,101 +0,0 @@
1
- # App Design Reference Guide
2
-
3
- This guide provides structured templates, decision matrices, and decomposition patterns for new application planning. Use during the vision and architecture phases of app-planner sessions.
4
-
5
- ---
6
-
7
- ## 1. App Vision Template
8
-
9
- Use this template to capture the app vision during the initial planning phase.
10
-
11
- ```markdown
12
- # App Vision: [APP_NAME]
13
-
14
- ## Problem Statement
15
- [What problem does this app solve?]
16
-
17
- ## Target Users
18
- - Primary: [Who are the main users?]
19
- - Secondary: [Any secondary user types?]
20
-
21
- ## Core Value Proposition
22
- [What makes this app valuable? What's the "elevator pitch"?]
23
-
24
- ## Key Differentiators
25
- [What sets this apart from existing solutions?]
26
- ```
27
-
28
- ### Guidance
29
-
30
- - **Problem Statement**: Should describe a real pain point in 1-3 sentences. Avoid vague statements like "improve productivity." Be specific about who suffers and why.
31
- - **Target Users**: Identify at least one primary user persona. Secondary users are optional but useful for prioritization decisions later.
32
- - **Core Value Proposition**: Should be expressible in one sentence. If it takes a paragraph, the scope is likely too broad.
33
- - **Key Differentiators**: List 1-3 concrete differentiators. If none exist, reconsider whether the app needs to be built.
34
-
35
- ---
36
-
37
- ## 2. Tech Stack Decision Matrix
38
-
39
- Use these tables to guide tech stack selection based on project requirements.
40
-
41
- ### Frontend Frameworks
42
-
43
- | Framework | Best For | Ecosystem |
44
- |-----------|----------|-----------|
45
- | Next.js | Full-stack React, SSR, API routes | React ecosystem, Vercel |
46
- | Nuxt 3 | Full-stack Vue, SSR | Vue ecosystem |
47
- | SvelteKit | Performance-focused, smaller teams | Svelte ecosystem |
48
- | Remix | Nested routes, data loading | React ecosystem |
49
-
50
- ### Backend Frameworks
51
-
52
- | Framework | Best For | Language |
53
- |-----------|----------|----------|
54
- | Express.js | Flexible, minimal | Node.js/TS |
55
- | FastAPI | High-perf APIs, Python ML | Python |
56
- | NestJS | Enterprise, structured | Node.js/TS |
57
- | Django | Batteries-included, admin | Python |
58
- | Go (Gin/Echo) | High concurrency | Go |
59
-
60
- ### Databases
61
-
62
- | Database | Best For | Type |
63
- |----------|----------|------|
64
- | PostgreSQL | Complex queries, ACID | Relational |
65
- | MySQL | Read-heavy, simple | Relational |
66
- | MongoDB | Flexible schema, documents | Document |
67
- | SQLite | Embedded, prototyping | Relational |
68
- | Redis | Caching, sessions, pub/sub | Key-Value |
69
-
70
- ### Design Systems
71
-
72
- | System | Best For | Framework |
73
- |--------|----------|-----------|
74
- | shadcn/ui | Modern, customizable | React/Next.js |
75
- | Ant Design | Enterprise, data-heavy | React |
76
- | Material UI | Google-style, full-featured | React |
77
- | Vuetify | Material Design for Vue | Vue |
78
- | Tailwind CSS | Utility-first, any framework | Any |
79
-
80
- ### Common Service Patterns
81
-
82
- | Need | Options |
83
- |------|---------|
84
- | Auth | NextAuth.js, Auth0, Clerk, Supabase Auth, custom JWT |
85
- | Real-time | WebSocket, Socket.io, SSE, Supabase Realtime |
86
- | File Storage | S3, Cloudflare R2, Supabase Storage |
87
- | Email | SendGrid, Resend, Postmark |
88
- | Payments | Stripe, LemonSqueezy |
89
- | Search | Algolia, Meilisearch, Elasticsearch |
90
-
91
- ### Selection Heuristics
92
-
93
- - If the user has no strong preference, default to **Next.js + PostgreSQL + shadcn/ui + Tailwind CSS** as a general-purpose stack.
94
- - If the project involves ML/AI backends, prefer **FastAPI** on the backend.
95
- - If the project requires high concurrency with minimal resource usage, consider **Go**.
96
- - If rapid prototyping is the goal, consider **SQLite** initially with a migration path to PostgreSQL.
97
- - Always ask about deployment preferences (Vercel, AWS, self-hosted) as this influences framework choice.
98
-
99
-
100
-
101
- > **Note**: Feature decomposition patterns (CRUD, SaaS, Social, E-commerce) have been moved to `feature-planner/references/decomposition-patterns.md`. Load that reference during feature decomposition phase.
@@ -1,52 +0,0 @@
1
- # Architecture Decision Capture
2
-
3
- During planning, key **framework-level** architectural decisions may emerge. When they do, capture them in the project instruction file so all future AI sessions have this context.
4
-
5
- ## What Qualifies (ALL must apply)
6
-
7
- Only capture decisions that are **framework-shaping** — NOT individual feature details. Qualifying categories:
8
-
9
- | Category | Examples |
10
- |----------|----------|
11
- | Tech stack choices | PostgreSQL over MongoDB, React over Vue, Node.js runtime |
12
- | Communication patterns | REST vs GraphQL, WebSocket vs SSE vs polling |
13
- | Architectural patterns | Monorepo, microservices, monolith, event-driven |
14
- | Data model strategies | Relational vs document, event sourcing, CQRS |
15
- | Security architecture | JWT vs session, OAuth provider, RBAC model |
16
-
17
- **Do NOT capture**: individual feature implementation details, UI component choices, specific API endpoint designs, or anything scoped to a single feature.
18
-
19
- **This is conditional** — most planning sessions will NOT produce architecture decisions. Only capture when genuinely impactful decisions are made during the discussion.
20
-
21
- ## When to Capture
22
-
23
- After Phase 2 (Confirm constraints and tech assumptions), before Phase 3 (Capture architecture decisions and finalize project brief). At this point decisions are settled.
24
-
25
- ## How to Capture
26
-
27
- 1. **Detect platform** — determine which project instruction file to update:
28
- - If `.prizmkit/manifest.json` exists, read `platform` and use it as the source of truth.
29
- - `codex` → append to `AGENTS.md`
30
- - `claude` → append to `CLAUDE.md`
31
- - `codebuddy` → append to `CODEBUDDY.md`
32
- - `all` → append to all three files. Legacy manifests may contain `both`; treat it as read-only compatibility and append to `CLAUDE.md` and `CODEBUDDY.md` only when encountered.
33
- - Only when the manifest is missing, fall back to PrizmKit-owned install artifacts: `.codex/agents/*.toml`, `.claude/commands/prizm-kit.md`, `.codebuddy/skills/prizm-kit/SKILL.md`.
34
- - Do not treat a generic `.agents/` directory as Codex; it may contain unrelated third-party skills.
35
- - If no platform can be determined, skip (no project instruction file).
36
-
37
- 2. **Check for existing section** — read the target file and look for `### Architecture Decisions` heading:
38
- - If heading exists → append new entries below it (avoid duplicates with existing entries)
39
- - If heading does not exist → create it at the end of the file
40
-
41
- 3. **Format** — one line per decision, no feature IDs:
42
- ```markdown
43
- ### Architecture Decisions
44
- - WebSocket for real-time: sub-second latency required for collaboration features
45
- - PostgreSQL: relational data model with complex queries, ACID compliance needed
46
- - Monorepo structure: shared types between frontend and backend
47
- ```
48
-
49
- 4. **User confirmation** — before writing, show the collected decisions and ask:
50
- > "These architecture decisions were identified during planning. Record them to [AGENTS.md / CLAUDE.md / CODEBUDDY.md]? (Y/n)"
51
-
52
- If user declines, skip without further prompting.
@@ -1,101 +0,0 @@
1
- # Brainstorm Guide — Structured Ideation Before Implementation
2
-
3
- > Separate WHAT from HOW. Explore the problem space before committing to a solution.
4
-
5
- This guide provides the structured brainstorming framework used in Phase 1 of the workflow.
6
- The AI facilitates this process as a **design collaborator**, not a builder.
7
-
8
- ## Four Phases
9
-
10
- ### Phase A: Assess Clarity
11
-
12
- Evaluate the user's initial goal statement:
13
-
14
- - **Clear** — Specific and actionable (e.g., "add JWT auth to the API")
15
- - **Vague** — Direction exists but needs narrowing (e.g., "improve security")
16
- - **Exploring** — No firm goal yet, just a direction (e.g., "something with auth")
17
-
18
- If **vague** or **exploring**, ask follow-up questions to sharpen the goal.
19
- Do NOT proceed until there is a concrete, testable problem statement (one sentence).
20
-
21
- ### Phase B: Understand the Idea
22
-
23
- Answer these questions (use codebase exploration as needed):
24
-
25
- 1. **What problem does this solve?** — State the pain point in concrete terms.
26
- 2. **Who benefits?** — End users, developers, operators?
27
- 3. **What exists today?** — Current state, prior art in the codebase, adjacent systems.
28
- 4. **What constraints matter?** — Performance, compatibility, security, timeline.
29
-
30
- Non-functional requirements to explicitly clarify or propose defaults for:
31
- - Performance expectations
32
- - Scale (users, data, traffic)
33
- - Security or privacy constraints
34
- - Reliability / availability needs
35
- - Maintenance and ownership expectations
36
-
37
- If the user is unsure on any point, propose reasonable defaults and clearly mark them as **assumptions**.
38
-
39
- Summarize findings before moving on. If anything is unclear, ask.
40
-
41
- ### Phase C: Explore Approaches
42
-
43
- Generate **2-3 distinct approaches**. For each:
44
-
45
- - **Name** — Short label (e.g., "JWT middleware", "OAuth proxy")
46
- - **How it works** — 2-3 sentences
47
- - **Pros** — What it gets right
48
- - **Cons** — What it gets wrong or defers
49
- - **Effort** — Rough scope (small / medium / large)
50
-
51
- #### Adversarial Critique (Red Team)
52
-
53
- Before asking the user to choose, stress-test each approach using the red team checklist
54
- (`references/red-team-checklist.md`):
55
-
56
- 1. What breaks first?
57
- 2. What's the hidden cost?
58
- 3. What assumption is wrong?
59
- 4. Who disagrees?
60
-
61
- Mark any approach that fails 2+ red team questions as **HIGH RISK**.
62
- If all approaches fail, generate a hybrid addressing the weaknesses.
63
-
64
- Present the comparison and let the user pick an approach or request a hybrid.
65
-
66
- ### Phase D: Capture Design
67
-
68
- Produce a structured summary:
69
-
70
- ```markdown
71
- ## Problem Statement
72
- [One sentence, testable]
73
-
74
- ## Approaches Considered
75
- [2-3 approaches with pros/cons/effort]
76
-
77
- ## Selected Approach
78
- [User's choice + rationale]
79
-
80
- ## Assumptions
81
- [All assumptions explicitly listed]
82
-
83
- ## Open Questions
84
- [Unresolved items, if any]
85
-
86
- ## Key Decisions
87
- [What was decided and why — alternatives and rationale]
88
- ```
89
-
90
- This summary becomes the input for the next phase (specification or planning).
91
-
92
- ---
93
-
94
- ## Rules
95
-
96
- - Ask as many questions as needed — no rushing
97
- - One topic at a time for complex clarifications
98
- - Prefer multiple-choice questions when possible
99
- - Assumptions must be explicit, never silent
100
- - YAGNI ruthlessly — avoid premature complexity
101
- - Do NOT implement, code, or modify behavior during brainstorming
@@ -1,71 +0,0 @@
1
- # Frontend Design Guide — High-Quality UI Implementation
2
-
3
- > Create distinctive, production-grade frontend interfaces that avoid generic "AI slop" aesthetics.
4
-
5
- **app-planner context**: In the planning phase, use this guide to establish **design direction decisions** (aesthetic tone, typography approach, color strategy, layout philosophy). Do NOT produce CSS, code, or implementation artifacts — capture the design direction as decisions in the project instruction file (`AGENTS.md` / `CLAUDE.md` / `CODEBUDDY.md`). Downstream implementation skills will consume these decisions when building features.
6
-
7
- Load this guide **only when the feature involves frontend/UI work**. Skip for backend-only or infrastructure features.
8
-
9
- ## Context Gathering (Required Before Design)
10
-
11
- Before any UI design work, gather:
12
- - **Target audience**: Who uses this product and in what context?
13
- - **Use cases**: What jobs are they trying to get done?
14
- - **Brand personality/tone**: How should the interface feel?
15
-
16
- You cannot infer this from codebase alone — ask the user.
17
-
18
- ## Design Direction
19
-
20
- Commit to a **bold** aesthetic direction:
21
- - **Purpose**: What problem does this interface solve? Who uses it?
22
- - **Tone**: Pick an intentional aesthetic — minimalist, editorial, brutalist, organic, luxury, playful, retro-futuristic, industrial, art deco, etc.
23
- - **Differentiation**: What makes this unforgettable?
24
-
25
- ## Typography
26
-
27
- - Choose distinctive fonts. Pair a display font with a refined body font.
28
- - Use a modular type scale with fluid sizing (`clamp()`)
29
- - Vary font weights and sizes for clear visual hierarchy
30
- - Avoid overused fonts: Inter, Roboto, Arial, Open Sans, system defaults
31
- - Avoid monospace as lazy shorthand for "technical" vibes
32
-
33
- ## Color & Theme
34
-
35
- - Use modern CSS color functions (oklch, color-mix, light-dark)
36
- - Tint neutrals toward brand hue for subconscious cohesion
37
- - Avoid: pure black (#000) or pure white (#fff) — always tint
38
- - Avoid: the AI palette (cyan-on-dark, purple-to-blue gradients, neon accents on dark)
39
- - Avoid: gradient text for "impact", default dark mode with glowing accents
40
-
41
- ## Layout & Space
42
-
43
- - Create visual rhythm through varied spacing — not uniform padding
44
- - Use fluid spacing with `clamp()` that breathes on larger screens
45
- - Embrace asymmetry and unexpected compositions
46
- - Avoid: wrapping everything in cards, nesting cards, identical card grids
47
- - Avoid: centering everything, uniform spacing
48
-
49
- ## Motion
50
-
51
- - Focus on high-impact moments: one well-orchestrated page load > scattered micro-interactions
52
- - Use exponential easing for natural deceleration
53
- - Use `transform` and `opacity` only — avoid animating layout properties
54
- - Avoid: bounce/elastic easing, excessive animations
55
-
56
- ## Interaction
57
-
58
- - Use progressive disclosure — start simple, reveal complexity through interaction
59
- - Design empty states that teach the interface
60
- - Use optimistic UI — update immediately, sync later
61
- - Avoid: making every button primary, redundant headers
62
-
63
- ## Responsive
64
-
65
- - Use container queries (`@container`) for component-level responsiveness
66
- - Adapt the interface for different contexts, don't just shrink it
67
- - Never hide critical functionality on mobile
68
-
69
- ## The AI Slop Test
70
-
71
- If you showed this interface to someone and said "AI made this", would they believe you immediately? If yes, redesign. A distinctive interface should make someone ask "how was this made?" not "which AI made this?"
@@ -1,108 +0,0 @@
1
- # Infrastructure Convention Discovery
2
-
3
- Detailed Q&A flows for database, deployment, and cloud services conventions during app planning.
4
-
5
- ## Infrastructure Section Check
6
-
7
- Check `AGENTS.md` / `CLAUDE.md` / `CODEBUDDY.md` for `### Infrastructure` section:
8
-
9
- - If `### Infrastructure` section does not exist → this project was not initialized with prizmkit-init's Phase 4.6. Treat as if both database and deployment are undecided — run full inquiry below.
10
- - If `<!-- infrastructure: deferred -->` → user explicitly skipped at init time. Ask: "During project init you deferred infrastructure decisions. Would you like to configure them now?" (options: "Yes — configure now (Recommended)", "Skip — decide later")
11
- - If `<!-- database: deferred -->` → only database was deferred, run database inquiry only
12
- - If `<!-- deployment: deferred -->` or deployment section is missing → run deployment inquiry only
13
- - If both sections exist with real values → read existing config, present as "Already decided", ask: "Anything to change?" If no → skip to next phase.
14
-
15
- ## Database Convention Deep Inquiry
16
-
17
- AI-driven, context-aware — select from pool based on project. AI analyzes the detected database type, ORM, and tech stack, then selects relevant questions from this pool. Do NOT ask all questions — only those that matter for THIS project:
18
-
19
- 1. **Table naming convention**: snake_case / camelCase / PascalCase; prefix convention (e.g., `t_`, `tbl_`, none). For brownfield: detect from existing migration files or schema and present as "Already decided" with override option.
20
- 2. **Field naming convention**: snake_case / camelCase; common fields convention — are `created_at`, `updated_at`, `deleted_at` (soft delete) required on all tables? What about `id` vs `uuid` column naming?
21
- 3. **Migration conventions**:
22
- - File storage directory (e.g., `db/migrations/`, `prisma/migrations/`, `alembic/versions/`)
23
- - Naming rule (timestamp prefix `20240101_create_users`, sequence prefix `001_create_users`, ORM auto-generated)
24
- - Migration tool (ORM built-in / Flyway / Liquibase / golang-migrate / manual SQL)
25
- - For brownfield: detect existing migration directory and naming pattern, present as "Already decided"
26
- 4. **Primary key strategy**: Auto-increment integer / UUID v4 / ULID / Snowflake ID / Other
27
- 5. **Index naming convention**: e.g., `idx_{table}_{column}`, `ix_{table}_{column}`, or ORM default
28
- 6. **Environment separation**: dev/test/prod database separation strategy; connection config management (env vars / config files / secret manager)
29
-
30
- Use `AskUserQuestion` for each batch (up to 4 questions per call). For brownfield projects, show detected patterns as recommended options. Each question MUST include a "Skip — decide later" option.
31
-
32
- ## Deployment Configuration Deep Inquiry
33
-
34
- AI-driven, context-aware. Read the existing `### Infrastructure` → `#### Deployment` section for the deployment target, then ask relevant follow-up questions:
35
-
36
- 1. **Deployment target refinement**:
37
- - Own server: SSH access method (key-based / password), OS (Ubuntu / CentOS / other), Docker installed?
38
- - SaaS platform: specific platform confirmation, existing account and project? Already deployed before?
39
- - Container: orchestration method (Docker Compose / K8s / ECS / Cloud Run)
40
- 2. **Existing infrastructure**:
41
- - Remote machine availability — IP/domain? Existing server configuration?
42
- - Existing CI/CD pipeline — GitHub Actions / GitLab CI / Jenkins / other? Already configured?
43
- - Domain name and SSL — already owned? DNS provider? SSL management (Let's Encrypt / platform-managed / other)?
44
- 3. **AI-assisted deployment**:
45
- - Whether AI should help execute deploy commands (via SaaS CLI like `vercel deploy`, `fly deploy`, `railway up`, `docker push`, or SSH remote commands)
46
- - If yes: collect necessary info — API token storage method (env var name, e.g., `VERCEL_TOKEN`), project name/ID on the platform, target environment (production / staging)
47
- - Explicitly inform: "AI will show each command and wait for your confirmation before executing"
48
- 4. **Environment variable management**: production env var strategy (SaaS platform dashboard / `.env.production` committed to repo / secret manager like AWS Secrets Manager, Vault / CI/CD secrets)
49
-
50
- Use `AskUserQuestion` for each batch. Each question MUST include a "Skip — decide later" option.
51
-
52
- ## Cloud Services Deep Inquiry
53
-
54
- Two-round AskUserQuestion.
55
-
56
- *Round 1 — Cloud Vendors* (multi-select via `AskUserQuestion`):
57
- - "Which cloud vendors will this project integrate with?"
58
- - Options: `AWS`, `Aliyun`, `Tencent Cloud`, `Cloudflare`, `Vercel`, `Other` (free text), `None — skip`
59
- - If `None — skip`, write `<!-- cloud-services: none -->` to the `#### Cloud Services` subsection and exit this inquiry.
60
-
61
- *Round 2 — Service Types* (multi-select, only if Round 1 returned any vendor):
62
- - "Which types of cloud services will you use?"
63
- - Options: `Object Storage (COS/S3/OSS)`, `CDN`, `Managed Database`, `Functions/Serverless`, `Auth (OAuth/JWT/IDaaS)`, `Domain & DNS`, `Email`, `SMS`, `Payment`, `AI API (OpenAI/Anthropic/...)`, `Other`
64
- - The list is multi-select. Skip the question entirely if user picks "None" in Round 1.
65
-
66
- *After both rounds, write to `#### Cloud Services`*:
67
- - For each chosen (vendor x service) pair, append a row to the subsection
68
- - **Do NOT** prompt for env var names, credentials, region, or SDK details — those belong to `prizmkit-deploy`'s scope, not planning
69
- - If the user is unsure of the mapping, store the vendors and service types separately; deploy skill can refine later
70
-
71
- ## Output Format
72
-
73
- After infrastructure inquiry, update the `### Infrastructure` section in the project instruction file:
74
-
75
- ```markdown
76
- ### Infrastructure
77
-
78
- #### Database
79
- - **Type**: [database type]
80
- - **ORM**: [ORM name]
81
- - **Table naming**: [convention, e.g., snake_case, no prefix]
82
- - **Field naming**: [convention]; common fields: [list]
83
- - **Primary key**: [strategy]
84
- - **Migration directory**: [path]
85
- - **Migration naming**: [rule]
86
- - **Index naming**: [convention]
87
- - **Environment separation**: [strategy]
88
-
89
- #### Deployment
90
- - **Target**: [platform/method]
91
- - **AI-assisted deploy**: [yes/no]
92
- - **Domain**: [domain or "not configured"]
93
- - **SSL**: [management method]
94
- - **CI/CD**: [tool or "not configured"]
95
- - **Env var management**: [strategy]
96
-
97
- #### Deployment Credentials Reference
98
- - [platform]: [token/auth method description]
99
-
100
- #### Cloud Services
101
- - **Vendors**: [comma-separated list, e.g., "AWS, Cloudflare" or "none"]
102
- - **Services**:
103
- - [vendor]: [service type] — [optional one-line note, e.g., "user-upload images"]
104
- - [vendor]: [service type]
105
- <!-- If user picked "None" in Round 1, replace this block with: cloud-services: none -->
106
- ```
107
-
108
- Items still marked "Skip — decide later" remain as `<!-- [topic]: deferred -->` in the selected project instruction file for `prizmkit-deploy` to pick up later.
@@ -1,82 +0,0 @@
1
- # Project Brief Template
2
-
3
- > Capture the user's key product ideas as a simple checklist. Each line is one idea. This file is referenced by `root.prizm` (`PROJECT_BRIEF:`) so every new AI session automatically knows the project's goals.
4
-
5
- ## File Location
6
-
7
- `.prizmkit/plans/project-brief.md`
8
-
9
- ## Format
10
-
11
- ```markdown
12
- # Project Brief
13
-
14
- [ ] Core product idea or constraint
15
- [ ] Another product idea
16
- [ ] Third idea — one sentence, no sub-bullets
17
- [x] Already implemented feature -> src/feature/, src/utils/helper.ts
18
- ```
19
-
20
- ## Rules
21
-
22
- 1. **First line**: `# Project Brief`
23
- 2. **Remaining lines**: One idea per line, prefixed with `[ ]` (pending) or `[x]` (done)
24
- 3. Each line is **one sentence** — no paragraphs, no sub-bullets, no grouping headers
25
- 4. Language: match the user's language (Chinese or English)
26
- 5. **Size limit**: 500 words max (this file is injected into every session's context window)
27
- 6. **Completion marking** (mandatory): When a brief item is implemented:
28
- - Change `[ ]` to `[x]`
29
- - Append `->` followed by the **key file or directory paths** that implement it
30
- - List the most important 1-3 paths only (entry point, core module, or directory) — not every touched file
31
- - Example: `[x] User authentication with OAuth -> src/auth/, src/middleware/auth.ts`
32
- - This lets future AI sessions instantly locate the implementation without re-scanning
33
-
34
- ## Brownfield Init
35
-
36
- When initializing an existing project, AI infers the brief from:
37
- - Generated `root.prizm` (tech stack, module structure)
38
- - `README.md` (if exists)
39
- - Package metadata (`package.json` description, `pyproject.toml`, etc.)
40
-
41
- Then presents the draft to the user for confirmation and editing.
42
-
43
- ## Greenfield Init
44
-
45
- When initializing a new/empty project, use **progressive questioning** to fully understand the user's intent before generating the brief. Do NOT dump all questions at once — ask in rounds, adapting based on answers.
46
-
47
- ### Round 1: Problem & Vision (required)
48
- - What problem does this project solve? (or: what's the core idea?)
49
- - Who is the target user / audience?
50
-
51
- ### Round 2: Scope & Features (required)
52
- - What are the 3-5 core features or capabilities? (ask user to list them)
53
- - What is the MVP scope? (what's the minimum version that delivers value?)
54
- - Are there any explicit non-goals? (things this project deliberately does NOT do)
55
-
56
- ### Round 3: Technical Constraints (if user has preferences)
57
- - Any preferred tech stack / language / framework?
58
- - Any integration requirements? (third-party APIs, databases, auth providers)
59
- - Deployment target? (web app, mobile, CLI, library, self-hosted, cloud)
60
-
61
- ### Round 4: Clarification (adaptive — only if gaps remain)
62
- If previous answers are vague or incomplete, probe deeper:
63
- - "You mentioned X — can you give a concrete example of how a user would use it?"
64
- - "Are there existing tools that do something similar? How is yours different?"
65
- - "What does success look like for V1?"
66
-
67
- ### Completion Criteria
68
- Stop asking when ALL of these are clear:
69
- 1. **Problem** — what pain point or opportunity this addresses
70
- 2. **Users** — who will use it and in what context
71
- 3. **Core features** — at least 3 concrete capabilities (not vague aspirations)
72
- 4. **Boundaries** — what's in scope vs. out of scope for V1
73
- 5. **Technical direction** — enough to populate `config.json` tech_stack (or explicitly deferred)
74
-
75
- If the user gives short/vague answers, don't accept them — rephrase and ask again. A weak brief leads to weak specs downstream.
76
-
77
- ### Generate & Confirm
78
- Once all criteria are met:
79
- 1. Generate brief in checklist format (see Format section above)
80
- 2. Present to user with: "Here's what I captured — anything to add, remove, or change?"
81
- 3. Apply edits and write to `.prizmkit/plans/project-brief.md`
82
-
@@ -1,59 +0,0 @@
1
- # Project Conventions Discovery
2
-
3
- AI-driven procedure for discovering and capturing project-level conventions. SKILL.md retains the trigger condition and entry point; this file contains the full Analyze → Reason → Present workflow.
4
-
5
- ## Principle
6
-
7
- **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.
8
-
9
- ## Step 1: Analyze the project
10
-
11
- - Read tech stack, dependencies, existing code, config files, README, any existing style guides or linter configs
12
- - For brownfield: also read actual source code patterns (naming, file structure, error handling, etc.)
13
- - For greenfield: use the user's stated goals and intended tech stack
14
-
15
- ## Step 2: Reason about what conventions matter for THIS project
16
-
17
- Think about what decisions, if left unstandardized, would cause inconsistency as the project grows. Consider all dimensions relevant to the project — these might include (but are NOT limited to):
18
-
19
- - Language and localization choices
20
- - Code style and naming patterns
21
- - Architecture and communication patterns
22
- - Data format and storage decisions
23
- - Security and auth approaches
24
- - UI/UX patterns
25
- - Testing strategies
26
- - Deployment and environment patterns
27
- - ...anything else you observe that needs a project-level decision
28
-
29
- The point is: YOU decide what's relevant based on what you see. A Next.js SaaS app needs completely different conventions than a Python data pipeline or a Go microservice.
30
-
31
- ## Step 3: Present findings via `AskUserQuestion`
32
-
33
- First, show "Already decided" conventions as text:
34
- > **Already decided** (detected from your codebase):
35
- > - [convention]: [value] (source: [where you found it])
36
- > - [convention]: [value] (source: [where you found it])
37
-
38
- Then use `AskUserQuestion` for conventions that need user input (up to 4 questions per call, use multiple calls as needed — no limit on total rounds). Each question:
39
- - Question text includes the convention name AND why it matters for this project
40
- - Options are the reasonable choices (2-4 per question)
41
- - Mark the recommended option first with "(Recommended)" in its label
42
- - Use `description` field to explain trade-offs
43
-
44
- After each batch of `AskUserQuestion` calls, reassess: are there more project-level conventions to cover? If yes, continue with more `AskUserQuestion` calls. Keep going until ALL project-level conventions are fully addressed.
45
-
46
- Then ask in text: "Anything I missed that you'd like to standardize?" — if the user adds more, continue the discovery loop.
47
-
48
- ## Rules
49
-
50
- - **No interaction limit** — keep asking until every project-level convention is covered. Do NOT stop early or batch-skip to save rounds.
51
- - Every proposed convention must be justified by something you observed in the project — explain WHY it matters
52
- - Auto-confirm anything already evident from the codebase (show as "detected", let user override)
53
- - Propose as many conventions as the project genuinely needs, but don't pad with irrelevant ones
54
- - The "Anything I missed?" question is NOT the end — if the user adds items, ask follow-up `AskUserQuestion` calls to clarify those too
55
-
56
- ## After Discovery
57
-
58
- → Save answers to `AGENTS.md` / `CLAUDE.md` / `CODEBUDDY.md` under `### Project Conventions` section (format: one bullet per convention)
59
- → Output format will naturally vary per project — that is the intended behavior
@@ -1,90 +0,0 @@
1
- # Project State Detection — Brownfield Behavior
2
-
3
- Detailed procedures for detecting and handling existing (brownfield) projects during app planning.
4
-
5
- ## Detection Signals
6
-
7
- | Signal | Greenfield | Brownfield |
8
- |--------|-----------|------------|
9
- | `package.json` / `pyproject.toml` / `go.mod` / `Cargo.toml` / `pom.xml` | absent | present |
10
- | `src/` or `app/` directory with source files | absent | present |
11
- | `.git` with commit history | absent or initial commit only | present with history |
12
- | Empty or near-empty directory | yes | no |
13
-
14
- ## Greenfield Behavior (default)
15
-
16
- Proceed with the standard Core Workflow — ask all questions from scratch.
17
-
18
- ## Brownfield Behavior
19
-
20
- When an existing project is detected:
21
-
22
- ### Step 1: Prerequisite Check (Mandatory)
23
-
24
- Before ANY planning work, check if AI-essential project context files exist:
25
-
26
- | File | Purpose | Status |
27
- |------|---------|--------|
28
- | `.prizmkit/prizm-docs/root.prizm` | Project architecture context for AI | exists / missing |
29
- | `.prizmkit/config.json` | Tech stack + runtime config | exists / missing |
30
- | `.prizmkit/plans/project-brief.md` | Product vision checklist | exists / missing |
31
-
32
- **If ANY are missing**, show the status table, then use `AskUserQuestion`:
33
-
34
- **Question**: "Some AI context files are missing. These help AI understand your project — making planning much more effective. How would you like to proceed?"
35
- - **Run project init first (Recommended)** — invoke `prizmkit-init` to scan your codebase and generate these files, then return to planning
36
- - **Continue without init** — I'll scan the project manually during this session (less thorough)
37
- - **Skip, I'll set these up later** — proceed with planning using only what's available
38
-
39
- - **Run project init first** -> Invoke `prizmkit-init`, then resume app-planner from where it left off
40
- - **Continue without init** -> Continue with Step 2 below (manual scan)
41
- - **Skip** -> Continue with Step 3, skip scanning
42
-
43
- ### Step 2: Proactive Project Scanning
44
-
45
- Do NOT ask the user to describe their project — read it yourself first:
46
-
47
- 1. **Scan project structure** to understand the codebase layout:
48
- ```powershell
49
- Get-ChildItem -Path . -Directory -Recurse -Depth 2 |
50
- Where-Object { $_.FullName -notmatch '\\(node_modules|\.git|dist|build|__pycache__|vendor)(\\|$)' } |
51
- ForEach-Object { $_.FullName -replace '[^\\]*\\', '|____' -replace '____\|', ' |' }
52
- ```
53
-
54
- 2. **Read existing project metadata** to infer tech stack and purpose:
55
- - `package.json` -> name, description, dependencies, scripts
56
- - `pyproject.toml` / `requirements.txt` -> Python dependencies
57
- - `go.mod` -> Go module info
58
- - `README.md` -> project description and goals
59
- - `.prizmkit/config.json` -> previously detected tech stack
60
- - `.prizmkit/prizm-docs/root.prizm` -> existing architecture context
61
-
62
- 3. **Read key source files** (entry points, main routes, core models) to understand what the project actually does — don't rely solely on metadata.
63
-
64
- ### Step 3: Present Inferred Summary with Confirmation
65
-
66
- Show the summary as text, then use `AskUserQuestion`:
67
-
68
- > Based on my analysis of your codebase:
69
- >
70
- > **Project**: [name] — [inferred description]
71
- > **Tech Stack**: [framework] + [language] + [key dependencies]
72
- > **Key Features Found**: [list 3-5 detected capabilities]
73
- > **Architecture**: [e.g., monolithic, microservices, serverless]
74
-
75
- **Question**: "Does this look correct?"
76
- - **Yes, looks correct (Recommended)** — proceed with planning
77
- - **Mostly correct, with changes** — I'll note corrections
78
- - **This is off** — let me describe the project
79
-
80
- ### Step 4: Pre-fill and Focus
81
-
82
- - Phase 2 tech stack selection -> largely pre-filled from dependencies
83
- - Vision/problem statement -> inferred from README or package description (user confirms)
84
- - Existing features -> note them as `[x]` items in project brief
85
-
86
- **Focus remaining questions** (as options where possible) on what CANNOT be inferred:
87
- - Target users and core value proposition
88
- - Future direction and planned capabilities
89
- - Non-functional requirements (performance, scale, security)
90
- - Design direction (for frontend projects)