prizmkit 1.1.13 → 1.1.14

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.13",
3
- "bundledAt": "2026-04-09T09:50:44.583Z",
4
- "bundledFrom": "fea93ab"
2
+ "frameworkVersion": "1.1.14",
3
+ "bundledAt": "2026-04-09T16:24:45.739Z",
4
+ "bundledFrom": "b887e13"
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.1.13",
2
+ "version": "1.1.14",
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.",
@@ -70,25 +70,57 @@ Do NOT use this skill when:
70
70
  - User wants to explore ideas before committing → read `${SKILL_DIR}/references/brainstorm-guide.md`
71
71
  - During brainstorm Phase C → also read `${SKILL_DIR}/references/red-team-checklist.md`
72
72
 
73
- 3. **Project conventions check** — after Intent Confirmation, before brainstorm or vision work:
73
+ 3. **Project conventions discovery** — after Intent Confirmation, before brainstorm or vision work:
74
74
  → Read `CLAUDE.md` / `CODEBUDDY.md` and check for `### Project Conventions` section
75
- → If section exists and all conventions are answered → skip silently
76
- → If section is missing or incomplete → ask the following conventions as a single batched prompt:
77
- - **UI Display Language** (`ui_language`): Primary language for the app's UI (e.g., English, 中文, 日本語). If non-English, confirm whether ALL UI text should use that language.
78
- - **Multi-Language Support** (`i18n`): Whether i18n is needed. If yes, which target languages? If enabled, note i18n infrastructure early in dependency graph.
79
- - **Date/Time/Currency**: Date format (YYYY-MM-DD, MM/DD/YYYY, etc.), timezone strategy (UTC storage + local display, user-selected, server only), currency format (if applicable).
80
- - **Code & Git Language**: Language for code comments and git commit messages (default: English for both).
75
+ → If section exists and covers the project well → skip silently
76
+ → If section is missing or incomplete → run the **AI-driven convention discovery** below:
77
+
78
+ **Do NOT follow any fixed checklist.** Every project is different. You must analyze the project first, then reason about what system-level conventions this specific project needs.
79
+
80
+ **Step 1: Analyze the project**
81
+ - Read tech stack, dependencies, existing code, config files, README, any existing style guides or linter configs
82
+ - For brownfield: also read actual source code patterns (naming, file structure, error handling, etc.)
83
+ - For greenfield: use the user's stated goals and intended tech stack
84
+
85
+ **Step 2: Reason about what conventions matter for THIS project**
86
+ Think about what decisions, if left unstandardized, would cause inconsistency as the project grows. Consider all dimensions relevant to the project — these might include (but are NOT limited to):
87
+ - Language and localization choices
88
+ - Code style and naming patterns
89
+ - Architecture and communication patterns
90
+ - Data format and storage decisions
91
+ - Security and auth approaches
92
+ - UI/UX patterns
93
+ - Testing strategies
94
+ - Deployment and environment patterns
95
+ - ...anything else you observe that needs a project-level decision
96
+
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
+
99
+ **Step 3: Present findings as two groups**
100
+ > Based on analyzing your project, here are the system-level conventions I recommend establishing:
101
+ >
102
+ > **Already decided** (detected from your codebase):
103
+ > - [convention]: [value] (source: [where you found it])
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?
114
+
115
+ **Rules:**
116
+ - Every proposed convention must be justified by something you observed in the project — explain WHY it matters
117
+ - 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
121
+
81
122
  → Save answers to `CLAUDE.md` / `CODEBUDDY.md` under `### Project Conventions` section (format: one bullet per convention)
82
- Example output:
83
- ```markdown
84
- ### Project Conventions
85
- - UI language: 中文
86
- - i18n: disabled
87
- - Date format: YYYY-MM-DD, timezone: UTC storage + local display
88
- - Currency: CNY ¥
89
- - Code comments: English
90
- - Git commits: English
91
- ```
123
+ Output format will naturally vary per project — that is the intended behavior
92
124
 
93
125
  4. **Project brief accumulation** — throughout all interactive phases:
94
126
  → Read `${SKILL_DIR}/references/project-brief-guide.md` for template and rules
@@ -112,25 +144,60 @@ Note:
112
144
  - This skill does **not** create `.prizmkit/config.json` directly.
113
145
  - Creation/update is handled by bootstrap/init flows (e.g., `prizmkit-init`, `dev-pipeline/scripts/init-dev-team.py`).
114
146
 
115
- ## Intent Confirmation (Mandatory First Step)
147
+ ## Interaction Style (Hard Rule)
148
+
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
+ - Intent confirmation
151
+ - Project conventions
152
+ - Tech stack selection
153
+ - Architecture decisions
154
+ - Handoff recommendations
155
+ - Session exit gates
156
+
157
+ **Format**: Present options as a numbered or lettered list. The user picks a number/letter. Include a recommended default where appropriate.
116
158
 
117
- After initial greeting, confirm the user's deliverable intent:
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
118
165
 
119
- 1. **Ask explicitly**:
120
- - "Is the goal to produce a project plan for eventual pipeline execution, or just explore ideas first?"
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
121
169
 
122
- 2. **Route by answer**:
123
- - **"Produce a plan"** → Continue to Core Workflow. Set session goal = `produce`.
124
- - **"Just explore ideas"** → Enter **Exploration Mode**:
125
- - Run project conventions check first
126
- - Load `${SKILL_DIR}/references/brainstorm-guide.md` and follow its structured ideation process (Phases A-D)
127
- - Brainstorm Phase D output serves as the Vision Summary (CP-AP-2)
128
- - After brainstorm completes, ask: "Ideas are taking shape. Ready to hand off to `feature-planner` for feature decomposition, or continue refining?"
129
- - If ready → proceed to Phase 2 (constraints + frontend design check if applicable) then handoff
130
- - If not ready → continue exploring, or save draft to `.prizmkit/planning/` and exit
131
- - **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)
170
+ ## Intent Confirmation (Mandatory First Step)
132
171
 
133
- 3. **Session goal tracking**: Track the intent (`produce` or `explore`) throughout the session. If `explore`, always re-prompt before ending.
172
+ After initial greeting, present options:
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
179
+
180
+ Route by answer:
181
+ - **A** → Continue to Core Workflow. Set session goal = `produce`.
182
+ - **B** → Enter **Exploration Mode**:
183
+ - Run project conventions check first
184
+ - Load `${SKILL_DIR}/references/brainstorm-guide.md` and follow its structured ideation process (Phases A-D)
185
+ - 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/
192
+ - **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
195
+ - Proactively scan the project (same as brownfield behavior)
196
+ - Generate project-brief.md from inferred context
197
+ - Skip extensive brainstorming and constraint phases
198
+ - Present brief for user confirmation → write → done
199
+
200
+ Session goal tracking: Track the intent (`produce`, `explore`, or `quick_context`) throughout the session. If `explore`, always re-prompt before ending.
134
201
 
135
202
  ## Project State Detection (after Intent Confirmation)
136
203
 
@@ -153,6 +220,40 @@ Proceed with the standard Core Workflow — ask all questions from scratch.
153
220
 
154
221
  When an existing project is detected:
155
222
 
223
+ **Step 1: Prerequisite Check (Mandatory)**
224
+
225
+ Before ANY planning work, check if AI-essential project context files exist:
226
+
227
+ | File | Purpose | Status |
228
+ |------|---------|--------|
229
+ | `.prizm-docs/root.prizm` | Project architecture context for AI | exists / missing |
230
+ | `.prizmkit/config.json` | Tech stack + runtime config | exists / missing |
231
+ | `.prizmkit/plans/project-brief.md` | Product vision checklist | exists / missing |
232
+
233
+ **If ANY are missing**, present this recommendation:
234
+
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
248
+
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
252
+
253
+ **Step 2: Proactive Project Scanning**
254
+
255
+ Do NOT ask the user to describe their project — read it yourself first:
256
+
156
257
  1. **Scan project structure** to understand the codebase layout:
157
258
  ```bash
158
259
  find . -maxdepth 2 -type d -not -path '*/node_modules/*' -not -path '*/.git/*' -not -path '*/dist/*' -not -path '*/build/*' -not -path '*/__pycache__/*' -not -path '*/vendor/*' | sed -e 's;[^/]*/;|____;g;s;____|; |;g'
@@ -166,19 +267,32 @@ When an existing project is detected:
166
267
  - `.prizmkit/config.json` → previously detected tech stack
167
268
  - `.prizm-docs/root.prizm` → existing architecture context
168
269
 
169
- 3. **Present inferred summary** to the user:
170
- > "I see this is a [framework] project using [language] with [key dependencies]. Here's what I inferred about the project: [summary]. Is this correct? Anything to add or change?"
270
+ 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
+
272
+ **Step 3: Present inferred summary with confirmation options**
273
+
274
+ > Based on my analysis of your codebase:
275
+ >
276
+ > **Project**: [name] — [inferred description]
277
+ > **Tech Stack**: [framework] + [language] + [key dependencies]
278
+ > **Key Features Found**: [list 3-5 detected capabilities]
279
+ > **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
284
+
285
+ **Step 4: Pre-fill and focus**
171
286
 
172
- 4. **Pre-fill where possible** skip questions already answerable from the codebase:
173
- - Phase 2 tech stack selection largely pre-filled from dependencies
174
- - Vision/problem statementinferred from README or package description (user confirms)
175
- - Existing features → note them as `[x]` items in project brief
287
+ - Phase 2 tech stack selection largely pre-filled from dependencies
288
+ - Vision/problem statement inferred from README or package description (user confirms)
289
+ - Existing featuresnote them as `[x]` items in project brief
176
290
 
177
- 5. **Focus remaining questions** on what CANNOT be inferred:
178
- - Target users and core value proposition
179
- - Future direction and planned capabilities
180
- - Non-functional requirements (performance, scale, security)
181
- - Design direction (for frontend projects)
291
+ **Focus remaining questions** (as options where possible) on what CANNOT be inferred:
292
+ - Target users and core value proposition
293
+ - Future direction and planned capabilities
294
+ - Non-functional requirements (performance, scale, security)
295
+ - Design direction (for frontend projects)
182
296
 
183
297
  ## Core Workflow
184
298
 
@@ -186,11 +300,18 @@ Execute the planning workflow in conversation mode with mandatory checkpoints:
186
300
 
187
301
  ### Interactive Phases
188
302
  1. Clarify business goal and scope
189
- 1.1 Confirm deliverable intent (→ Intent Confirmation)
190
- 1.2 **Requirement clarification** — for ANY unclear aspect of the user's vision, goals, target users, or scope, ask questions one at a time until fully understood. No limit on rounds. Do not proceed to Phase 2 with unresolved ambiguities.
303
+ 1.1 Confirm deliverable intent (→ Intent Confirmation — option-based)
304
+ 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.
191
305
  2. Confirm constraints and tech assumptions
192
- 2.1 Tech stack selection — use `${SKILL_DIR}/assets/app-design-guide.md` §2 decision matrix
193
- 2.2 **Frontend design check** (for frontend projects) — scan for existing UI/UX design docs. If none found, ask user if they want to establish design direction via `${SKILL_DIR}/references/frontend-design-guide.md`
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
194
315
  3. Capture architecture decisions and finalize project brief
195
316
  4. Hand off to `feature-planner` for feature decomposition
196
317
 
@@ -236,16 +357,25 @@ Activate when ALL true:
236
357
 
237
358
  When the session appears to be ending:
238
359
  1. **Remind**: "You set out to produce a project plan but `.prizmkit/plans/project-brief.md` isn't complete yet."
239
- 2. **Offer 3 options**:
240
- - **(a) Continue to completion**
241
- - **(b) Save draft & exit** — write current progress as draft to `.prizmkit/planning/`
242
- - **(c) Abandon** — exit without saving
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
243
364
 
244
365
  ## Handoff to feature-planner
245
366
 
246
- After all checkpoints pass, present a summary and recommend next steps:
367
+ After all checkpoints pass, present a summary and offer next steps as options:
247
368
 
248
369
  1. **Summary**: List captured vision, tech stack, constraints, architecture decisions, and project brief status
249
- 2. **Primary recommendation**: Invoke `feature-planner` to decompose the application into features and generate `.prizmkit/plans/feature-list.json` (schema: `dev-pipeline-feature-list-v1`, uses `project_name` field for the app name)
250
- 3. **Alternative**: If the user wants to continue refining the vision or constraints, stay in app-planner
251
- 4. **Artifacts produced**: List files written (`.prizmkit/plans/project-brief.md`, project conventions and architecture decisions in `CLAUDE.md` / `CODEBUDDY.md`)
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`)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prizmkit",
3
- "version": "1.1.13",
3
+ "version": "1.1.14",
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": {