prizmkit 1.1.111 → 1.1.112

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/agents/prizm-dev-team-reviewer.md +12 -1
  3. package/bundled/dev-pipeline/prizmkit_runtime/interoperability.py +1 -0
  4. package/bundled/dev-pipeline/scripts/generate-bootstrap-prompt.py +19 -73
  5. package/bundled/dev-pipeline/scripts/generate-bugfix-prompt.py +283 -421
  6. package/bundled/dev-pipeline/scripts/generate-recovery-prompt.py +1 -1
  7. package/bundled/dev-pipeline/scripts/generate-refactor-prompt.py +259 -481
  8. package/bundled/dev-pipeline/scripts/init-bugfix-pipeline.py +34 -0
  9. package/bundled/dev-pipeline/scripts/init-pipeline.py +12 -0
  10. package/bundled/dev-pipeline/scripts/init-refactor-pipeline.py +24 -1
  11. package/bundled/dev-pipeline/scripts/prompt_framework.py +312 -0
  12. package/bundled/dev-pipeline/scripts/update-bug-status.py +87 -20
  13. package/bundled/dev-pipeline/scripts/update-feature-status.py +82 -16
  14. package/bundled/dev-pipeline/scripts/update-refactor-status.py +68 -28
  15. package/bundled/dev-pipeline/scripts/utils.py +171 -0
  16. package/bundled/dev-pipeline/templates/bootstrap-prompt.md +1 -1
  17. package/bundled/dev-pipeline/templates/bootstrap-tier2.md +10 -18
  18. package/bundled/dev-pipeline/templates/bootstrap-tier3.md +14 -25
  19. package/bundled/dev-pipeline/templates/bug-fix-list-schema.json +9 -1
  20. package/bundled/dev-pipeline/templates/bugfix-bootstrap-prompt.md +11 -8
  21. package/bundled/dev-pipeline/templates/refactor-bootstrap-prompt.md +122 -182
  22. package/bundled/dev-pipeline/templates/sections/bugfix-artifacts.md +16 -0
  23. package/bundled/dev-pipeline/templates/sections/bugfix-critical-paths.md +12 -0
  24. package/bundled/dev-pipeline/templates/sections/bugfix-mission.md +9 -0
  25. package/bundled/dev-pipeline/templates/sections/bugfix-phase-commit-report.md +31 -0
  26. package/bundled/dev-pipeline/templates/sections/bugfix-phase-critic.md +22 -0
  27. package/bundled/dev-pipeline/templates/sections/bugfix-phase-diagnose-plan.md +23 -0
  28. package/bundled/dev-pipeline/templates/sections/bugfix-phase-implement.md +20 -0
  29. package/bundled/dev-pipeline/templates/sections/bugfix-phase-init.md +9 -0
  30. package/bundled/dev-pipeline/templates/sections/bugfix-phase-manual-verification.md +15 -0
  31. package/bundled/dev-pipeline/templates/sections/bugfix-phase-review.md +29 -0
  32. package/bundled/dev-pipeline/templates/sections/bugfix-reminders.md +11 -0
  33. package/bundled/dev-pipeline/templates/sections/bugfix-session-context.md +7 -0
  34. package/bundled/dev-pipeline/templates/sections/bugfix-session-status.md +31 -0
  35. package/bundled/dev-pipeline/templates/sections/bugfix-task-contract.md +40 -0
  36. package/bundled/dev-pipeline/templates/sections/failure-capture.md +2 -2
  37. package/bundled/dev-pipeline/templates/sections/phase-browser-verification-auto.md +1 -1
  38. package/bundled/dev-pipeline/templates/sections/refactor-artifacts.md +17 -0
  39. package/bundled/dev-pipeline/templates/sections/refactor-critical-paths.md +13 -0
  40. package/bundled/dev-pipeline/templates/sections/refactor-mission.md +9 -0
  41. package/bundled/dev-pipeline/templates/sections/refactor-phase-commit-report.md +37 -0
  42. package/bundled/dev-pipeline/templates/sections/refactor-phase-critic.md +22 -0
  43. package/bundled/dev-pipeline/templates/sections/refactor-phase-implement.md +16 -0
  44. package/bundled/dev-pipeline/templates/sections/refactor-phase-init.md +9 -0
  45. package/bundled/dev-pipeline/templates/sections/refactor-phase-plan.md +22 -0
  46. package/bundled/dev-pipeline/templates/sections/refactor-phase-review.md +19 -0
  47. package/bundled/dev-pipeline/templates/sections/refactor-reminders.md +11 -0
  48. package/bundled/dev-pipeline/templates/sections/refactor-session-context.md +7 -0
  49. package/bundled/dev-pipeline/templates/sections/refactor-session-status.md +28 -0
  50. package/bundled/dev-pipeline/templates/sections/refactor-task-contract.md +52 -0
  51. package/bundled/dev-pipeline/tests/test_generate_bootstrap_prompt.py +17 -5
  52. package/bundled/dev-pipeline/tests/test_python_runner_parity.py +197 -0
  53. package/bundled/dev-pipeline/tests/test_unified_cli.py +6 -2
  54. package/bundled/dev-pipeline/tests/test_utils.py +66 -1
  55. package/bundled/skills/_metadata.json +1 -1
  56. package/bundled/skills/app-planner/SKILL.md +8 -7
  57. package/bundled/skills/app-planner/references/project-brief-guide.md +2 -2
  58. package/bundled/skills/app-planner/references/rules/backend/derivation-rules.md +1 -1
  59. package/bundled/skills/app-planner/references/rules/frontend/derivation-rules.md +1 -1
  60. package/bundled/skills/app-planner/references/rules-configuration.md +53 -26
  61. package/bundled/skills/bug-fix-workflow/SKILL.md +191 -336
  62. package/bundled/skills/bug-planner/SKILL.md +6 -5
  63. package/bundled/skills/bug-planner/references/critic-and-verification.md +3 -3
  64. package/bundled/skills/bug-planner/references/schema-validation.md +2 -1
  65. package/bundled/skills/bug-planner/scripts/validate-bug-list.py +30 -1
  66. package/bundled/skills/bugfix-pipeline-launcher/SKILL.md +16 -16
  67. package/bundled/skills/bugfix-pipeline-launcher/references/configuration.md +2 -2
  68. package/bundled/skills/feature-pipeline-launcher/SKILL.md +19 -11
  69. package/bundled/skills/feature-planner/SKILL.md +9 -11
  70. package/bundled/skills/feature-planner/assets/planning-guide.md +1 -1
  71. package/bundled/skills/feature-planner/references/decomposition-patterns.md +1 -1
  72. package/bundled/skills/feature-planner/references/error-recovery.md +2 -1
  73. package/bundled/skills/feature-planner/references/incremental-feature-planning.md +2 -2
  74. package/bundled/skills/feature-planner/references/new-project-planning.md +35 -39
  75. package/bundled/skills/feature-planner/scripts/validate-and-generate.py +1 -1
  76. package/bundled/skills/feature-workflow/SKILL.md +169 -298
  77. package/bundled/skills/prizmkit/SKILL.md +103 -57
  78. package/bundled/skills/prizmkit-code-review/SKILL.md +97 -116
  79. package/bundled/skills/prizmkit-code-review/references/review-report-template.md +1 -0
  80. package/bundled/skills/prizmkit-code-review/references/reviewer-agent-prompt.md +12 -1
  81. package/bundled/skills/prizmkit-committer/SKILL.md +59 -47
  82. package/bundled/skills/prizmkit-deploy/SKILL.md +162 -381
  83. package/bundled/skills/prizmkit-deploy/references/ssh-adapter-flow.md +220 -0
  84. package/bundled/skills/prizmkit-implement/SKILL.md +51 -40
  85. package/bundled/skills/prizmkit-init/SKILL.md +4 -3
  86. package/bundled/skills/prizmkit-plan/SKILL.md +85 -70
  87. package/bundled/skills/prizmkit-prizm-docs/SKILL.md +94 -73
  88. package/bundled/skills/prizmkit-prizm-docs/assets/prizm-docs-format.md +20 -18
  89. package/bundled/skills/prizmkit-prizm-docs/references/op-update.md +18 -14
  90. package/bundled/skills/prizmkit-retrospective/SKILL.md +56 -48
  91. package/bundled/skills/prizmkit-retrospective/references/structural-sync-steps.md +79 -27
  92. package/bundled/skills/prizmkit-test/SKILL.md +138 -141
  93. package/bundled/skills/prizmkit-test/references/examples.md +10 -8
  94. package/bundled/skills/prizmkit-test/references/test-generation-steps.md +1 -1
  95. package/bundled/skills/prizmkit-test/references/test-report-template.md +2 -2
  96. package/bundled/skills/recovery-workflow/SKILL.md +195 -256
  97. package/bundled/skills/recovery-workflow/evals/evals.json +21 -13
  98. package/bundled/skills/recovery-workflow/references/detection.md +48 -39
  99. package/bundled/skills/recovery-workflow/scripts/detect-recovery-state.py +258 -322
  100. package/bundled/skills/refactor-pipeline-launcher/SKILL.md +29 -11
  101. package/bundled/skills/refactor-planner/SKILL.md +2 -2
  102. package/bundled/skills/refactor-planner/references/behavior-preservation.md +24 -19
  103. package/bundled/skills/refactor-planner/references/fast-path.md +2 -4
  104. package/bundled/skills/refactor-planner/references/planning-phases.md +2 -2
  105. package/bundled/skills/refactor-workflow/SKILL.md +173 -307
  106. package/package.json +1 -1
  107. package/src/scaffold.js +5 -0
  108. package/bundled/dev-pipeline/templates/agent-prompts/reviewer-review.md +0 -6
  109. package/bundled/skills/feature-workflow/references/brainstorm-guide.md +0 -137
  110. package/bundled/skills/refactor-workflow/references/brainstorm-guide.md +0 -116
@@ -1,370 +1,241 @@
1
1
  ---
2
2
  name: "feature-workflow"
3
- description: "Triage-based feature workflow. Clarifies requirements, then lets the user choose Fast Path for simple current-session/current-workspace implementation or Pipeline Path for complex/batch features via feature-planner feature-pipeline-launcher. Use when the user wants to develop features from idea to running code with the right execution path for the task difficulty. Trigger on: 'build an app', 'develop features', 'implement all features', 'one-stop development', 'batch implement', 'build a new application', 'build a system', 'one-click complete'."
3
+ description: "Thin L3 feature workflow router. Clarifies enough to choose Fast Path, Pipeline Path, existing-list launch, or greenfield app planning; hands deep feature planning to feature-planner, app-level planning to app-planner, and execution configuration to feature-pipeline-launcher. Use when the user wants to develop features from idea to code, add features to an existing project, batch implement features, run an existing feature list, or build a new app that should first go through app-planner. Trigger on: 'develop features', 'implement features', 'add feature', 'batch implement', 'one-stop development', 'build an app', 'build a new application', 'create a project', 'run feature list'."
4
4
  ---
5
5
 
6
6
  # Feature Workflow
7
7
 
8
- Triage-based entry point for feature development. The workflow clarifies requirements, assesses task difficulty, asks the user to choose an approach, then follows one of two paths:
8
+ Thin L3 entry point for feature development. This skill routes the user to the right execution path, prepares a concise handoff brief, and avoids duplicating planner or launcher internals.
9
9
 
10
- - **Fast Path** — simple feature work is implemented directly in the **current session** and **current workspace** with the normal PrizmKit lifecycle commands.
11
- - **Pipeline Path** — complex or batch features are planned with `feature-planner`, launched with `feature-pipeline-launcher`, then monitored.
10
+ ## Responsibility Boundary
12
11
 
13
- This skill keeps Fast Path and Pipeline Path separate. Pipeline monitoring only happens after the user selects Pipeline Path and the launcher starts execution.
12
+ This workflow owns:
13
+ - Scenario recognition: Fast Path, Pipeline Path, greenfield app planning, or existing-list launch.
14
+ - Lightweight triage: enough context to recommend a path, not full feature planning.
15
+ - User path selection through `AskUserQuestion`.
16
+ - Prompt brief handoff to `app-planner`, `feature-planner`, `feature-pipeline-launcher`, or Fast Path L1 skills.
17
+ - Continuation after `feature-planner` when the user entered through this workflow.
14
18
 
15
- ## When to Use
16
-
17
- User says:
18
- - "Build a new application", "Build XXX system", "Create a project"
19
- - "Implement this feature now", "Add this simple feature", "Build one small workflow"
20
- - "One-click complete these features", "Batch implement these requirements"
21
- - "Help me implement user login, registration, and avatar upload features"
22
- - After receiving either one scoped feature request or a batch of related feature requests
23
-
24
- **Do NOT use this skill when:**
25
- - User only wants to plan features without execution → use `feature-planner` directly
26
- - User only wants to launch an existing `.prizmkit/plans/feature-list.json` → use `feature-pipeline-launcher`
27
- - User wants to fix bugs → use `bug-fix-workflow` or `bug-planner` + `bugfix-pipeline-launcher`
28
- - User wants to refactor code → use `refactor-workflow`
29
-
30
- ---
31
-
32
- ## Overview
33
-
34
- The shared contract is:
35
-
36
- 1. **Brainstorm** — collect reference materials, deep read relevant code/docs, and clarify requirements.
37
- 2. **Assess difficulty** — decide whether the request is simple enough for Fast Path or should use Pipeline Path.
38
- 3. **AskUserQuestion approach selection** — present selectable options; never silently choose the path.
39
- 4. **Execute selected path**:
40
- - **Fast Path**: `/prizmkit-plan` → `/prizmkit-implement` → `/prizmkit-code-review` → `/prizmkit-retrospective` → `/prizmkit-committer` in the current workspace.
41
- - **Pipeline Path**: `feature-planner` → `feature-pipeline-launcher` → monitoring.
42
-
43
- ### Terminology
44
-
45
- | Term | Meaning |
46
- |------|---------|
47
- | **Fast Path** | Current-session/current-workspace feature implementation for simple, scoped work. It does not create or consume `.prizmkit/plans/feature-list.json` and does not start the dev-pipeline. |
48
- | **Pipeline Path** | Complex or batch feature execution. Planner handoff goes to `feature-planner`; launcher handoff goes to `feature-pipeline-launcher`; monitoring follows only after launch. |
49
- | **Current session** | The interactive AI CLI session that is already talking with the user. |
50
- | **Current workspace** | The current git checkout and working tree, not a background pipeline worktree/session. |
51
- | **Monitoring** | Status/log follow-up for a launched pipeline; it is not part of the Fast Path. |
52
-
53
- ### Workspace and Branch Model
54
-
55
- - **Fast Path**: work happens in the current workspace and current interactive session. Use the current branch unless the project policy or user explicitly asks to create a branch.
56
- - **Pipeline Path**: `feature-pipeline-launcher` and the dev-pipeline manage per-feature branches/worktrees. This workflow does not create a top-level branch before handing off to the launcher.
57
-
58
- ---
59
-
60
- ## Input Modes
61
-
62
- **Mode A: Natural language requirements** (default)
63
-
64
- Natural language description of the project or feature(s). Can be:
65
- - A single simple feature: "Add CSV export to the reports page"
66
- - A project vision: "Build a task management App with user login, task CRUD, and task categories"
67
- - A batch of features: "Implement user registration, login, and password recovery"
68
- - An incremental request: "Add user avatar upload and nickname modification to the existing system"
69
-
70
- Flow: brainstorm → complexity assessment → AskUserQuestion → Fast Path or Pipeline Path.
71
-
72
- **Mode B: Existing `.prizmkit/plans/feature-list.json`**
73
-
74
- When the user says "run pipeline from existing file" or `.prizmkit/plans/feature-list.json` already exists and should be executed:
75
- - Skip brainstorm and `feature-planner`
76
- - Invoke `feature-pipeline-launcher` directly
77
- - Monitor and report progress
78
-
79
- **Mode C: Incremental feature request**
80
-
81
- When user says "add features to existing project" or the project already has features:
82
- - Brainstorm only the new feature requirements
83
- - Assess whether the new scope is simple enough for Fast Path
84
- - For simple work: use Fast Path in the current workspace
85
- - For complex or batch work: invoke `feature-planner` in incremental mode, then `feature-pipeline-launcher`
86
-
87
- ---
88
-
89
- ## Phase 1: Brainstorm — Deep Requirement Clarification
90
-
91
- **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.
92
-
93
- 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 high-quality code generation, which requires strong requirement understanding.
94
-
95
- ### Step 1.1: Understand the User's Vision
96
-
97
- Ask the user to describe what they want to build. Listen for:
98
- - What the system/feature does (core functionality)
99
- - Who uses it (user roles, personas)
100
- - Why it's needed (business value, problem being solved)
101
-
102
- ### Step 1.2: Collect Reference Materials
103
-
104
- **Upfront Material Detection (Hard Rule)**: If the user has already provided materials (file paths, URLs, rules, specifications, code snippets) in the same message that invoked this skill:
105
- 1. Acknowledge what was received: "I received the following materials: [list]"
106
- 2. Read/fetch all provided materials immediately
107
- 3. You MUST still ask: "Are there any additional materials you'd like to provide?"
108
- 4. NEVER skip this collection step just because the user already provided some materials
109
-
110
- **If the user has NOT provided any materials upfront**, ask the user explicitly what resources they have. Do NOT skip this step — user-provided materials are far more valuable than blind directory scanning.
111
-
112
- Ask:
113
- 1. **Existing code** — "Is there existing code I should look at? Which files or directories are relevant?"
114
- 2. **Design documents** — "Do you have any design docs, wireframes, API specs, or PRDs I should read?"
115
- 3. **Knowledge docs** — "Are there related `.prizmkit/prizm-docs/`, README files, or internal wiki pages?"
116
- 4. **Reference projects** — "Any reference implementations or similar projects I should look at for inspiration?"
19
+ This workflow does not own:
20
+ - Deep feature clarification, decomposition, dependency/DAG decisions, priority/complexity calibration, schema validation, or plan review gates — those belong to `feature-planner`.
21
+ - Execution mode, runtime configuration, preflight, command assembly, status/log/stop/retry details — those belong to `feature-pipeline-launcher`.
22
+ - App-level vision, tech stack, conventions, architecture decisions, or project brief — those belong to `app-planner`.
117
23
 
118
- Record everything the user provides — these become inputs for Step 1.3.
119
-
120
- ### Step 1.3: Parallel Deep Reading
24
+ ## When to Use
121
25
 
122
- Read `${SKILL_DIR}/references/brainstorm-guide.md` §Step 1.3 for the parallel agent dispatch procedure spawn 4 agents (A: code paths, B: documents, C: prizm-docs, D: database/config) to build comprehensive project context before discussion. Synthesize findings before proceeding.
26
+ Use this workflow when the user wants a guided feature-development entry point:
27
+ - Build, add, or implement features.
28
+ - Decide whether a feature should be implemented now or planned for pipeline execution.
29
+ - Batch implement multiple feature requests.
30
+ - Continue from an existing `.prizmkit/plans/feature-list.json`.
31
+ - Start from a greenfield app idea, where this workflow will route to `app-planner` first.
123
32
 
124
- ### Step 1.4: Discuss Requirements
33
+ Do not use this workflow when the user only wants:
34
+ - App-level planning without feature execution intent -> use `app-planner`.
35
+ - Feature list generation only -> use `feature-planner`.
36
+ - Launch/status/logs/retry for an existing feature list -> use `feature-pipeline-launcher`.
37
+ - Bug fixing -> use `bug-fix-workflow` or the bug pipeline skills.
38
+ - Behavior-preserving restructuring -> use `refactor-workflow`.
125
39
 
126
- Read `${SKILL_DIR}/references/brainstorm-guide.md` §Step 1.4 for the full requirements discussion framework — functional requirements, data model, user experience, integration/architecture, edge cases, and non-functional requirements. Ask targeted questions based on what was learned from parallel reading. **Adapt question depth to the feature complexity.**
40
+ ## Route Overview
127
41
 
128
- ### Step 1.5: Confirm and Supplement
42
+ | User situation | Route |
43
+ |---|---|
44
+ | Greenfield app, new application, create project | `app-planner` first; then optionally `feature-planner` |
45
+ | Existing project, simple scoped feature | Fast Path in current workspace |
46
+ | Existing project, complex or batch features | `feature-planner` -> return here -> `feature-pipeline-launcher` |
47
+ | User explicitly says to run an existing feature list | `feature-pipeline-launcher` |
48
+ | Feature list exists but the user did not explicitly ask to run it | Ask launch / inspect / update |
129
49
 
130
- After the discussion:
50
+ ## Route Selection
131
51
 
132
- 1. **Summarize** the requirements — present it back to the user
133
- 2. **Ask explicitly**: "Is there anything else you'd like to discuss or supplement before we proceed to formal planning?"
134
- 3. **Identify gaps** — if any areas are still unclear, list them explicitly and ask follow-up questions
135
- 4. **Repeat** until the user confirms: "That covers everything" or "Let's proceed"
52
+ ### Step 1: Detect the entry mode
136
53
 
137
- Read `${SKILL_DIR}/references/brainstorm-guide.md` §Completion Signs for the full checklist of when brainstorming is complete vs when more questions are needed.
54
+ Classify the user's request before asking detailed feature questions:
138
55
 
139
- ### Step 1.6: Requirements Summary
56
+ - **Greenfield app**: the user says “build a new app”, “create a project”, “start from scratch”, or asks for app-level architecture/tech stack/conventions.
57
+ - **Existing list launch**: the user explicitly asks to run, start, resume, check, retry, or stop `.prizmkit/plans/feature-list.json`.
58
+ - **Existing project feature work**: the user asks to add or implement features in a project that already has source code or project context.
59
+ - **Unclear**: the user mixes app design, feature planning, and implementation intent.
140
60
 
141
- Once brainstorming is complete, produce a structured requirements summary. Read `${SKILL_DIR}/references/brainstorm-guide.md` §Requirements Summary Template for the structured output format. Present the summary to the user and get explicit confirmation before proceeding.
61
+ If the request is unclear, ask one concise clarification question before route selection.
142
62
 
143
- **CHECKPOINT CP-FW-0**: Requirements fully clarified and confirmed by user.
63
+ ### Step 2: Lightweight triage for existing-project feature work
144
64
 
145
- ---
65
+ Use lightweight criteria only. Do not perform full feature decomposition here.
146
66
 
147
- ### Step 1.7: Complexity Assessment & Approach Selection
67
+ Fast Path candidate when all are true:
68
+ - One scoped feature or a very small set of tightly related changes.
69
+ - Expected work is localized and follows existing patterns.
70
+ - No app-level architecture, new infrastructure, or broad dependency ordering is needed.
71
+ - Acceptance intent is clear enough for `/prizmkit-plan` to create a spec and plan.
148
72
 
149
- After confirming requirements, assess whether this feature needs the Pipeline Path or can be done directly in the current session/current workspace.
73
+ Pipeline Path candidate when any are true:
74
+ - Multiple independent features or a batch implementation request.
75
+ - Cross-module or multi-layer impact.
76
+ - New data model, API design, infrastructure, external service, or dependency ordering is likely.
77
+ - The user wants autonomous/background execution.
78
+ - The request needs `feature-planner` to clarify, split, validate, and review feature entries.
150
79
 
151
- **Simple feature work Fast Path candidate** (ALL must be true):
152
- - Single module, no cross-module architectural impact
153
- - ≤2 new files to create
154
- - No new external dependencies or infrastructure changes
155
- - Straightforward implementation (CRUD endpoint, utility, simple UI component, small workflow)
156
- - Clear acceptance criteria with existing patterns to follow
157
- - No dependency on other unbuilt features
80
+ ### Step 3: Ask for path selection
158
81
 
159
- **Complex or batch features Pipeline Path candidate** (ANY is true):
160
- - Multiple features or batch implementation request
161
- - Cross-module impact (>2 modules affected)
162
- - New infrastructure, dependencies, or architectural patterns required
163
- - Multiple interrelated features with dependency ordering
164
- - Data model or API design decisions needed
165
- - Requires integration with external services
82
+ Use `AskUserQuestion`; do not render path options as plain text.
166
83
 
167
- **User choice required (mandatory)** — Use `AskUserQuestion` to present interactive selectable options. Adjust the question framing to the assessment: for a simple feature, "This feature appears straightforward and can use the current-session Fast Path." For a complex or batch request, "This feature set is complex or batch-oriented and should use the Pipeline Path."
84
+ For existing-project feature work:
168
85
 
86
+ ```text
87
+ Question: How would you like to proceed?
88
+ Header: Approach
89
+ Options:
90
+ - Implement now (Fast Path) — current session/current workspace via /prizmkit-plan -> /prizmkit-implement -> review/retro/commit
91
+ - Use Pipeline Path — feature-planner creates/reviews feature-list.json, then feature-pipeline-launcher configures execution
92
+ - Continue clarifying — ask a few more route-level questions before choosing
169
93
  ```
170
- AskUserQuestion:
171
- question: "How would you like to proceed?"
172
- header: "Approach"
173
- options:
174
- - label: "Implement now (Fast Path — current session/current workspace)"
175
- description: "Run /prizmkit-plan → /prizmkit-implement → /prizmkit-code-review → /prizmkit-retrospective → /prizmkit-committer directly in this workspace"
176
- - label: "Use Pipeline Path (feature-planner → feature-pipeline-launcher)"
177
- description: "Generate .prizmkit/plans/feature-list.json with feature-planner, then launch autonomous execution with feature-pipeline-launcher"
178
- ```
179
-
180
- - **Implement now (Fast Path)**:
181
- 1. Invoke `/prizmkit-plan` with the requirements summary → generates `spec.md` + `plan.md`
182
- 2. Invoke `/prizmkit-implement` to execute the plan in the current workspace
183
- 3. Run `/prizmkit-code-review` for quality check
184
- 4. Run `/prizmkit-retrospective` to sync `.prizmkit/prizm-docs/`
185
- 5. Commit via `/prizmkit-committer` with `feat(<scope>):` prefix
186
- 6. End workflow — do not call `feature-planner`, do not call `feature-pipeline-launcher`, and do not enter monitoring
187
- - **Use Pipeline Path** → Continue to Phase 2 (Planner handoff)
188
-
189
- Never proceed without explicit user confirmation via `AskUserQuestion`. Do NOT render options as plain text — the user must be able to click/select.
190
-
191
- **CHECKPOINT CP-FW-0.5**: Approach selected by user (Fast Path or Pipeline Path).
192
-
193
- ---
194
94
 
195
- ## Phase 2: Plan — Pipeline Path Only
95
+ For greenfield app work:
196
96
 
197
- **Goal**: Generate structured `.prizmkit/plans/feature-list.json` from the clarified requirements.
198
-
199
- Run this phase only when the user selected Pipeline Path or provided a batch/complex request that they chose to send through the pipeline.
97
+ ```text
98
+ Question: This looks like app-level planning before feature decomposition. How would you like to proceed?
99
+ Header: App plan
100
+ Options:
101
+ - Start app-planner (Recommended) — capture vision, tech stack, conventions, architecture decisions, and project brief first
102
+ - Feature-plan anyway — continue only if the user confirms they already have app-level context
103
+ - Continue clarifying — resolve whether this is app planning or feature planning
104
+ ```
200
105
 
201
- **STEPS**:
106
+ For an auto-discovered existing feature list:
202
107
 
203
- 1. **Planner handoff — invoke `feature-planner`** with the full requirements summary from Phase 1:
204
- - Pass the structured requirements summary as input NOT the raw user conversation
205
- - For new projects: standard planning mode
206
- - For existing projects with `--incremental`: incremental planning mode
207
- - **Input**: Markdown requirements summary (feature descriptions, goals, constraints)
208
- - **Output**: `.prizmkit/plans/feature-list.json` (schema: `dev-pipeline-feature-list-v1`) containing `project_name`, `features[]` with id (F-NNN), title, description, priority, dependencies, acceptance_criteria, status
108
+ ```text
109
+ Question: Existing feature-list.json found. What should we do with it?
110
+ Header: Feature list
111
+ Options:
112
+ - Launch existing list hand off to feature-pipeline-launcher
113
+ - Inspect summary first show feature count/status, then ask again
114
+ - Update/re-plan — hand off to feature-planner in incremental mode
115
+ - Ignore and start fresh — continue route selection from the new request
116
+ ```
209
117
 
210
- 2. **Interactive planning** (if `feature-planner` requires clarification):
211
- - Because Phase 1 was thorough, `feature-planner` should need minimal clarification
212
- - If questions arise, answer from the Phase 1 context or pass through to user
118
+ If the user explicitly asked to run an existing list, that explicit request counts as path selection; hand off directly to `feature-pipeline-launcher`.
213
119
 
214
- 3. **Validate output**:
215
- - Confirm `.prizmkit/plans/feature-list.json` exists
216
- - Show summary: total features, complexity distribution, dependencies
120
+ ## Workflow Handoff Brief
217
121
 
218
- **CHECKPOINT CP-FW-1**: `.prizmkit/plans/feature-list.json` generated and validated.
122
+ When handing off, include this prompt brief in the next skill invocation. Do not write the brief to disk.
219
123
 
220
- **If user says `--from <file>`**: Skip Phase 1 and Phase 2 entirely and go to Phase 3.
124
+ ```markdown
125
+ ## Workflow Handoff Brief
221
126
 
222
- ---
127
+ ### Source
128
+ - workflow: feature-workflow
129
+ - selected_path: fast_path | pipeline_path | existing_list_launch | app_planning_first
223
130
 
224
- ## Phase 3: Launch — Pipeline Path Only
131
+ ### User Goal
132
+ - original_request: <preserve the user's wording>
133
+ - normalized_goal: <lightly normalized feature/app goal>
225
134
 
226
- **Goal**: Start the development pipeline after planner handoff has produced a validated feature list.
135
+ ### Scope
136
+ - included: <explicitly in scope>
137
+ - excluded: <explicitly out of scope or unknown>
227
138
 
228
- **STEPS**:
139
+ ### Materials
140
+ - provided_paths: <paths/directories supplied by the user>
141
+ - provided_docs_or_urls: <docs, links, screenshots, or specs supplied by the user>
142
+ - notes: <rules, constraints, or emphasis from the user>
229
143
 
230
- 1. **Show feature summary** before launching:
231
- ```
232
- Ready to launch Pipeline Path with N features:
233
- F-001: User authentication (high complexity)
234
- F-002: Task CRUD (medium complexity)
235
- F-003: Task categories (low complexity)
144
+ ### Decision
145
+ - route_reason: <why this path was selected>
146
+ - user_confirmed: yes
236
147
 
237
- Proceed? (Y/n)
238
- ```
148
+ ### Next Skill Instruction
149
+ - For planner: Use this brief as input; perform your own required clarification, validation, generation, and review gate.
150
+ - For Fast Path: Use this brief to create spec.md/plan.md and implement only this scope.
151
+ ```
239
152
 
240
- 2. **Launcher handoff — invoke `feature-pipeline-launcher`**:
241
- - **Input**: Path to validated `.prizmkit/plans/feature-list.json`
242
- - The launcher handles all prerequisite checks
243
- - The launcher presents execution mode choices to the user (foreground/background/manual)
244
- - The launcher asks whether to enable Critic Agent (adversarial review) — passes `--critic` flag if chosen
245
- - Do NOT duplicate execution mode or critic selection here — let the launcher handle it
246
- - **Output**: PID/status, log file path, execution mode selected
153
+ ## Selected Path Execution
247
154
 
248
- 3. **Verify launch success**:
249
- - Confirm pipeline is running
250
- - Record PID and log path for Phase 4
155
+ ### Greenfield app path
251
156
 
252
- **CHECKPOINT CP-FW-2**: Pipeline launched successfully.
157
+ 1. Invoke `app-planner` with the handoff brief.
158
+ 2. Let `app-planner` capture app-level context and produce its planning artifacts.
159
+ 3. After `app-planner` completes, ask whether the user wants to decompose the app into executable features.
160
+ 4. If yes, invoke `feature-planner` with the app-planner output and the original brief.
161
+ 5. When `feature-planner` finishes and the user entered through this workflow, continue to the Pipeline Launch handoff.
253
162
 
254
- ---
163
+ Do not generate `feature-list.json` inside this workflow; `feature-planner` owns that output.
255
164
 
256
- ## Phase 4: Monitor — Pipeline Path Only
165
+ ### Fast Path
257
166
 
258
- **Goal**: Track pipeline progress and report to user. Monitoring applies only after `feature-pipeline-launcher` has started a pipeline.
167
+ Use Fast Path only after explicit user selection.
259
168
 
260
- **STEPS**:
169
+ 1. Invoke `/prizmkit-plan` with the handoff brief.
170
+ 2. Invoke `/prizmkit-implement` after the plan is ready.
171
+ 3. Run `/prizmkit-code-review` as the quality gate.
172
+ 4. Run `/prizmkit-retrospective` for feature changes before commit.
173
+ 5. Run `/prizmkit-committer` with a `feat(<scope>):` message.
174
+ 6. End the workflow after commit; do not call `feature-planner`, `feature-pipeline-launcher`, or monitoring.
261
175
 
262
- 1. **Initial status check**:
263
- ```bash
264
- python3 ./.prizmkit/dev-pipeline/cli.py daemon feature status
265
- ```
176
+ If implementation scope grows beyond the Fast Path criteria, pause and ask whether to switch to Pipeline Path.
266
177
 
267
- 2. **Offer monitoring options**:
268
- - "I'll check progress periodically. Say 'status' anytime for an update."
269
- - "Say 'logs' to see recent activity."
270
- - "Say 'stop' to pause the pipeline."
178
+ ### Planner handoff — Pipeline Path
271
179
 
272
- 3. **Periodic progress reports** (when user asks):
273
- ```bash
274
- python3 ./.prizmkit/dev-pipeline/cli.py feature status .prizmkit/plans/feature-list.json
275
- ```
180
+ 1. Invoke `feature-planner` with the handoff brief.
181
+ 2. `feature-planner` performs deep clarification, decomposition, validation, and plan review.
182
+ 3. After `feature-planner` reports a validated `.prizmkit/plans/feature-list.json`, show a concise summary: item count, major dependencies, and review/validation outcome.
183
+ 4. Ask whether to proceed to launch.
184
+ 5. **Launcher handoff**: if yes, invoke `feature-pipeline-launcher`.
276
185
 
277
- 4. **Completion report** (when pipeline finishes all features):
278
- ```
279
- Pipeline completed: 3/3 features
186
+ Do not duplicate launcher execution-mode or configuration questions in this workflow; the launcher owns them.
280
187
 
281
- Summary:
282
- - F-001: User authentication → COMMITTED (feat: user auth)
283
- - F-002: Task CRUD → COMMITTED (feat: task crud)
284
- - F-003: Task categories → COMMITTED (feat: categories)
188
+ ### Existing list launch
285
189
 
286
- Next steps:
287
- - Review changes: git log --oneline -5
288
- - Run tests: npm test
289
- - Push when ready: git push
290
- ```
190
+ If the user explicitly requested launch/status/logs/retry/stop for an existing feature list, invoke `feature-pipeline-launcher` with the user's intent and list path.
291
191
 
292
- **CHECKPOINT CP-FW-3**: All features completed or user stopped pipeline.
192
+ If this workflow discovered the list on its own, use the `Existing feature-list.json found` question in §Route Selection before invoking the launcher.
293
193
 
294
- ---
194
+ ## Resume Guidance
295
195
 
296
- ## Resume Interruption Recovery
196
+ | State found | Action |
197
+ |---|---|
198
+ | Fast Path `spec.md` / `plan.md` exists | Ask whether to continue current-workspace implementation or re-plan |
199
+ | Valid `.prizmkit/plans/feature-list.json` exists and user wants execution | Invoke `feature-pipeline-launcher` |
200
+ | Valid feature list exists but intent is unclear | Ask launch / inspect / update |
201
+ | No plan/list artifacts | Start route selection |
297
202
 
298
- The workflow supports resuming by detecting existing state:
203
+ For interrupted autonomous pipeline sessions, prefer `feature-pipeline-launcher` status/retry operations or `recovery-workflow` when the user explicitly asks to recover a broken AI session.
299
204
 
300
- | State Found | Resume From |
301
- |-------------|-------------|
302
- | Fast Path `spec.md` + `plan.md` exist, code not committed | Resume `/prizmkit-implement` / review / retrospective / commit based on current state |
303
- | No `.prizmkit/plans/feature-list.json` and no Fast Path artifacts | Phase 1: Brainstorm |
304
- | `.prizmkit/plans/feature-list.json` exists, no pipeline state | Phase 3: Launch |
305
- | `.prizmkit/plans/feature-list.json` + pipeline state exists | Phase 4: Monitor (check status) |
306
- | All features completed | Report completion, suggest next steps |
205
+ ## Runtime Status Reference
307
206
 
308
- **Resume**: If `.prizmkit/plans/feature-list.json` exists, ask user: "Existing feature plan found with N features. Resume Pipeline Path or re-plan?" If Fast Path artifacts exist, ask whether to continue the current-workspace implementation or discard/re-plan.
207
+ This workflow does not assemble runtime commands, but it may show lightweight status before handoff or recovery. Use the canonical Python runtime forms:
309
208
 
310
- ---
311
-
312
- ## Interaction During Pipeline
313
-
314
- While the pipeline runs, the user can continue the conversation:
315
-
316
- | User says | Action |
317
- |-----------|--------|
318
- | "status" / "progress" | Show current progress |
319
- | "logs" | Show recent log activity |
320
- | "stop" | Stop the pipeline (state preserved) |
321
- | "show F-002 logs" | Show specific feature's session log |
209
+ ```bash
210
+ python3 ./.prizmkit/dev-pipeline/cli.py daemon feature status
211
+ python3 ./.prizmkit/dev-pipeline/cli.py feature status .prizmkit/plans/feature-list.json
212
+ ```
322
213
 
323
- ---
214
+ For start/stop/logs/retry execution, hand off to `feature-pipeline-launcher`; do not duplicate launcher configuration here.
324
215
 
325
216
  ## Error Handling
326
217
 
327
- | Error | Action |
328
- |-------|--------|
329
- | User's idea is too vague to brainstorm | Ask for more context: "Can you describe the main problem this solves?" |
330
- | Brainstorming stalls | Offer concrete options: "Would you prefer A or B?" |
331
- | Fast Path starts looking complex | Pause and ask whether to switch to Pipeline Path (`feature-planner` → `feature-pipeline-launcher`) |
332
- | `feature-planner` cannot parse requirements | Refine the requirements summary and retry |
333
- | `.prizmkit/plans/feature-list.json` generation failed | Show error, retry with refined input |
334
- | Pipeline launch failed | Show daemon log, suggest manual start with `python3 ./.prizmkit/dev-pipeline/cli.py feature run .prizmkit/plans/feature-list.json` or `python3 ./.prizmkit/dev-pipeline/cli.py daemon feature start .prizmkit/plans/feature-list.json` |
335
- | All features blocked/failed | Show status, suggest retrying specific features |
336
- | User wants to cancel mid-brainstorming | Save conversation context, offer to resume later |
337
-
338
- ---
218
+ | Situation | Action |
219
+ |---|---|
220
+ | Request is app-level, not feature-level | Route to `app-planner` |
221
+ | User wants planning only | Route to `feature-planner` and stop after planner summary |
222
+ | User wants execution only | Route to `feature-pipeline-launcher` |
223
+ | Fast Path becomes complex | Pause and ask whether to switch to Pipeline Path |
224
+ | Planner cannot proceed without more detail | Let `feature-planner` ask its own clarification questions |
225
+ | Launcher finds preflight/config issues | Let `feature-pipeline-launcher` handle config and confirmation |
339
226
 
340
- ## HANDOFF
227
+ ## Handoff Map
341
228
 
342
229
  | From | To | Condition |
343
- |------|----|-----------|
344
- | **this skill** | `/prizmkit-plan` | User selects Fast Path for simple feature work in the current workspace |
345
- | **this skill** | `/prizmkit-implement` | Fast Path plan is ready for current-session implementation |
346
- | **this skill** | `/prizmkit-code-review` | Fast Path implementation is complete and needs quality review |
347
- | **this skill** | `/prizmkit-retrospective` | Fast Path feature changes need `.prizmkit/prizm-docs/` sync before commit |
348
- | **this skill** | `/prizmkit-committer` | Fast Path feature changes are reviewed and docs are synced |
349
- | **this skill** | `feature-planner` | User selects Pipeline Path for complex or batch features |
350
- | `feature-planner` | `feature-pipeline-launcher` | Planner handoff produced validated `.prizmkit/plans/feature-list.json` |
351
- | `feature-pipeline-launcher` | **this skill** | Launcher handoff completed and monitoring/status follow-up is needed |
352
-
353
- ---
354
-
355
- ## Comparison with Alternative Workflows
356
-
357
- Read `${SKILL_DIR}/references/brainstorm-guide.md` §Comparison for the full comparison table (feature-workflow vs bug-fix-workflow vs refactor-workflow across 9 dimensions).
358
-
359
- ---
360
-
361
- ## Path References
362
-
363
- All internal asset paths use `${SKILL_DIR}` placeholder for cross-IDE compatibility.
230
+ |---|---|---|
231
+ | `feature-workflow` | `app-planner` | Greenfield or app-level planning is required |
232
+ | `feature-workflow` | `/prizmkit-plan` | User selects Fast Path |
233
+ | `feature-workflow` | `feature-planner` | User selects Pipeline Path |
234
+ | `feature-planner` | `feature-workflow` | Planner completed from workflow-origin Pipeline Path |
235
+ | `feature-workflow` | `feature-pipeline-launcher` | User confirms launch after planner completion or explicitly requests existing-list execution |
364
236
 
365
237
  ## Output
366
238
 
367
- Output depends on the selected path:
368
-
369
- - **Fast Path**: `spec.md` + `plan.md`, current-workspace code changes, `/prizmkit-code-review` result, updated `.prizmkit/prizm-docs/`, and one `feat(<scope>):` commit from `/prizmkit-committer`.
370
- - **Pipeline Path**: structured requirements summary, `.prizmkit/plans/feature-list.json`, pipeline execution via `feature-pipeline-launcher`, monitoring updates, and per-feature commits managed by the dev-pipeline.
239
+ - Fast Path: `spec.md`, `plan.md`, code changes, review result, Prizm docs sync, and one feature commit.
240
+ - Pipeline Path: handoff brief, validated `.prizmkit/plans/feature-list.json` from `feature-planner`, and pipeline launch/status handled by `feature-pipeline-launcher`.
241
+ - Greenfield path: app-level planning artifacts from `app-planner`, optionally followed by feature planning and launch.