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,397 +0,0 @@
1
- ---
2
- name: "feature-planner"
3
- description: "Plan and manage features for an existing project — add new features, reprioritize, split, and generate validated .prizmkit/plans/feature-list.json for dev-pipeline execution. Use this skill for feature scoping, incremental planning, continuing a feature plan, or preparing pipeline input. For planning a new app from scratch, use app-planner instead."
4
- ---
5
-
6
- # feature planner
7
-
8
- Plan deliverable features for dev-pipeline on existing projects:
9
- - **New Feature Set**: create an initial .prizmkit/plans/feature-list.json for a project that has code but no plan yet
10
- - **Incremental Feature Planning**: append, adjust, or reprioritize features in an existing plan
11
-
12
- Always produce a validated `.prizmkit/plans/feature-list.json` that conforms to `dev-pipeline-feature-list`.
13
-
14
- For planning a **new application from scratch** (vision, tech stack, decomposition), use `app-planner` instead.
15
-
16
- ## Invocation Commitment (Hard Rule)
17
-
18
- **When the user invokes `/feature-planner`, you MUST execute the feature-planner workflow.** You must NEVER:
19
- - Decide on the user's behalf that the task "doesn't need feature-planner"
20
- - Skip feature-planner to jump directly to spec/plan/implement or any other skill
21
- - Bypass the interactive phases because you judge the task to be "simple" or "obvious"
22
-
23
- If the user's request is about planning a new app from scratch (vision, tech stack selection, app architecture), recommend `app-planner` instead and ask the user to confirm before switching.
24
-
25
- If you believe the task is better suited for a different workflow, you MUST:
26
- 1. **Explain why** you think a different path is more appropriate
27
- 2. **Ask the user explicitly** whether they want to switch or continue with feature-planner
28
- 3. **Only switch if the user confirms** — otherwise proceed with feature-planner as invoked
29
-
30
- The user chose this skill intentionally. Respect that choice.
31
-
32
- ## Scope Boundary (Hard Rule)
33
-
34
- **This skill is PLANNING ONLY.** You must NEVER:
35
- - Create, modify, or delete source code files (*.js, *.ts, *.py, *.go, *.html, *.css, etc.)
36
- - Create project scaffolding, directories, or boilerplate
37
- - Run build/install/test commands (npm init, pip install, etc.)
38
- - Execute any implementation action beyond writing `.prizmkit/plans/feature-list.json`
39
-
40
- **Your ONLY writable outputs are:**
41
- 1. `.prizmkit/plans/feature-list.json` (`.prizmkit/plans/`)
42
- 2. Draft backups in `.prizmkit/plans/` (e.g., `feature-list.draft.json`)
43
-
44
- **After planning is complete**, you MUST:
45
- 1. Present the summary and recommended next step (invoking `feature-pipeline-launcher` )
46
- 2. **Ask the user explicitly** whether they want to proceed to execution
47
- 3. If the user wants to adjust → continue refining `.prizmkit/plans/feature-list.json`
48
- 4. **NEVER auto-execute** the pipeline, launcher, or any implementation step
49
-
50
- ## User-Provided Content Priority (Hard Rule)
51
-
52
- When the user provides detailed specifications, rules, or implementation requirements:
53
-
54
- 1. **Verbatim preservation**: The user's exact wording MUST be preserved in `description` and `acceptance_criteria` fields. Do NOT paraphrase, summarize, abstract, or simplify.
55
- 2. **No autonomous simplification**: A 200-word user specification must NOT become a 30-word description. Match the detail level of the user's input.
56
- 3. **Clarify, don't assume**: If any user-provided rule is ambiguous or potentially conflicts with another, ASK the user to clarify. No limit on clarification rounds. Do NOT proceed with unresolved ambiguities.
57
- 4. **Populate `user_context`**: ALL user-provided materials (supplementary content, rules, file path references) MUST be written into the `user_context` array of each feature in the generated `.prizmkit/plans/feature-list.json`. Format:
58
- - Supplementary content or rules → store as-is (verbatim text)
59
- - File references → store as path string, e.g. `src/auth/login.ts:42-78` or `src/utils/validate.ts — focus on validateEmail function`
60
-
61
- ## When to Use
62
-
63
- Trigger conditions are covered by the frontmatter `description`. Do NOT use this skill when:
64
- - The user wants to plan a new app from scratch → use `app-planner`
65
- - The user only wants to run the pipeline → use `feature-pipeline-launcher`
66
- - The user is debugging/refactoring or wants to write source code directly
67
-
68
- ## Resource Loading Rules (Mandatory)
69
-
70
- 1. **Planning reference** — load before writing feature descriptions:
71
- - Read `${SKILL_DIR}/assets/planning-guide.md` for description writing standards, acceptance criteria patterns, complexity estimation, dependency rules, and session granularity
72
-
73
- 2. **Incremental planning reference** — load for incremental mode:
74
- - Read `${SKILL_DIR}/references/incremental-feature-planning.md`
75
-
76
- 3. **Load on-demand references when triggered**:
77
- - Validation errors or interrupted session → read `${SKILL_DIR}/references/error-recovery.md`
78
- - Browser interaction fields needed → read `${SKILL_DIR}/references/browser-interaction.md`
79
- - New feature set for a project (Route A) → read `${SKILL_DIR}/references/new-project-planning.md` for phase guide, quality rules, and delivery checklist
80
- - Feature decomposition from scratch → read `${SKILL_DIR}/references/decomposition-patterns.md` for common app patterns (CRUD, SaaS, Social, E-commerce)
81
- - Phase 6 completeness review → read `${SKILL_DIR}/references/completeness-review.md`
82
-
83
- 4. **Define the PowerShell Python helper before running validation scripts**:
84
- ```powershell
85
- function Invoke-PrizmPython {
86
- param([Parameter(ValueFromRemainingArguments = $true)][string[]]$Arguments)
87
- $python = Get-Command python -ErrorAction SilentlyContinue
88
- if ($python) {
89
- & $python.Source -c 'import sys; raise SystemExit(0 if sys.version_info[0] == 3 else 1)' *> $null
90
- if ($LASTEXITCODE -eq 0) {
91
- & $python.Source @Arguments
92
- return
93
- }
94
- }
95
- $py = Get-Command py -ErrorAction SilentlyContinue
96
- if ($py) {
97
- & $py.Source -3 -c 'import sys; raise SystemExit(0 if sys.version_info[0] == 3 else 1)' *> $null
98
- if ($LASTEXITCODE -eq 0) {
99
- & $py.Source -3 @Arguments
100
- return
101
- }
102
- }
103
- throw "Python 3 is required. Install Python and ensure python or py is in PATH."
104
- }
105
- ```
106
-
107
- 5. **Always validate output via script** — see §Output Rules for the validation command.
108
-
109
- If the script is not available, perform these manual validation checks:
110
- 1. **ID sequence**: All feature IDs are sequential (F-001, F-002, F-003, ...)
111
- 2. **No circular dependencies**: No feature depends (directly or transitively) on itself
112
- 3. **Description length**: Minimum 15 words per description (error); see §Output Rules for the recommended-length warning thresholds
113
- 4. **Dependency references**: All referenced features in dependencies exist in features array
114
- 5. **Priority enums**: All priority values are exactly "critical", "high", "medium", or "low" (case-sensitive)
115
- 6. **Status enum**: All status values are one of: pending, in_progress, completed, failed, skipped, split, auto_skipped
116
- 7. **Acceptance criteria**: At least 1 criterion per feature, each is a concrete, measurable statement
117
- 8. **Browser interaction**: If present, has verify_steps array (optional — AI auto-detects dev server, URL, port at runtime)
118
- 9. **Complexity enum**: If present, is one of: low, medium, high, critical
119
- 10. **Model field**: If present, is a non-empty string
120
- 11. **Critic field**: If present, is boolean; if true, critic_count should be 1 or 3
121
- 12. **Root schema**: Has $schema='dev-pipeline-feature-list-v1', project_name, and non-empty features array
122
-
123
- 6. **Use script output as source of truth** — if validation fails, fix and re-run until pass
124
-
125
- ## Prerequisites
126
-
127
- Before questions, check optional context files (never block if absent):
128
- - `.prizmkit/prizm-docs/root.prizm` (architecture/project context — typically created by app-planner with captured decisions)
129
- - `.prizmkit/config.json` (existing stack preferences and detected tech stack)
130
- - `.prizmkit/plans/project-brief.md` (project context from app-planner, if available)
131
- - existing `.prizmkit/plans/feature-list.json` (required for incremental mode)
132
- - Platform instruction file: use the `platform` field in `.prizmkit/manifest.json` as source of truth when present (`codex` → `AGENTS.md`, `claude` → `CLAUDE.md`, `codebuddy` → `CODEBUDDY.md`, `all` → read every matching file). Legacy manifests may contain `both`; treat it as read-only compatibility and read `CLAUDE.md` plus `CODEBUDDY.md` only when encountered.
133
- - If `.prizmkit/prizm-docs/root.prizm` is absent and the project has existing source code, scan the directory structure to understand the codebase layout:
134
- ```powershell
135
- Get-ChildItem -Path . -Directory -Recurse -Depth 2 -ErrorAction SilentlyContinue |
136
- Where-Object { $_.FullName -notmatch '\\(node_modules|\.git|dist|build|__pycache__|vendor|\.agents|\.codex|\.claude|\.codebuddy|\.prizmkit)(\\|$)' } |
137
- Select-Object -ExpandProperty FullName
138
- ```
139
-
140
- **Tech stack from config.json:**
141
- - If `.prizmkit/config.json` contains a `tech_stack` object, use it to pre-fill `global_context` fields in the generated `.prizmkit/plans/feature-list.json`.
142
- - Map config fields to global_context: `language`, `runtime`, `frontend_framework`, `frontend_styling`, `backend_framework`, `database`, `orm`, `testing` → `testing_strategy`, `bundler`, `project_type`.
143
- - Do NOT re-ask the user for tech stack info already present in config.json. Show detected stack and confirm.
144
-
145
- ## Global Context Population
146
-
147
- The `global_context` object in `.prizmkit/plans/feature-list.json` provides technology stack information. Populate it from `.prizmkit/config.json` if available, or ask the user during Phase 1.
148
-
149
- ### Recommended Fields by Project Type
150
-
151
- **Frontend-only projects:**
152
- - `language` (required) — e.g., "TypeScript", "JavaScript"
153
- - `frontend_framework` (required) — e.g., "React", "Vue", "Svelte"
154
- - `frontend_styling` (recommended) — e.g., "Tailwind CSS", "styled-components"
155
- - `testing_strategy` (recommended) — e.g., "Jest + React Testing Library"
156
-
157
- **Backend-only projects:**
158
- - `language` (required) — e.g., "TypeScript", "Python", "Go"
159
- - `backend_framework` (required) — e.g., "Express", "Django", "FastAPI"
160
- - `database` (required if applicable) — e.g., "PostgreSQL", "MongoDB"
161
- - `testing_strategy` (recommended) — e.g., "Jest", "pytest"
162
-
163
- **Full-stack projects (include both frontend AND backend fields):**
164
- - `language`, `frontend_framework`, `backend_framework`, `database`, `testing_strategy` (all recommended)
165
- - Additional: `frontend_styling`, `orm`, `bundler`, `runtime`
166
-
167
- All `global_context` fields are optional — including recommended fields improves downstream code generation quality. See `.prizmkit/dev-pipeline/templates/feature-list-schema.json` for the full schema definition.
168
-
169
-
170
- ---
171
-
172
- ## Scenario Routing
173
-
174
- Classify user intent first:
175
-
176
- ### Route A: New Feature Set (No Existing Plan)
177
- Use when the project exists but has no `.prizmkit/plans/feature-list.json` yet.
178
-
179
- Actions:
180
- 1. Understand the existing codebase and what's already implemented
181
- 2. Run interactive planning phases to identify needed features
182
- 3. Generate initial `.prizmkit/plans/feature-list.json`
183
-
184
- ### Route B: Incremental Feature Planning
185
- Use when user already has a `.prizmkit/plans/feature-list.json` and wants to add or adjust features.
186
-
187
- Actions:
188
- 1. Load `${SKILL_DIR}/references/incremental-feature-planning.md`
189
- 2. Read existing `.prizmkit/plans/feature-list.json` first (if missing, ask whether to start new plan)
190
- 3. Append features with next sequential `F-NNN` IDs
191
- 4. Preserve style/language/detail consistency with existing plan
192
-
193
- ## Core Workflow
194
-
195
- Execute the planning workflow in conversation mode with mandatory checkpoints:
196
-
197
- ### Interactive Phases
198
- 1. Clarify scope and goals
199
- 1.1 **Requirement clarification** — for ANY unclear aspect of the user's goals or scope, ask questions one at a time (cite the unclear point, give a recommended answer with rationale) until you fully understand. No limit on rounds. Do not proceed to Phase 2 with unresolved ambiguities.
200
- 1.2 **Collect reference materials** — **Upfront Material Detection (Hard Rule)**: If the user has already provided materials (file paths, URLs, rules, specifications, code snippets) in the same message that invoked this skill: (a) Acknowledge what was received: "I received the following materials: [list]"; (b) Read/fetch all provided materials immediately; (c) You MUST still ask: "Are there any additional materials you'd like to provide?"; (d) NEVER skip this collection step just because the user already provided some materials.
201
-
202
- If the user has NOT provided any materials upfront, explicitly ask whether they have any supplementary materials for you to review. Present this as a single prompt covering all material types:
203
- > "Do you have any reference materials I should review before planning? This can include:
204
- > - **Code paths** — files or directories I should read to understand existing implementation
205
- > - **Documents** — design docs, PRDs, API specs, architecture proposals, or internal wiki pages
206
- > - **Knowledge docs** — `.prizmkit/prizm-docs/` files, README files, or project-specific documentation
207
- > - **Images** — wireframes, mockups, architecture diagrams, or screenshots
208
- > - **Web links** — reference implementations, API documentation pages, or relevant articles
209
- >
210
- > If none, we'll proceed with what's available in the codebase."
211
-
212
- If the user provides materials, read/fetch them all before proceeding to Phase 2. For web links, use web fetch to retrieve and analyze the content. For images, read and analyze them visually. Record what was reviewed for traceability.
213
- 2. Confirm constraints and existing architecture
214
- 3. Propose feature set with dependencies
215
- 4. Refine descriptions and acceptance criteria
216
- 4.1 **Per-feature clarification** — for each feature, if the description, acceptance criteria, or scope is vague or could be interpreted multiple ways, ask the user to clarify before finalizing.
217
- 4.2 **Browser interaction** (mandatory for fullstack/frontend projects) — see §Browser Interaction Planning below. Qualifying features get `browser_interaction` by default. Only confirm with the user as a batch summary; do NOT ask per-feature.
218
- 5. Verify DAG/order/priorities
219
- 6. Pre-generation completeness review (see §Pre-Generation Completeness Review below)
220
- 7. Build or append `.prizmkit/plans/feature-list.json`
221
- 8. Apply default testing strategy (see §Testing Defaults below)
222
- 9. Validate and fix until pass
223
- 10. Summarize final feature table
224
-
225
- ### Checkpoints (Mandatory Gates)
226
-
227
- Checkpoints catch cascading errors early — skipping one means the next phase builds on unvalidated assumptions, which compounds into much harder debugging later.
228
-
229
- | Checkpoint | Artifact/State | Criteria | Phase |
230
- |-----------|----------------|----------|-------|
231
- | **CP-FP-1** | Scope Confirmed | User confirmed what features to plan and context understood | 1 |
232
- | **CP-FP-2** | Feature Proposals | Feature set with titles+deps identified (pre-validation) | 3-5 |
233
- | **CP-FP-3** | DAG Validity | No cycles, dependencies resolved (validation dry-run) | 5 |
234
- | **CP-FP-3.1** | Browser Interaction Applied | Qualifying features have `browser_interaction` field; user confirmed or opted out | 4 |
235
- | **CP-FP-3.2** | Testing Defaults Applied | All features have appropriate `critic`, `critic_count`, and testing expectations | 7 |
236
- | **CP-FP-3.3** | Completeness Review Passed | All features reviewed for description adequacy and cross-feature gaps | 6 |
237
- | **CP-FP-4** | `.prizmkit/plans/feature-list.json` Generated | Schema validates, all required keys present | 7-8 |
238
- | **CP-FP-5** | Final Validation Pass | Python script returns `"valid": true` with zero errors | 9 |
239
-
240
- **Resume Detection**: If existing artifacts are found, read `${SKILL_DIR}/references/error-recovery.md` §Resume Support for checkpoint-based resumption.
241
-
242
- ## Pre-Generation Completeness Review (Phase 6)
243
-
244
- Before generating `.prizmkit/plans/feature-list.json`, review the full feature set holistically.
245
-
246
- → Read `${SKILL_DIR}/references/completeness-review.md` for the full review process (description adequacy scan, cross-feature completeness check, user presentation, and interactive supplementation).
247
-
248
- This gate ensures all features are implementation-ready before output generation. Thin descriptions here cost minutes to fix; misimplemented features downstream cost hours.
249
-
250
- ## Fast Path (Simple Incremental)
251
-
252
- For simple incremental planning, skip detailed Phase 2-3 analysis:
253
-
254
- ### Eligibility Criteria (ALL must apply)
255
- - **Incremental mode only** — not new feature set
256
- - **Adding 1-2 features max** to existing plan
257
- - **Each feature**: ≤5 acceptance criteria, <100 words description
258
- - **Dependencies**: depends on ≤2 existing features (no chains)
259
- - **Complexity**: "low" or "medium" only
260
- - **No architectural changes** to existing tech stack
261
-
262
- ### Fast Path Workflow
263
- 1. Read existing `.prizmkit/plans/feature-list.json` and confirm scope
264
- 2. **User confirmation (mandatory)** — Use `AskUserQuestion` to present interactive selectable options:
265
-
266
- ```
267
- AskUserQuestion:
268
- question: "This qualifies for fast-path (simple incremental addition). How would you like to proceed?"
269
- header: "Approach"
270
- options:
271
- - label: "Fast-path"
272
- description: "Skip detailed Phase 2-3 analysis, draft features directly and add to feature-list.json"
273
- - label: "Full workflow"
274
- description: "Use the complete planning workflow with detailed analysis"
275
- - label: "Implement directly"
276
- description: "Skip the task list entirely and implement the feature(s) right now using /prizmkit-plan + /prizmkit-implement"
277
- ```
278
-
279
- - **Fast-path** → Continue with fast-path workflow below
280
- - **Full workflow** → Exit fast path, use full workflow from Phase 2
281
- - **Implement directly** → Invoke `/prizmkit-plan` directly to create spec + plan, then `/prizmkit-implement` to execute. Do NOT add to `.prizmkit/plans/feature-list.json`
282
-
283
- **NEVER proceed without explicit user selection via `AskUserQuestion`. Do NOT render options as plain text — the user must be able to click/select.**
284
- 3. Generate next sequential feature IDs
285
- 4. Draft features (title + description + acceptance_criteria + dependencies)
286
- 5. Write draft to `.prizmkit/plans/feature-list.draft.json`, then call the generate script:
287
- ```powershell
288
- Invoke-PrizmPython ${SKILL_DIR}/scripts/validate-and-generate.py generate --input .prizmkit/plans/feature-list.draft.json --output .prizmkit/plans/feature-list.json
289
- ```
290
- 6. If valid → summarize and recommend next step
291
- 7. If invalid → apply fixes to the draft, re-run generate (max 2 attempts, then escalate to full workflow)
292
-
293
- ## Browser Interaction Planning
294
-
295
- For fullstack/frontend projects, qualifying features get `browser_interaction` **by default**.
296
-
297
- ### Auto-Detection Rule
298
-
299
- A feature **qualifies** when ALL true:
300
- 1. `global_context.frontend_framework` exists
301
- 2. The feature's `acceptance_criteria` contain UI-related keywords: click, button, modal, page, form, display, navigate, tab, input, opens, shows, renders, visible, redirect, download, upload, preview, select, toggle, dropdown, popup, toast, menu
302
-
303
- A feature is **exempt** when ANY true:
304
- - Backend-only (API endpoints, database migrations, no UI criteria)
305
- - Config/setup/infrastructure
306
- - `status: "completed"` (already implemented)
307
-
308
- ### Default Behavior (Phase 4.2)
309
-
310
- 1. **Ask user for browser tool preference (Mandatory)**: Before generating any `browser_interaction` fields, use `AskUserQuestion` to ask which browser verification tool to use as the project default. Read `${SKILL_DIR}/references/browser-interaction.md` §Browser Tool Selection for the exact question format and options (`auto`/`playwright-cli`/`opencli`). Do NOT skip this step or assume a default without asking.
311
- 2. **Auto-generate** `browser_interaction` for ALL qualifying features. Read `${SKILL_DIR}/references/browser-interaction.md` for the object format, field rules, and per-feature `tool` override logic.
312
- 3. **Tool assignment per feature**: Use the user's chosen default. Override to `"opencli"` when the feature involves OAuth/SSO callbacks, third-party dashboard verification, or requires real login state. Override to `"playwright-cli"` when the feature is purely local UI (forms, components, routing). If user chose `"auto"`, AI assigns per-feature based on these rules.
313
- 4. **Present a summary** to the user showing which features received `browser_interaction` (including the `tool` value for each).
314
- 5. **User can opt-OUT** specific features or override the `tool` choice.
315
-
316
- ## Output Rules
317
-
318
- `.prizmkit/plans/feature-list.json` must conform to `.prizmkit/dev-pipeline/templates/feature-list-schema.json` (`$schema` = `dev-pipeline-feature-list-v1`).
319
-
320
- Key requirements:
321
- - non-empty `features` array
322
- - sequential feature IDs (`F-001`, `F-002`, ...)
323
- - valid dependency DAG (no cycles, all referenced IDs exist)
324
- - `priority`: `"critical"`, `"high"`, `"medium"`, or `"low"` (string, NOT numeric)
325
- - new items default `status: "pending"`
326
- - English feature titles for stable slug generation
327
- - `critic` / `critic_count` defaults per Testing Defaults section
328
- - `browser_interaction` auto-generated for qualifying frontend features (with `tool` selection: `auto`/`playwright-cli`/`opencli`)
329
- - descriptions: minimum 15 words (error), recommended minimum 30/50/80/100+ for low/medium/high/critical (warning). No upper limit — more detail prevents AI guessing
330
- - `estimated_complexity` determines pipeline execution tier:
331
- - `low` / `medium` → **lite** (single agent, no subagents)
332
- - `high` → **standard** (orchestrator + dev + reviewer, 3 agents)
333
- - `critical` → **full** (full team + critic agents, 5 agents). Use for: architectural changes touching 10+ files, cross-module refactoring with API surface changes, features requiring multi-critic voting
334
-
335
- **IMPORTANT: Do NOT hand-write the final JSON file.** Instead:
336
- 1. Write a draft JSON to a temporary path (e.g., `.prizmkit/plans/feature-list.draft.json`)
337
- 2. Call the generate script to validate and produce the final file:
338
- ```powershell
339
- Invoke-PrizmPython ${SKILL_DIR}/scripts/validate-and-generate.py generate --input .prizmkit/plans/feature-list.draft.json --output .prizmkit/plans/feature-list.json
340
- ```
341
- The script fills in defaults (`$schema`, `created_at`, `created_by`), validates all fields, and writes the final file only if validation passes. If validation fails, fix the draft and retry.
342
-
343
- ## Testing Defaults (Phase 8)
344
-
345
- Set default testing-related fields for each feature. The user can opt out.
346
-
347
- | Priority | `critic` | `critic_count` | Rationale |
348
- |----------|----------|----------------|-----------|
349
- | high | `true` | `3` | Multi-critic voting |
350
- | medium | `true` | `1` | Single critic review |
351
- | low | `false` | (omitted) | Skip critic |
352
-
353
- For frontend features with `browser_interaction`, browser verification is enabled by default. The `tool` field uses the user's choice from the mandatory browser tool question in Phase 4.2 (see §Browser Interaction Planning → Default Behavior).
354
-
355
- Present a consolidated testing summary table at Phase 8, then ask for confirmation.
356
-
357
- ## Next-Step Execution Policy (after planning)
358
-
359
- Recommend invoking `feature-pipeline-launcher` to configure and launch the dev-pipeline. Do NOT recommend running shell scripts directly — that is the launcher's responsibility. Follow the post-planning handoff in §Scope Boundary (never auto-execute).
360
-
361
- ## Error Recovery & Resume
362
-
363
- If validation fails or a session is interrupted → read `${SKILL_DIR}/references/error-recovery.md` for the full error type table, decision tree, retry logic, and checkpoint-based resume support.
364
-
365
- Key behaviors:
366
- - Warnings only → proceed with user approval
367
- - Critical errors → group by type, auto-fix where possible, max 3 total attempts
368
- - Interrupted session → detect checkpoint from existing artifacts, offer resume or restart
369
- - `.prizmkit/plans/feature-list.json` MUST be written to `.prizmkit/plans/` (project root level: `./{root}/.prizmkit/plans/feature-list.json`)
370
-
371
- ## Session Exit Gate
372
-
373
- Prevent accidental session exit without deliverable completion.
374
-
375
- ### Trigger Conditions
376
- Activate when ALL true:
377
- - User expressed intent to produce .prizmkit/plans/feature-list.json
378
- - Current phase < Phase 7
379
- - No valid `.prizmkit/plans/feature-list.json` written in this session
380
-
381
- ### Gate Behavior
382
- When the session appears to be ending:
383
- 1. **Remind**: "You set out to produce `.prizmkit/plans/feature-list.json` but we haven't completed it yet."
384
- 2. **Offer 3 options**:
385
- - **(a) Continue to completion**
386
- - **(b) Save draft & exit** — write current progress as `feature-list.draft.json` to `.prizmkit/plans/`
387
- - **(c) Abandon** — exit without saving
388
-
389
- ## Handoff Message Template
390
-
391
- After successful validation, report:
392
- 1. Output file path
393
- 2. Total features + newly added features
394
- 3. Dependency and priority highlights
395
- 4. Recommended next action: `feature-pipeline-launcher`
396
-
397
- Then apply the post-planning handoff in §Scope Boundary (ask before proceeding; never auto-execute).
@@ -1,64 +0,0 @@
1
- # feature planner Evaluation Guide
2
-
3
- This guide is for maintainers who evaluate and iterate on the `feature-planner` skill quality.
4
-
5
- ## Evaluation & Quality Gates (Optional but Recommended)
6
-
7
- After multiple planning cycles or before committing refined skill logic, run standardized evaluation.
8
-
9
- ### One-Command Evaluation
10
-
11
- Requires npm setup:
12
-
13
- ```powershell
14
- function Invoke-PrizmPython {
15
- param([Parameter(ValueFromRemainingArguments = $true)][string[]]$Arguments)
16
- $python = Get-Command python -ErrorAction SilentlyContinue
17
- if ($python) {
18
- & $python.Source -c 'import sys; raise SystemExit(0 if sys.version_info[0] == 3 else 1)' *> $null
19
- if ($LASTEXITCODE -eq 0) {
20
- & $python.Source @Arguments
21
- return
22
- }
23
- }
24
- $py = Get-Command py -ErrorAction SilentlyContinue
25
- if ($py) {
26
- & $py.Source -3 -c 'import sys; raise SystemExit(0 if sys.version_info[0] == 3 else 1)' *> $null
27
- if ($LASTEXITCODE -eq 0) {
28
- & $py.Source -3 @Arguments
29
- return
30
- }
31
- }
32
- throw "Python 3 is required. Install Python and ensure python or py is in PATH."
33
- }
34
- npm run skill:review -- `
35
- --workspace .prizmkit/skill-evals/feature-planner-workspace `
36
- --iteration iteration-N `
37
- --skill-name feature-planner `
38
- --skill-path ${SKILL_DIR} `
39
- --runs 3 `
40
- --grader-cmd "Invoke-PrizmPython ${SKILL_DIR}/scripts/validate-and-generate.py grade --workspace {workspace} --iteration {iteration}"
41
- ```
42
-
43
- Produces:
44
- - `benchmark.json` — quantitative metrics (pass rate, feature quality, time)
45
- - `benchmark.md` — human-readable summary
46
- - `review.html` — interactive evaluation viewer
47
-
48
- ### Metrics Tracked
49
-
50
- | Metric | Computation | Target | Interpretation |
51
- |--------|-------------|--------|-----------------|
52
- | `plan_validity` | % runs with validation pass | >95% | Higher = more robust planning |
53
- | `avg_features_per_run` | avg feature count | ±20% consistency | Should be stable across runs |
54
- | `avg_acceptance_criteria` | AC count per feature | 4-6 | Target sweet spot for test coverage |
55
- | `dependency_complexity` | max DAG depth, cycle count | depth < 5 | Manageable dependency graph |
56
- | `description_quality` | word count, keyword coverage | min 20 words | Sufficient AC detail |
57
- | `latency_sec` | wall-clock execution time | <120s per run | UX acceptable |
58
-
59
- ### When to Run Evaluation
60
-
61
- - After major SKILL.md revisions
62
- - Before releasing new skill updates
63
- - Quarterly quality assurance
64
- - Post-optimization to measure improvement