prizmkit 1.1.16 → 1.1.18

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.
@@ -1,5 +1,5 @@
1
1
  {
2
- "frameworkVersion": "1.1.16",
3
- "bundledAt": "2026-04-09T17:14:25.405Z",
4
- "bundledFrom": "e2d888c"
2
+ "frameworkVersion": "1.1.18",
3
+ "bundledAt": "2026-04-10T12:27:28.516Z",
4
+ "bundledFrom": "cc123c5"
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.1.16",
2
+ "version": "1.1.18",
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.",
@@ -164,6 +164,11 @@ This applies to:
164
164
  - Use `multiSelect: true` when the user can pick more than one
165
165
  - Mark the recommended option first and append "(Recommended)" to its label
166
166
  - Use the `description` field to explain trade-offs or implications
167
+ - **Every non-essential question MUST include a "Skip" option** (e.g., "Skip — decide later"). Users should never be forced to answer something they want to defer. Skipped items are simply not written to conventions — they can be added in a future session.
168
+
169
+ **What can be skipped vs. what cannot:**
170
+ - **Cannot skip**: Intent confirmation (must know the session goal)
171
+ - **Everything else can be skipped**: conventions, tech stack choices, architecture decisions, design direction, etc. If the user skips, move on — do not re-ask or block progress.
167
172
 
168
173
  **When gathering open-ended information** (e.g., "describe your app idea"), use regular text questions — but follow up with `AskUserQuestion`-based clarifications wherever possible.
169
174
 
@@ -82,7 +82,7 @@ For trivial bugs with clear root cause and minimal scope:
82
82
 
83
83
  **Goal**: Fully understand the bug before touching any code. Vague bug reports lead to incorrect fixes that mask the real issue or introduce new bugs.
84
84
 
85
- **Fast Path Decision Point**: After initial information gathering (Step 1.1), evaluate the Fast Path Eligibility Criteria in Step 1.4. If ALL simple bug criteria are met, ask the user: "This looks like a straightforward fix. Use fast path? (Y/n)". If yes, skip directly to the Fast Path Workflow (branch setup already done in Phase 0). If no or uncertain, continue with full diagnosis.
85
+ **Fast Path Decision Point**: After initial information gathering (Step 1.1), evaluate the Fast Path Eligibility Criteria in Step 1.4. If ALL simple bug criteria are met, use `AskUserQuestion` to let the user choose the execution approach. Only proceed with fast path implementation if the user explicitly selects "Fix now". Never guess the user's intent from text always present the interactive selection.
86
86
 
87
87
  **CRITICAL RULE**: Ask as many questions as needed until the bug is fully understood. Do NOT rush into code. A misdiagnosed bug leads to a wrong fix, which is worse than no fix.
88
88
 
@@ -149,14 +149,31 @@ Ask the user: "Is this summary accurate? Any details to add?"
149
149
 
150
150
  After confirming bug understanding, assess whether this bug needs structured planning:
151
151
 
152
- **Simple bug → Fast Path** (ALL must be true):
152
+ **Simple bug → Fast Path candidate** (ALL must be true):
153
153
  - Root cause is immediately obvious (typo, missing null check, wrong variable name, off-by-one)
154
154
  - Fix is ≤10 lines of code in a single file
155
155
  - No cross-module impact
156
156
  - Existing tests cover the affected path (or bug is in untested utility)
157
157
  - No data model or API changes
158
158
 
159
- Proceed with Fast Path Workflow (Phase 0 branch already set up)
159
+ **User choice required (mandatory)** Use `AskUserQuestion` to present interactive selectable options:
160
+
161
+ ```
162
+ AskUserQuestion:
163
+ question: "This bug appears straightforward. How would you like to proceed?"
164
+ header: "Approach"
165
+ options:
166
+ - label: "Fix now (fast path)"
167
+ description: "Implement the fix directly in this session"
168
+ - label: "Add to bug list"
169
+ description: "Add to .prizmkit/plans/bug-fix-list.json for pipeline execution later"
170
+ - label: "Full diagnosis"
171
+ description: "Continue with in-depth analysis before deciding"
172
+ ```
173
+
174
+ - **Fix now** → Proceed with Fast Path Workflow (Phase 0 branch already set up)
175
+ - **Add to bug list** → Invoke `bug-planner` to add this bug to the list, then end this workflow
176
+ - **Full diagnosis** → Continue with full diagnosis (Phase 2 Triage)
160
177
 
161
178
  **Complex bug → Planning Path** (ANY is true):
162
179
  - Cross-module impact (>2 files affected)
@@ -165,12 +182,26 @@ After confirming bug understanding, assess whether this bug needs structured pla
165
182
  - Fix requires structural changes
166
183
  - Multiple interrelated symptoms
167
184
 
168
- Invoke `/prizmkit-plan` with `artifact_dir=.prizmkit/bugfix/<BUG_ID>/`:
185
+ **User choice required (mandatory)** — Use `AskUserQuestion` to present interactive selectable options:
186
+
187
+ ```
188
+ AskUserQuestion:
189
+ question: "This bug appears complex and will need structured planning. How would you like to proceed?"
190
+ header: "Approach"
191
+ options:
192
+ - label: "Plan and fix now"
193
+ description: "Create a plan and fix it in this session using /prizmkit-plan + /prizmkit-implement"
194
+ - label: "Add to bug list"
195
+ description: "Add to .prizmkit/plans/bug-fix-list.json for pipeline execution later"
196
+ ```
197
+
198
+ - **Plan and fix now** → Invoke `/prizmkit-plan` with `artifact_dir=.prizmkit/bugfix/<BUG_ID>/`:
169
199
  1. prizmkit-plan generates `spec.md` + `plan.md` under `.prizmkit/bugfix/<BUG_ID>/`
170
200
  2. Invoke `/prizmkit-implement` to execute the plan
171
201
  3. After implementation, resume this workflow at Phase 5 (Review)
202
+ - **Add to bug list** → Invoke `bug-planner` to add this bug to the list, then end this workflow
172
203
 
173
- Ask the user: "This bug appears [simple/complex]. Use [fast path/structured planning]? (Y/n)"
204
+ **NEVER proceed with direct code changes without explicit user confirmation via `AskUserQuestion`. Do NOT render options as plain text — the user must be able to click/select.**
174
205
 
175
206
  ---
176
207
 
@@ -109,6 +109,17 @@ Gather project metadata from the project's own configuration and documentation
109
109
  - If none found, ask the user
110
110
  3. **Identify testing framework**: Read from `.prizmkit/config.json` `tech_stack.testing`, or auto-detect from package.json/requirements.txt/etc., or ask user
111
111
  4. **Clarify context** — if the project context, affected systems, or bug scope is unclear, ask questions one at a time (cite the unclear point, give a recommended answer with rationale) until you fully understand the environment. No limit on rounds or number of questions.
112
+ 5. **Collect reference materials** — before proceeding to bug collection, explicitly ask the user whether they have any supplementary materials for you to review:
113
+ > "Do you have any reference materials I should review to better understand these bugs? This can include:
114
+ > - **Code paths** — files or directories where the bugs likely originate
115
+ > - **Documents** — related design docs, API specs, or architecture docs for the affected area
116
+ > - **Error screenshots** — UI screenshots, console output images, or monitoring dashboards
117
+ > - **Web links** — related issue tracker links, Stack Overflow threads, or documentation pages
118
+ > - **Log files** — error log paths or monitoring tool URLs
119
+ >
120
+ > If none, we'll proceed with bug collection."
121
+
122
+ 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. This context significantly improves bug diagnosis accuracy and description quality.
112
123
 
113
124
  Output: `project_name`, `project_description`, `global_context` fields populated.
114
125
 
@@ -166,6 +166,17 @@ Execute the planning workflow in conversation mode with mandatory checkpoints:
166
166
  ### Interactive Phases
167
167
  1. Clarify scope and goals
168
168
  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.
169
+ 1.2 **Collect reference materials** — before proceeding, explicitly ask the user whether they have any supplementary materials for you to review. Present this as a single prompt covering all material types:
170
+ > "Do you have any reference materials I should review before planning? This can include:
171
+ > - **Code paths** — files or directories I should read to understand existing implementation
172
+ > - **Documents** — design docs, PRDs, API specs, architecture proposals, or internal wiki pages
173
+ > - **Knowledge docs** — `.prizm-docs/` files, README files, or project-specific documentation
174
+ > - **Images** — wireframes, mockups, architecture diagrams, or screenshots
175
+ > - **Web links** — reference implementations, API documentation pages, or relevant articles
176
+ >
177
+ > If none, we'll proceed with what's available in the codebase."
178
+
179
+ 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.
169
180
  2. Confirm constraints and existing architecture
170
181
  3. Propose feature set with dependencies
171
182
  4. Refine descriptions and acceptance criteria
@@ -217,7 +228,26 @@ For simple incremental planning, skip detailed Phase 2-3 analysis:
217
228
 
218
229
  ### Fast Path Workflow
219
230
  1. Read existing `.prizmkit/plans/feature-list.json` and confirm scope
220
- 2. **User confirmation (mandatory)** — Tell the user: "This qualifies for fast-path (simple incremental addition). Skip detailed Phase 2-3 analysis and draft directly? Or use full workflow?" Only proceed with fast path if user confirms.
231
+ 2. **User confirmation (mandatory)** — Use `AskUserQuestion` to present interactive selectable options:
232
+
233
+ ```
234
+ AskUserQuestion:
235
+ question: "This qualifies for fast-path (simple incremental addition). How would you like to proceed?"
236
+ header: "Approach"
237
+ options:
238
+ - label: "Fast-path"
239
+ description: "Skip detailed Phase 2-3 analysis, draft features directly and add to feature-list.json"
240
+ - label: "Full workflow"
241
+ description: "Use the complete planning workflow with detailed analysis"
242
+ - label: "Implement directly"
243
+ description: "Skip the task list entirely and implement the feature(s) right now using /prizmkit-plan + /prizmkit-implement"
244
+ ```
245
+
246
+ - **Fast-path** → Continue with fast-path workflow below
247
+ - **Full workflow** → Exit fast path, use full workflow from Phase 2
248
+ - **Implement directly** → Invoke `/prizmkit-plan` directly to create spec + plan, then `/prizmkit-implement` to execute. Do NOT add to `.prizmkit/plans/feature-list.json`
249
+
250
+ **NEVER proceed without explicit user selection via `AskUserQuestion`. Do NOT render options as plain text — the user must be able to click/select.**
221
251
  3. Generate next sequential feature IDs
222
252
  4. Draft features (title + description + acceptance_criteria + dependencies)
223
253
  5. Run validation script immediately
@@ -127,6 +127,17 @@ Execute the planning workflow in conversation mode with mandatory checkpoints:
127
127
  2. Read `.prizmkit/config.json` for tech stack info
128
128
  3. Identify existing test suite and coverage
129
129
  4. Summarize project context to the user: "Here's what I found about your project..."
130
+ 5. **Collect reference materials** — before proceeding to goal collection, explicitly ask the user whether they have any supplementary materials for you to review:
131
+ > "Do you have any reference materials I should review before planning the refactoring? This can include:
132
+ > - **Code paths** — specific files or directories that are refactoring targets or dependencies
133
+ > - **Documents** — design docs, architecture proposals, refactoring RFCs, or technical debt analyses
134
+ > - **Knowledge docs** — `.prizm-docs/` files, README files, or internal wiki pages for the affected area
135
+ > - **Images** — architecture diagrams, dependency graphs, or whiteboard photos
136
+ > - **Web links** — reference implementations, design pattern articles, or migration guides
137
+ >
138
+ > If none, we'll proceed with what's available in the codebase."
139
+
140
+ 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. This context is critical for refactoring — understanding the target architecture and constraints prevents risky structural changes.
130
141
 
131
142
  **CHECKPOINT CP-RP-0**: Project context loaded, tech stack and test suite status known.
132
143
 
@@ -337,7 +348,26 @@ For simple refactoring with minimal scope:
337
348
 
338
349
  ### Fast Path Workflow
339
350
  1. Confirm refactoring scope with user
340
- 2. **User confirmation (mandatory)** — Tell the user: "This qualifies for fast-path (simple refactoring). Skip detailed analysis and draft directly? Or use full workflow?" Only proceed if user confirms.
351
+ 2. **User confirmation (mandatory)** — Use `AskUserQuestion` to present interactive selectable options:
352
+
353
+ ```
354
+ AskUserQuestion:
355
+ question: "This qualifies for fast-path (simple refactoring). How would you like to proceed?"
356
+ header: "Approach"
357
+ options:
358
+ - label: "Fast-path"
359
+ description: "Skip detailed analysis, draft refactor items directly and add to refactor-list.json"
360
+ - label: "Full workflow"
361
+ description: "Use the complete planning workflow with detailed code analysis"
362
+ - label: "Implement directly"
363
+ description: "Skip the task list entirely and implement the refactoring right now using /prizmkit-plan + /prizmkit-implement"
364
+ ```
365
+
366
+ - **Fast-path** → Continue with fast-path workflow below
367
+ - **Full workflow** → Exit fast path, use full workflow from Phase 2
368
+ - **Implement directly** → Invoke `/prizmkit-plan` directly to create spec + plan, then `/prizmkit-implement` to execute. Do NOT add to `.prizmkit/plans/refactor-list.json`
369
+
370
+ **NEVER proceed without explicit user selection via `AskUserQuestion`. Do NOT render options as plain text — the user must be able to click/select.**
341
371
  3. Draft items (title + type + scope + description + acceptance_criteria + behavior_preservation + dependencies)
342
372
  4. Run validation script immediately
343
373
  5. If valid -> summarize and recommend next step
@@ -355,8 +385,8 @@ For simple refactoring with minimal scope:
355
385
  User: "Rename the auth middleware function from checkAuth to requireAuth everywhere."
356
386
  AI: [Detects simple rename, single module]
357
387
  AI: [Qualifies for fast path: 1 item, low complexity, no cross-module impact]
358
- AI: "This qualifies for fast-path. Skip detailed analysis and draft directly? Or use full workflow?"
359
- User: "Fast path."
388
+ AI: [Uses AskUserQuestion with options: "Fast-path", "Full workflow", "Implement directly"]
389
+ User: [Selects "Fast-path"]
360
390
  AI: "Drafting R-001..."
361
391
  AI: [Validates immediately]
362
392
  AI: "Ready to proceed to dev-pipeline."
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prizmkit",
3
- "version": "1.1.16",
3
+ "version": "1.1.18",
4
4
  "description": "Create a new PrizmKit-powered project with clean initialization — no framework dev files, just what you need.",
5
5
  "type": "module",
6
6
  "bin": {