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,355 +0,0 @@
1
- ---
2
- name: "recovery-workflow"
3
- description: "Recover and resume interrupted interactive workflow sessions. Auto-detects which workflow (feature-workflow, bug-fix-workflow, refactor-workflow) was interrupted and what phase it reached by inspecting git branch names, characteristic artifacts, and pipeline state — then resumes from the breakpoint. Use this skill whenever an AI CLI session is interrupted mid-workflow, times out, or hits token limits. Trigger on: 'recover', 'resume', 'continue where I left off', 'session interrupted', 'session timed out', 'pick up where it left off', 'token limit exceeded', 'salvage partial work'."
4
- ---
5
-
6
- # Recovery Workflow
7
-
8
- Auto-detect and resume interrupted interactive workflow sessions. When a user's AI CLI session is interrupted mid-workflow (timeout, token limit, crash, manual stop), this skill inspects the workspace to determine which workflow was running and what phase it reached, then continues from the breakpoint.
9
-
10
- ## When to Use
11
-
12
- User says:
13
- - "Recover", "Resume", "Continue where I left off"
14
- - "Session interrupted / timed out / token limit exceeded"
15
- - "Pick up where it left off"
16
- - "Don't want to restart from scratch"
17
-
18
- **Do NOT use when:**
19
- - Pipeline interrupted → use `reset-feature.ps1 <F-XXX> --clean --run` / `reset-bug.ps1 <B-XXX> --clean --run` for a fresh retry
20
- - User wants a clean restart → use the original workflow skill directly (`/feature-workflow`, `/bug-fix-workflow`, `/refactor-workflow`)
21
- - Nothing was ever started → use the original workflow skill
22
-
23
- ## Pipeline Recovery (Recommended)
24
-
25
- **IMPORTANT**: In Phase 1.3, you MUST present the user with a choice between pipeline recovery (`run-recovery.ps1`) and interactive recovery. **NEVER skip this choice. NEVER decide for the user.** The pipeline approach is recommended because it generates a comprehensive bootstrap prompt that explicitly lists every remaining phase with full instructions, ensuring the AI completes the full workflow — not just the implementation part.
26
-
27
- Pipeline commands (for reference — Phase 1.3 will present these as a selectable option):
28
-
29
- ```powershell
30
- .\.prizmkit\dev-pipeline\run-recovery.ps1 # Auto-detect and recover
31
- .\.prizmkit\dev-pipeline\run-recovery.ps1 detect # Detection report only
32
- .\.prizmkit\dev-pipeline\run-recovery.ps1 run --dry-run # Generate prompt, don't execute
33
- .\.prizmkit\dev-pipeline\run-recovery.ps1 run --yes # Skip confirmation
34
- .\.prizmkit\dev-pipeline\run-recovery.ps1 run --model <model> # Override AI model
35
- ```
36
-
37
- ### When to use pipeline vs interactive recovery
38
-
39
- | Scenario | Approach |
40
- |----------|----------|
41
- | Pipeline session timed out / crashed | `.\run-recovery.ps1` — autonomous, completes all phases reliably |
42
- | Interactive session interrupted | This skill (`/recovery-workflow`) — for in-session interactive use |
43
- | Want to inspect before recovering | `.\run-recovery.ps1 detect` or `.\run-recovery.ps1 run --dry-run` |
44
- | Daemon/scripted use | `.\run-recovery.ps1 run --yes` — no user confirmation needed |
45
-
46
- ## Supported Workflows
47
-
48
- | Workflow | Branch Pattern | Key Artifacts |
49
- |----------|---------------|---------------|
50
- | bug-fix-workflow | `fix/<BUG_ID>-*` | `.prizmkit/bugfix/<BUG_ID>/fix-plan.md`, `fix-report.md` |
51
- | feature-workflow | `feat/*` | `.prizmkit/plans/feature-list.json`, `.prizmkit/state/features/` |
52
- | refactor-workflow | `refactor/*` | `.prizmkit/plans/refactor-list.json`, `.prizmkit/state/refactor/` |
53
-
54
- ---
55
-
56
- ## Overview
57
-
58
- 1. **Phase 0: Auto-detect**
59
- 1. Read current branch name
60
- 2. Scan characteristic artifacts
61
- 3. Match workflow signature → determine workflow type
62
- 4. Based on artifact presence → infer current phase
63
- 5. No match → reject and guide user
64
- 2. **Phase 1: Diagnose + report + user choice**
65
- 1. Check branch and working tree state
66
- 2. Scan all pipelines for failed/in-progress tasks
67
- 3. Find residual dev branches from failed tasks
68
- 4. Display diagnosis + detection results
69
- 5. If code changes exist → run test suite
70
- 6. If multiple failed tasks → ask user which to recover
71
- 7. User chooses: run-recovery.ps1 (recommended) | interactive | start fresh
72
- 3. **Phase 2: Execute remaining steps**
73
- 1. Read target workflow's SKILL.md
74
- 2. Read existing artifacts to restore context
75
- 3. Execute from inferred phase through completion
76
-
77
- ---
78
-
79
- ## Phase 0: Auto-detect
80
-
81
- **Goal**: Identify which workflow was interrupted and what phase it reached.
82
-
83
- Run the detection script (`Invoke-PrizmPython ${SKILL_DIR}/scripts/detect-recovery-state.py`). For the full signature matching table, phase inference tables (bug-fix/feature/refactor), and no-workflow-detected guidance, read `${SKILL_DIR}/references/detection.md`.
84
-
85
- **CHECKPOINT CP-REC-0**: Workflow type and phase identified.
86
-
87
- ---
88
-
89
- ## Phase 1: Diagnose + Report + User Confirmation
90
-
91
- **Goal**: Assess workspace health, identify failed tasks across all pipelines, and present recovery options.
92
-
93
- ### 1.0 Workspace & Failure Diagnosis
94
-
95
- Before showing the recovery report, run a comprehensive diagnosis:
96
-
97
- 1. **Check current branch and working tree**:
98
- ```powershell
99
- git branch --show-current
100
- git status --porcelain | Select-Object -First 10
101
- ```
102
- Report: which branch is active, whether there are uncommitted changes.
103
-
104
- 2. **Scan all pipelines for failed/in-progress tasks**:
105
- ```powershell
106
- # Feature pipeline
107
- Invoke-PrizmPython .prizmkit/dev-pipeline/scripts/update-feature-status.py `
108
- --feature-list .prizmkit/plans/feature-list.json `
109
- --state-dir .prizmkit/state/features `
110
- --action status
111
-
112
- # Bugfix pipeline
113
- Invoke-PrizmPython .prizmkit/dev-pipeline/scripts/update-bug-status.py `
114
- --bug-list .prizmkit/plans/bug-fix-list.json `
115
- --state-dir .prizmkit/state/bugfix `
116
- --action status
117
-
118
- # Refactor pipeline
119
- Invoke-PrizmPython .prizmkit/dev-pipeline/scripts/update-refactor-status.py `
120
- --refactor-list .prizmkit/plans/refactor-list.json `
121
- --state-dir .prizmkit/state/refactor `
122
- --action status
123
- ```
124
- For each pipeline that has state, extract: total tasks, completed, failed, in-progress, pending.
125
-
126
- 3. **Find residual dev branches** from failed/interrupted tasks:
127
- ```powershell
128
- git branch --list 'dev/*' 'feat/*' 'fix/*' 'bugfix/*' 'refactor/*'
129
- ```
130
- Cross-reference with failed task IDs to identify which branches belong to which failed tasks.
131
-
132
- 4. **Present diagnosis summary** — show all findings before the recovery report:
133
- ```
134
- ═══════════════════════════════════════════════════
135
- Workspace Diagnosis
136
- ═══════════════════════════════════════════════════
137
-
138
- Branch: fix/B-001-login-crash
139
- Working tree: 3 uncommitted changes
140
-
141
- Feature pipeline: 2 completed, 1 failed (F-003), 2 pending
142
- Bugfix pipeline: 1 completed, 1 failed (B-002), 0 pending
143
- Refactor pipeline: (no state found)
144
-
145
- Residual branches:
146
- dev/F-003-payment-integration-202604201030
147
- fix/B-002-encoding-bug
148
-
149
- Failed tasks:
150
- F-003: Payment integration [FAILED] → branch: dev/F-003-...
151
- B-002: CSV encoding bug [FAILED] → branch: fix/B-002-...
152
- ═══════════════════════════════════════════════════
153
- ```
154
-
155
- If no pipelines have state and no failed tasks are found, skip to 1.1 (standard recovery report).
156
-
157
- ### 1.1 Display Detection Report
158
-
159
- Read the script output and present a formatted summary:
160
-
161
- ```
162
- ═══════════════════════════════════════════════════
163
- Recovery Report
164
- ═══════════════════════════════════════════════════
165
-
166
- Workflow: bug-fix-workflow
167
- Branch: fix/B-001-login-crash
168
- Phase: 5 — Review
169
-
170
- Artifacts Found:
171
- ✓ fix-plan.md (fix approach documented)
172
- ✗ fix-report.md (not yet created)
173
- ✓ Code changes (4 files — 3 modified, 1 new)
174
- ✓ Test files (1 touched)
175
-
176
- Reason: fix-plan.md exists + code changes present
177
- Remaining: code review → user verification → commit & merge
178
- ═══════════════════════════════════════════════════
179
- ```
180
-
181
- ### 1.2 Run Tests (if code changes exist)
182
-
183
- If the detection report shows code changes (`code.has_changes == true`), run the project's test suite:
184
-
185
- ```powershell
186
- # detect test command from package.json or .prizmkit/config.json
187
- npm test # or the appropriate test command
188
- ```
189
-
190
- Include test results in the report:
191
- - How many tests pass/fail
192
- - If failures exist — which tests and why
193
-
194
- ### 1.3 Select Recovery Target (if multiple failed tasks)
195
-
196
- If the diagnosis in 1.0 found **multiple failed/interrupted tasks** across pipelines, ask the user which one to recover first before proceeding:
197
-
198
- ```
199
- AskUserQuestion:
200
- question: "Multiple failed/interrupted tasks found. Which would you like to recover?"
201
- header: "Target"
202
- options:
203
- - label: "F-003: Payment integration"
204
- description: "Feature pipeline — FAILED — branch: dev/F-003-payment-integration-202604201030"
205
- - label: "B-002: CSV encoding bug"
206
- description: "Bugfix pipeline — FAILED — branch: fix/B-002-encoding-bug"
207
- - label: "Recover all sequentially"
208
- description: "Recover each failed task one by one in priority order"
209
- ```
210
-
211
- Generate the options dynamically from the diagnosis results. Include task ID, title, pipeline type, status, and branch name.
212
-
213
- If only one failed/interrupted task is found, skip this step — proceed directly to 1.4 with that task as the recovery target.
214
-
215
- ### 1.4 Ask User to Choose Recovery Approach
216
-
217
- **User choice required (mandatory)** — Use `AskUserQuestion` to present interactive selectable options. **NEVER skip this step. NEVER choose for the user.**
218
-
219
- ```
220
- AskUserQuestion:
221
- question: "Interrupted {workflow_type} detected at Phase {N} ({phase_name}). How would you like to recover?"
222
- header: "Recovery"
223
- options:
224
- - label: "Run recovery script (Recommended)"
225
- description: "Execute .\.prizmkit\dev-pipeline\run-recovery.ps1 — autonomously completes ALL remaining phases (review, commit, merge, etc.) via a dedicated AI session with explicit phase instructions"
226
- - label: "Copy command and run manually"
227
- description: "I'll give you the exact shell command to paste into your terminal — you run it yourself outside this session"
228
- - label: "Resume interactively in this session"
229
- description: "Continue from Phase {N} within this conversation — more control, but may not complete all phases if session is interrupted again"
230
- - label: "Start fresh"
231
- description: "Discard interrupted work and restart the original workflow from scratch"
232
- ```
233
-
234
- **If "Run recovery script"** → Execute the pipeline recovery:
235
- ```powershell
236
- .\.prizmkit\dev-pipeline\run-recovery.ps1
237
- ```
238
- The script handles everything: detection, confirmation, prompt generation, session spawn, and post-session validation. **End this skill after launching the script** — do not proceed to Phase 2.
239
-
240
- **If "Copy command and run manually"** → Output the command for the user to copy and run in their own terminal:
241
- ```
242
- To recover, run this command in your project root:
243
-
244
- .\.prizmkit\dev-pipeline\run-recovery.ps1
245
-
246
- Or with options:
247
- .\.prizmkit\dev-pipeline\run-recovery.ps1 run --dry-run # Preview the recovery prompt first
248
- .\.prizmkit\dev-pipeline\run-recovery.ps1 run --yes # Skip confirmation
249
- .\.prizmkit\dev-pipeline\run-recovery.ps1 run --model <model> # Specify AI model
250
- ```
251
- **End this skill** — do not proceed to Phase 2. The user will run the command themselves.
252
-
253
- **If "Resume interactively"** → Continue to Phase 2 below (execute remaining steps in this session).
254
-
255
- **If "Start fresh"** → Suggest the appropriate original workflow skill:
256
- - bug-fix-workflow → `/bug-fix-workflow`
257
- - feature-workflow → `/feature-workflow`
258
- - refactor-workflow → `/refactor-workflow`
259
- End this skill.
260
-
261
- **NEVER proceed to Phase 2 without explicit user selection via `AskUserQuestion`. Do NOT render options as plain text — the user must be able to click/select.**
262
-
263
- **CHECKPOINT CP-REC-1**: User chose recovery target and approach.
264
-
265
- ---
266
-
267
- ## Phase 2: Execute Remaining Steps
268
-
269
- **Goal**: Read the target workflow's SKILL.md and execute from the inferred phase.
270
-
271
- ### 2.0 Read Target Workflow
272
-
273
- 1. **Read the workflow's installed skill file** for `{workflow-type}`:
274
- - Codex: `.agents/skills/{workflow-type}/SKILL.md`
275
- - Claude: `.claude/commands/{workflow-type}.md`
276
- - CodeBuddy: `.codebuddy/skills/{workflow-type}/SKILL.md`
277
- 2. **Read existing artifacts** to restore context — check in this order for the most efficient recovery:
278
- - If `context-snapshot.md` exists in the artifact directory → read it first. It provides a snapshot of completed tasks, key decisions, and remaining work from the interrupted session.
279
- - If `session-summary.md` exists → read it for a lightweight summary of the previous session.
280
- - Then read remaining artifacts: spec.md, plan.md, review-report.md, code diffs, bug descriptions, etc.
281
- 3. **Read relevant `.prizmkit/prizm-docs/`** — load project context (L0 root, relevant L1/L2 for affected modules).
282
-
283
- This step replaces the context that was lost when the AI session was interrupted.
284
-
285
- ---
286
-
287
- ### 2.1 Per-Workflow Phase Inference
288
-
289
- Read `${SKILL_DIR}/references/detection.md` for the per-workflow phase-inference tables (bug-fix / feature / refactor) that map detected state → the phase to resume from and its actions.
290
-
291
- **Bug-fix execution**: Follow the bug-fix-workflow SKILL.md instructions exactly. Call the same prizmkit sub-commands (`/prizmkit-code-review`, `/prizmkit-committer`) at the same points.
292
-
293
- **Special handling**:
294
- - If resuming from Phase 5 (Review) and tests are failing, fix test failures first (max 3 attempts). If unfixable, ask user whether to continue or restart.
295
- - If resuming from Phase 4 (Fix), read fix-plan.md to understand the planned approach before writing code.
296
-
297
- **Feature recovery**: Phases 3-4 are pipeline-driven. The main recovery value is avoiding re-brainstorming (Phase 1) when `.prizmkit/plans/feature-list.json` already exists.
298
-
299
- **Refactor recovery**: Mirrors feature-workflow (brainstorm → launch → monitor).
300
-
301
- ### 2.4 Post-Recovery Report
302
-
303
- After all remaining phases complete, output a summary:
304
-
305
- ```
306
- Recovery complete.
307
-
308
- Workflow: bug-fix-workflow
309
- Recovered from: Phase 5 (Review)
310
- Completed: code review → user verification → commit & merge
311
- Preserved: fix-plan.md, 4 code files, 1 test file
312
-
313
- Next steps:
314
- • Check for other interrupted workflows
315
- • Or start a new workflow
316
- ```
317
-
318
- **CHECKPOINT CP-REC-2**: Workflow recovered and completed.
319
-
320
- ---
321
-
322
- ## Error Handling
323
-
324
- | Scenario | Action |
325
- |----------|--------|
326
- | No workflow signature matches | Show guidance message, suggest original workflow skills |
327
- | Branch exists but artifacts are inconsistent | Trust git as ground truth, report discrepancy in detection report |
328
- | Test failures in existing code | Report in detection summary; user decides whether to continue |
329
- | Multiple workflows could match (e.g., on main but both .prizmkit/plans/feature-list.json and bug-fix artifacts exist) | Pick highest priority (bug-fix > refactor > feature), mention others in report |
330
- | Detection script fails | Fall back to manual detection (run individual git/file checks in PowerShell) |
331
- | Bug ID not found in .prizmkit/plans/bug-fix-list.json | Continue with branch-only context; note that full bug description is unavailable |
332
-
333
- ---
334
-
335
- ## Relationship to Other Skills
336
-
337
- | Skill | Relationship |
338
- |-------|-------------|
339
- | `feature-workflow` | **Recovery target** — this skill can resume interrupted feature-workflow sessions |
340
- | `bug-fix-workflow` | **Recovery target** — this skill can resume interrupted bug-fix-workflow sessions |
341
- | `refactor-workflow` | **Recovery target** — this skill can resume interrupted refactor-workflow sessions |
342
- | `feature-pipeline-launcher` | **Called in Phase 2.2** — launches or checks pipeline status for feature recovery |
343
- | `reset-feature.ps1 <F-XXX> --clean --run` | **Alternative** — clean retry for one feature; this skill is the smart interactive alternative |
344
- | `reset-bug.ps1 <B-XXX> --clean --run` | **Alternative** — clean retry for one bugfix item |
345
- | `run-recovery.ps1` | **Pipeline counterpart** — shell-driven recovery that generates bootstrap prompt and spawns AI CLI session for autonomous completion |
346
- | `/prizmkit-code-review` | **Called in Phase 2.1** — reviews recovered bug-fix code |
347
- | `/prizmkit-committer` | **Called in Phase 2.1** — commits the recovered result |
348
-
349
- ---
350
-
351
- ## Output
352
-
353
- - Resumed and completed workflow from the breakpoint
354
- - Same outputs as the original workflow would produce (commits, artifacts, state updates)
355
- - Recovery summary showing what was preserved vs what was re-done
@@ -1,46 +0,0 @@
1
- {
2
- "skill_name": "recovery-workflow",
3
- "notes": "These test cases require workspace state setup. Each has a setup_description that creates the necessary mock state before the skill is invoked. Due to the interactive nature and state-dependency of this skill, automated evaluation is limited — qualitative review is primary.",
4
- "evals": [
5
- {
6
- "id": 1,
7
- "name": "bugfix-mid-fix",
8
- "prompt": "My session broke, help me recover",
9
- "expected_output": "Should auto-detect bug-fix-workflow from fix/B-001-* branch. Should detect fix-plan.md + code changes → infer Phase 5 (Review). Should display recovery report with workflow type, phase, artifacts, code stats. After user confirms, should invoke /prizmkit-code-review on existing changes.",
10
- "setup_description": "Create fix/B-001-login-crash branch, .prizmkit/bugfix/B-001/fix-plan.md, modify 3 source files + 1 test file. No fix-report.md, no commits ahead of main.",
11
- "files": []
12
- },
13
- {
14
- "id": 2,
15
- "name": "bugfix-plan-only",
16
- "prompt": "Continue the previous work",
17
- "expected_output": "Should auto-detect bug-fix-workflow from fix/B-002-* branch. Should detect fix-plan.md but no code changes → infer Phase 4 (Fix). Should read fix-plan.md and start implementing the fix.",
18
- "setup_description": "Create fix/B-002-null-pointer branch, .prizmkit/bugfix/B-002/fix-plan.md with diagnosis and fix approach. No code changes.",
19
- "files": []
20
- },
21
- {
22
- "id": 3,
23
- "name": "feature-list-exists",
24
- "prompt": "resume",
25
- "expected_output": "Should auto-detect feature-workflow from .prizmkit/plans/feature-list.json. Should detect .prizmkit/plans/feature-list.json exists but no pipeline state → infer Phase 3 (Launch). Should invoke feature-pipeline-launcher to start the pipeline.",
26
- "setup_description": "On main branch, create .prizmkit/plans/feature-list.json with 3 features. No .prizmkit/state/features/ directory.",
27
- "files": []
28
- },
29
- {
30
- "id": 4,
31
- "name": "refactor-monitoring",
32
- "prompt": "pick up where it left off",
33
- "expected_output": "Should auto-detect refactor-workflow from .prizmkit/plans/refactor-list.json + pipeline state. Should infer Phase 4 (Monitor). Should check pipeline status and report results.",
34
- "setup_description": "On main branch, create .prizmkit/plans/refactor-list.json with 2 items. Create .prizmkit/state/refactor/ with status files showing 1 completed, 1 in-progress.",
35
- "files": []
36
- },
37
- {
38
- "id": 5,
39
- "name": "no-workflow-detected",
40
- "prompt": "recover",
41
- "expected_output": "Should detect no workflow signatures in workspace. Should display guidance message suggesting /feature-workflow, /bug-fix-workflow, or /refactor-workflow. Should NOT attempt any recovery actions.",
42
- "setup_description": "Clean workspace on main branch. No .prizmkit/plans/feature-list.json, no bug-fix artifacts, no .prizmkit/plans/refactor-list.json, no fix/* or feat/* or refactor/* branches.",
43
- "files": []
44
- }
45
- ]
46
- }
@@ -1,58 +0,0 @@
1
- # Recovery Phase Detection
2
-
3
- The script uses **priority-ordered signature matching**:
4
-
5
- ```
6
- 1. Current branch matches fix/* → bug-fix-workflow
7
- 2. .prizmkit/bugfix/ directory has content → bug-fix-workflow
8
- 3. Current branch matches refactor/* → refactor-workflow
9
- 4. .prizmkit/plans/refactor-list.json exists → refactor-workflow
10
- 5. Current branch matches feat/* → feature-workflow
11
- 6. .prizmkit/plans/feature-list.json exists → feature-workflow
12
- 7. None of the above → no workflow detected
13
- ```
14
-
15
- Bug-fix-workflow has highest priority because it is purely interactive and benefits most from recovery (no pipeline retry fallback).
16
-
17
- ## If No Workflow Detected
18
-
19
- Show guidance and exit:
20
-
21
- ```
22
- No interrupted workflow detected in this workspace.
23
-
24
- To start a new workflow:
25
- • /feature-workflow — build features from idea to code
26
- • /bug-fix-workflow — fix a specific bug interactively
27
- • /refactor-workflow — behavior-preserving code restructuring
28
- ```
29
-
30
- ## Phase Inference Tables
31
-
32
- ### Bug-Fix-Workflow Recovery
33
-
34
- | Detected State | Resume From | Actions |
35
- |---------------|------------|---------|
36
- | On `fix/<BUG_ID>-*` branch, no artifacts | Phase 1: Deep Bug Diagnosis | Read bug description from `.prizmkit/plans/bug-fix-list.json`. Start interactive diagnosis Q&A |
37
- | `fix-plan.md` exists, no code changes | Phase 4: Fix | Read fix-plan.md. Implement the fix following the plan |
38
- | `fix-plan.md` + code changes exist | Phase 5: Review | Invoke `/prizmkit-code-review` on all changes |
39
- | All docs + review passed | Phase 6: User Verification | Ask user to verify the fix works |
40
- | All docs + committed | Phase 7: Merge Decision | Ask merge vs keep branch |
41
-
42
- Note: Bug-fix Phases 1-3 (Diagnosis, Triage, Reproduce) collapse to Phase 1 because they don't produce persistent artifacts. If interrupted during these phases, recovery restarts from Phase 1.
43
-
44
- ### Feature-Workflow Recovery
45
-
46
- | Detected State | Resume From | Actions |
47
- |---------------|------------|---------|
48
- | No `.prizmkit/plans/feature-list.json` | Phase 1: Brainstorm | Cannot recover conversation context. Start requirement clarification, leverage workspace content |
49
- | `.prizmkit/plans/feature-list.json` exists, no pipeline state | Phase 3: Launch | Invoke `feature-pipeline-launcher` |
50
- | `.prizmkit/plans/feature-list.json` + pipeline state exists | Phase 4: Monitor | Check pipeline status via `feature-pipeline-launcher` (Intent B) |
51
-
52
- ### Refactor-Workflow Recovery
53
-
54
- | Detected State | Resume From | Actions |
55
- |---------------|------------|---------|
56
- | No `.prizmkit/plans/refactor-list.json` | Phase 1: Brainstorm | Start refactoring goal clarification |
57
- | `.prizmkit/plans/refactor-list.json` exists, no pipeline state | Phase 3: Launch | Invoke `refactor-pipeline-launcher` |
58
- | `.prizmkit/plans/refactor-list.json` + pipeline state exists | Phase 4: Monitor | Check pipeline status |