prizmkit 1.1.80 → 1.1.81

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 (59) hide show
  1. package/bundled/VERSION.json +3 -3
  2. package/bundled/skills/_metadata.json +1 -1
  3. package/bundled/skills/app-planner/SKILL.md +2 -9
  4. package/bundled/skills/app-planner/references/rules/backend/derivation-rules.md +10 -0
  5. package/bundled/skills/app-planner/references/rules/database/derivation-rules.md +9 -0
  6. package/bundled/skills/app-planner/references/rules/frontend/derivation-rules.md +10 -0
  7. package/bundled/skills/app-planner/references/rules/frontend/question-bank.md +17 -0
  8. package/bundled/skills/app-planner/references/rules/frontend/template.md +19 -0
  9. package/bundled/skills/app-planner/references/rules/mobile/derivation-rules.md +10 -0
  10. package/bundled/skills/bug-fix-workflow/SKILL.md +17 -24
  11. package/bundled/skills/bug-fix-workflow/references/bug-diagnosis.md +4 -29
  12. package/bundled/skills/bug-planner/SKILL.md +20 -12
  13. package/bundled/skills/bugfix-pipeline-launcher/SKILL.md +5 -67
  14. package/bundled/skills/bugfix-pipeline-launcher/references/configuration.md +50 -1
  15. package/bundled/skills/feature-pipeline-launcher/SKILL.md +16 -56
  16. package/bundled/skills/feature-pipeline-launcher/references/configuration.md +26 -0
  17. package/bundled/skills/feature-planner/SKILL.md +5 -9
  18. package/bundled/skills/feature-workflow/SKILL.md +22 -63
  19. package/bundled/skills/prizm-kit/SKILL.md +3 -2
  20. package/bundled/skills/prizmkit-code-review/SKILL.md +1 -1
  21. package/bundled/skills/prizmkit-committer/SKILL.md +3 -1
  22. package/bundled/skills/prizmkit-deploy/SKILL.md +1 -1
  23. package/bundled/skills/prizmkit-implement/SKILL.md +1 -1
  24. package/bundled/skills/prizmkit-prizm-docs/SKILL.md +1 -0
  25. package/bundled/skills/prizmkit-retrospective/SKILL.md +1 -1
  26. package/bundled/skills/recovery-workflow/SKILL.md +23 -73
  27. package/bundled/skills/refactor-pipeline-launcher/SKILL.md +6 -51
  28. package/bundled/skills/refactor-pipeline-launcher/references/configuration.md +34 -0
  29. package/bundled/skills/refactor-planner/SKILL.md +6 -8
  30. package/bundled/skills/refactor-workflow/SKILL.md +14 -75
  31. package/bundled/skills-windows/app-planner/SKILL.md +2 -9
  32. package/bundled/skills-windows/app-planner/references/rules/backend/derivation-rules.md +10 -0
  33. package/bundled/skills-windows/app-planner/references/rules/database/derivation-rules.md +9 -0
  34. package/bundled/skills-windows/app-planner/references/rules/frontend/derivation-rules.md +10 -0
  35. package/bundled/skills-windows/app-planner/references/rules/frontend/question-bank.md +17 -0
  36. package/bundled/skills-windows/app-planner/references/rules/frontend/template.md +19 -0
  37. package/bundled/skills-windows/app-planner/references/rules/mobile/derivation-rules.md +10 -0
  38. package/bundled/skills-windows/bug-fix-workflow/SKILL.md +17 -24
  39. package/bundled/skills-windows/bug-fix-workflow/references/bug-diagnosis.md +4 -29
  40. package/bundled/skills-windows/bug-planner/SKILL.md +20 -12
  41. package/bundled/skills-windows/bugfix-pipeline-launcher/SKILL.md +5 -63
  42. package/bundled/skills-windows/bugfix-pipeline-launcher/references/configuration.md +46 -1
  43. package/bundled/skills-windows/feature-pipeline-launcher/SKILL.md +17 -53
  44. package/bundled/skills-windows/feature-pipeline-launcher/references/configuration.md +22 -0
  45. package/bundled/skills-windows/feature-planner/SKILL.md +5 -9
  46. package/bundled/skills-windows/feature-workflow/SKILL.md +22 -63
  47. package/bundled/skills-windows/prizm-kit/SKILL.md +3 -2
  48. package/bundled/skills-windows/prizmkit-code-review/SKILL.md +1 -1
  49. package/bundled/skills-windows/prizmkit-committer/SKILL.md +3 -1
  50. package/bundled/skills-windows/prizmkit-deploy/SKILL.md +1 -1
  51. package/bundled/skills-windows/prizmkit-implement/SKILL.md +1 -1
  52. package/bundled/skills-windows/prizmkit-prizm-docs/SKILL.md +1 -0
  53. package/bundled/skills-windows/prizmkit-retrospective/SKILL.md +1 -1
  54. package/bundled/skills-windows/recovery-workflow/SKILL.md +23 -73
  55. package/bundled/skills-windows/refactor-pipeline-launcher/SKILL.md +7 -46
  56. package/bundled/skills-windows/refactor-pipeline-launcher/references/configuration.md +28 -0
  57. package/bundled/skills-windows/refactor-planner/SKILL.md +6 -8
  58. package/bundled/skills-windows/refactor-workflow/SKILL.md +14 -75
  59. package/package.json +1 -1
@@ -7,37 +7,27 @@ description: "Launch and manage the dev-pipeline from within an AI CLI session.
7
7
 
8
8
  Launch the autonomous development pipeline from within an AI CLI conversation. The pipeline runs as a fully detached background process -- closing the AI CLI session does NOT stop the pipeline.
9
9
 
10
- ### Execution Mode
11
-
12
- Three execution modes are available. The user chooses one before configuring other options:
13
-
14
- 1. **Foreground** (recommended) — `.\.prizmkit\dev-pipeline\run-feature.ps1 run`. Visible output, direct error feedback, no orphaned processes.
15
- 2. **Background daemon** — `.\.prizmkit\dev-pipeline\launch-feature-daemon.ps1`. Runs fully detached, survives AI CLI session closure.
16
- 3. **Manual** — Display the assembled command(s) only. Do not execute anything. User runs them on their own.
10
+ Three execution modes are available (Foreground / Background daemon / Manual); they are defined authoritatively in **Intent A, step 5** below.
17
11
 
18
12
  ### When to Use
19
13
 
20
14
  **Start pipeline** -- User says:
21
- - "run pipeline", "start pipeline", "start building", "launch dev-pipeline"
22
- - "run the features", "execute feature list", "start implementing"
23
- - "launch pipeline", "run the pipeline", "start auto-development"
24
- - After feature-planner completes: "build it", "start developing from the feature list"
25
- - "run only F-001 to F-005", "run features F-001,F-003", "only build these features"
15
+ - "run feature pipeline", "run pipeline", "start building features", "launch feature pipeline"
16
+ - "start implementing", "execute feature list", "build all features"
17
+ - After feature-planner completes: "build them", "start building from the list"
18
+ - Supports running a feature subset (e.g. "run only F-001 to F-005", "run features F-001,F-003").
26
19
 
27
20
  **Check status** -- User says:
28
- - "pipeline status", "check pipeline", "how's it going", "progress"
29
- - "check progress", "what's the current situation"
21
+ - "pipeline status", "feature progress", "check the pipeline", "how's the build going"
30
22
 
31
23
  **Stop pipeline** -- User says:
32
- - "stop pipeline", "kill pipeline", "halt", "pause"
33
- - "stop the pipeline", "pause the pipeline"
24
+ - "stop pipeline", "stop the pipeline", "halt pipeline", "pause the build"
34
25
 
35
26
  **Show logs** -- User says:
36
- - "show logs", "pipeline logs", "tail logs", "what's happening"
37
- - "view logs", "check the logs"
27
+ - "pipeline logs", "show pipeline logs", "what's building"
38
28
 
39
- **Retry single feature node** -- User says:
40
- - "retry F-003", "retry this feature", "retry this node", "re-run this feature"
29
+ **Retry single feature** -- User says:
30
+ - "retry F-001", "re-run F-001", "retry this feature"
41
31
 
42
32
  **Do NOT use this skill when:**
43
33
  - User wants to plan features (use `feature-planner` instead)
@@ -155,9 +145,9 @@ Detect user intent from their message, then follow the corresponding workflow:
155
145
 
156
146
  If `global_context.database` is absent and no features mention database keywords, the script skips DB checks automatically.
157
147
 
158
- 5. **Ask execution mode** (first user decision — SEPARATE `AskUserQuestion` call):
148
+ 5. **Ask execution mode** (first user decision):
159
149
 
160
- **This MUST be its own standalone `AskUserQuestion` call.** Do NOT combine execution mode with step 6 config questions. The execution mode question is asked ALONE, user responds, THEN you proceed to step 6.
150
+ **RULE: Ask step 5 and step 6 in separate `AskUserQuestion` calls.** Combining them makes the model merge the questions and skip the mode selection. Ask execution mode ALONE here, wait for the response, THEN proceed to step 6.
161
151
 
162
152
  Use `AskUserQuestion` with exactly 1 question:
163
153
 
@@ -166,19 +156,11 @@ Detect user intent from their message, then follow the corresponding workflow:
166
156
  - Background daemon — pipeline runs fully detached via `launch-feature-daemon.ps1`. Survives AI CLI session closure.
167
157
  - Manual — display the final assembled commands only. Do not execute anything. User runs them on their own.
168
158
 
169
- ⚠️ STOP HERE and wait for user response before continuing to step 6.
170
-
171
- 6. **Ask configuration options** ⚠️ MANDATORY INTERACTIVE STEP — applies to ALL execution modes (Foreground, Background, AND Manual). This is a SEPARATE `AskUserQuestion` call from step 5. You MUST ask the user to configure options and WAIT for their response BEFORE proceeding to step 7.
159
+ STOP HERE and wait for user response before continuing to step 6.
172
160
 
173
- **HARD STOP**: You MUST call `AskUserQuestion` with the 4 questions below and WAIT for the user's response. You MUST NOT:
174
- - Combine step 5 and step 6 into one `AskUserQuestion` call (this is the most common violation — execution mode MUST be asked separately in step 5)
175
- - Skip this step and jump to step 7
176
- - Merge step 6 and step 7 into one response
177
- - Assume default values and show the command without asking
178
- - Show the command as text and ask "ready?" without presenting the options
179
- If you find yourself writing the final command before the user has answered these 4 questions, STOP — you are violating this rule.
161
+ 6. **Ask configuration options** — MANDATORY INTERACTIVE STEP, applies to ALL execution modes (Foreground, Background, AND Manual). This is a SEPARATE `AskUserQuestion` call from step 5 (see the RULE above). You MUST call `AskUserQuestion` with the 4 questions below and WAIT for the user's response before proceeding to step 7. Do NOT assume defaults, do NOT show the command as text and ask "ready?", and do NOT merge step 6 and step 7. If you find yourself writing the final command before the user has answered these 4 questions, STOP — you are violating this rule.
180
162
 
181
- Use `AskUserQuestion` to present ALL 4 configuration choices (the full 4-question budget goes to config, NOT shared with execution mode):
163
+ Use `AskUserQuestion` to present ALL 4 configuration choices:
182
164
 
183
165
  **Question 1 — Critic review** (multiSelect: false):
184
166
  - Off (default) — Skip adversarial review
@@ -199,29 +181,11 @@ Detect user intent from their message, then follow the corresponding workflow:
199
181
 
200
182
  Default Critic to Off unless features have `estimated_complexity: "high"` or above (in which case default to On).
201
183
 
202
- **If user chose "Yes" to Advanced config**, ask a second round of `AskUserQuestion`:
203
-
204
- **Question 1 — Session timeout** (multiSelect: false):
205
- - None (default) — No timeout
206
- - 30 min — `SESSION_TIMEOUT=1800`
207
- - 1 hour — `SESSION_TIMEOUT=3600`
208
- - 2 hours — `SESSION_TIMEOUT=7200`
209
-
210
- **Question 2 — Stop on failure** (multiSelect: false):
211
- - Off (default) — Pipeline continues to next task after failure
212
- - On — Pipeline halts immediately when a task exhausts all retries (`STOP_ON_FAILURE=1`)
213
-
214
- **Question 3 — Reasoning effort** (multiSelect: false):
215
- - Default (none) — Use CLI default
216
- - low — Minimize reasoning, fastest output (`PRIZMKIT_EFFORT=low`)
217
- - medium — Moderate reasoning (`PRIZMKIT_EFFORT=medium`)
218
- - high — Thorough reasoning for complex tasks (`PRIZMKIT_EFFORT=high`)
219
- - xhigh — Extensive reasoning (`PRIZMKIT_EFFORT=xhigh`)
220
- - max — Maximum reasoning, Claude Code only (`PRIZMKIT_EFFORT=max`)
184
+ **If user chose "Yes" to Advanced config**, ask a second round of `AskUserQuestion` — see the advanced config questions (session timeout, stop-on-failure, reasoning effort) in `${SKILL_DIR}/references/configuration.md`.
221
185
 
222
186
  **Environment variable mapping** and **advanced environment variables** tables — read `${SKILL_DIR}/references/configuration.md` for the full translation tables (8 config→env mappings + 9 advanced variables).
223
187
 
224
- ⚠️ STOP HERE and wait for user response before continuing to step 7.
188
+ STOP HERE and wait for user response before continuing to step 7.
225
189
 
226
190
  7. **Show final command**: After user confirms configuration in step 6, assemble the complete command from execution mode + user-confirmed configuration, and present it to the user.
227
191
 
@@ -2,6 +2,28 @@
2
2
 
3
3
  Environment variable mappings for the feature launcher.
4
4
 
5
+ ## Advanced Config Questions (second AskUserQuestion round)
6
+
7
+ Asked only when the user chose "Yes" to Advanced config in step 6.
8
+
9
+ **Question 1 — Session timeout** (multiSelect: false):
10
+ - None (default) — No timeout
11
+ - 30 min — `SESSION_TIMEOUT=1800`
12
+ - 1 hour — `SESSION_TIMEOUT=3600`
13
+ - 2 hours — `SESSION_TIMEOUT=7200`
14
+
15
+ **Question 2 — Stop on failure** (multiSelect: false):
16
+ - Off (default) — Pipeline continues to next task after failure
17
+ - On — Pipeline halts immediately when a task exhausts all retries (`STOP_ON_FAILURE=1`)
18
+
19
+ **Question 3 — Reasoning effort** (multiSelect: false):
20
+ - Default (none) — Use CLI default
21
+ - low — Minimize reasoning, fastest output (`PRIZMKIT_EFFORT=low`)
22
+ - medium — Moderate reasoning (`PRIZMKIT_EFFORT=medium`)
23
+ - high — Thorough reasoning for complex tasks (`PRIZMKIT_EFFORT=high`)
24
+ - xhigh — Extensive reasoning (`PRIZMKIT_EFFORT=xhigh`)
25
+ - max — Maximum reasoning, Claude Code only (`PRIZMKIT_EFFORT=max`)
26
+
5
27
  ## Environment Variable Mapping
6
28
 
7
29
  Translating user responses to env vars:
@@ -60,13 +60,7 @@ When the user provides detailed specifications, rules, or implementation require
60
60
 
61
61
  ## When to Use
62
62
 
63
- Trigger this skill for requests like:
64
- - "Add features to existing system", "Continue planning"
65
- - "Prepare .prizmkit/plans/feature-list.json", "Prepare dev-pipeline input"
66
- - "Reprioritize features", "Split features"
67
- - "Plan features for my project" (when the project already exists)
68
-
69
- Do NOT use this skill when:
63
+ Trigger conditions are covered by the frontmatter `description`. Do NOT use this skill when:
70
64
  - The user wants to plan a new app from scratch → use `app-planner`
71
65
  - The user only wants to run the pipeline → use `feature-pipeline-launcher`
72
66
  - The user is debugging/refactoring or wants to write source code directly
@@ -115,7 +109,7 @@ Do NOT use this skill when:
115
109
  If the script is not available, perform these manual validation checks:
116
110
  1. **ID sequence**: All feature IDs are sequential (F-001, F-002, F-003, ...)
117
111
  2. **No circular dependencies**: No feature depends (directly or transitively) on itself
118
- 3. **Description length**: Minimum 15 words per description (error), recommended minimum 30/50/80/100+ for low/medium/high/critical (warning). No upper limit — more detail is always better
112
+ 3. **Description length**: Minimum 15 words per description (error); see §Output Rules for the recommended-length warning thresholds
119
113
  4. **Dependency references**: All referenced features in dependencies exist in features array
120
114
  5. **Priority enums**: All priority values are exactly "critical", "high", "medium", or "low" (case-sensitive)
121
115
  6. **Status enum**: All status values are one of: pending, in_progress, completed, failed, skipped, split, auto_skipped
@@ -362,7 +356,7 @@ Present a consolidated testing summary table at Phase 8, then ask for confirmati
362
356
 
363
357
  ## Next-Step Execution Policy (after planning)
364
358
 
365
- 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.
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).
366
360
 
367
361
  ## Error Recovery & Resume
368
362
 
@@ -399,3 +393,5 @@ After successful validation, report:
399
393
  2. Total features + newly added features
400
394
  3. Dependency and priority highlights
401
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).
@@ -26,39 +26,14 @@ User says:
26
26
 
27
27
  ## Overview
28
28
 
29
- ```
30
- feature-workflow <idea / requirements>
31
-
32
- ├── Phase 1: Brainstorm → collect materials → parallel deep read → discuss requirements
33
-
34
- ├── Phase 2: Plan → feature-planner → .prizmkit/plans/feature-list.json
35
-
36
- ├── Phase 3: Launch → feature-pipeline-launcher → pipeline execution
37
-
38
- └── Phase 4: Monitor → track progress → report results
39
- ```
40
-
41
- ### What This Skill Does
42
-
43
- | Phase | Action | Result |
44
- |-------|--------|--------|
45
- | 1 | **Brainstorm** — collect reference materials, parallel deep read code & docs, discuss requirements grounded in real context | Fully clarified requirements document |
46
- | 2 | Call `feature-planner` with clarified requirements | `.prizmkit/plans/feature-list.json` with N features |
47
- | 3 | Call `feature-pipeline-launcher` | Pipeline started (execution mode chosen by user via launcher) |
48
- | 4 | Monitor progress | Status updates, completion report |
29
+ Given an idea or requirements, the workflow runs four phases:
49
30
 
50
- ### Why This Skill Exists
31
+ 1. **Brainstorm** collect reference materials, parallel deep read code & docs, discuss requirements grounded in real context → fully clarified requirements
32
+ 2. **Plan** — call `feature-planner` with clarified requirements → `.prizmkit/plans/feature-list.json` with N features
33
+ 3. **Launch** — call `feature-pipeline-launcher` → pipeline started (execution mode chosen by user via launcher)
34
+ 4. **Monitor** — track progress → status updates, completion report
51
35
 
52
- Without this skill, users must:
53
- 1. Figure out all requirements themselves
54
- 2. Invoke `feature-planner` → wait for .prizmkit/plans/feature-list.json
55
- 3. Invoke `feature-pipeline-launcher` → wait for pipeline start
56
- 4. Manually check progress
57
-
58
- With this skill, users can:
59
- 1. Say "Build a task management App" with a rough idea
60
- 2. The skill brainstorms to fill in all gaps
61
- 3. All planning + execution happens automatically
36
+ The value: the user starts from a rough idea, the skill brainstorms to fill the gaps, and planning + execution happen automatically — no need to manually invoke each planner/launcher and poll for progress.
62
37
 
63
38
  ### Branch Management
64
39
 
@@ -102,14 +77,14 @@ When user says "add features to existing project" or the project already has fea
102
77
 
103
78
  **Goal**: Through interactive Q&A and deep context reading, transform the user's rough idea into fully clarified, implementation-ready requirements. This phase is the foundation for high-quality code generation — vague requirements produce vague code.
104
79
 
105
- **CRITICAL RULE**: The number of questions is **unlimited**. Do NOT rush through this phase. Ask as many rounds as needed until every aspect is clear. The framework strives for perfect code generation, which requires perfect understanding of requirements.
80
+ Critical rule: the number of questions is unlimited. Do NOT rush through this phase. Ask as many rounds as needed until every aspect is clear. The framework strives for perfect code generation, which requires perfect understanding of requirements.
106
81
 
107
82
  ### Step 1.1: Understand the User's Vision
108
83
 
109
84
  Ask the user to describe what they want to build. Listen for:
110
- - **What** the system/feature does (core functionality)
111
- - **Who** uses it (user roles, personas)
112
- - **Why** it's needed (business value, problem being solved)
85
+ - What the system/feature does (core functionality)
86
+ - Who uses it (user roles, personas)
87
+ - Why it's needed (business value, problem being solved)
113
88
 
114
89
  ### Step 1.2: Collect Reference Materials
115
90
 
@@ -160,7 +135,7 @@ Once brainstorming is complete, produce a structured requirements summary. Read
160
135
 
161
136
  After confirming requirements, assess whether this feature needs the full pipeline or can be done directly in the current session.
162
137
 
163
- **Simple feature Fast Path candidate** (ALL must be true):
138
+ **Simple feature** (Fast Path candidate ALL must be true):
164
139
  - Single module, no cross-module architectural impact
165
140
  - ≤2 new files to create
166
141
  - No new external dependencies or infrastructure changes
@@ -168,11 +143,18 @@ After confirming requirements, assess whether this feature needs the full pipeli
168
143
  - Clear acceptance criteria with existing patterns to follow
169
144
  - No dependency on other unbuilt features
170
145
 
171
- **User choice required (mandatory)**Use `AskUserQuestion` to present interactive selectable options:
146
+ **Complex feature** (Planning Path ANY is true):
147
+ - Cross-module impact (>2 modules affected)
148
+ - New infrastructure, dependencies, or architectural patterns required
149
+ - Multiple interrelated features with dependency ordering
150
+ - Data model or API design decisions needed
151
+ - Requires integration with external services
152
+
153
+ User choice is required (mandatory) — use `AskUserQuestion` to present interactive selectable options. Adjust the question framing to the assessment: for a simple feature, "This feature appears straightforward."; for a complex feature, "This feature is complex and will benefit from structured planning."
172
154
 
173
155
  ```
174
156
  AskUserQuestion:
175
- question: "This feature appears straightforward. How would you like to proceed?"
157
+ question: "How would you like to proceed?" # prefix with the framing note above
176
158
  header: "Approach"
177
159
  options:
178
160
  - label: "Implement now (fast path)"
@@ -187,33 +169,10 @@ AskUserQuestion:
187
169
  3. After implementation, run `/prizmkit-code-review` for quality check
188
170
  4. Commit via `/prizmkit-committer` with `feat(<scope>):` prefix
189
171
  5. Run `/prizmkit-retrospective` to sync `.prizmkit/prizm-docs/`
190
- 6. **End workflow** — skip Phase 2/3/4
191
- - **Add to feature list** → Continue to Phase 2 (Plan via pipeline)
192
-
193
- **Complex feature → Planning Path** (ANY is true):
194
- - Cross-module impact (>2 modules affected)
195
- - New infrastructure, dependencies, or architectural patterns required
196
- - Multiple interrelated features with dependency ordering
197
- - Data model or API design decisions needed
198
- - Requires integration with external services
199
-
200
- **User choice required (mandatory)** — Use `AskUserQuestion` to present interactive selectable options:
201
-
202
- ```
203
- AskUserQuestion:
204
- question: "This feature is complex and will benefit from structured planning. How would you like to proceed?"
205
- header: "Approach"
206
- options:
207
- - label: "Plan and implement now"
208
- description: "Create a plan and implement in this session using /prizmkit-plan + /prizmkit-implement"
209
- - label: "Add to feature list (pipeline)"
210
- description: "Generate .prizmkit/plans/feature-list.json via feature-planner, then launch pipeline for autonomous execution"
211
- ```
212
-
213
- - **Plan and implement now** → Invoke `/prizmkit-plan` with requirements → `/prizmkit-implement` → `/prizmkit-code-review` → `/prizmkit-committer` → `/prizmkit-retrospective`. **End workflow** — skip Phase 2/3/4.
172
+ 6. End workflow — skip Phase 2/3/4
214
173
  - **Add to feature list** → Continue to Phase 2 (Plan via pipeline)
215
174
 
216
- **NEVER proceed without explicit user confirmation via `AskUserQuestion`. Do NOT render options as plain text — the user must be able to click/select.**
175
+ Never proceed without explicit user confirmation via `AskUserQuestion`. Do NOT render options as plain text — the user must be able to click/select.
217
176
 
218
177
  **CHECKPOINT CP-FW-0.5**: Approach selected by user (fast path or pipeline).
219
178
 
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: "prizm-kit"
3
- description: "Full-lifecycle dev toolkit index. Routes to the right PrizmKit skill for spec-driven development, Prizm docs, code quality, deployment, and knowledge management. Use when the user asks 'which command?', 'help', 'how do I start a feature', 'get started', 'what tools', 'dev workflow', 'lifecycle', or '/prizmkit'. Use this as the entry point for the full PrizmKit development lifecycle."
3
+ description: "Full-lifecycle dev toolkit index. Routes to the right PrizmKit skill for spec-driven development, Prizm docs, code quality, deployment, and knowledge management. Use when the user asks 'which command?', 'help', 'how do I start a feature', 'get started', 'what tools', 'dev workflow', 'lifecycle', or '/prizmkit'. Use this as the entry point for the full PrizmKit development lifecycle. (project)"
4
4
  ---
5
5
 
6
6
  # PrizmKit — Full-Lifecycle Development Toolkit
@@ -72,7 +72,8 @@ All three follow the same per-task flow. Detailed documentation policies (when t
72
72
  | `/prizmkit-code-review` | Diagnose issues + produce Fix Instructions | "review", "check code", "is it ready to commit" |
73
73
  | `/prizmkit-retrospective` | Sync .prizmkit/prizm-docs/ with code changes | "retrospective", "retro", "sync docs", "wrap up" |
74
74
  | `/prizmkit-committer` | Safe git commit with Conventional Commits | "commit", "submit", "finish", "ship it" |
75
- | `/prizmkit-deploy` | Generate/update deployment documentation | "deploy docs", "deployment guide", "how to deploy" |
75
+ | `/prizmkit-test` | Generate + run tests, analyze coverage gaps, unified quality report | "test", "run tests", "check quality", "verify code", "补测试" |
76
+ | `/prizmkit-deploy` | Universal deployment gateway: SSH automation, cloud/Docker guided setup, status/logs/rollback | "deploy", "ship it", "go live", "rollback", "deploy status" |
76
77
  | `/prizmkit-init` | Project bootstrap + .prizmkit/prizm-docs/ setup | "init", "initialize", "take over this project" |
77
78
  | `/prizmkit-prizm-docs` | Doc management (init/status/rebuild/validate) | "check docs", "rebuild docs", "validate docs" |
78
79
 
@@ -26,7 +26,7 @@ The loop repeats until the Reviewer finds no issues or the max round limit is re
26
26
 
27
27
  | Parameter | Required | Description |
28
28
  |-----------|----------|-------------|
29
- | `artifact_dir` | No | Directory containing spec.md + plan.md. If omitted, scan `.prizmkit/` subdirectories for the most recently modified directory with a `plan.md` whose tasks are all completed. |
29
+ | `artifact_dir` | No | Directory containing spec.md + plan.md. If omitted, scan `.prizmkit/` subdirectories for the most recently modified directory with a `plan.md` whose tasks are all completed. When invoked as a handoff step, reuse the caller's `artifact_dir` rather than re-detecting. |
30
30
 
31
31
  ## Phase 0: Context Loading
32
32
 
@@ -12,7 +12,7 @@ description: "Pure git commit workflow with safety checks. Stages files, generat
12
12
 
13
13
  ### When NOT to Use
14
14
  - No uncommitted changes exist — nothing to commit
15
- - .prizmkit/prizm-docs/ not synced — run /prizmkit-retrospective first
15
+ - .prizmkit/prizm-docs/ not synced — run /prizmkit-retrospective first (full lifecycle only; the `plan → implement → committer` fast path skips this by design)
16
16
  - Code review not passed in pipeline mode — run /prizmkit-code-review first
17
17
  - Mid-merge conflict resolution — handle manually with git
18
18
 
@@ -24,6 +24,8 @@ description: "Pure git commit workflow with safety checks. Stages files, generat
24
24
  | `.prizmkit/prizm-docs/` synced (feature/refactor) | `/prizmkit-retrospective` has run | Run `/prizmkit-retrospective` first |
25
25
  | Code review passed (pipeline mode) | `review-report.md` in artifact directory has `## Verdict: PASS` | Run `/prizmkit-code-review` first |
26
26
 
27
+ > **Fast-path exemption**: the prizm-docs-synced and review-passed rows above gate the **full lifecycle**. Small, well-scoped changes using the `plan → implement → committer` fast path may commit without them — there is no retrospective or review-report artifact to check, so treat those rows as "satisfied when not applicable."
28
+
27
29
  ### Workflow
28
30
 
29
31
  Follow these steps in order — skipping or reordering can stage sensitive files or commit without proper verification:
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: "prizmkit-deploy"
3
- description: "Universal deployment gateway for any PrizmKit project. Discovers project type and target (SSH server, Vercel, Docker, etc.), then routes: full automation for SSH Linux with PM2 + Nginx + blue/green switching, guided setup for cloud platforms, or safe documentation fallback for unsupported targets. Also operates existing deployments: status, logs, restart, rollback, health checks, history, validate. Use this skill whenever the user asks about deployment, hosting, going live, or server operations. Triggers on: 'deploy', 'ship it', 'take this live', 'deploy to Vercel', 'deploy to my server', 'check deploy status', 'view logs', 'restart app', 'rollback', 'how do I deploy this', any deployment or hosting question."
3
+ description: "Universal deployment gateway for any PrizmKit project. Discovers project type and target (SSH server, Vercel, Docker, etc.), then routes: full automation for SSH Linux with PM2 + Nginx + blue/green switching, guided setup for cloud platforms, or safe documentation fallback for unsupported targets. Also operates existing deployments: status, logs, restart, rollback, health checks, history, validate. Use this skill whenever the user asks about deployment, hosting, going live, or server operations. Triggers on: 'deploy', 'ship it', 'take this live', 'deploy to Vercel', 'deploy to my server', 'check deploy status', 'view logs', 'restart app', 'rollback', 'how do I deploy this', any deployment or hosting question. (project)"
4
4
  ---
5
5
 
6
6
  # PrizmKit Deploy — Universal Deployment Gateway
@@ -23,7 +23,7 @@ description: "Execute plan.md tasks with TDD approach. Respects task ordering an
23
23
  | `plan.md` with Tasks section | File exists + unchecked tasks | Run `/prizmkit-plan` |
24
24
  | `spec.md` | File exists in same directory as plan.md | Run `/prizmkit-plan` |
25
25
 
26
- **Artifact directory**: Accept `artifact_dir` from caller. If not provided, scan `.prizmkit/` subdirectories for the most recently modified `plan.md` with unchecked tasks.
26
+ **Artifact directory**: Accept `artifact_dir` from caller. If not provided, scan `.prizmkit/` subdirectories for the most recently modified `plan.md` with unchecked tasks. When invoked as a handoff step in a skill chain, reuse the `artifact_dir` from the previous skill rather than re-detecting — re-detection can resolve to a different feature's directory in a multi-task workspace.
27
27
 
28
28
  ## Input
29
29
 
@@ -59,6 +59,7 @@ PRECONDITION: No .prizmkit/prizm-docs/ directory exists, or user confirms overwr
59
59
 
60
60
  Update .prizmkit/prizm-docs/ to reflect recent code changes.
61
61
  PRECONDITION: .prizmkit/prizm-docs/ exists with root.prizm.
62
+ **Scope guard**: Use Update only for out-of-band resync — when docs drifted from code after manual edits, merges, branch switches, or other changes made outside the dev loop. During the normal feature/bugfix/refactor loop, do NOT use Update: `/prizmkit-retrospective` is the sole writer and keeps docs in sync per task. Running both is redundant and risks conflicting edits.
62
63
  → Read `${SKILL_DIR}/references/op-update.md` for detailed steps.
63
64
 
64
65
  ## Operation: Status
@@ -27,7 +27,7 @@ For initial doc setup, validation, or migration, use `/prizmkit-prizm-docs` inst
27
27
 
28
28
  | Parameter | Required | Description |
29
29
  |-----------|----------|-------------|
30
- | `artifact_dir` | No | Directory containing spec.md, plan.md, review-report.md. If omitted, scan `.prizmkit/` subdirectories for the most recently modified directory with a `plan.md`. If no artifact directory found, run in standalone mode (structural sync only from `git diff`). |
30
+ | `artifact_dir` | No | Directory containing spec.md, plan.md, review-report.md. If omitted, scan `.prizmkit/` subdirectories for the most recently modified directory with a `plan.md`. When invoked as a handoff step, reuse the caller's `artifact_dir` rather than re-detecting. If no artifact directory found, run in standalone mode (structural sync only from `git diff`). |
31
31
 
32
32
  ## When NOT to Use
33
33
 
@@ -55,30 +55,24 @@ Pipeline commands (for reference — Phase 1.3 will present these as a selectabl
55
55
 
56
56
  ## Overview
57
57
 
58
- ```
59
- recovery-workflow
60
-
61
- ├── Phase 0: Auto-detect
62
- ├── Read current branch name
63
- ├── Scan characteristic artifacts
64
- │ ├── Match workflow signature determine workflow type
65
- ├── Based on artifact presence infer current phase
66
- └── No match reject and guide user
67
-
68
- ├── Phase 1: Diagnose + report + user choice
69
- ├── Check branch and working tree state
70
- ├── Scan all pipelines for failed/in-progress tasks
71
- ├── Find residual dev branches from failed tasks
72
- │ ├── Display diagnosis + detection results
73
- ├── If code changes exist → run test suite
74
- ├── If multiple failed tasks ask user which to recover
75
- └── User chooses: run-recovery.ps1 (recommended) | interactive | start fresh
76
-
77
- └── Phase 2: Execute remaining steps
78
- ├── Read target workflow's SKILL.md
79
- ├── Read existing artifacts to restore context
80
- └── Execute from inferred phase through completion
81
- ```
58
+ 1. **Phase 0: Auto-detect**
59
+ 1. Read current branch name
60
+ 2. Scan characteristic artifacts
61
+ 3. Match workflow signature → determine workflow type
62
+ 4. Based on artifact presence → infer current phase
63
+ 5. No match → reject and guide user
64
+ 2. **Phase 1: Diagnose + report + user choice**
65
+ 1. Check branch and working tree state
66
+ 2. Scan all pipelines for failed/in-progress tasks
67
+ 3. Find residual dev branches from failed tasks
68
+ 4. Display diagnosis + detection results
69
+ 5. If code changes exist run test suite
70
+ 6. If multiple failed tasks ask user which to recover
71
+ 7. User chooses: run-recovery.ps1 (recommended) | interactive | start fresh
72
+ 3. **Phase 2: Execute remaining steps**
73
+ 1. Read target workflow's SKILL.md
74
+ 2. Read existing artifacts to restore context
75
+ 3. Execute from inferred phase through completion
82
76
 
83
77
  ---
84
78
 
@@ -290,53 +284,19 @@ This step replaces the context that was lost when the AI session was interrupted
290
284
 
291
285
  ---
292
286
 
293
- ### 2.1 Bug-Fix-Workflow Recovery
294
-
295
- Phase inference table:
287
+ ### 2.1 Per-Workflow Phase Inference
296
288
 
297
- | Detected State | Resume From | Actions |
298
- |---------------|------------|---------|
299
- | On `fix/<BUG_ID>-*` branch, no artifacts | Phase 1: Deep Bug Diagnosis | Read bug description from `.prizmkit/plans/bug-fix-list.json`. Start interactive diagnosis Q&A |
300
- | `fix-plan.md` exists, no code changes | Phase 4: Fix | Read fix-plan.md. Implement the fix following the plan |
301
- | `fix-plan.md` + code changes exist | Phase 5: Review | Invoke `/prizmkit-code-review` on all changes |
302
- | All docs + review passed | Phase 6: User Verification | Ask user to verify the fix works |
303
- | All docs + committed | Phase 7: Merge Decision | Ask merge vs keep branch |
289
+ Read `${SKILL_DIR}/references/detection.md` for the per-workflow phase-inference tables (bug-fix / feature / refactor) that map detected state → the phase to resume from and its actions.
304
290
 
305
- **Note**: Bug-fix Phases 1-3 (Diagnosis, Triage, Reproduce) collapse to Phase 1 for detection purposes because these phases don't produce persistent artifacts. If interrupted during these phases, recovery restarts from Phase 1 (diagnosis), which re-derives understanding from available inputs (bug description, code) without interactive Q&A.
306
-
307
- **Execution for each remaining phase**: Follow the bug-fix-workflow SKILL.md instructions exactly. Call the same prizmkit sub-commands (`/prizmkit-code-review`, `/prizmkit-committer`) at the same points.
291
+ **Bug-fix execution**: Follow the bug-fix-workflow SKILL.md instructions exactly. Call the same prizmkit sub-commands (`/prizmkit-code-review`, `/prizmkit-committer`) at the same points.
308
292
 
309
293
  **Special handling**:
310
294
  - If resuming from Phase 5 (Review) and tests are failing, fix test failures first (max 3 attempts). If unfixable, ask user whether to continue or restart.
311
295
  - If resuming from Phase 4 (Fix), read fix-plan.md to understand the planned approach before writing code.
312
296
 
313
- ---
297
+ **Feature recovery**: Phases 3-4 are pipeline-driven. The main recovery value is avoiding re-brainstorming (Phase 1) when `.prizmkit/plans/feature-list.json` already exists.
314
298
 
315
- ### 2.2 Feature-Workflow Recovery
316
-
317
- Phase inference table:
318
-
319
- | Detected State | Resume From | Actions |
320
- |---------------|------------|---------|
321
- | No `.prizmkit/plans/feature-list.json` | Phase 1: Brainstorm | Cannot recover conversation context. Start requirement clarification, but leverage any workspace content (README, existing code) for context |
322
- | `.prizmkit/plans/feature-list.json` exists, no pipeline state | Phase 3: Launch | Invoke `feature-pipeline-launcher` to start the pipeline |
323
- | `.prizmkit/plans/feature-list.json` + pipeline state exists | Phase 4: Monitor | Check pipeline status via `feature-pipeline-launcher` (Intent B: Check Status) |
324
-
325
- **Note**: Feature-workflow recovery is simpler because Phases 3-4 are pipeline-driven. The main recovery value is avoiding re-brainstorming (Phase 1) when `.prizmkit/plans/feature-list.json` already exists.
326
-
327
- ---
328
-
329
- ### 2.3 Refactor-Workflow Recovery
330
-
331
- Phase inference table (mirrors feature-workflow):
332
-
333
- | Detected State | Resume From | Actions |
334
- |---------------|------------|---------|
335
- | No `.prizmkit/plans/refactor-list.json` | Phase 1: Brainstorm | Start refactoring goal clarification |
336
- | `.prizmkit/plans/refactor-list.json` exists, no pipeline state | Phase 3: Launch | Invoke `refactor-pipeline-launcher` to start the pipeline |
337
- | `.prizmkit/plans/refactor-list.json` + pipeline state exists | Phase 4: Monitor | Check pipeline status |
338
-
339
- ---
299
+ **Refactor recovery**: Mirrors feature-workflow (brainstorm → launch → monitor).
340
300
 
341
301
  ### 2.4 Post-Recovery Report
342
302
 
@@ -388,16 +348,6 @@ Recovery complete.
388
348
 
389
349
  ---
390
350
 
391
- ## Comparison with Previous Version
392
-
393
- | Dimension | Previous | Current |
394
- |-----------|----------|---------|
395
- | Scope | Feature pipeline only | All 3 interactive workflows |
396
- | Input | Required `F-XXX` feature ID | No input — fully auto-detect |
397
- | Detection | Feature-specific (spec/plan/git) | Signature-based (branch + artifacts) |
398
- | Strategy | Multi-option (5 scenarios × 2-4 options each) | Single path: report → confirm → execute |
399
- | Intrusion | None | None (zero changes to target workflows) |
400
-
401
351
  ## Output
402
352
 
403
353
  - Resumed and completed workflow from the breakpoint
@@ -156,28 +156,13 @@ Detect user intent from their message, then follow the corresponding workflow:
156
156
 
157
157
  Wait for user confirmation before proceeding.
158
158
 
159
- 5. **Ask execution mode** (first user decision — SEPARATE `AskUserQuestion` call):
159
+ 5. **Ask execution mode** (first user decision):
160
160
 
161
- **This MUST be its own standalone `AskUserQuestion` call.** Do NOT combine execution mode with step 6 config questions. The execution mode question is asked ALONE, user responds, THEN you proceed to step 6.
161
+ Present the three execution modes from the **Execution Mode** section above as a single standalone `AskUserQuestion` call (exactly 1 question, multiSelect: false). Wait for the user's response before continuing to step 6.
162
162
 
163
- Use `AskUserQuestion` with exactly 1 question:
163
+ Each `AskUserQuestion` round is a genuine gate: callers tend to merge interactive rounds and pre-fill answers, which skips real user decisions and produces wrong configs. Therefore: ask execution mode (step 5) and configuration (step 6) as SEPARATE `AskUserQuestion` calls, in order, and do not assemble or show the final command (step 7) until the user has answered both. If you find yourself writing the final command before the user has answered, STOP — you are violating this rule.
164
164
 
165
- **Question 1Execution mode** (multiSelect: false):
166
- - Foreground (Recommended) — pipeline runs in the current session via `run-refactor.ps1 run`. Visible output and direct error feedback.
167
- - Background daemon — pipeline runs fully detached via `launch-refactor-daemon.ps1`. Survives AI CLI session closure.
168
- - Manual — display the final assembled commands only. Do not execute anything. User runs them on their own.
169
-
170
- ⚠️ STOP HERE and wait for user response before continuing to step 6.
171
-
172
- 6. **Ask configuration options** ⚠️ MANDATORY INTERACTIVE STEP — applies to ALL execution modes (Foreground, Background, AND Manual). This is a SEPARATE `AskUserQuestion` call from step 5. You MUST ask the user to configure options and WAIT for their response BEFORE proceeding to step 7.
173
-
174
- ⛔ **HARD STOP**: You MUST call `AskUserQuestion` with the 3 questions below and WAIT for the user's response. You MUST NOT:
175
- - Combine step 5 and step 6 into one `AskUserQuestion` call (this is the most common violation — execution mode MUST be asked separately in step 5)
176
- - Skip this step and jump to step 7
177
- - Merge step 6 and step 7 into one response
178
- - Assume default values and show the command without asking
179
- - Show the command as text and ask "ready?" without presenting the options
180
- If you find yourself writing the final command before the user has answered these 3 questions, STOP — you are violating this rule.
165
+ 6. **Ask configuration options** a SEPARATE `AskUserQuestion` call from step 5, applies to ALL execution modes (Foreground, Background, AND Manual).
181
166
 
182
167
  Use `AskUserQuestion` to present ALL 3 configuration choices (the full 3-question budget goes to config, NOT shared with execution mode):
183
168
 
@@ -196,35 +181,11 @@ Detect user intent from their message, then follow the corresponding workflow:
196
181
 
197
182
  Note: Refactor filter defaults to all refactor items (by priority order). If the user selects "Other" on any option, handle their custom input.
198
183
 
199
- **If user chose "Yes" to Advanced config**, ask a second round of `AskUserQuestion`:
200
-
201
- **Question 1 — Session timeout** (multiSelect: false):
202
- - None (default) — No timeout
203
- - 30 min — `SESSION_TIMEOUT=1800`
204
- - 1 hour — `SESSION_TIMEOUT=3600`
205
- - 2 hours — `SESSION_TIMEOUT=7200`
206
-
207
- **Question 2 — Stop on failure** (multiSelect: false):
208
- - Off (default) — Pipeline continues to next task after failure
209
- - On — Pipeline halts immediately when a task exhausts all retries (`STOP_ON_FAILURE=1`)
210
-
211
- **Question 3 — Critic review** (multiSelect: false):
212
- - Off (default) — Skip adversarial review
213
- - On — Enable adversarial critic review: an independent AI agent reviews the refactor plan for completeness and the implementation for regressions, missing edge cases, and behavior violations. Adds ~5-10 min per refactor task.
214
-
215
- **Question 4 — Reasoning effort** (multiSelect: false):
216
- - Default (none) — Use CLI default
217
- - low — Minimize reasoning, fastest output (`PRIZMKIT_EFFORT=low`)
218
- - medium — Moderate reasoning (`PRIZMKIT_EFFORT=medium`)
219
- - high — Thorough reasoning for complex tasks (`PRIZMKIT_EFFORT=high`)
220
- - xhigh — Extensive reasoning (`PRIZMKIT_EFFORT=xhigh`)
221
- - max — Maximum reasoning, Claude Code only (`PRIZMKIT_EFFORT=max`)
222
-
223
- Default Critic to Off unless refactor items have `priority: "critical"` (in which case default to On).
184
+ **If user chose "Yes" to Advanced config**, run the advanced configuration round (a second `AskUserQuestion` round). It applies to a minority of sessions, so the full question set lives in `${SKILL_DIR}/references/configuration.md` → **Advanced Configuration Round**. Default Critic to Off unless refactor items have `priority: "critical"` (in which case default to On).
224
185
 
225
186
  **Environment variable mapping** and **advanced environment variables** tables — read `${SKILL_DIR}/references/configuration.md` for the full translation tables (10 config→env mappings + 8 advanced variables).
226
187
 
227
- ⚠️ STOP HERE and wait for user response before continuing to step 7.
188
+ STOP HERE and wait for user response before continuing to step 7.
228
189
 
229
190
  7. **Show final command**: After user confirms configuration in step 6, assemble the complete command from execution mode + user-confirmed configuration, and present it to the user.
230
191
 
@@ -373,7 +334,7 @@ Notes:
373
334
 
374
335
  ### Error Handling
375
336
 
376
- Read `${SKILL_DIR}/references/configuration.md` for the full error handling table (14 entries).
337
+ Read the error-handling table in `${SKILL_DIR}/references/configuration.md` for the full list of errors and recovery actions.
377
338
 
378
339
  ### Integration Notes
379
340