prizmkit 1.1.14 → 1.1.16

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.14",
3
- "bundledAt": "2026-04-09T16:24:45.739Z",
4
- "bundledFrom": "b887e13"
2
+ "frameworkVersion": "1.1.16",
3
+ "bundledAt": "2026-04-09T17:14:25.405Z",
4
+ "bundledFrom": "e2d888c"
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.1.14",
2
+ "version": "1.1.16",
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.",
@@ -12,7 +12,7 @@ Plan an application from idea to actionable project context through interactive
12
12
  - Architecture decision capture
13
13
  - Project brief accumulation (`.prizmkit/plans/project-brief.md`)
14
14
 
15
- This skill captures **what to build and why**. For **feature decomposition and `.prizmkit/plans/feature-list.json` generation**, hand off to `feature-planner`.
15
+ This skill captures **project-level context only**: vision, tech stack, conventions, architecture decisions, and project brief. It does NOT do feature decomposition or generate `feature-list.json` that is `feature-planner`'s job.
16
16
 
17
17
  For adding features to an **existing** project that already has a project brief, use `feature-planner` directly.
18
18
 
@@ -38,10 +38,10 @@ If you believe the task is better suited for a different workflow, you MUST:
38
38
  2. Project conventions and architecture decisions appended to `CLAUDE.md` / `CODEBUDDY.md` (with user consent)
39
39
 
40
40
  **After planning is complete**, you MUST:
41
- 1. Present the summary of captured vision, constraints, and decisions
42
- 2. **Ask the user explicitly** whether they want to proceed to feature decomposition
43
- 3. If the user wants to continue exploring → stay in app-planner
44
- 4. **NEVER auto-execute** the pipeline, feature-planner, or any implementation step
41
+ 1. Present the summary of captured project-level context (vision, conventions, architecture decisions, project brief)
42
+ 2. List the artifacts produced and suggest possible next steps (e.g., `feature-planner`, `prizmkit-plan`, etc.) — but do NOT auto-invoke any of them
43
+ 3. **NEVER auto-execute** the pipeline, feature-planner, or any implementation step
44
+ 4. **NEVER generate `feature-list.json`** that is exclusively `feature-planner`'s responsibility
45
45
 
46
46
  ## When to Use
47
47
 
@@ -96,28 +96,29 @@ Do NOT use this skill when:
96
96
 
97
97
  The point is: YOU decide what's relevant based on what you see. A Next.js SaaS app needs completely different conventions than a Python data pipeline or a Go microservice.
98
98
 
99
- **Step 3: Present findings as two groups**
100
- > Based on analyzing your project, here are the system-level conventions I recommend establishing:
101
- >
99
+ **Step 3: Present findings via `AskUserQuestion`**
100
+
101
+ First, show "Already decided" conventions as text:
102
102
  > **Already decided** (detected from your codebase):
103
103
  > - [convention]: [value] (source: [where you found it])
104
104
  > - [convention]: [value] (source: [where you found it])
105
- >
106
- > **Need your input** (would impact consistency if left unaddressed):
107
- > **1. [Convention name]** [why this matters for your project]
108
- > [A] option [B] option [C] option
109
- >
110
- > **2. [Convention name]** [why this matters for your project]
111
- > [A] option [B] option
112
- >
113
- > Anything I missed that you'd like to standardize?
105
+
106
+ Then use `AskUserQuestion` for conventions that need user input (up to 4 questions per call, use multiple calls as needed — no limit on total rounds). Each question:
107
+ - Question text includes the convention name AND why it matters for this project
108
+ - Options are the reasonable choices (2-4 per question)
109
+ - Mark the recommended option first with "(Recommended)" in its label
110
+ - Use `description` field to explain trade-offs
111
+
112
+ After each batch of `AskUserQuestion` calls, reassess: are there more project-level conventions to cover? If yes, continue with more `AskUserQuestion` calls. Keep going until ALL project-level conventions are fully addressed.
113
+
114
+ Then ask in text: "Anything I missed that you'd like to standardize?" — if the user adds more, continue the discovery loop.
114
115
 
115
116
  **Rules:**
117
+ - **No interaction limit** — keep asking until every project-level convention is covered. Do NOT stop early or batch-skip to save rounds.
116
118
  - Every proposed convention must be justified by something you observed in the project — explain WHY it matters
117
119
  - Auto-confirm anything already evident from the codebase (show as "detected", let user override)
118
- - No fixed upper/lower limit on count — propose as many as the project genuinely needs, but don't pad with irrelevant ones
119
- - Always end with "Anything I missed?" to let the user add things you didn't think of
120
- - Present options (not open-ended questions) for each convention that needs input
120
+ - Propose as many conventions as the project genuinely needs, but don't pad with irrelevant ones
121
+ - The "Anything I missed?" question is NOT the end — if the user adds items, ask follow-up `AskUserQuestion` calls to clarify those too
121
122
 
122
123
  → Save answers to `CLAUDE.md` / `CODEBUDDY.md` under `### Project Conventions` section (format: one bullet per convention)
123
124
  → Output format will naturally vary per project — that is the intended behavior
@@ -146,52 +147,48 @@ Note:
146
147
 
147
148
  ## Interaction Style (Hard Rule)
148
149
 
149
- **ALL decision points MUST use numbered/lettered options.** Never ask open-ended questions when the answer can be structured as a choice. This applies to:
150
+ **ALL decision points MUST use the `AskUserQuestion` tool** to present interactive, selectable options. Do NOT render options as plain text (e.g., `[A] option [B] option`) — the user must be able to click/select, not type a letter.
151
+
152
+ This applies to:
150
153
  - Intent confirmation
151
154
  - Project conventions
152
155
  - Tech stack selection
153
156
  - Architecture decisions
154
- - Handoff recommendations
155
157
  - Session exit gates
158
+ - Brownfield prerequisite check
159
+ - Any other decision point
156
160
 
157
- **Format**: Present options as a numbered or lettered list. The user picks a number/letter. Include a recommended default where appropriate.
161
+ **How to use `AskUserQuestion`:**
162
+ - Each decision point → one `AskUserQuestion` call with 1-4 questions. Use multiple calls as needed — there is NO limit on total rounds for project-level convention discovery. Keep going until everything is covered.
163
+ - Each question has 2-4 selectable options (the tool auto-adds "Other" for custom input)
164
+ - Use `multiSelect: true` when the user can pick more than one
165
+ - Mark the recommended option first and append "(Recommended)" to its label
166
+ - Use the `description` field to explain trade-offs or implications
158
167
 
159
- Example:
160
- > What would you like to do next?
161
- >
162
- > **[A] Produce a project plan** — capture vision, stack, constraints → project-brief.md (recommended)
163
- > **[B] Explore ideas first** — brainstorm freely before committing to a plan
164
- > **[C] Skip to feature planning** — if you already know what to build
165
-
166
- **When gathering information** (e.g., target users, problem statement), use a hybrid approach:
167
- - If common answers exist → offer options + "Other" choice
168
- - If truly open-ended (e.g., "describe your app idea") → ask directly, but follow up with option-based clarifications
168
+ **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
169
 
170
170
  ## Intent Confirmation (Mandatory First Step)
171
171
 
172
- After initial greeting, present options:
172
+ After initial greeting, use `AskUserQuestion` to confirm intent:
173
173
 
174
- > Welcome to App Planner! What would you like to do?
175
- >
176
- > **[A] Produce a project plan** — define vision, tech stack, and constraints generates project-brief.md for pipeline use (recommended)
177
- > **[B] Explore ideas first** — brainstorm and refine ideas before committing to a plan
178
- > **[C] Generate project context only** — for an existing project that needs a project brief without full planning
174
+ **Question**: "What would you like to do?"
175
+ - **Produce a project plan (Recommended)** — define vision, tech stack, and constraints → generates project-brief.md for pipeline use
176
+ - **Explore ideas first** — brainstorm and refine ideas before committing to a plan
177
+ - **Generate project context only** — for an existing project that needs a project brief without full planning
179
178
 
180
179
  Route by answer:
181
- - **A** → Continue to Core Workflow. Set session goal = `produce`.
182
- - **B** → Enter **Exploration Mode**:
180
+ - **Produce a project plan** → Continue to Core Workflow. Set session goal = `produce`.
181
+ - **Explore ideas first** → Enter **Exploration Mode**:
183
182
  - Run project conventions check first
184
183
  - Load `${SKILL_DIR}/references/brainstorm-guide.md` and follow its structured ideation process (Phases A-D)
185
184
  - Brainstorm Phase D output serves as the Vision Summary (CP-AP-2)
186
- - After brainstorm completes, present options:
187
- > Ideas are taking shape. What's next?
188
- >
189
- > **[A] Proceed to feature decomposition** — hand off to feature-planner
190
- > **[B] Continue refining** — keep brainstorming
191
- > **[C] Save draft & exit** — save progress to .prizmkit/planning/
185
+ - After brainstorm completes, use `AskUserQuestion`: "Ideas are taking shape. What's next?"
186
+ - **Continue to project planning (Recommended)** — capture tech stack, conventions, and architecture decisions
187
+ - **Continue refining** — keep brainstorming
188
+ - **Save draft & exit** — save progress to .prizmkit/planning/
192
189
  - **Checkpoints in explore mode**: CP-AP-0 (required), CP-AP-1 (required), CP-AP-2 (from brainstorm output), CP-AP-3 (only if user proceeds to Phase 2), CP-AP-4 and CP-AP-5 (only if user transitions to produce mode)
193
- - **C** → Enter **Quick Context Mode** (brownfield only):
194
- - Run Project State Detection → if greenfield, redirect to option A
190
+ - **Generate project context only** → Enter **Quick Context Mode** (brownfield only):
191
+ - Run Project State Detection → if greenfield, redirect to produce mode
195
192
  - Proactively scan the project (same as brownfield behavior)
196
193
  - Generate project-brief.md from inferred context
197
194
  - Skip extensive brainstorming and constraint phases
@@ -230,25 +227,16 @@ Before ANY planning work, check if AI-essential project context files exist:
230
227
  | `.prizmkit/config.json` | Tech stack + runtime config | exists / missing |
231
228
  | `.prizmkit/plans/project-brief.md` | Product vision checklist | exists / missing |
232
229
 
233
- **If ANY are missing**, present this recommendation:
230
+ **If ANY are missing**, show the status table, then use `AskUserQuestion`:
234
231
 
235
- > I detected this is an existing project, but some AI context files are missing:
236
- >
237
- > | File | Status |
238
- > |------|--------|
239
- > | `.prizm-docs/` | ❌ missing |
240
- > | `.prizmkit/config.json` | ❌ missing |
241
- > | `.prizmkit/plans/project-brief.md` | ❌ missing |
242
- >
243
- > These files help AI understand your project structure, tech stack, and goals — making planning much more effective.
244
- >
245
- > **[A] Run project init first** — invoke `prizmkit-init` to scan your codebase and generate these files, then return to planning (recommended)
246
- > **[B] Continue without init** — I'll scan the project manually during this session (less thorough)
247
- > **[C] I'll set these up later** — proceed with planning using only what's available
232
+ **Question**: "Some AI context files are missing. These help AI understand your project making planning much more effective. How would you like to proceed?"
233
+ - **Run project init first (Recommended)** — invoke `prizmkit-init` to scan your codebase and generate these files, then return to planning
234
+ - **Continue without init** I'll scan the project manually during this session (less thorough)
235
+ - **Skip, I'll set these up later** — proceed with planning using only what's available
248
236
 
249
- - **A** → Invoke `prizmkit-init`, then resume app-planner from where it left off
250
- - **B** → Continue with Step 2 below (manual scan)
251
- - **C** → Continue with Step 3, skip scanning
237
+ - **Run project init first** → Invoke `prizmkit-init`, then resume app-planner from where it left off
238
+ - **Continue without init** → Continue with Step 2 below (manual scan)
239
+ - **Skip** → Continue with Step 3, skip scanning
252
240
 
253
241
  **Step 2: Proactive Project Scanning**
254
242
 
@@ -269,7 +257,9 @@ Do NOT ask the user to describe their project — read it yourself first:
269
257
 
270
258
  3. **Read key source files** (entry points, main routes, core models) to understand what the project actually does — don't rely solely on metadata.
271
259
 
272
- **Step 3: Present inferred summary with confirmation options**
260
+ **Step 3: Present inferred summary with confirmation**
261
+
262
+ Show the summary as text, then use `AskUserQuestion`:
273
263
 
274
264
  > Based on my analysis of your codebase:
275
265
  >
@@ -277,10 +267,11 @@ Do NOT ask the user to describe their project — read it yourself first:
277
267
  > **Tech Stack**: [framework] + [language] + [key dependencies]
278
268
  > **Key Features Found**: [list 3-5 detected capabilities]
279
269
  > **Architecture**: [e.g., monolithic, microservices, serverless]
280
- >
281
- > **[A] This looks correct** — proceed with planning
282
- > **[B] Mostly correct, with changes** — I'll note corrections
283
- > **[C] This is off** — let me describe the project
270
+
271
+ **Question**: "Does this look correct?"
272
+ - **Yes, looks correct (Recommended)** — proceed with planning
273
+ - **Mostly correct, with changes** — I'll note corrections
274
+ - **This is off** — let me describe the project
284
275
 
285
276
  **Step 4: Pre-fill and focus**
286
277
 
@@ -303,17 +294,12 @@ Execute the planning workflow in conversation mode with mandatory checkpoints:
303
294
  1.1 Confirm deliverable intent (→ Intent Confirmation — option-based)
304
295
  1.2 **Requirement clarification** — for ANY unclear aspect of the user's vision, goals, target users, or scope, use option-based questions where possible. When common patterns exist, present them as choices. Only use open-ended questions for truly unique input (e.g., "describe your app idea"). Follow up with option-based clarifications.
305
296
  2. Confirm constraints and tech assumptions
306
- 2.1 Tech stack selection — use `${SKILL_DIR}/assets/app-design-guide.md` §2 decision matrix. Present as options:
307
- > **Frontend framework?**
308
- > [A] Next.js (recommended) [B] Nuxt 3 [C] SvelteKit [D] Other
309
- 2.2 **Frontend design check** (for frontend projects) scan for existing UI/UX design docs. If none found, present options:
310
- > No UI/UX design docs found. Would you like to:
311
- >
312
- > **[A] Establish design direction now** — guided questions about style, layout, color
313
- > **[B] Skip for now** — decide during implementation
314
- > **[C] I have external designs** — link or describe them
297
+ 2.1 Tech stack selection — use `${SKILL_DIR}/assets/app-design-guide.md` §2 decision matrix. Use `AskUserQuestion` for each major tech decision (framework, database, styling, etc.)
298
+ 2.2 **Frontend design check** (for frontend projects) — scan for existing UI/UX design docs. If none found, use `AskUserQuestion`:
299
+ - Question: "No UI/UX design docs found. Would you like to establish design direction?"
300
+ - Options: "Establish design direction now (Recommended)", "Skip for now", "I have external designs"
315
301
  3. Capture architecture decisions and finalize project brief
316
- 4. Hand off to `feature-planner` for feature decomposition
302
+ 4. Present completion summary with artifacts produced and possible next steps
317
303
 
318
304
  ### Checkpoints (Mandatory Gates)
319
305
 
@@ -326,7 +312,7 @@ Checkpoints catch cascading errors early — skipping one means the next phase b
326
312
  | **CP-AP-2** | Vision Summary | Goal/users/differentiators confirmed by user. For brownfield: existing purpose confirmed or refined. | 1-2 |
327
313
  | **CP-AP-3** | Frontend Design Evaluated | For frontend projects: checked for existing UI/UX design system; user was asked if missing. **Auto-pass** for backend-only or non-UI projects. | 2 |
328
314
  | **CP-AP-4** | Project Brief Accumulated | `.prizmkit/plans/project-brief.md` exists at `.prizmkit/plans/` with at least 3 ideas listed. For brownfield: already-implemented items marked `[x]` count toward this total. | 3 |
329
- | **CP-AP-5** | Handoff Ready | All app-level context captured; user confirmed readiness for feature decomposition | 4 |
315
+ | **CP-AP-5** | Planning Complete | All project-level context captured: conventions, tech stack, architecture decisions, project brief finalized | 4 |
330
316
 
331
317
  ## Architecture Decision Capture
332
318
 
@@ -334,7 +320,7 @@ After Phase 2, if framework-shaping architecture decisions emerged during planni
334
320
 
335
321
  **How it works**:
336
322
  1. If decisions are captured → append to `CLAUDE.md` / `CODEBUDDY.md` under `### Architecture Decisions` section
337
- 2. Feature-planner and other downstream skills read `CLAUDE.md` / `CODEBUDDY.md` as standard context, so they automatically receive these decisions
323
+ 2. Downstream skills (feature-planner, prizmkit-plan, etc.) read `CLAUDE.md` / `CODEBUDDY.md` as standard context, so they automatically receive these decisions
338
324
  3. Do NOT write directly to `.prizm-docs/root.prizm` — that file is maintained by `prizmkit-prizm-docs` and `prizmkit-retrospective`. If the project needs `.prizm-docs/`, recommend the user run `prizmkit-prizm-docs` init after planning.
339
325
 
340
326
  ## Project Brief Accumulation
@@ -357,25 +343,25 @@ Activate when ALL true:
357
343
 
358
344
  When the session appears to be ending:
359
345
  1. **Remind**: "You set out to produce a project plan but `.prizmkit/plans/project-brief.md` isn't complete yet."
360
- 2. **Present options**:
361
- > **[A] Continue to completion** — finish the project brief
362
- > **[B] Save draft & exit** — write current progress as draft to `.prizmkit/planning/`
363
- > **[C] Abandon** — exit without saving
364
-
365
- ## Handoff to feature-planner
366
-
367
- After all checkpoints pass, present a summary and offer next steps as options:
368
-
369
- 1. **Summary**: List captured vision, tech stack, constraints, architecture decisions, and project brief status
370
- 2. **Present options**:
371
- > Planning complete! Here's what was captured:
372
- > - Tech stack: [summary]
373
- > - Project brief: `.prizmkit/plans/project-brief.md` ([N] items)
374
- > - Conventions: saved to `CLAUDE.md` / `CODEBUDDY.md`
375
- >
376
- > **What's next?**
377
- >
378
- > **[A] Proceed to feature decomposition** — invoke `feature-planner` to break down features into `.prizmkit/plans/feature-list.json` (recommended)
379
- > **[B] Continue refining** stay in app-planner to adjust vision or constraints
380
- > **[C] Done for now** — exit with artifacts saved
381
- 3. **Artifacts produced**: List files written (`.prizmkit/plans/project-brief.md`, project conventions and architecture decisions in `CLAUDE.md` / `CODEBUDDY.md`)
346
+ 2. Use `AskUserQuestion`: "How would you like to proceed?"
347
+ - **Continue to completion (Recommended)** — finish the project brief
348
+ - **Save draft & exit** — write current progress as draft to `.prizmkit/planning/`
349
+ - **Abandon** — exit without saving
350
+
351
+ ## Completion Summary
352
+
353
+ After all checkpoints pass, present a summary and end the session:
354
+
355
+ 1. **Summary** (as text): List all project-level artifacts produced:
356
+ - Project conventions → `CLAUDE.md` / `CODEBUDDY.md` `### Project Conventions`
357
+ - Tech stack `.prizmkit/config.json`
358
+ - Architecture decisions (if any) → `CLAUDE.md` / `CODEBUDDY.md` `### Architecture Decisions`
359
+ - Project brief `.prizmkit/plans/project-brief.md`
360
+
361
+ 2. **Suggest possible next steps** (as text, NOT auto-invoked):
362
+ > Project-level planning is complete. When you're ready, here are some possible next steps:
363
+ > - `feature-planner` — decompose the project into features and generate `feature-list.json`
364
+ > - `prizmkit-plan` start working on a specific feature directly
365
+ > - `prizmkit-prizm-docs`initialize or update project documentation
366
+
367
+ **Do NOT invoke any of these.** The user decides what to do next, in their own time.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prizmkit",
3
- "version": "1.1.14",
3
+ "version": "1.1.16",
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": {