prizmkit 1.1.79 → 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 (110) hide show
  1. package/bundled/VERSION.json +3 -3
  2. package/bundled/dev-pipeline/scripts/init-pipeline.py +2 -0
  3. package/bundled/dev-pipeline-windows/scripts/init-pipeline.py +2 -0
  4. package/bundled/skills/_metadata.json +1 -1
  5. package/bundled/skills/app-planner/SKILL.md +12 -356
  6. package/bundled/skills/app-planner/references/infrastructure-convention-discovery.md +108 -0
  7. package/bundled/skills/app-planner/references/project-conventions-discovery.md +59 -0
  8. package/bundled/skills/app-planner/references/project-state-detection.md +88 -0
  9. package/bundled/skills/app-planner/references/rules/backend/derivation-rules.md +10 -0
  10. package/bundled/skills/app-planner/references/rules/database/derivation-rules.md +9 -0
  11. package/bundled/skills/app-planner/references/rules/frontend/derivation-rules.md +10 -0
  12. package/bundled/skills/app-planner/references/rules/frontend/question-bank.md +17 -0
  13. package/bundled/skills/app-planner/references/rules/frontend/template.md +19 -0
  14. package/bundled/skills/app-planner/references/rules/mobile/derivation-rules.md +10 -0
  15. package/bundled/skills/app-planner/references/rules-configuration.md +46 -0
  16. package/bundled/skills/bug-fix-workflow/SKILL.md +18 -54
  17. package/bundled/skills/bug-fix-workflow/references/bug-diagnosis.md +41 -0
  18. package/bundled/skills/bug-planner/SKILL.md +20 -12
  19. package/bundled/skills/bugfix-pipeline-launcher/SKILL.md +9 -108
  20. package/bundled/skills/bugfix-pipeline-launcher/references/configuration.md +98 -0
  21. package/bundled/skills/feature-pipeline-launcher/SKILL.md +20 -103
  22. package/bundled/skills/feature-pipeline-launcher/references/configuration.md +81 -0
  23. package/bundled/skills/feature-planner/SKILL.md +5 -9
  24. package/bundled/skills/feature-workflow/SKILL.md +27 -184
  25. package/bundled/skills/feature-workflow/references/brainstorm-guide.md +137 -0
  26. package/bundled/skills/prizm-kit/SKILL.md +14 -2
  27. package/bundled/skills/prizmkit-code-review/SKILL.md +67 -136
  28. package/bundled/skills/prizmkit-code-review/references/dev-agent-prompt.md +30 -0
  29. package/bundled/skills/prizmkit-code-review/references/review-report-template.md +31 -0
  30. package/bundled/skills/prizmkit-code-review/references/reviewer-agent-prompt.md +62 -0
  31. package/bundled/skills/prizmkit-code-review/scripts/check_loop.py +186 -0
  32. package/bundled/skills/prizmkit-committer/SKILL.md +8 -0
  33. package/bundled/skills/prizmkit-deploy/SKILL.md +49 -73
  34. package/bundled/skills/prizmkit-deploy/references/data-safety-examples.md +120 -0
  35. package/bundled/skills/prizmkit-deploy/references/ssh-bootstrap-flow.md +49 -0
  36. package/bundled/skills/prizmkit-deploy/references/ssh-execution-flow.md +41 -0
  37. package/bundled/skills/prizmkit-deploy/references/ssh-takeover.md +20 -0
  38. package/bundled/skills/prizmkit-implement/SKILL.md +7 -1
  39. package/bundled/skills/prizmkit-plan/SKILL.md +1 -83
  40. package/bundled/skills/prizmkit-plan/references/examples.md +85 -0
  41. package/bundled/skills/prizmkit-prizm-docs/SKILL.md +14 -0
  42. package/bundled/skills/prizmkit-retrospective/SKILL.md +1 -1
  43. package/bundled/skills/prizmkit-test/SKILL.md +3 -151
  44. package/bundled/skills/prizmkit-test/references/examples.md +70 -0
  45. package/bundled/skills/prizmkit-test/references/test-generation-steps.md +49 -0
  46. package/bundled/skills/prizmkit-test/references/test-report-template.md +42 -0
  47. package/bundled/skills/recovery-workflow/SKILL.md +24 -103
  48. package/bundled/skills/recovery-workflow/references/detection.md +58 -0
  49. package/bundled/skills/refactor-pipeline-launcher/SKILL.md +9 -96
  50. package/bundled/skills/refactor-pipeline-launcher/references/configuration.md +88 -0
  51. package/bundled/skills/refactor-planner/SKILL.md +15 -157
  52. package/bundled/skills/refactor-planner/references/fast-path.md +59 -0
  53. package/bundled/skills/refactor-planner/references/planning-phases.md +135 -0
  54. package/bundled/skills/refactor-workflow/SKILL.md +18 -178
  55. package/bundled/skills/refactor-workflow/references/brainstorm-guide.md +116 -0
  56. package/bundled/skills-windows/app-planner/SKILL.md +12 -358
  57. package/bundled/skills-windows/app-planner/references/infrastructure-convention-discovery.md +108 -0
  58. package/bundled/skills-windows/app-planner/references/project-conventions-discovery.md +59 -0
  59. package/bundled/skills-windows/app-planner/references/project-state-detection.md +90 -0
  60. package/bundled/skills-windows/app-planner/references/rules/backend/derivation-rules.md +10 -0
  61. package/bundled/skills-windows/app-planner/references/rules/database/derivation-rules.md +9 -0
  62. package/bundled/skills-windows/app-planner/references/rules/frontend/derivation-rules.md +10 -0
  63. package/bundled/skills-windows/app-planner/references/rules/frontend/question-bank.md +17 -0
  64. package/bundled/skills-windows/app-planner/references/rules/frontend/template.md +19 -0
  65. package/bundled/skills-windows/app-planner/references/rules/mobile/derivation-rules.md +10 -0
  66. package/bundled/skills-windows/app-planner/references/rules-configuration.md +46 -0
  67. package/bundled/skills-windows/bug-fix-workflow/SKILL.md +18 -54
  68. package/bundled/skills-windows/bug-fix-workflow/references/bug-diagnosis.md +41 -0
  69. package/bundled/skills-windows/bug-planner/SKILL.md +20 -12
  70. package/bundled/skills-windows/bugfix-pipeline-launcher/SKILL.md +6 -91
  71. package/bundled/skills-windows/bugfix-pipeline-launcher/references/configuration.md +94 -0
  72. package/bundled/skills-windows/feature-pipeline-launcher/SKILL.md +19 -88
  73. package/bundled/skills-windows/feature-pipeline-launcher/references/configuration.md +77 -0
  74. package/bundled/skills-windows/feature-planner/SKILL.md +5 -9
  75. package/bundled/skills-windows/feature-workflow/SKILL.md +27 -184
  76. package/bundled/skills-windows/feature-workflow/references/brainstorm-guide.md +137 -0
  77. package/bundled/skills-windows/prizm-kit/SKILL.md +14 -2
  78. package/bundled/skills-windows/prizmkit-code-review/SKILL.md +67 -136
  79. package/bundled/skills-windows/prizmkit-code-review/references/dev-agent-prompt.md +30 -0
  80. package/bundled/skills-windows/prizmkit-code-review/references/review-report-template.md +31 -0
  81. package/bundled/skills-windows/prizmkit-code-review/references/reviewer-agent-prompt.md +62 -0
  82. package/bundled/skills-windows/prizmkit-code-review/scripts/check_loop.py +186 -0
  83. package/bundled/skills-windows/prizmkit-committer/SKILL.md +8 -0
  84. package/bundled/skills-windows/prizmkit-deploy/SKILL.md +50 -74
  85. package/bundled/skills-windows/prizmkit-deploy/references/data-safety-examples.md +120 -0
  86. package/bundled/skills-windows/prizmkit-deploy/references/direct-upload.md +3 -3
  87. package/bundled/skills-windows/prizmkit-deploy/references/ssh-bootstrap-flow.md +49 -0
  88. package/bundled/skills-windows/prizmkit-deploy/references/ssh-execution-flow.md +41 -0
  89. package/bundled/skills-windows/prizmkit-deploy/references/ssh-takeover.md +20 -0
  90. package/bundled/skills-windows/prizmkit-deploy/references/ssl-setup.md +2 -2
  91. package/bundled/skills-windows/prizmkit-implement/SKILL.md +7 -1
  92. package/bundled/skills-windows/prizmkit-plan/SKILL.md +1 -83
  93. package/bundled/skills-windows/prizmkit-plan/references/examples.md +85 -0
  94. package/bundled/skills-windows/prizmkit-prizm-docs/SKILL.md +14 -0
  95. package/bundled/skills-windows/prizmkit-retrospective/SKILL.md +1 -1
  96. package/bundled/skills-windows/prizmkit-retrospective/references/structural-sync-steps.md +1 -1
  97. package/bundled/skills-windows/prizmkit-test/SKILL.md +3 -151
  98. package/bundled/skills-windows/prizmkit-test/references/examples.md +70 -0
  99. package/bundled/skills-windows/prizmkit-test/references/test-generation-steps.md +49 -0
  100. package/bundled/skills-windows/prizmkit-test/references/test-report-template.md +42 -0
  101. package/bundled/skills-windows/recovery-workflow/SKILL.md +24 -125
  102. package/bundled/skills-windows/recovery-workflow/references/detection.md +58 -0
  103. package/bundled/skills-windows/refactor-pipeline-launcher/SKILL.md +8 -77
  104. package/bundled/skills-windows/refactor-pipeline-launcher/references/configuration.md +82 -0
  105. package/bundled/skills-windows/refactor-planner/SKILL.md +15 -157
  106. package/bundled/skills-windows/refactor-planner/references/fast-path.md +59 -0
  107. package/bundled/skills-windows/refactor-planner/references/planning-phases.md +135 -0
  108. package/bundled/skills-windows/refactor-workflow/SKILL.md +18 -178
  109. package/bundled/skills-windows/refactor-workflow/references/brainstorm-guide.md +116 -0
  110. package/package.json +1 -1
@@ -0,0 +1,98 @@
1
+ # Configuration Reference — Bugfix Pipeline Launcher
2
+
3
+ Environment variable mappings for the bugfix launcher.
4
+
5
+ ## Environment Variable Mapping
6
+
7
+ Translating user responses to env vars:
8
+
9
+ | Config choice | Environment variable |
10
+ |-----------|---------------------|
11
+ | Verbose: Off | `VERBOSE=0` |
12
+ | Verbose: On | `VERBOSE=1` |
13
+ | Max retries: N | `MAX_RETRIES=N` |
14
+ | Critic: On | `ENABLE_CRITIC=1` |
15
+ | Timeout: value | `SESSION_TIMEOUT=<seconds>` |
16
+ | Stop on failure: On | `STOP_ON_FAILURE=1` |
17
+ | Deploy: Yes | `ENABLE_DEPLOY=1` |
18
+ | Effort: value | `PRIZMKIT_EFFORT=<value>` |
19
+
20
+ ## Advanced Environment Variables
21
+
22
+ Not exposed in interactive menu, pass via `--env`:
23
+
24
+ | Variable | Default | Purpose |
25
+ |----------|---------|---------|
26
+ | `MODEL` | (none) | AI model override (e.g. `claude-opus-4.6`) |
27
+ | `AUTO_PUSH` | `0` | Auto-push to remote after successful bug fix (`1` to enable) |
28
+ | `DEV_BRANCH` | auto-generated | Custom dev branch name (default: `bugfix/pipeline-{run_id}`) |
29
+ | `HEARTBEAT_INTERVAL` | `30` | Heartbeat log interval in seconds |
30
+ | `HEARTBEAT_STALE_THRESHOLD` | `600` | Max seconds without heartbeat before marking stale |
31
+ | `LOG_CLEANUP_ENABLED` | `1` | Run periodic log cleanup (`0` to disable) |
32
+ | `LOG_RETENTION_DAYS` | `14` | Delete logs older than N days |
33
+ | `LOG_MAX_TOTAL_MB` | `1024` | Keep total logs under N MB via oldest-first cleanup |
34
+
35
+ ## Interactive Configuration Options
36
+
37
+ Present these via `AskUserQuestion` in step 5. Round 1 is one `AskUserQuestion` call with all 4 questions; round 2 only runs if the user picks "Yes" to Advanced config.
38
+
39
+ ### Round 1 (always asked)
40
+
41
+ **Question 1 — Verbose logging** (multiSelect: false):
42
+ - On (default) — Detailed AI session logs including tool calls and subagent activity
43
+ - Off — Minimal logging
44
+
45
+ **Question 2 — Max retries** (multiSelect: false):
46
+ - 3 (default)
47
+ - 1
48
+ - 5
49
+
50
+ **Question 3 — Critic review** (multiSelect: false):
51
+ - Off (default) — Skip adversarial review (`ENABLE_CRITIC=0`)
52
+ - On — Enable adversarial critic review (`ENABLE_CRITIC=1`): an independent AI agent reviews the diagnosis/plan for completeness and the fix for defects, edge cases, and regression risks. Adds ~5-10 min per bug.
53
+
54
+ **Question 4 — Advanced config?** (multiSelect: false):
55
+ - No (default) — Use defaults for session timeout and failure behavior
56
+ - Yes — Configure session timeout, stop-on-failure, deploy, and reasoning effort options
57
+
58
+ Note: Bug filter defaults to all bugs (by severity order). Default Critic to Off unless bugs have `severity: "critical"` or `severity: "high"` (in which case default to On). If the user selects "Other" on any option, handle their custom input.
59
+
60
+ ### Round 2 (only if Advanced config = Yes)
61
+
62
+ **Question 1 — Session timeout** (multiSelect: false):
63
+ - None (default) — No timeout
64
+ - 30 min — `SESSION_TIMEOUT=1800`
65
+ - 1 hour — `SESSION_TIMEOUT=3600`
66
+ - 2 hours — `SESSION_TIMEOUT=7200`
67
+
68
+ **Question 2 — Stop on failure** (multiSelect: false):
69
+ - Off (default) — Pipeline continues to next task after failure
70
+ - On — Pipeline halts immediately when a task exhausts all retries (`STOP_ON_FAILURE=1`)
71
+
72
+ **Question 3 — Deploy after completion?** (multiSelect: false):
73
+ - No (default) — Skip deployment after pipeline completes
74
+ - Yes — Run /prizmkit-deploy automatically after all bugs fixed successfully (`ENABLE_DEPLOY=1`). Deployment is blocked if any bug was not fixed (status not 'completed', 'skipped', or 'needs_info').
75
+
76
+ **Question 4 — Reasoning effort** (multiSelect: false):
77
+ - Default (none) — Use CLI default
78
+ - low — Minimize reasoning, fastest output (`PRIZMKIT_EFFORT=low`)
79
+ - medium — Moderate reasoning (`PRIZMKIT_EFFORT=medium`)
80
+ - high — Thorough reasoning for complex tasks (`PRIZMKIT_EFFORT=high`)
81
+ - xhigh — Extensive reasoning (`PRIZMKIT_EFFORT=xhigh`)
82
+ - max — Maximum reasoning, Claude Code only (`PRIZMKIT_EFFORT=max`)
83
+
84
+ ## Error Handling
85
+
86
+ | Error | Action |
87
+ |-------|--------|
88
+ | `.prizmkit/plans/bug-fix-list.json` not found | Tell user to run `bug-planner` skill first |
89
+ | `jq` not installed | Suggest: `brew install jq` |
90
+ | `cbc`/`claude` not in PATH | Check AI CLI installation |
91
+ | Bugfix pipeline already running | Show status, ask if user wants to stop and restart |
92
+ | PID file stale (process dead) | `launch-bugfix-daemon.sh` auto-cleans, retry start |
93
+ | Launch failed (process died immediately) | Show last 20 lines of log: `tail -20 .prizmkit/state/bugfix/pipeline-daemon.log` |
94
+ | All bugs blocked/failed/needs-info | Show status, suggest retrying or providing more info |
95
+ | `playwright-cli` not installed | Browser verification skipped for playwright bugs (non-blocking). Suggest: `npm install -g @playwright/cli@latest && playwright-cli install --skills` |
96
+ | `opencli` not installed | Browser verification skipped for opencli bugs (non-blocking). Install opencli for Chrome session-based browser verification |
97
+ | Deploy session failed | Pipeline completed but deploy session exited non-zero. Check `.prizmkit/state/bugfix/deploy/<session_id>/logs/session.log`. Retry manually: `/prizmkit-deploy`. |
98
+ | Permission denied on script | Run `chmod +x .prizmkit/dev-pipeline/launch-bugfix-daemon.sh .prizmkit/dev-pipeline/run-bugfix.sh` |
@@ -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,58 +155,10 @@ 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`)
199
-
200
- **Environment variable mapping** (for translating user responses → env vars):
201
-
202
- | Config choice | Environment variable |
203
- |-----------|---------------------|
204
- | Critic: On | `ENABLE_CRITIC=true` |
205
- | Verbose: Off | `VERBOSE=0` |
206
- | Verbose: On | `VERBOSE=1` |
207
- | Max retries: N | `MAX_RETRIES=N` |
208
- | Timeout: value | `SESSION_TIMEOUT=<seconds>` |
209
- | Stop on failure: On | `STOP_ON_FAILURE=1` |
210
- | Deploy: Yes | `ENABLE_DEPLOY=1` |
211
- | Effort: value | `PRIZMKIT_EFFORT=<value>` |
212
-
213
- **Advanced environment variables** (not exposed in interactive menu, pass via `--env`):
214
-
215
- | Variable | Default | Purpose |
216
- |----------|---------|---------|
217
- | `MODEL` | (none) | AI model override (e.g. `claude-opus-4.6`) |
218
- | `AUTO_PUSH` | `0` | Auto-push to remote after successful feature (`1` to enable) |
219
- | `DEV_BRANCH` | auto-generated | Custom dev branch name (default: `dev/{feature_id}-YYYYMMDDHHmm`) |
220
- | `HEARTBEAT_INTERVAL` | `30` | Heartbeat log interval in seconds |
221
- | `HEARTBEAT_STALE_THRESHOLD` | `600` | Max seconds without heartbeat before marking stale |
222
- | `PIPELINE_MODE` | (none) | Override mode for all features: `lite`\|`standard`\|`full` |
223
- | `LOG_CLEANUP_ENABLED` | `1` | Run periodic log cleanup (`0` to disable) |
224
- | `LOG_RETENTION_DAYS` | `14` | Delete logs older than N days |
225
- | `LOG_MAX_TOTAL_MB` | `1024` | Keep total logs under N MB via oldest-first cleanup |
226
-
227
- ⚠️ STOP HERE and wait for user response before continuing to step 7.
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`.
159
+
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).
161
+
228
162
 
229
163
  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
164
 
@@ -411,24 +345,7 @@ After pipeline completion, if features have `browser_interaction` fields and the
411
345
 
412
346
  ### Error Handling
413
347
 
414
- | Error | Action |
415
- |-------|--------|
416
- | `.prizmkit/plans/feature-list.json` not found | Tell user to run `feature-planner` skill first |
417
- | `jq` not installed | Suggest: `brew install jq` |
418
- | `cbc`/`claude` not in PATH | Check AI CLI installation |
419
- | Pipeline already running | Show status, ask if user wants to stop and restart |
420
- | PID file stale (process dead) | `launch-feature-daemon.sh` auto-cleans, retry start |
421
- | Launch failed (process died immediately) | Show last 20 lines of log: `tail -20 .prizmkit/state/features/pipeline-daemon.log` |
422
- | Feature stuck/blocked | Use `reset-feature.sh <F-XXX> --clean --run` for a fresh retry |
423
- | All features blocked/failed | Show status, suggest daemon-safe recovery: `.prizmkit/dev-pipeline/reset-feature.sh <F-XXX> --clean --run .prizmkit/plans/feature-list.json` |
424
- | `playwright-cli` not installed | Browser verification skipped for playwright features (non-blocking). Suggest: `npm install -g @playwright/cli@latest && playwright-cli install --skills` |
425
- | `opencli` not installed | Browser verification skipped for opencli features (non-blocking). Install opencli for Chrome session-based browser verification |
426
- | Permission denied on script | Run `chmod +x .prizmkit/dev-pipeline/launch-feature-daemon.sh .prizmkit/dev-pipeline/run-feature.sh` |
427
- | Pipeline stop failed (process won't die) | Process may be stuck in I/O wait. Try `kill -9 <PID>` manually. Check for orphaned child processes with `ps aux \| grep claude` |
428
- | Deploy session failed | Pipeline completed but deploy session exited non-zero. Check `.prizmkit/state/features/deploy/<session_id>/logs/session.log`. Retry manually: `/prizmkit-deploy`. |
429
- | `.env.local` missing or incomplete | Warn: database connection variables not found. Suggest creating env file with required connection variables for the project's database |
430
- | Database unreachable | Warn: database features will produce mock-only tests. Suggest checking database service status and connection credentials |
431
- | Migrations not applied | Warn: tables or schema referenced in migration files not found in database. Suggest applying pending migrations |
348
+ Read `${SKILL_DIR}/references/configuration.md` for the full error handling table (16 entries covering feature-list not found, dependency checks, pipeline state, browser tooling, permission, and deploy failures).
432
349
 
433
350
  ### Integration Notes
434
351
 
@@ -0,0 +1,81 @@
1
+ # Configuration Reference — Feature Pipeline Launcher
2
+
3
+ Environment variable mappings for the feature launcher.
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
+
31
+ ## Environment Variable Mapping
32
+
33
+ Translating user responses to env vars:
34
+
35
+ | Config choice | Environment variable |
36
+ |-----------|---------------------|
37
+ | Critic: On | `ENABLE_CRITIC=true` |
38
+ | Verbose: Off | `VERBOSE=0` |
39
+ | Verbose: On | `VERBOSE=1` |
40
+ | Max retries: N | `MAX_RETRIES=N` |
41
+ | Timeout: value | `SESSION_TIMEOUT=<seconds>` |
42
+ | Stop on failure: On | `STOP_ON_FAILURE=1` |
43
+ | Deploy: Yes | `ENABLE_DEPLOY=1` |
44
+ | Effort: value | `PRIZMKIT_EFFORT=<value>` |
45
+
46
+ ## Advanced Environment Variables
47
+
48
+ Not exposed in interactive menu, pass via `--env`:
49
+
50
+ | Variable | Default | Purpose |
51
+ |----------|---------|---------|
52
+ | `MODEL` | (none) | AI model override (e.g. `claude-opus-4.6`) |
53
+ | `AUTO_PUSH` | `0` | Auto-push to remote after successful feature (`1` to enable) |
54
+ | `DEV_BRANCH` | auto-generated | Custom dev branch name (default: `dev/{feature_id}-YYYYMMDDHHmm`) |
55
+ | `HEARTBEAT_INTERVAL` | `30` | Heartbeat log interval in seconds |
56
+ | `HEARTBEAT_STALE_THRESHOLD` | `600` | Max seconds without heartbeat before marking stale |
57
+ | `PIPELINE_MODE` | (none) | Override mode for all features: `lite`\|`standard`\|`full` |
58
+ | `LOG_CLEANUP_ENABLED` | `1` | Run periodic log cleanup (`0` to disable) |
59
+ | `LOG_RETENTION_DAYS` | `14` | Delete logs older than N days |
60
+ | `LOG_MAX_TOTAL_MB` | `1024` | Keep total logs under N MB via oldest-first cleanup |
61
+
62
+ ## Error Handling
63
+
64
+ | Error | Action |
65
+ |-------|--------|
66
+ | `.prizmkit/plans/feature-list.json` not found | Tell user to run `feature-planner` skill first |
67
+ | `jq` not installed | Suggest: `brew install jq` |
68
+ | `cbc`/`claude` not in PATH | Check AI CLI installation |
69
+ | Pipeline already running | Show status, ask if user wants to stop and restart |
70
+ | PID file stale (process dead) | `launch-feature-daemon.sh` auto-cleans, retry start |
71
+ | Launch failed (process died immediately) | Show last 20 lines of log: `tail -20 .prizmkit/state/features/pipeline-daemon.log` |
72
+ | Feature stuck/blocked | Use `reset-feature.sh <F-XXX> --clean --run` for a fresh retry |
73
+ | All features blocked/failed | Show status, suggest daemon-safe recovery: `.prizmkit/dev-pipeline/reset-feature.sh <F-XXX> --clean --run .prizmkit/plans/feature-list.json` |
74
+ | `playwright-cli` not installed | Browser verification skipped for playwright features (non-blocking). Suggest: `npm install -g @playwright/cli@latest && playwright-cli install --skills` |
75
+ | `opencli` not installed | Browser verification skipped for opencli features (non-blocking). Install opencli for Chrome session-based browser verification |
76
+ | Permission denied on script | Run `chmod +x .prizmkit/dev-pipeline/launch-feature-daemon.sh .prizmkit/dev-pipeline/run-feature.sh` |
77
+ | Pipeline stop failed (process won't die) | Process may be stuck in I/O wait. Try `kill -9 <PID>` manually. Check for orphaned child processes with `ps aux \| grep claude` |
78
+ | Deploy session failed | Pipeline completed but deploy session exited non-zero. Check `.prizmkit/state/features/deploy/<session_id>/logs/session.log`. Retry manually: `/prizmkit-deploy`. |
79
+ | `.env.local` missing or incomplete | Warn: database connection variables not found. Suggest creating env file with required connection variables for the project's database |
80
+ | Database unreachable | Warn: database features will produce mock-only tests. Suggest checking database service status and connection credentials |
81
+ | Migrations not applied | Warn: tables or schema referenced in migration files not found in database. Suggest applying pending migrations |
@@ -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).