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,316 +0,0 @@
1
- #!/usr/bin/env python3
2
- """Initialize the bug-fix pipeline state directory from a .prizmkit/plans/bug-fix-list.json file.
3
-
4
- Validates the bug fix list schema, sorts by priority/severity, and creates
5
- the state directory structure with pipeline and per-bug status files.
6
-
7
- Usage:
8
- python3 init-bugfix-pipeline.py --bug-list <path> --state-dir <path>
9
- """
10
-
11
- import argparse
12
- import json
13
- import os
14
- import re
15
- import sys
16
- from datetime import datetime, timezone
17
-
18
-
19
- EXPECTED_SCHEMA = "dev-pipeline-bug-fix-list-v1"
20
- BUG_ID_PATTERN = re.compile(r"^B-\d{3}$")
21
-
22
- REQUIRED_BUG_FIELDS = [
23
- "id",
24
- "title",
25
- "description",
26
- "severity",
27
- "error_source",
28
- "verification_type",
29
- "acceptance_criteria",
30
- "status",
31
- ]
32
-
33
- VALID_SEVERITIES = ["critical", "high", "medium", "low"]
34
- VALID_VERIFICATION_TYPES = ["automated", "manual", "hybrid"]
35
- VALID_STATUSES = [
36
- "pending", "in_progress", "completed", "failed",
37
- "skipped", "needs_info",
38
- ]
39
- TERMINAL_STATUSES = {"completed", "failed", "skipped", "needs_info"}
40
- VALID_ERROR_SOURCE_TYPES = [
41
- "stack_trace", "user_report", "failed_test", "log_pattern", "monitoring_alert",
42
- ]
43
-
44
-
45
- def parse_args():
46
- parser = argparse.ArgumentParser(
47
- description="Initialize bug-fix pipeline state from a .prizmkit/plans/bug-fix-list.json file."
48
- )
49
- parser.add_argument(
50
- "--bug-list",
51
- required=True,
52
- help="Path to the .prizmkit/plans/bug-fix-list.json file",
53
- )
54
- parser.add_argument(
55
- "--state-dir",
56
- required=True,
57
- help="Path to the state directory (default: .prizmkit/state/bugfix)",
58
- )
59
- return parser.parse_args()
60
-
61
-
62
- def load_bug_list(path):
63
- """Load and return the parsed JSON from the bug fix list file."""
64
- abs_path = os.path.abspath(path)
65
- if not os.path.isfile(abs_path):
66
- return None, ["Bug fix list file not found: {}".format(abs_path)]
67
- try:
68
- with open(abs_path, "r", encoding="utf-8") as f:
69
- data = json.load(f)
70
- except json.JSONDecodeError as e:
71
- return None, ["Invalid JSON in bug fix list: {}".format(str(e))]
72
- except IOError as e:
73
- return None, ["Cannot read bug fix list file: {}".format(str(e))]
74
- return data, []
75
-
76
-
77
- def validate_schema(data):
78
- """Validate the top-level schema and structure of the bug fix list."""
79
- errors = []
80
-
81
- # Check $schema
82
- schema = data.get("$schema")
83
- if schema != EXPECTED_SCHEMA:
84
- errors.append(
85
- "Invalid $schema: expected '{}', got '{}'".format(EXPECTED_SCHEMA, schema)
86
- )
87
-
88
- # Check project_name
89
- if "project_name" not in data:
90
- errors.append("Missing required field: project_name")
91
- elif not isinstance(data["project_name"], str) or not data["project_name"].strip():
92
- errors.append("project_name must be a non-empty string")
93
-
94
- # Check bugs array
95
- if "bugs" not in data:
96
- errors.append("Missing required field: bugs")
97
- elif not isinstance(data["bugs"], list):
98
- errors.append("bugs must be an array")
99
- elif len(data["bugs"]) == 0:
100
- errors.append("bugs array must contain at least one bug")
101
-
102
- return errors
103
-
104
-
105
- def validate_bugs(bugs):
106
- """Validate each bug object in the list."""
107
- errors = []
108
- seen_ids = set()
109
-
110
- for i, bug in enumerate(bugs):
111
- if not isinstance(bug, dict):
112
- errors.append("Bug at index {} is not an object".format(i))
113
- continue
114
-
115
- # Check required fields
116
- for field in REQUIRED_BUG_FIELDS:
117
- if field not in bug:
118
- errors.append(
119
- "Bug at index {} missing required field: {}".format(i, field)
120
- )
121
-
122
- # Validate bug ID format
123
- bid = bug.get("id")
124
- if bid is not None:
125
- if not isinstance(bid, str) or not BUG_ID_PATTERN.match(bid):
126
- errors.append(
127
- "Bug at index {} has invalid id '{}' "
128
- "(must match B-NNN pattern)".format(i, bid)
129
- )
130
- elif bid in seen_ids:
131
- errors.append("Duplicate bug id: {}".format(bid))
132
- else:
133
- seen_ids.add(bid)
134
-
135
- # Validate severity
136
- severity = bug.get("severity")
137
- if severity is not None and severity not in VALID_SEVERITIES:
138
- errors.append(
139
- "Bug '{}' has invalid severity '{}' "
140
- "(must be one of {})".format(
141
- bid or "index {}".format(i), severity, VALID_SEVERITIES
142
- )
143
- )
144
-
145
- # Validate verification_type
146
- vtype = bug.get("verification_type")
147
- if vtype is not None and vtype not in VALID_VERIFICATION_TYPES:
148
- errors.append(
149
- "Bug '{}' has invalid verification_type '{}' "
150
- "(must be one of {})".format(
151
- bid or "index {}".format(i), vtype, VALID_VERIFICATION_TYPES
152
- )
153
- )
154
-
155
- # Validate status
156
- status = bug.get("status")
157
- if status is not None and status not in VALID_STATUSES:
158
- errors.append(
159
- "Bug '{}' has invalid status '{}' "
160
- "(must be one of {})".format(
161
- bid or "index {}".format(i), status, VALID_STATUSES
162
- )
163
- )
164
-
165
- # Validate error_source has type field
166
- error_source = bug.get("error_source")
167
- if error_source is not None:
168
- if not isinstance(error_source, dict):
169
- errors.append(
170
- "Bug '{}' error_source must be an object".format(
171
- bid or "index {}".format(i)
172
- )
173
- )
174
- elif "type" not in error_source:
175
- errors.append(
176
- "Bug '{}' error_source missing required field: type".format(
177
- bid or "index {}".format(i)
178
- )
179
- )
180
- else:
181
- es_type = error_source["type"]
182
- if es_type not in VALID_ERROR_SOURCE_TYPES:
183
- # Warn but don't error — the pipeline can still attempt the fix
184
- print(
185
- "WARNING: Bug '{}' error_source.type '{}' is not one of {} "
186
- "— pipeline will still attempt to process this bug".format(
187
- bid or "index {}".format(i), es_type, VALID_ERROR_SOURCE_TYPES
188
- ),
189
- file=sys.stderr,
190
- )
191
-
192
- # Validate acceptance_criteria is a list
193
- ac = bug.get("acceptance_criteria")
194
- if ac is not None and not isinstance(ac, list):
195
- errors.append(
196
- "Bug '{}' acceptance_criteria must be an array".format(
197
- bid or "index {}".format(i)
198
- )
199
- )
200
-
201
- return errors, seen_ids
202
-
203
-
204
- def create_state_directory(state_dir, bug_list_path, bugs):
205
- """Create the state directory structure with pipeline.json and per-bug status files."""
206
- abs_state_dir = os.path.abspath(state_dir)
207
- abs_bug_list_path = os.path.abspath(bug_list_path)
208
- # Store as relative path from state_dir so pipeline.json is portable across machines
209
- rel_bug_list_path = os.path.relpath(abs_bug_list_path, abs_state_dir)
210
- bugs_dir = abs_state_dir
211
-
212
- now = datetime.now(timezone.utc).strftime("%Y-%m-%dT%H:%M:%SZ")
213
- run_id = "bugfix-run-" + datetime.now(timezone.utc).strftime("%Y%m%d%H%M%S")
214
-
215
- # Create top-level state directory
216
- os.makedirs(abs_state_dir, exist_ok=True)
217
- os.makedirs(bugs_dir, exist_ok=True)
218
-
219
- # Count bugs already in terminal status at init time
220
- completed_count = sum(
221
- 1 for b in bugs
222
- if isinstance(b, dict) and b.get("status") in TERMINAL_STATUSES
223
- )
224
-
225
- # Write pipeline.json
226
- pipeline_state = {
227
- "run_id": run_id,
228
- "pipeline_type": "bugfix",
229
- "status": "initialized",
230
- "bug_list_path": rel_bug_list_path,
231
- "created_at": now,
232
- "total_bugs": len(bugs),
233
- "completed_bugs": completed_count,
234
- }
235
- pipeline_path = os.path.join(abs_state_dir, "pipeline.json")
236
- with open(pipeline_path, "w", encoding="utf-8") as f:
237
- json.dump(pipeline_state, f, indent=2, ensure_ascii=False)
238
- f.write("\n")
239
-
240
- # Write per-bug status.json and create sessions directory
241
- for bug in bugs:
242
- if not isinstance(bug, dict):
243
- continue
244
- bid = bug.get("id")
245
- if bid is None:
246
- continue
247
-
248
- bug_dir = os.path.join(bugs_dir, bid)
249
- sessions_dir = os.path.join(bug_dir, "sessions")
250
- os.makedirs(sessions_dir, exist_ok=True)
251
-
252
- bug_status = {
253
- "bug_id": bid,
254
- "retry_count": 0,
255
- "max_retries": 3,
256
- "sessions": [],
257
- "last_session_id": None,
258
- "resume_from_phase": None,
259
- "created_at": now,
260
- "updated_at": now,
261
- }
262
- status_path = os.path.join(bug_dir, "status.json")
263
- with open(status_path, "w", encoding="utf-8") as f:
264
- json.dump(bug_status, f, indent=2, ensure_ascii=False)
265
- f.write("\n")
266
-
267
- return abs_state_dir
268
-
269
-
270
- def main():
271
- args = parse_args()
272
-
273
- # Load bug fix list
274
- data, load_errors = load_bug_list(args.bug_list)
275
- if load_errors:
276
- output = {"valid": False, "errors": load_errors}
277
- print(json.dumps(output, indent=2, ensure_ascii=False))
278
- sys.exit(1)
279
-
280
- # Validate schema
281
- schema_errors = validate_schema(data)
282
- if schema_errors:
283
- output = {"valid": False, "errors": schema_errors}
284
- print(json.dumps(output, indent=2, ensure_ascii=False))
285
- sys.exit(1)
286
-
287
- # Validate bugs
288
- bugs = data["bugs"]
289
- bug_errors, bug_ids = validate_bugs(bugs)
290
- if bug_errors:
291
- output = {"valid": False, "errors": bug_errors}
292
- print(json.dumps(output, indent=2, ensure_ascii=False))
293
- sys.exit(1)
294
-
295
- # Create state directory
296
- try:
297
- abs_state_dir = create_state_directory(
298
- args.state_dir, args.bug_list, bugs
299
- )
300
- except (IOError, OSError) as e:
301
- output = {"valid": False, "errors": ["Failed to create state directory: {}".format(str(e))]}
302
- print(json.dumps(output, indent=2, ensure_ascii=False))
303
- sys.exit(1)
304
-
305
- # Success output
306
- output = {
307
- "valid": True,
308
- "bugs_count": len(bugs),
309
- "state_dir": abs_state_dir,
310
- }
311
- print(json.dumps(output, indent=2, ensure_ascii=False))
312
- sys.exit(0)
313
-
314
-
315
- if __name__ == "__main__":
316
- main()
@@ -1,134 +0,0 @@
1
- #!/usr/bin/env python3
2
- """Initialize prizmkit directory structures for a feature.
3
-
4
- Creates the standard directory layout expected by prizm-dev-team agents:
5
- - .prizmkit/specs/<feature-slug>/ ← per-feature subdirectory
6
-
7
- Usage:
8
- python3 init-dev-team.py --project-root <path> --feature-slug <slug>
9
- """
10
-
11
- import argparse
12
- import json
13
- import os
14
- import sys
15
- from datetime import datetime, timezone
16
-
17
-
18
- def parse_args():
19
- parser = argparse.ArgumentParser(
20
- description="Initialize dev-team and prizmkit directories"
21
- )
22
- parser.add_argument(
23
- "--project-root",
24
- required=True,
25
- help="Project root directory",
26
- )
27
- parser.add_argument(
28
- "--feature-id",
29
- default=None,
30
- help="Feature ID (e.g. F-001)",
31
- )
32
- parser.add_argument(
33
- "--feature-slug",
34
- default=None,
35
- help="Feature slug for per-feature directory (e.g. 001-project-infrastructure-setup)",
36
- )
37
- return parser.parse_args()
38
-
39
-
40
- def create_directories(project_root, feature_slug=None):
41
- """Create the prizmkit directory structures."""
42
- dirs_to_create = []
43
-
44
- # PrizmKit per-feature directories
45
- if feature_slug:
46
- dirs_to_create.extend([
47
- ".prizmkit/specs/{}".format(feature_slug),
48
- ])
49
- else:
50
- # Fallback: create flat directories (not recommended)
51
- dirs_to_create.extend([
52
- ".prizmkit/specs",
53
- ])
54
-
55
- created = []
56
- for dir_path in dirs_to_create:
57
- full_path = os.path.join(project_root, dir_path)
58
- if not os.path.exists(full_path):
59
- os.makedirs(full_path, exist_ok=True)
60
- created.append(dir_path)
61
-
62
- return created
63
-
64
-
65
- def init_prizmkit_config(project_root, feature_id):
66
- """Initialize or update .prizmkit/config.json."""
67
- config_path = os.path.join(project_root, ".prizmkit", "config.json")
68
-
69
- if os.path.exists(config_path):
70
- # Update existing config
71
- with open(config_path, "r", encoding="utf-8") as f:
72
- config = json.load(f)
73
- config["current_feature"] = feature_id
74
- config["updated_at"] = datetime.now(timezone.utc).strftime("%Y-%m-%dT%H:%M:%SZ")
75
- else:
76
- # Create new config
77
- # Try to get project name from package.json or directory name
78
- project_name = os.path.basename(project_root)
79
- pkg_json_path = os.path.join(project_root, "package.json")
80
- if os.path.exists(pkg_json_path):
81
- try:
82
- with open(pkg_json_path, "r", encoding="utf-8") as f:
83
- pkg = json.load(f)
84
- project_name = pkg.get("name", project_name)
85
- except (json.JSONDecodeError, IOError):
86
- pass
87
-
88
- config = {
89
- "adoption_mode": "active",
90
- "speckit_hooks_enabled": True,
91
- "project_name": project_name,
92
- "initialized_at": datetime.now(timezone.utc).strftime("%Y-%m-%dT%H:%M:%SZ"),
93
- "feature_prefix": "F-",
94
- "current_feature": feature_id,
95
- }
96
-
97
- with open(config_path, "w", encoding="utf-8") as f:
98
- json.dump(config, f, indent=2)
99
-
100
- return config_path
101
-
102
-
103
- def main():
104
- args = parse_args()
105
- project_root = os.path.abspath(args.project_root)
106
-
107
- if not os.path.isdir(project_root):
108
- result = {
109
- "success": False,
110
- "error": f"Project root does not exist: {project_root}",
111
- }
112
- print(json.dumps(result, indent=2))
113
- sys.exit(1)
114
-
115
- # Create directories
116
- created_dirs = create_directories(project_root, args.feature_slug)
117
-
118
- # Initialize config
119
- config_path = init_prizmkit_config(project_root, args.feature_id)
120
-
121
- result = {
122
- "success": True,
123
- "project_root": project_root,
124
- "feature_slug": args.feature_slug,
125
- "directories_created": created_dirs,
126
- "config_path": config_path,
127
- }
128
-
129
- print(json.dumps(result, indent=2))
130
- sys.exit(0)
131
-
132
-
133
- if __name__ == "__main__":
134
- main()