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,237 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "title": "Dev-Pipeline Feature List",
4
- "description": "Schema for .prizmkit/plans/feature-list.json",
5
- "type": "object",
6
- "required": [
7
- "$schema",
8
- "project_name",
9
- "features"
10
- ],
11
- "properties": {
12
- "$schema": {
13
- "type": "string",
14
- "const": "dev-pipeline-feature-list-v1"
15
- },
16
- "project_name": {
17
- "type": "string",
18
- "minLength": 1
19
- },
20
- "project_description": {
21
- "type": "string"
22
- },
23
- "created_at": {
24
- "type": "string",
25
- "format": "date-time"
26
- },
27
- "created_by": {
28
- "type": "string"
29
- },
30
- "features": {
31
- "type": "array",
32
- "minItems": 1,
33
- "items": {
34
- "type": "object",
35
- "required": [
36
- "id",
37
- "title",
38
- "description",
39
- "priority",
40
- "dependencies",
41
- "acceptance_criteria",
42
- "status"
43
- ],
44
- "properties": {
45
- "id": {
46
- "type": "string",
47
- "pattern": "^F-\\d{3}(-[A-Z])?$",
48
- "description": "Feature ID, format F-001, F-002... Optional sub-feature suffix: F-001-A"
49
- },
50
- "title": {
51
- "type": "string",
52
- "minLength": 1,
53
- "description": "Feature title — brief description of the functionality"
54
- },
55
- "description": {
56
- "type": "string",
57
- "minLength": 1,
58
- "description": "Detailed feature description: what it does, why it's needed"
59
- },
60
- "priority": {
61
- "type": "string",
62
- "enum": [
63
- "critical",
64
- "high",
65
- "medium",
66
- "low"
67
- ],
68
- "description": "Feature priority. Pipeline processes critical before high before medium before low; within same level, array order determines sequence."
69
- },
70
- "estimated_complexity": {
71
- "type": "string",
72
- "enum": [
73
- "low",
74
- "medium",
75
- "high",
76
- "critical"
77
- ],
78
- "description": "Estimated implementation complexity. Determines pipeline execution tier: low/medium → lite (single agent), high → standard (orchestrator + dev + reviewer), critical → full (full team + critic)."
79
- },
80
- "dependencies": {
81
- "type": "array",
82
- "items": {
83
- "type": "string",
84
- "pattern": "^F-\\d{3}(-[A-Z])?$"
85
- },
86
- "description": "IDs of features that must be completed before this one"
87
- },
88
- "acceptance_criteria": {
89
- "type": "array",
90
- "minItems": 1,
91
- "items": {
92
- "type": "string"
93
- },
94
- "description": "Conditions that must be met for the feature to be considered complete"
95
- },
96
- "status": {
97
- "type": "string",
98
- "enum": [
99
- "pending",
100
- "in_progress",
101
- "completed",
102
- "failed",
103
- "skipped",
104
- "split",
105
- "auto_skipped"
106
- ],
107
- "description": "Feature status. Pipeline manages status transitions automatically."
108
- },
109
- "session_granularity": {
110
- "type": "string",
111
- "enum": [
112
- "feature",
113
- "sub_feature",
114
- "auto"
115
- ],
116
- "default": "feature",
117
- "description": "Session execution strategy: feature=one-session-per-feature, sub_feature=one-session-per-sub-feature, auto=pipeline-decides"
118
- },
119
- "sub_features": {
120
- "type": "array",
121
- "items": {
122
- "type": "object",
123
- "required": [
124
- "id",
125
- "title",
126
- "description"
127
- ],
128
- "properties": {
129
- "id": {
130
- "type": "string",
131
- "pattern": "^F-\\d{3}-[A-Z]$"
132
- },
133
- "title": {
134
- "type": "string",
135
- "minLength": 1
136
- },
137
- "description": {
138
- "type": "string",
139
- "minLength": 1
140
- }
141
- }
142
- }
143
- },
144
- "model": {
145
- "type": "string",
146
- "description": "AI model ID for this feature. Overrides $MODEL env var."
147
- },
148
- "critic": {
149
- "type": "boolean",
150
- "description": "Enable adversarial plan challenge before implementation. Default: false.",
151
- "default": false
152
- },
153
- "critic_count": {
154
- "type": "integer",
155
- "description": "Number of parallel critic agents. 1 = single critic, 3 = multi-critic voting. Default: 1.",
156
- "enum": [
157
- 1,
158
- 3
159
- ]
160
- },
161
- "completion_notes": {
162
- "type": "array",
163
- "items": {
164
- "type": "string"
165
- },
166
- "description": "AI-generated summary of key changes from this feature session. Used to provide rich dependency context to downstream features. Each item is a concise statement about what was built/changed (e.g. APIs added, models created, key file paths)."
167
- },
168
- "user_context": {
169
- "type": "array",
170
- "items": { "type": "string" },
171
- "description": "User-provided supplementary materials, preserved verbatim. Each entry is either inline content/rules (stored as-is) or a file reference (e.g. 'src/auth/login.ts:42-78', 'src/utils/ — focus on validation logic')."
172
- },
173
- "browser_interaction": {
174
- "type": "object",
175
- "description": "Browser verification config for features with UI. Supports playwright-cli and opencli. AI auto-detects dev server command, URL, and port from project config at runtime.",
176
- "properties": {
177
- "tool": {
178
- "type": "string",
179
- "enum": ["playwright-cli", "opencli", "auto"],
180
- "default": "auto",
181
- "description": "Browser tool to use. 'auto' (default) = AI chooses at runtime. 'playwright-cli' = local dev server verification in isolated browser. 'opencli' = reuses Chrome logged-in session, ideal for verifying third-party integrations or OAuth flows."
182
- },
183
- "verify_steps": {
184
- "type": "array",
185
- "description": "Verification goals describing WHAT to verify (not HOW). AI decides concrete browser tool actions at runtime based on actual code and snapshot. If omitted, AI explores the app and verifies the feature works.",
186
- "items": {
187
- "type": "string"
188
- }
189
- }
190
- }
191
- }
192
- }
193
- }
194
- },
195
- "global_context": {
196
- "type": "object",
197
- "properties": {
198
- "tech_stack": {
199
- "type": "string"
200
- },
201
- "language": {
202
- "type": "string"
203
- },
204
- "runtime": {
205
- "type": "string"
206
- },
207
- "frontend_framework": {
208
- "type": "string"
209
- },
210
- "frontend_styling": {
211
- "type": "string"
212
- },
213
- "backend_framework": {
214
- "type": "string"
215
- },
216
- "database": {
217
- "type": "string"
218
- },
219
- "orm": {
220
- "type": "string"
221
- },
222
- "design_system": {
223
- "type": "string"
224
- },
225
- "testing_strategy": {
226
- "type": "string"
227
- },
228
- "bundler": {
229
- "type": "string"
230
- },
231
- "project_type": {
232
- "type": "string"
233
- }
234
- }
235
- }
236
- }
237
- }
@@ -1,340 +0,0 @@
1
- # Dev-Pipeline Refactor Session Bootstrap
2
-
3
- ## Session Context
4
-
5
- - **Refactor ID**: {{REFACTOR_ID}}
6
- - **Refactor Title**: {{REFACTOR_TITLE}}
7
- - **Refactor Type**: {{REFACTOR_TYPE}}
8
- - **Priority**: {{PRIORITY}}
9
- - **Complexity**: {{COMPLEXITY}}
10
-
11
- ## Your Mission
12
-
13
- You are the **refactor session orchestrator**. Execute Refactor {{REFACTOR_ID}}: "{{REFACTOR_TITLE}}".
14
-
15
- **CRITICAL SESSION LIFECYCLE RULE**: You MUST NOT exit until ALL work is complete and session-status.json is written. When you spawn normal work subagents, you MUST **wait for each to finish** (run_in_background=false) before proceeding. The log-size monitor is the only allowed persistent background subagent. Do NOT spawn a work agent in the background and exit — that kills the session.
16
-
17
- **NON-INTERACTIVE MODE**: You are running in headless non-interactive mode. There is NO human on the other end. NEVER ask for user confirmation, NEVER wait for user input, NEVER use interactive prompts (e.g. "Would you like me to…"). If a skill has an interactive step (e.g. offer remediation, ask for approval), skip it and proceed autonomously. Make decisions based on the data available and move forward.
18
-
19
- **NORMAL-PATH TEAM REQUIREMENT**: Use the `prizm-dev-team` agents (Dev + Reviewer) for implementation and review. You are the orchestrator — handle coordination, planning, and commit phases directly. If a required agent cannot be spawned after the bounded retry policy below, follow the documented recovery exception instead of looping forever.
20
-
21
- **REFACTOR DOCUMENTATION POLICY**:
22
- - **DEFAULT**: Run `/prizmkit-retrospective` with full sync (Job 1 + Job 2), because refactoring changes code structure and interfaces.
23
- - **SKIP Job 2** only if the refactor is a pure rename with no interface changes.
24
- - Commit with `refactor(<scope>):` prefix, NOT `feat:` or `fix:`
25
-
26
- ### Team Definition Reference
27
-
28
- - **Team config**: `{{TEAM_CONFIG_PATH}}`
29
-
30
- ### Refactor Description
31
-
32
- {{REFACTOR_DESCRIPTION}}
33
-
34
- {{USER_CONTEXT}}
35
-
36
- ### Scope
37
-
38
- **Files:**
39
- {{SCOPE_FILES}}
40
-
41
- **Modules:**
42
- {{SCOPE_MODULES}}
43
-
44
- ### Behavior Preservation
45
-
46
- - **Strategy**: {{BEHAVIOR_STRATEGY}}
47
- - **Existing Tests**:
48
- {{EXISTING_TESTS}}
49
- - **New Tests Needed**:
50
- {{NEW_TESTS_NEEDED}}
51
-
52
- ### Acceptance Criteria
53
-
54
- {{ACCEPTANCE_CRITERIA}}
55
-
56
- ### Dependencies
57
-
58
- {{DEPENDENCIES}}
59
-
60
- ### App Global Context
61
-
62
- {{GLOBAL_CONTEXT}}
63
-
64
- ### Project Conventions
65
-
66
- > Read {{PLATFORM_CONVENTIONS}} for project-level coding standards, architecture decisions, and development rules.
67
-
68
- ## Refactor Artifacts Directory
69
-
70
- **ALWAYS** use per-refactor subdirectory `.prizmkit/refactor/{{REFACTOR_ID}}/`:
71
-
72
- ```
73
- .prizmkit/refactor/{{REFACTOR_ID}}/
74
- ├── spec.md ← /prizmkit-plan output (goals, scope, behavior preservation)
75
- ├── plan.md ← /prizmkit-plan output (change approach, tasks)
76
- └── refactor-report.md ← Phase 5 output (generated after commit)
77
- ```
78
-
79
- ## Execution Instructions
80
-
81
- {{LOG_SIZE_AWARENESS}}
82
- **YOU are the orchestrator. Execute each phase by spawning the appropriate team agent with run_in_background=false.**
83
-
84
- **Agent spawn failure policy (all Agent tool calls)**:
85
- - If spawning Dev or Reviewer fails with team/config/lock errors, retry at most once.
86
- - If the second attempt fails, do not keep spawning variants and do not enter artifact polling for Implementation Log, review-report, or refactor-report markers.
87
- - Recovery exception: complete remaining refactor work directly in the orchestrator only when the action is safe and bounded; otherwise write `failure-log.md` with the spawn error and last observable state before stopping for recovery.
88
- - Any recovery exception must be recorded in the required report or session status so downstream runs know the normal team path was unavailable.
89
- - Apply the same cap to any re-spawn for report repair or resume prompts; do not burn multiple minutes on identical team/config/lock failures.
90
-
91
- ## Workflow Checkpoint System
92
-
93
- A checkpoint file tracks your progress through this workflow:
94
-
95
- **Path**: `{{CHECKPOINT_PATH}}`
96
-
97
- **How to use**:
98
- 1. **Before each step**: Read `workflow-checkpoint.json`, verify the previous step has `status: "completed"` or `status: "skipped"`. If not, complete it first.
99
- 2. **After completing a step**: Update the step's `status` to `"completed"` in `workflow-checkpoint.json`.
100
-
101
- ### Step 1: Initialize
102
-
103
- #### Agent Setup
104
-
105
- Reference `{{TEAM_CONFIG_PATH}}` for agent definitions:
106
- - Dev: `{{DEV_SUBAGENT_PATH}}`
107
- - Reviewer: `{{REVIEWER_SUBAGENT_PATH}}`
108
-
109
- Create refactor artifacts directory:
110
- ```powershell
111
- New-Item -ItemType Directory -Force -Path .prizmkit/refactor/{{REFACTOR_ID}} | Out-Null
112
- ```
113
-
114
- ### Step 2: Pipeline Phases
115
-
116
- #### Phase 1: Plan — Specification & Plan Generation
117
-
118
- **Goal**: Generate spec.md and plan.md with behavior-preserving task breakdown.
119
-
120
- Run `/prizmkit-plan` with `artifact_dir=.prizmkit/refactor/{{REFACTOR_ID}}/`:
121
- - Description: "{{REFACTOR_TITLE}} — {{REFACTOR_DESCRIPTION}}"
122
- - The spec.md MUST include:
123
- - Goals with acceptance criteria (from the acceptance criteria above)
124
- - Scope (files and modules from above)
125
- - Behavior Preservation section (strategy: {{BEHAVIOR_STRATEGY}}, existing tests, what must not change)
126
- - The plan.md MUST include:
127
- - Change approach with behavior preservation strategy
128
- - Tasks ordered by safety: safe renames first → extractions → structural changes
129
- - Every task ends with "run test suite to verify behavior preserved"
130
- - Rollback strategy
131
-
132
- Resolve any `[NEEDS CLARIFICATION]` markers using the refactor description — do NOT pause for interactive input.
133
-
134
- {{IF_BROWSER_INTERACTION}}
135
-
136
- #### Browser Behavior Preservation Protocol
137
-
138
- The refactor may affect UI behavior. Use this single browser protocol for planning, implementation, review, and final reporting:
139
-
140
- {{IF_BROWSER_TOOL_AUTO}}
141
- - **Browser Tool**: Auto-select at runtime based on dev server and feature complexity.
142
- {{END_IF_BROWSER_TOOL_AUTO}}
143
-
144
- {{IF_BROWSER_TOOL_PLAYWRIGHT}}
145
- - **Browser Tool**: playwright-cli — local isolated browser instance for dev server verification.
146
- {{END_IF_BROWSER_TOOL_PLAYWRIGHT}}
147
-
148
- {{IF_BROWSER_TOOL_OPENCLI}}
149
- - **Browser Tool**: opencli — Chrome session with existing login for OAuth/third-party integrations.
150
- {{END_IF_BROWSER_TOOL_OPENCLI}}
151
-
152
- **Verification Goals**:
153
- {{BROWSER_VERIFY_STEPS}}
154
-
155
- Evidence must cover affected UI render, primary user interactions, behavior-sensitive workflows, tool used, and whether verification belongs in implementation, review, or both.
156
-
157
- {{END_IF_BROWSER_INTERACTION}}
158
-
159
- - **CP-RF-1**: Both `spec.md` and `plan.md` exist in `.prizmkit/refactor/{{REFACTOR_ID}}/`
160
- - **Checkpoint update**: set step `prizmkit-plan` to `"completed"` in `{{CHECKPOINT_PATH}}`
161
-
162
- ---
163
-
164
- #### Phase 2: Implement — Behavior-Preserving Refactoring
165
-
166
- **Goal**: Execute all tasks from plan.md while preserving existing behavior.
167
-
168
- - Spawn Dev agent (Agent tool, subagent_type="prizm-dev-team-dev", run_in_background=false)
169
- Apply the all-agent spawn failure policy above for this Dev spawn: for team/config/lock errors, retry at most once; if the second attempt fails, do not poll for `## Implementation Log`; use the bounded recovery exception.
170
- Prompt: "Read {{DEV_SUBAGENT_PATH}}. For refactor {{REFACTOR_ID}} ('{{REFACTOR_TITLE}}'):
171
- 1. Read `.prizmkit/refactor/{{REFACTOR_ID}}/spec.md` and `.prizmkit/refactor/{{REFACTOR_ID}}/plan.md`
172
- 2. Read `.prizmkit/prizm-docs/` for affected modules (TRAPS, RULES, PATTERNS)
173
- 3. Before making any changes, run the existing test suite to establish a green baseline
174
- 4. Run `/prizmkit-implement` with `artifact_dir=.prizmkit/refactor/{{REFACTOR_ID}}/` — this handles the full implementation cycle:
175
- - Reads plan.md Tasks section
176
- - Implements task-by-task, marking each `[x]` immediately
177
- - Runs tests after EVERY task — all tests MUST pass (behavior preservation)
178
- - If tests fail: revert the task, analyze why, try alternative approach
179
- - Writes '## Implementation Log' to context-snapshot.md (or equivalent)
180
- 5. Do NOT change behavior — only improve structure
181
-
182
- {{IF_BROWSER_INTERACTION}}
183
-
184
- 6. Apply the Browser Behavior Preservation Protocol above after major refactor tasks and document evidence in implementation notes.
185
-
186
- {{END_IF_BROWSER_INTERACTION}}
187
-
188
- 7. If the refactor involves multiple files: run `/compact` after completing half the tasks to free context budget. If `/compact` is unavailable, continue without it.
189
- 8. After all tasks complete, run the full test suite one final time
190
- "
191
- - **Wait for Dev to return**
192
- - If Dev reports test failures that cannot be resolved after 3 attempts: escalate, write status="failed"
193
- - **CP-RF-2**: All tasks completed, all tests green
194
- - **Checkpoint update**: set step `prizmkit-implement` to `"completed"` in `{{CHECKPOINT_PATH}}`
195
-
196
- ---
197
-
198
- #### Phase 3: Review — Code Review & Behavior Verification
199
-
200
- **Goal**: Verify refactoring quality and behavior preservation.
201
-
202
- - Spawn Reviewer agent (Agent tool, subagent_type="prizm-dev-team-reviewer", run_in_background=false)
203
- Apply the all-agent spawn failure policy above for this Reviewer spawn.
204
- Prompt: "Read {{REVIEWER_SUBAGENT_PATH}}. For refactor {{REFACTOR_ID}}:
205
- 1. Read `.prizmkit/refactor/{{REFACTOR_ID}}/spec.md` for goals and behavior preservation contracts
206
- 2. Read `.prizmkit/refactor/{{REFACTOR_ID}}/plan.md` for architecture decisions and completed tasks
207
- 3. Run `/prizmkit-code-review` with artifact_dir=.prizmkit/refactor/{{REFACTOR_ID}}/. The skill runs an internal review-fix loop (Reviewer → filter → Dev fix, max 3 rounds) and writes review-report.md.
208
- 4. Run full test suite and verify ALL tests pass
209
-
210
- {{IF_BROWSER_INTERACTION}}
211
-
212
- 5. Verify the Browser Behavior Preservation Protocol evidence and document findings in `review-report.md`.
213
-
214
- {{END_IF_BROWSER_INTERACTION}}
215
-
216
- 6. review-report.md will be written to .prizmkit/refactor/{{REFACTOR_ID}}/ by prizmkit-code-review
217
- 7. Report: verdict (PASS/NEEDS_FIXES), number of rounds, findings fixed/rejected
218
- "
219
- - **Wait for Reviewer to return**
220
- - **Gate Check — Review Report**:
221
- After Reviewer returns, verify the review report contains a verdict:
222
- ```powershell
223
- if (Select-String -Path .prizmkit/refactor/{{REFACTOR_ID}}/review-report.md -Pattern "## Verdict" -Quiet -ErrorAction SilentlyContinue) { "GATE:PASS" } else { "GATE:MISSING" }
224
- ```
225
- If GATE:MISSING:
226
- - Do not enter an unbounded report-repair loop and do not repeatedly re-spawn Reviewer.
227
- - Perform one bounded status check; retry at most once: inspect the Reviewer output, `review-report.md` path, and any internal Reviewer/Dev spawn messages from `/prizmkit-code-review`.
228
- - If the missing report is caused by team/config/lock errors from the Reviewer or internal Reviewer/Dev agent spawn, retry the Reviewer agent at most once only if it appears transient.
229
- - If the report is still missing after that single check/retry, write `.prizmkit/refactor/{{REFACTOR_ID}}/failure-log.md` with the spawn/skill error and last observable state, then either perform a safe inline fallback review (spec/plan/diff/tests → write `review-report.md` with `## Verdict`) or stop with a clear recovery failure.
230
-
231
- Read `review-report.md` and check the Verdict:
232
- - `PASS` → proceed to next phase
233
- - `NEEDS_FIXES` → log remaining findings and proceed (do not retry externally)
234
- - **CP-RF-3**: Code review complete, tests pass, behavior preserved
235
- - **Checkpoint update**: set step `prizmkit-code-review` to `"completed"` in `{{CHECKPOINT_PATH}}`
236
-
237
- ---
238
-
239
- #### Phase 4: Commit & Report
240
-
241
- **Goal**: Commit the refactor, update docs, generate report.
242
-
243
- **This phase is executed by YOU (the orchestrator), NOT a subagent.**
244
-
245
- 1. Run `/prizmkit-retrospective` (full sync — Job 1 + Job 2) to update `.prizmkit/prizm-docs/` with structural changes
246
-
247
- 2. Run `/prizmkit-committer --headless` with:
248
- - Commit message: `refactor({{REFACTOR_ID}}): {{REFACTOR_TITLE}}`
249
- - Include all refactored files and any new/updated tests
250
- - Do NOT push (user will push manually)
251
-
252
- 3. Write the refactor report to `.prizmkit/refactor/{{REFACTOR_ID}}/refactor-report.md`
253
-
254
- The refactor-report.md MUST contain these sections:
255
- - Refactor Summary (ID, title, type, status, phases completed)
256
- - What Changed (files modified, structural changes made, diff summary)
257
- - Behavior Verification (test suite results before/after, specific tests exercised)
258
-
259
- {{IF_BROWSER_INTERACTION}}
260
-
261
- - Browser Verification (UI flows tested, tools used, any manual verification performed)
262
-
263
- {{END_IF_BROWSER_INTERACTION}}
264
-
265
- - Code Quality Metrics (if measurable: files consolidated, duplication reduced, etc.)
266
- - Acceptance Criteria Verification (checklist with pass/fail for each criterion)
267
-
268
- 4. Write completion summary for downstream dependency context:
269
-
270
- Write `.prizmkit/refactor/{{REFACTOR_ID}}/completion-summary.json` — this is NOT committed to git. The pipeline runner reads it to propagate context to dependent refactors.
271
- ```json
272
- {
273
- "completion_notes": [
274
- "<each item: one key structural change that downstream refactors may need to know>",
275
- "Example: Extracted shared validation logic into src/utils/validation.ts",
276
- "Example: Renamed UserService → AuthService, moved from src/services/ to src/auth/",
277
- "Example: Decoupled payment module from user module via PaymentGateway interface"
278
- ]
279
- }
280
- ```
281
- Rules: focus on structural changes, new module boundaries, renamed/moved files, changed interfaces. 3-8 notes, each under 120 chars.
282
-
283
- - **CP-RF-4**: Commit recorded, refactor-report.md written, .prizmkit/prizm-docs/ updated
284
- - **Checkpoint update**: set steps `prizmkit-committer` and `refactor-report` to `"completed"` in `{{CHECKPOINT_PATH}}`
285
-
286
- ### Step 3: Report Session Status
287
-
288
- **CRITICAL**: Before this session ends, you MUST write the session status file.
289
-
290
- Write to: `{{SESSION_STATUS_PATH}}`
291
-
292
- ```json
293
- {
294
- "session_id": "{{SESSION_ID}}",
295
- "refactor_id": "{{REFACTOR_ID}}",
296
- "status": "<success|partial|failed>",
297
- "completed_phases": [1, 2, 3, 4],
298
- "current_phase": 4,
299
- "checkpoint_reached": "CP-RF-4",
300
- "errors": [],
301
- "can_resume": false,
302
- "resume_from_phase": null,
303
- "artifacts": {
304
- "spec_path": ".prizmkit/refactor/{{REFACTOR_ID}}/spec.md",
305
- "plan_path": ".prizmkit/refactor/{{REFACTOR_ID}}/plan.md",
306
- "report_path": ".prizmkit/refactor/{{REFACTOR_ID}}/refactor-report.md"
307
- },
308
- "git_commit": "<commit hash>",
309
- "behavior_preserved": true,
310
- "timestamp": "{{TIMESTAMP}}"
311
- }
312
- ```
313
-
314
- **Status values**: `success` (all phases done) | `partial` (can resume) | `failed` (unrecoverable)
315
-
316
- ## Critical Paths
317
-
318
- | Resource | Path |
319
- |----------|------|
320
- | Team Definition (source of truth) | `{{TEAM_CONFIG_PATH}}` |
321
- | Refactor Artifacts Dir | `.prizmkit/refactor/{{REFACTOR_ID}}/` |
322
- | Spec | `.prizmkit/refactor/{{REFACTOR_ID}}/spec.md` |
323
- | Plan | `.prizmkit/refactor/{{REFACTOR_ID}}/plan.md` |
324
- | Refactor Report | `.prizmkit/refactor/{{REFACTOR_ID}}/refactor-report.md` |
325
- | Dev Agent Def | {{DEV_SUBAGENT_PATH}} |
326
- | Reviewer Agent Def | {{REVIEWER_SUBAGENT_PATH}} |
327
- | Session Status Output | {{SESSION_STATUS_PATH}} |
328
- | Workflow Checkpoint | {{CHECKPOINT_PATH}} |
329
- | Project Root | {{PROJECT_ROOT}} |
330
-
331
- ## Reminders
332
-
333
- - **MANDATORY**: Use `prizm-dev-team` agents — single-agent execution is FORBIDDEN
334
- - **Behavior preservation is the #1 priority**: If tests break, stop and fix before proceeding
335
- - **Run tests after EVERY task** — not just at the end
336
- - Use `/prizmkit-plan` with `artifact_dir=.prizmkit/refactor/{{REFACTOR_ID}}/` for spec + plan generation
337
- - **Commit with** `refactor(<scope>):` prefix, NOT `feat:` or `fix:`
338
- - **Run full retrospective** (Job 1 + Job 2) — refactoring changes code structure
339
- - ALWAYS write session-status.json before exiting
340
- - Do NOT use `run_in_background=true` when spawning normal work agents; the log-size monitor is the only allowed persistent background subagent