prizmkit 1.1.80 → 1.1.82

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 (65) hide show
  1. package/bundled/VERSION.json +3 -3
  2. package/bundled/dev-pipeline/lib/heartbeat.sh +1 -1
  3. package/bundled/dev-pipeline/run-feature.sh +3 -3
  4. package/bundled/dev-pipeline/templates/bootstrap-tier1.md +2 -5
  5. package/bundled/dev-pipeline/templates/bootstrap-tier2.md +2 -5
  6. package/bundled/dev-pipeline/templates/bootstrap-tier3.md +2 -5
  7. package/bundled/dev-pipeline/templates/sections/failure-capture.md +0 -5
  8. package/bundled/skills/_metadata.json +1 -1
  9. package/bundled/skills/app-planner/SKILL.md +2 -9
  10. package/bundled/skills/app-planner/references/rules/backend/derivation-rules.md +10 -0
  11. package/bundled/skills/app-planner/references/rules/database/derivation-rules.md +9 -0
  12. package/bundled/skills/app-planner/references/rules/frontend/derivation-rules.md +10 -0
  13. package/bundled/skills/app-planner/references/rules/frontend/question-bank.md +17 -0
  14. package/bundled/skills/app-planner/references/rules/frontend/template.md +19 -0
  15. package/bundled/skills/app-planner/references/rules/mobile/derivation-rules.md +10 -0
  16. package/bundled/skills/bug-fix-workflow/SKILL.md +17 -24
  17. package/bundled/skills/bug-fix-workflow/references/bug-diagnosis.md +4 -29
  18. package/bundled/skills/bug-planner/SKILL.md +20 -12
  19. package/bundled/skills/bugfix-pipeline-launcher/SKILL.md +5 -67
  20. package/bundled/skills/bugfix-pipeline-launcher/references/configuration.md +50 -1
  21. package/bundled/skills/feature-pipeline-launcher/SKILL.md +16 -56
  22. package/bundled/skills/feature-pipeline-launcher/references/configuration.md +26 -0
  23. package/bundled/skills/feature-planner/SKILL.md +5 -9
  24. package/bundled/skills/feature-workflow/SKILL.md +22 -63
  25. package/bundled/skills/prizm-kit/SKILL.md +3 -2
  26. package/bundled/skills/prizmkit-code-review/SKILL.md +1 -1
  27. package/bundled/skills/prizmkit-committer/SKILL.md +3 -1
  28. package/bundled/skills/prizmkit-deploy/SKILL.md +1 -1
  29. package/bundled/skills/prizmkit-implement/SKILL.md +1 -1
  30. package/bundled/skills/prizmkit-prizm-docs/SKILL.md +1 -0
  31. package/bundled/skills/prizmkit-retrospective/SKILL.md +1 -1
  32. package/bundled/skills/recovery-workflow/SKILL.md +23 -73
  33. package/bundled/skills/refactor-pipeline-launcher/SKILL.md +6 -51
  34. package/bundled/skills/refactor-pipeline-launcher/references/configuration.md +34 -0
  35. package/bundled/skills/refactor-planner/SKILL.md +6 -8
  36. package/bundled/skills/refactor-workflow/SKILL.md +14 -75
  37. package/bundled/skills-windows/app-planner/SKILL.md +2 -9
  38. package/bundled/skills-windows/app-planner/references/rules/backend/derivation-rules.md +10 -0
  39. package/bundled/skills-windows/app-planner/references/rules/database/derivation-rules.md +9 -0
  40. package/bundled/skills-windows/app-planner/references/rules/frontend/derivation-rules.md +10 -0
  41. package/bundled/skills-windows/app-planner/references/rules/frontend/question-bank.md +17 -0
  42. package/bundled/skills-windows/app-planner/references/rules/frontend/template.md +19 -0
  43. package/bundled/skills-windows/app-planner/references/rules/mobile/derivation-rules.md +10 -0
  44. package/bundled/skills-windows/bug-fix-workflow/SKILL.md +17 -24
  45. package/bundled/skills-windows/bug-fix-workflow/references/bug-diagnosis.md +4 -29
  46. package/bundled/skills-windows/bug-planner/SKILL.md +20 -12
  47. package/bundled/skills-windows/bugfix-pipeline-launcher/SKILL.md +5 -63
  48. package/bundled/skills-windows/bugfix-pipeline-launcher/references/configuration.md +46 -1
  49. package/bundled/skills-windows/feature-pipeline-launcher/SKILL.md +17 -53
  50. package/bundled/skills-windows/feature-pipeline-launcher/references/configuration.md +22 -0
  51. package/bundled/skills-windows/feature-planner/SKILL.md +5 -9
  52. package/bundled/skills-windows/feature-workflow/SKILL.md +22 -63
  53. package/bundled/skills-windows/prizm-kit/SKILL.md +3 -2
  54. package/bundled/skills-windows/prizmkit-code-review/SKILL.md +1 -1
  55. package/bundled/skills-windows/prizmkit-committer/SKILL.md +3 -1
  56. package/bundled/skills-windows/prizmkit-deploy/SKILL.md +1 -1
  57. package/bundled/skills-windows/prizmkit-implement/SKILL.md +1 -1
  58. package/bundled/skills-windows/prizmkit-prizm-docs/SKILL.md +1 -0
  59. package/bundled/skills-windows/prizmkit-retrospective/SKILL.md +1 -1
  60. package/bundled/skills-windows/recovery-workflow/SKILL.md +23 -73
  61. package/bundled/skills-windows/refactor-pipeline-launcher/SKILL.md +7 -46
  62. package/bundled/skills-windows/refactor-pipeline-launcher/references/configuration.md +28 -0
  63. package/bundled/skills-windows/refactor-planner/SKILL.md +6 -8
  64. package/bundled/skills-windows/refactor-workflow/SKILL.md +14 -75
  65. 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.sh run`. Visible output, direct error feedback, no orphaned processes.
15
- 2. **Background daemon** — `.prizmkit/dev-pipeline/launch-feature-daemon.sh`. 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)
@@ -129,9 +119,9 @@ Detect user intent from their message, then follow the corresponding workflow:
129
119
 
130
120
  If `global_context.database` is absent and no features mention database keywords, the script skips DB checks automatically.
131
121
 
132
- 5. **Ask execution mode** (first user decision — SEPARATE `AskUserQuestion` call):
122
+ 5. **Ask execution mode** (first user decision):
133
123
 
134
- **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.
124
+ **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.
135
125
 
136
126
  Use `AskUserQuestion` with exactly 1 question:
137
127
 
@@ -140,19 +130,11 @@ Detect user intent from their message, then follow the corresponding workflow:
140
130
  - Background daemon — pipeline runs fully detached via `launch-feature-daemon.sh`. Survives AI CLI session closure.
141
131
  - Manual — display the final assembled commands only. Do not execute anything. User runs them on their own.
142
132
 
143
- ⚠️ STOP HERE and wait for user response before continuing to step 6.
144
-
145
- 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.
133
+ STOP HERE and wait for user response before continuing to step 6.
146
134
 
147
- **HARD STOP**: You MUST call `AskUserQuestion` with the 4 questions below and WAIT for the user's response. You MUST NOT:
148
- - 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)
149
- - Skip this step and jump to step 7
150
- - Merge step 6 and step 7 into one response
151
- - Assume default values and show the command without asking
152
- - Show the command as text and ask "ready?" without presenting the options
153
- If you find yourself writing the final command before the user has answered these 4 questions, STOP — you are violating this rule.
135
+ 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.
154
136
 
155
- Use `AskUserQuestion` to present ALL 4 configuration choices (the full 4-question budget goes to config, NOT shared with execution mode):
137
+ Use `AskUserQuestion` to present ALL 4 configuration choices:
156
138
 
157
139
  **Question 1 — Critic review** (multiSelect: false):
158
140
  - Off (default) — Skip adversarial review
@@ -173,29 +155,7 @@ Detect user intent from their message, then follow the corresponding workflow:
173
155
 
174
156
  Default Critic to Off unless features have `estimated_complexity: "high"` or above (in which case default to On).
175
157
 
176
- **If user chose "Yes" to Advanced config**, ask a second round of `AskUserQuestion`:
177
-
178
- **Question 1 — Session timeout** (multiSelect: false):
179
- - None (default) — No timeout
180
- - 30 min — `SESSION_TIMEOUT=1800`
181
- - 1 hour — `SESSION_TIMEOUT=3600`
182
- - 2 hours — `SESSION_TIMEOUT=7200`
183
-
184
- **Question 2 — Stop on failure** (multiSelect: false):
185
- - Off (default) — Pipeline continues to next task after failure
186
- - On — Pipeline halts immediately when a task exhausts all retries (`STOP_ON_FAILURE=1`)
187
-
188
- **Question 3 — Deploy after completion?** (multiSelect: false):
189
- - No (default) — Skip deployment after pipeline completes
190
- - Yes — Run /prizmkit-deploy automatically after all features complete successfully (`ENABLE_DEPLOY=1`). Deployment is blocked if any feature did not complete successfully (status not 'completed' or manually 'skipped').
191
-
192
- **Question 4 — Reasoning effort** (multiSelect: false):
193
- - Default (none) — Use CLI default
194
- - low — Minimize reasoning, fastest output (`PRIZMKIT_EFFORT=low`)
195
- - medium — Moderate reasoning (`PRIZMKIT_EFFORT=medium`)
196
- - high — Thorough reasoning for complex tasks (`PRIZMKIT_EFFORT=high`)
197
- - xhigh — Extensive reasoning (`PRIZMKIT_EFFORT=xhigh`)
198
- - max — Maximum reasoning, Claude Code only (`PRIZMKIT_EFFORT=max`)
158
+ **If user chose "Yes" to Advanced config**, ask a second round of `AskUserQuestion` — see the advanced config questions (session timeout, stop-on-failure, deploy-after-completion, reasoning effort) in `${SKILL_DIR}/references/configuration.md`.
199
159
 
200
160
  **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).
201
161
 
@@ -2,6 +2,32 @@
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 — Deploy after completion?** (multiSelect: false):
20
+ - No (default) — Skip deployment after pipeline completes
21
+ - Yes — Run /prizmkit-deploy automatically after all features complete successfully (`ENABLE_DEPLOY=1`). Deployment is blocked if any feature did not complete successfully (status not 'completed' or manually 'skipped').
22
+
23
+ **Question 4 — Reasoning effort** (multiSelect: false):
24
+ - Default (none) — Use CLI default
25
+ - low — Minimize reasoning, fastest output (`PRIZMKIT_EFFORT=low`)
26
+ - medium — Moderate reasoning (`PRIZMKIT_EFFORT=medium`)
27
+ - high — Thorough reasoning for complex tasks (`PRIZMKIT_EFFORT=high`)
28
+ - xhigh — Extensive reasoning (`PRIZMKIT_EFFORT=xhigh`)
29
+ - max — Maximum reasoning, Claude Code only (`PRIZMKIT_EFFORT=max`)
30
+
5
31
  ## Environment Variable Mapping
6
32
 
7
33
  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
@@ -91,7 +85,7 @@ Do NOT use this skill when:
91
85
  If the script is not available, perform these manual validation checks:
92
86
  1. **ID sequence**: All feature IDs are sequential (F-001, F-002, F-003, ...)
93
87
  2. **No circular dependencies**: No feature depends (directly or transitively) on itself
94
- 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
88
+ 3. **Description length**: Minimum 15 words per description (error); see §Output Rules for the recommended-length warning thresholds
95
89
  4. **Dependency references**: All referenced features in dependencies exist in features array
96
90
  5. **Priority enums**: All priority values are exactly "critical", "high", "medium", or "low" (case-sensitive)
97
91
  6. **Status enum**: All status values are one of: pending, in_progress, completed, failed, skipped, split, auto_skipped
@@ -343,7 +337,7 @@ Present a consolidated testing summary table at Phase 8, then ask for confirmati
343
337
 
344
338
  ## Next-Step Execution Policy (after planning)
345
339
 
346
- 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.
340
+ 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).
347
341
 
348
342
  ## Error Recovery & Resume
349
343
 
@@ -380,3 +374,5 @@ After successful validation, report:
380
374
  2. Total features + newly added features
381
375
  3. Dependency and priority highlights
382
376
  4. Recommended next action: `feature-pipeline-launcher`
377
+
378
+ 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.sh (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.sh (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
 
@@ -289,53 +283,19 @@ This step replaces the context that was lost when the AI session was interrupted
289
283
 
290
284
  ---
291
285
 
292
- ### 2.1 Bug-Fix-Workflow Recovery
293
-
294
- Phase inference table:
286
+ ### 2.1 Per-Workflow Phase Inference
295
287
 
296
- | Detected State | Resume From | Actions |
297
- |---------------|------------|---------|
298
- | 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 |
299
- | `fix-plan.md` exists, no code changes | Phase 4: Fix | Read fix-plan.md. Implement the fix following the plan |
300
- | `fix-plan.md` + code changes exist | Phase 5: Review | Invoke `/prizmkit-code-review` on all changes |
301
- | All docs + review passed | Phase 6: User Verification | Ask user to verify the fix works |
302
- | All docs + committed | Phase 7: Merge Decision | Ask merge vs keep branch |
288
+ 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.
303
289
 
304
- **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.
305
-
306
- **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.
290
+ **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.
307
291
 
308
292
  **Special handling**:
309
293
  - 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.
310
294
  - If resuming from Phase 4 (Fix), read fix-plan.md to understand the planned approach before writing code.
311
295
 
312
- ---
296
+ **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.
313
297
 
314
- ### 2.2 Feature-Workflow Recovery
315
-
316
- Phase inference table:
317
-
318
- | Detected State | Resume From | Actions |
319
- |---------------|------------|---------|
320
- | 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 |
321
- | `.prizmkit/plans/feature-list.json` exists, no pipeline state | Phase 3: Launch | Invoke `feature-pipeline-launcher` to start the pipeline |
322
- | `.prizmkit/plans/feature-list.json` + pipeline state exists | Phase 4: Monitor | Check pipeline status via `feature-pipeline-launcher` (Intent B: Check Status) |
323
-
324
- **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.
325
-
326
- ---
327
-
328
- ### 2.3 Refactor-Workflow Recovery
329
-
330
- Phase inference table (mirrors feature-workflow):
331
-
332
- | Detected State | Resume From | Actions |
333
- |---------------|------------|---------|
334
- | No `.prizmkit/plans/refactor-list.json` | Phase 1: Brainstorm | Start refactoring goal clarification |
335
- | `.prizmkit/plans/refactor-list.json` exists, no pipeline state | Phase 3: Launch | Invoke `refactor-pipeline-launcher` to start the pipeline |
336
- | `.prizmkit/plans/refactor-list.json` + pipeline state exists | Phase 4: Monitor | Check pipeline status |
337
-
338
- ---
298
+ **Refactor recovery**: Mirrors feature-workflow (brainstorm → launch → monitor).
339
299
 
340
300
  ### 2.4 Post-Recovery Report
341
301
 
@@ -387,16 +347,6 @@ Recovery complete.
387
347
 
388
348
  ---
389
349
 
390
- ## Comparison with Previous Version
391
-
392
- | Dimension | Previous | Current |
393
- |-----------|----------|---------|
394
- | Scope | Feature pipeline only | All 3 interactive workflows |
395
- | Input | Required `F-XXX` feature ID | No input — fully auto-detect |
396
- | Detection | Feature-specific (spec/plan/git) | Signature-based (branch + artifacts) |
397
- | Strategy | Multi-option (5 scenarios × 2-4 options each) | Single path: report → confirm → execute |
398
- | Intrusion | None | None (zero changes to target workflows) |
399
-
400
350
  ## Output
401
351
 
402
352
  - Resumed and completed workflow from the breakpoint
@@ -130,28 +130,13 @@ Detect user intent from their message, then follow the corresponding workflow:
130
130
 
131
131
  Wait for user confirmation before proceeding.
132
132
 
133
- 5. **Ask execution mode** (first user decision — SEPARATE `AskUserQuestion` call):
133
+ 5. **Ask execution mode** (first user decision):
134
134
 
135
- **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.
135
+ 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.
136
136
 
137
- Use `AskUserQuestion` with exactly 1 question:
137
+ 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.
138
138
 
139
- **Question 1Execution mode** (multiSelect: false):
140
- - Foreground (Recommended) — pipeline runs in the current session via `run-refactor.sh run`. Visible output and direct error feedback.
141
- - Background daemon — pipeline runs fully detached via `launch-refactor-daemon.sh`. Survives AI CLI session closure.
142
- - Manual — display the final assembled commands only. Do not execute anything. User runs them on their own.
143
-
144
- ⚠️ STOP HERE and wait for user response before continuing to step 6.
145
-
146
- 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.
147
-
148
- ⛔ **HARD STOP**: You MUST call `AskUserQuestion` with the 4 questions below and WAIT for the user's response. You MUST NOT:
149
- - 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)
150
- - Skip this step and jump to step 7
151
- - Merge step 6 and step 7 into one response
152
- - Assume default values and show the command without asking
153
- - Show the command as text and ask "ready?" without presenting the options
154
- If you find yourself writing the final command before the user has answered these 4 questions, STOP — you are violating this rule.
139
+ 6. **Ask configuration options** a SEPARATE `AskUserQuestion` call from step 5, applies to ALL execution modes (Foreground, Background, AND Manual).
155
140
 
156
141
  Use `AskUserQuestion` to present ALL 4 configuration choices (the full 4-question budget goes to config, NOT shared with execution mode):
157
142
 
@@ -174,37 +159,7 @@ Detect user intent from their message, then follow the corresponding workflow:
174
159
 
175
160
  Note: Refactor filter defaults to all refactor items (by priority order). If the user selects "Other" on any option, handle their custom input.
176
161
 
177
- **If user chose "Yes" to Advanced config**, ask a second round of `AskUserQuestion`:
178
-
179
- **Question 1 — Session timeout** (multiSelect: false):
180
- - None (default) — No timeout
181
- - 30 min — `SESSION_TIMEOUT=1800`
182
- - 1 hour — `SESSION_TIMEOUT=3600`
183
- - 2 hours — `SESSION_TIMEOUT=7200`
184
-
185
- **Question 2 — Stop on failure** (multiSelect: false):
186
- - Off (default) — Pipeline continues to next task after failure
187
- - On — Pipeline halts immediately when a task exhausts all retries (`STOP_ON_FAILURE=1`)
188
-
189
- **Question 3 — Critic review** (multiSelect: false):
190
- - Off (default) — Skip adversarial review
191
- - On — Enable adversarial critic review: an independent AI agent reviews the refactor plan for completeness and the implementation for regressions, missed edge cases, and behavior violations. Adds ~5-10 min per refactor task.
192
-
193
- **Question 4 — Deploy after completion?** (multiSelect: false):
194
- - No (default) — Skip deployment after pipeline completes
195
- - Yes — Run /prizmkit-deploy automatically after all refactors complete successfully (`ENABLE_DEPLOY=1`). Deployment is blocked if any refactor did not complete successfully (status not 'completed' or manually 'skipped').
196
-
197
- Default Critic to Off unless refactor items have `priority: "critical"` (in which case default to On).
198
-
199
- **If advanced config was selected, also ask about reasoning effort** in a follow-up `AskUserQuestion` call:
200
-
201
- **Question — Reasoning effort** (multiSelect: false):
202
- - Default (none) — Use CLI default
203
- - low — Minimize reasoning, fastest output (`PRIZMKIT_EFFORT=low`)
204
- - medium — Moderate reasoning (`PRIZMKIT_EFFORT=medium`)
205
- - high — Thorough reasoning for complex tasks (`PRIZMKIT_EFFORT=high`)
206
- - xhigh — Extensive reasoning (`PRIZMKIT_EFFORT=xhigh`)
207
- - max — Maximum reasoning, Claude Code only (`PRIZMKIT_EFFORT=max`)
162
+ **If user chose "Yes" to Advanced config**, run the advanced configuration round (a second `AskUserQuestion` round, plus a reasoning-effort follow-up). 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).
208
163
 
209
164
  **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).
210
165
 
@@ -356,7 +311,7 @@ Notes:
356
311
 
357
312
  ### Error Handling
358
313
 
359
- Read `${SKILL_DIR}/references/configuration.md` for the full error handling table (14 entries).
314
+ Read the error-handling table in `${SKILL_DIR}/references/configuration.md` for the full list of errors and recovery actions.
360
315
 
361
316
  ### Integration Notes
362
317