prizmkit 1.1.1 → 1.1.4

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 (119) hide show
  1. package/bundled/VERSION.json +3 -3
  2. package/bundled/adapters/claude/agent-adapter.js +18 -0
  3. package/bundled/adapters/claude/command-adapter.js +1 -27
  4. package/bundled/agents/prizm-dev-team-critic.md +2 -0
  5. package/bundled/agents/prizm-dev-team-dev.md +2 -0
  6. package/bundled/agents/prizm-dev-team-reviewer.md +2 -0
  7. package/bundled/dev-pipeline/README.md +63 -63
  8. package/bundled/dev-pipeline/assets/feature-list-example.json +1 -1
  9. package/bundled/dev-pipeline/assets/prizm-dev-team-integration.md +1 -1
  10. package/bundled/dev-pipeline/{launch-daemon.sh → launch-feature-daemon.sh} +33 -33
  11. package/bundled/dev-pipeline/launch-refactor-daemon.sh +454 -0
  12. package/bundled/dev-pipeline/lib/branch.sh +1 -1
  13. package/bundled/dev-pipeline/reset-feature.sh +3 -3
  14. package/bundled/dev-pipeline/reset-refactor.sh +312 -0
  15. package/bundled/dev-pipeline/{retry-bug.sh → retry-bugfix.sh} +47 -59
  16. package/bundled/dev-pipeline/retry-feature.sh +41 -54
  17. package/bundled/dev-pipeline/retry-refactor.sh +358 -0
  18. package/bundled/dev-pipeline/run-bugfix.sh +41 -0
  19. package/bundled/dev-pipeline/{run.sh → run-feature.sh} +64 -31
  20. package/bundled/dev-pipeline/run-refactor.sh +787 -0
  21. package/bundled/dev-pipeline/scripts/generate-bootstrap-prompt.py +398 -10
  22. package/bundled/dev-pipeline/scripts/generate-bugfix-prompt.py +124 -0
  23. package/bundled/dev-pipeline/scripts/generate-refactor-prompt.py +419 -0
  24. package/bundled/dev-pipeline/scripts/init-refactor-pipeline.py +393 -0
  25. package/bundled/dev-pipeline/scripts/update-refactor-status.py +726 -0
  26. package/bundled/dev-pipeline/templates/agent-prompts/critic-code-challenge.md +13 -0
  27. package/bundled/dev-pipeline/templates/agent-prompts/critic-plan-challenge.md +7 -0
  28. package/bundled/dev-pipeline/templates/agent-prompts/dev-fix.md +7 -0
  29. package/bundled/dev-pipeline/templates/agent-prompts/dev-implement.md +27 -0
  30. package/bundled/dev-pipeline/templates/agent-prompts/dev-resume.md +5 -0
  31. package/bundled/dev-pipeline/templates/agent-prompts/reviewer-analyze.md +5 -0
  32. package/bundled/dev-pipeline/templates/agent-prompts/reviewer-review.md +12 -0
  33. package/bundled/dev-pipeline/templates/bootstrap-tier1.md +33 -2
  34. package/bundled/dev-pipeline/templates/bootstrap-tier2.md +13 -9
  35. package/bundled/dev-pipeline/templates/bootstrap-tier3.md +16 -12
  36. package/bundled/dev-pipeline/templates/bugfix-bootstrap-prompt.md +22 -4
  37. package/bundled/dev-pipeline/templates/feature-list-schema.json +1 -1
  38. package/bundled/dev-pipeline/templates/refactor-list-schema.json +159 -0
  39. package/bundled/dev-pipeline/templates/sections/ac-verification-checklist.md +13 -0
  40. package/bundled/dev-pipeline/templates/sections/checkpoint-system.md +36 -0
  41. package/bundled/dev-pipeline/templates/sections/failure-log-check.md +2 -1
  42. package/bundled/dev-pipeline/templates/sections/feature-context.md +1 -1
  43. package/bundled/dev-pipeline/templates/sections/phase-analyze-agent.md +11 -7
  44. package/bundled/dev-pipeline/templates/sections/phase-analyze-full.md +11 -7
  45. package/bundled/dev-pipeline/templates/sections/phase-browser-verification.md +5 -1
  46. package/bundled/dev-pipeline/templates/sections/phase-commit-full.md +3 -0
  47. package/bundled/dev-pipeline/templates/sections/phase-commit.md +3 -0
  48. package/bundled/dev-pipeline/templates/sections/phase-context-snapshot-agent-suffix.md +3 -0
  49. package/bundled/dev-pipeline/templates/sections/phase-context-snapshot-lite-suffix.md +3 -0
  50. package/bundled/dev-pipeline/templates/sections/phase-critic-code.md +11 -10
  51. package/bundled/dev-pipeline/templates/sections/phase-critic-plan-full.md +12 -10
  52. package/bundled/dev-pipeline/templates/sections/phase-critic-plan.md +11 -9
  53. package/bundled/dev-pipeline/templates/sections/phase-deploy-verification.md +3 -0
  54. package/bundled/dev-pipeline/templates/sections/phase-implement-agent.md +10 -10
  55. package/bundled/dev-pipeline/templates/sections/phase-implement-full.md +12 -16
  56. package/bundled/dev-pipeline/templates/sections/phase-implement-lite.md +3 -0
  57. package/bundled/dev-pipeline/templates/sections/phase-plan-agent.md +3 -0
  58. package/bundled/dev-pipeline/templates/sections/phase-plan-lite.md +3 -0
  59. package/bundled/dev-pipeline/templates/sections/phase-review-agent.md +11 -13
  60. package/bundled/dev-pipeline/templates/sections/phase-review-full.md +12 -20
  61. package/bundled/dev-pipeline/templates/sections/phase-specify-plan-full.md +3 -0
  62. package/bundled/dev-pipeline/templates/sections/phase0-init.md +3 -0
  63. package/bundled/dev-pipeline/templates/sections/phase0-test-baseline.md +3 -0
  64. package/bundled/dev-pipeline/templates/sections/resume-header.md +4 -1
  65. package/bundled/dev-pipeline/templates/sections/test-failure-recovery.md +75 -0
  66. package/bundled/rules/prizm/prizm-commit-workflow.md +1 -0
  67. package/bundled/rules/prizm/prizm-documentation.md +15 -15
  68. package/bundled/rules/prizm/prizm-progressive-loading.md +2 -1
  69. package/bundled/skills/_metadata.json +33 -6
  70. package/bundled/skills/app-planner/SKILL.md +105 -320
  71. package/bundled/skills/app-planner/assets/app-design-guide.md +101 -0
  72. package/bundled/skills/app-planner/references/frontend-design-guide.md +1 -1
  73. package/bundled/skills/app-planner/references/project-brief-guide.md +49 -80
  74. package/bundled/skills/bug-fix-workflow/SKILL.md +2 -2
  75. package/bundled/skills/bug-planner/SKILL.md +68 -5
  76. package/bundled/skills/bug-planner/scripts/validate-bug-list.py +3 -2
  77. package/bundled/skills/bugfix-pipeline-launcher/SKILL.md +19 -5
  78. package/bundled/skills/{dev-pipeline-launcher → feature-pipeline-launcher}/SKILL.md +32 -32
  79. package/bundled/skills/feature-planner/SKILL.md +337 -0
  80. package/bundled/skills/{app-planner → feature-planner}/assets/evaluation-guide.md +4 -4
  81. package/bundled/skills/{app-planner → feature-planner}/assets/planning-guide.md +3 -171
  82. package/bundled/skills/{app-planner → feature-planner}/references/browser-interaction.md +6 -5
  83. package/bundled/skills/feature-planner/references/decomposition-patterns.md +75 -0
  84. package/bundled/skills/{app-planner → feature-planner}/references/error-recovery.md +8 -8
  85. package/bundled/skills/{app-planner → feature-planner}/references/incremental-feature-planning.md +1 -1
  86. package/bundled/skills/{app-planner/references/new-app-planning.md → feature-planner/references/new-project-planning.md} +1 -1
  87. package/bundled/skills/{app-planner → feature-planner}/scripts/validate-and-generate.py +4 -4
  88. package/bundled/skills/feature-workflow/SKILL.md +23 -23
  89. package/bundled/skills/prizm-kit/SKILL.md +1 -3
  90. package/bundled/skills/prizm-kit/assets/project-memory-template.md +4 -2
  91. package/bundled/skills/prizmkit-analyze/SKILL.md +2 -5
  92. package/bundled/skills/prizmkit-code-review/SKILL.md +2 -2
  93. package/bundled/skills/prizmkit-committer/SKILL.md +32 -8
  94. package/bundled/skills/prizmkit-deploy/SKILL.md +1 -5
  95. package/bundled/skills/prizmkit-implement/SKILL.md +5 -51
  96. package/bundled/skills/prizmkit-init/SKILL.md +7 -78
  97. package/bundled/skills/prizmkit-plan/SKILL.md +1 -12
  98. package/bundled/skills/prizmkit-prizm-docs/SKILL.md +13 -28
  99. package/bundled/skills/prizmkit-prizm-docs/assets/PRIZM-SPEC.md +52 -1
  100. package/bundled/skills/prizmkit-retrospective/SKILL.md +12 -117
  101. package/bundled/skills/recovery-workflow/SKILL.md +168 -316
  102. package/bundled/skills/recovery-workflow/evals/evals.json +29 -13
  103. package/bundled/skills/recovery-workflow/scripts/detect-recovery-state.py +232 -274
  104. package/bundled/skills/refactor-pipeline-launcher/SKILL.md +352 -0
  105. package/bundled/skills/refactor-planner/SKILL.md +436 -0
  106. package/bundled/skills/refactor-planner/assets/planning-guide.md +292 -0
  107. package/bundled/skills/refactor-planner/references/behavior-preservation.md +301 -0
  108. package/bundled/skills/refactor-planner/references/refactor-scoping-guide.md +221 -0
  109. package/bundled/skills/refactor-planner/scripts/validate-and-generate-refactor.py +786 -0
  110. package/bundled/skills/refactor-workflow/SKILL.md +299 -319
  111. package/bundled/team/prizm-dev-team.json +1 -1
  112. package/package.json +1 -1
  113. package/src/clean.js +3 -3
  114. package/src/scaffold.js +6 -6
  115. package/bundled/skills/prizmkit-plan/assets/spec-template.md +0 -56
  116. package/bundled/skills/prizmkit-plan/references/clarify-guide.md +0 -67
  117. package/src/config.js +0 -504
  118. package/src/prompts.js +0 -210
  119. /package/bundled/skills/{dev-pipeline-launcher → feature-pipeline-launcher}/scripts/preflight-check.py +0 -0
@@ -18,19 +18,20 @@ WHEN TO UPDATE .prizm-docs/:
18
18
  - Before modifying any source file, read `.prizm-docs/root.prizm` if it exists to understand project structure.
19
19
 
20
20
  FORMAT RULES (enforced by pre-commit hook — violations block commit):
21
- - ALL CAPS section headers: MODULE:, FILES:, RESPONSIBILITY:, UPDATED:, etc.
21
+ - ALL CAPS section headers: MODULE:, FILES:, RESPONSIBILITY:, etc.
22
22
  - KEY: value pairs and dash-prefixed lists only
23
23
  - PROHIBITED: prose paragraphs, markdown headers (##/###), code blocks (```), emoji, ASCII art
24
+ - No UPDATED timestamps — git is the authoritative source for temporal information
24
25
  - This format is designed for AI token efficiency, not human readability. Do not add human-friendly formatting.
25
26
 
26
27
  SIZE LIMITS (hard — pre-commit hook blocks commits exceeding these):
27
28
  - L0 root.prizm: 4KB max
28
- - L1 module.prizm: 3KB max
29
+ - L1 module.prizm: 4KB max
29
30
  - L2 detail.prizm: 5KB max
30
31
 
31
32
  SIZE OVERFLOW HANDLING:
32
- - L0 approaching 4KB: consolidate MODULE_INDEX, keep only top-5 RULES, remove PATTERNS detail
33
- - L1 approaching 3KB: move implementation details to L2, keep only INTERFACES signatures
33
+ - L0 approaching 4KB: if MODULE_INDEX has > 15 entries, convert to MODULE_GROUPS format (group by domain). Otherwise consolidate descriptions, keep only top-5 RULES, remove PATTERNS detail.
34
+ - L1 approaching 4KB: trim KEY_FILES descriptions, ensure RULES <= 3 entries, move detail to L2
34
35
  - L2 approaching 5KB: archive CHANGELOG entries older than 90 days to changelog-archive.prizm
35
36
  - NEVER exceed hard limits — pre-commit hook will block the commit
36
37
 
@@ -40,26 +41,24 @@ L0 root.prizm:
40
41
  - PRIZM_VERSION
41
42
  - PROJECT
42
43
  - LANG
43
- - MODULE_INDEX (with -> pointers to L1 files)
44
+ - MODULE_INDEX or MODULE_GROUPS (with -> pointers to L1 files)
44
45
  - RULES (top-level project rules)
45
- - UPDATED
46
46
 
47
- L1 module.prizm:
47
+ L1 module.prizm (structural index only):
48
48
  - MODULE
49
49
  - FILES
50
50
  - RESPONSIBILITY
51
- - INTERFACES (public/exported only)
52
51
  - DEPENDENCIES
53
- - UPDATED
52
+ - L1 does NOT contain: INTERFACES, DATA_FLOW, TRAPS, DECISIONS (those belong in L2)
54
53
 
55
54
  L2 detail.prizm:
56
55
  - MODULE
57
56
  - FILES
58
57
  - KEY_FILES
59
58
  - DEPENDENCIES
60
- - TRAPS
59
+ - INTERFACES
60
+ - TRAPS (with severity prefix: [CRITICAL], [HIGH], or [LOW])
61
61
  - CHANGELOG
62
- - UPDATED
63
62
 
64
63
  L2 GENERATION TEMPLATE (use when AI first touches a sub-module with no L2 doc):
65
64
 
@@ -71,10 +70,11 @@ KEY_FILES:
71
70
  DEPENDENCIES:
72
71
  - uses: <lib>: <why>
73
72
  - imports: <module>: <what>
73
+ INTERFACES:
74
+ - <exported function/class>: <signature and purpose>
74
75
  TRAPS:
75
- - <gotcha, race condition, or non-obvious coupling>
76
+ - [LOW] <gotcha, race condition, or non-obvious coupling> | FIX: <approach>
76
77
  CHANGELOG:
77
- - <YYYY-MM-DD> | add: initial L2 documentation
78
- UPDATED: <YYYY-MM-DD>
78
+ - root | add: initial L2 documentation
79
79
 
80
- TRAPS is critical — always record gotchas, race conditions, non-obvious behavior, and surprising coupling between modules.
80
+ TRAPS is critical — always record gotchas, race conditions, non-obvious behavior, and surprising coupling between modules. Every TRAP must have a severity prefix ([CRITICAL], [HIGH], or [LOW]).
@@ -4,7 +4,8 @@ description: "PrizmKit progressive context loading protocol"
4
4
 
5
5
  This project uses PrizmKit's progressive loading protocol:
6
6
  - ON SESSION START: Read `.prizm-docs/root.prizm` (L0 — project map)
7
- - ON TASK: Read L1 (`.prizm-docs/<module>.prizm`) for relevant modules
7
+ - ON RESUME (feature/bugfix directory has session-summary.md): Read session-summary.md first for prior context, then load only L1/L2 for modules mentioned in it
8
+ - ON TASK: Read L1 (`.prizm-docs/<module>.prizm`) for relevant modules. If MODULE_INDEX entries have keyword tags (e.g., `[login, jwt, oauth]`), match user's task description against tags to prioritize which modules' L1 to load first. If root.prizm uses MODULE_GROUPS, identify the relevant domain first, then load L1 only for modules in that domain.
8
9
  - ON FILE EDIT: Read L2 (`.prizm-docs/<module>/<submodule>.prizm`) before modifying
9
10
  - NEVER load all .prizm docs at once
10
11
  - Arrow notation (->) in .prizm files indicates load pointers
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.1.1",
2
+ "version": "1.1.4",
3
3
  "skills": {
4
4
  "prizm-kit": {
5
5
  "description": "Full-lifecycle dev toolkit. Covers spec-driven development, Prizm context docs, code quality, debugging, deployment, and knowledge management.",
@@ -72,7 +72,7 @@
72
72
  "hasScripts": false
73
73
  },
74
74
  "feature-workflow": {
75
- "description": "One-stop entry point for feature development. Orchestrates app-planner → dev-pipeline-launcher → background execution. Handles multi-feature batch development from a single request.",
75
+ "description": "One-stop entry point for feature development. Orchestrates feature-planner → feature-pipeline-launcher → background execution. Handles multi-feature batch development from a single request.",
76
76
  "tier": "companion",
77
77
  "category": "orchestration-skill",
78
78
  "subcategory": "workflows",
@@ -80,8 +80,8 @@
80
80
  "hasScripts": false
81
81
  },
82
82
  "refactor-workflow": {
83
- "description": "End-to-end refactor workflow: analyze plan implementreviewcommit. Behavior-preserving.",
84
- "tier": "1",
83
+ "description": "One-stop entry point for code refactoring. Orchestrates refactor-plannerrefactor-pipeline-launcherexecution.",
84
+ "tier": "companion",
85
85
  "category": "orchestration-skill",
86
86
  "subcategory": "workflows",
87
87
  "hasAssets": false,
@@ -96,6 +96,14 @@
96
96
  "hasScripts": false
97
97
  },
98
98
  "app-planner": {
99
+ "description": "Plan a new application from scratch — vision, tech stack, feature decomposition, and validated feature-list.json.",
100
+ "tier": "companion",
101
+ "category": "orchestration-skill",
102
+ "subcategory": "pipelines",
103
+ "hasAssets": true,
104
+ "hasScripts": true
105
+ },
106
+ "feature-planner": {
99
107
  "description": "Interactive planning for new apps and incremental features; outputs validated feature-list.json for dev-pipeline.",
100
108
  "tier": "companion",
101
109
  "category": "orchestration-skill",
@@ -103,7 +111,7 @@
103
111
  "hasAssets": true,
104
112
  "hasScripts": true
105
113
  },
106
- "dev-pipeline-launcher": {
114
+ "feature-pipeline-launcher": {
107
115
  "description": "Launch and manage the dev-pipeline from within an AI CLI session. Start pipeline in background, monitor logs, check status, stop pipeline.",
108
116
  "tier": "companion",
109
117
  "category": "orchestration-skill",
@@ -119,6 +127,22 @@
119
127
  "hasAssets": false,
120
128
  "hasScripts": false
121
129
  },
130
+ "refactor-planner": {
131
+ "description": "Interactive refactoring planner. Analyzes code structure and produces validated refactor-list.json for dev-pipeline execution.",
132
+ "tier": "companion",
133
+ "category": "orchestration-skill",
134
+ "subcategory": "pipelines",
135
+ "hasAssets": true,
136
+ "hasScripts": true
137
+ },
138
+ "refactor-pipeline-launcher": {
139
+ "description": "Launch and manage the refactor pipeline from within an AI CLI session.",
140
+ "tier": "companion",
141
+ "category": "orchestration-skill",
142
+ "subcategory": "pipelines",
143
+ "hasAssets": false,
144
+ "hasScripts": false
145
+ },
122
146
  "bug-fix-workflow": {
123
147
  "description": "Interactive single-bug fix in current session. Guides triage → reproduce → fix → review → commit without background pipeline.",
124
148
  "tier": "companion",
@@ -153,9 +177,12 @@
153
177
  "feature-workflow",
154
178
  "refactor-workflow",
155
179
  "app-planner",
180
+ "feature-planner",
156
181
  "bug-planner",
157
- "dev-pipeline-launcher",
182
+ "feature-pipeline-launcher",
158
183
  "bugfix-pipeline-launcher",
184
+ "refactor-planner",
185
+ "refactor-pipeline-launcher",
159
186
  "bug-fix-workflow",
160
187
  "recovery-workflow"
161
188
  ]