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.
- package/bundled/VERSION.json +3 -3
- package/bundled/agents/prizm-dev-team-reviewer.md +12 -1
- package/bundled/dev-pipeline/prizmkit_runtime/interoperability.py +1 -0
- package/bundled/dev-pipeline/scripts/generate-bootstrap-prompt.py +19 -73
- package/bundled/dev-pipeline/scripts/generate-bugfix-prompt.py +283 -421
- package/bundled/dev-pipeline/scripts/generate-recovery-prompt.py +1 -1
- package/bundled/dev-pipeline/scripts/generate-refactor-prompt.py +259 -481
- package/bundled/dev-pipeline/scripts/init-bugfix-pipeline.py +34 -0
- package/bundled/dev-pipeline/scripts/init-pipeline.py +12 -0
- package/bundled/dev-pipeline/scripts/init-refactor-pipeline.py +24 -1
- package/bundled/dev-pipeline/scripts/prompt_framework.py +312 -0
- package/bundled/dev-pipeline/scripts/update-bug-status.py +87 -20
- package/bundled/dev-pipeline/scripts/update-feature-status.py +82 -16
- package/bundled/dev-pipeline/scripts/update-refactor-status.py +68 -28
- package/bundled/dev-pipeline/scripts/utils.py +171 -0
- package/bundled/dev-pipeline/templates/bootstrap-prompt.md +1 -1
- package/bundled/dev-pipeline/templates/bootstrap-tier2.md +10 -18
- package/bundled/dev-pipeline/templates/bootstrap-tier3.md +14 -25
- package/bundled/dev-pipeline/templates/bug-fix-list-schema.json +9 -1
- package/bundled/dev-pipeline/templates/bugfix-bootstrap-prompt.md +11 -8
- package/bundled/dev-pipeline/templates/refactor-bootstrap-prompt.md +122 -182
- package/bundled/dev-pipeline/templates/sections/bugfix-artifacts.md +16 -0
- package/bundled/dev-pipeline/templates/sections/bugfix-critical-paths.md +12 -0
- package/bundled/dev-pipeline/templates/sections/bugfix-mission.md +9 -0
- package/bundled/dev-pipeline/templates/sections/bugfix-phase-commit-report.md +31 -0
- package/bundled/dev-pipeline/templates/sections/bugfix-phase-critic.md +22 -0
- package/bundled/dev-pipeline/templates/sections/bugfix-phase-diagnose-plan.md +23 -0
- package/bundled/dev-pipeline/templates/sections/bugfix-phase-implement.md +20 -0
- package/bundled/dev-pipeline/templates/sections/bugfix-phase-init.md +9 -0
- package/bundled/dev-pipeline/templates/sections/bugfix-phase-manual-verification.md +15 -0
- package/bundled/dev-pipeline/templates/sections/bugfix-phase-review.md +29 -0
- package/bundled/dev-pipeline/templates/sections/bugfix-reminders.md +11 -0
- package/bundled/dev-pipeline/templates/sections/bugfix-session-context.md +7 -0
- package/bundled/dev-pipeline/templates/sections/bugfix-session-status.md +31 -0
- package/bundled/dev-pipeline/templates/sections/bugfix-task-contract.md +40 -0
- package/bundled/dev-pipeline/templates/sections/failure-capture.md +2 -2
- package/bundled/dev-pipeline/templates/sections/phase-browser-verification-auto.md +1 -1
- package/bundled/dev-pipeline/templates/sections/refactor-artifacts.md +17 -0
- package/bundled/dev-pipeline/templates/sections/refactor-critical-paths.md +13 -0
- package/bundled/dev-pipeline/templates/sections/refactor-mission.md +9 -0
- package/bundled/dev-pipeline/templates/sections/refactor-phase-commit-report.md +37 -0
- package/bundled/dev-pipeline/templates/sections/refactor-phase-critic.md +22 -0
- package/bundled/dev-pipeline/templates/sections/refactor-phase-implement.md +16 -0
- package/bundled/dev-pipeline/templates/sections/refactor-phase-init.md +9 -0
- package/bundled/dev-pipeline/templates/sections/refactor-phase-plan.md +22 -0
- package/bundled/dev-pipeline/templates/sections/refactor-phase-review.md +19 -0
- package/bundled/dev-pipeline/templates/sections/refactor-reminders.md +11 -0
- package/bundled/dev-pipeline/templates/sections/refactor-session-context.md +7 -0
- package/bundled/dev-pipeline/templates/sections/refactor-session-status.md +28 -0
- package/bundled/dev-pipeline/templates/sections/refactor-task-contract.md +52 -0
- package/bundled/dev-pipeline/tests/test_generate_bootstrap_prompt.py +17 -5
- package/bundled/dev-pipeline/tests/test_python_runner_parity.py +197 -0
- package/bundled/dev-pipeline/tests/test_unified_cli.py +6 -2
- package/bundled/dev-pipeline/tests/test_utils.py +66 -1
- package/bundled/skills/_metadata.json +1 -1
- package/bundled/skills/app-planner/SKILL.md +8 -7
- package/bundled/skills/app-planner/references/project-brief-guide.md +2 -2
- package/bundled/skills/app-planner/references/rules/backend/derivation-rules.md +1 -1
- package/bundled/skills/app-planner/references/rules/frontend/derivation-rules.md +1 -1
- package/bundled/skills/app-planner/references/rules-configuration.md +53 -26
- package/bundled/skills/bug-fix-workflow/SKILL.md +191 -336
- package/bundled/skills/bug-planner/SKILL.md +6 -5
- package/bundled/skills/bug-planner/references/critic-and-verification.md +3 -3
- package/bundled/skills/bug-planner/references/schema-validation.md +2 -1
- package/bundled/skills/bug-planner/scripts/validate-bug-list.py +30 -1
- package/bundled/skills/bugfix-pipeline-launcher/SKILL.md +16 -16
- package/bundled/skills/bugfix-pipeline-launcher/references/configuration.md +2 -2
- package/bundled/skills/feature-pipeline-launcher/SKILL.md +19 -11
- package/bundled/skills/feature-planner/SKILL.md +9 -11
- package/bundled/skills/feature-planner/assets/planning-guide.md +1 -1
- package/bundled/skills/feature-planner/references/decomposition-patterns.md +1 -1
- package/bundled/skills/feature-planner/references/error-recovery.md +2 -1
- package/bundled/skills/feature-planner/references/incremental-feature-planning.md +2 -2
- package/bundled/skills/feature-planner/references/new-project-planning.md +35 -39
- package/bundled/skills/feature-planner/scripts/validate-and-generate.py +1 -1
- package/bundled/skills/feature-workflow/SKILL.md +169 -298
- package/bundled/skills/prizmkit/SKILL.md +103 -57
- package/bundled/skills/prizmkit-code-review/SKILL.md +97 -116
- package/bundled/skills/prizmkit-code-review/references/review-report-template.md +1 -0
- package/bundled/skills/prizmkit-code-review/references/reviewer-agent-prompt.md +12 -1
- package/bundled/skills/prizmkit-committer/SKILL.md +59 -47
- package/bundled/skills/prizmkit-deploy/SKILL.md +162 -381
- package/bundled/skills/prizmkit-deploy/references/ssh-adapter-flow.md +220 -0
- package/bundled/skills/prizmkit-implement/SKILL.md +51 -40
- package/bundled/skills/prizmkit-init/SKILL.md +4 -3
- package/bundled/skills/prizmkit-plan/SKILL.md +85 -70
- package/bundled/skills/prizmkit-prizm-docs/SKILL.md +94 -73
- package/bundled/skills/prizmkit-prizm-docs/assets/prizm-docs-format.md +20 -18
- package/bundled/skills/prizmkit-prizm-docs/references/op-update.md +18 -14
- package/bundled/skills/prizmkit-retrospective/SKILL.md +56 -48
- package/bundled/skills/prizmkit-retrospective/references/structural-sync-steps.md +79 -27
- package/bundled/skills/prizmkit-test/SKILL.md +138 -141
- package/bundled/skills/prizmkit-test/references/examples.md +10 -8
- package/bundled/skills/prizmkit-test/references/test-generation-steps.md +1 -1
- package/bundled/skills/prizmkit-test/references/test-report-template.md +2 -2
- package/bundled/skills/recovery-workflow/SKILL.md +195 -256
- package/bundled/skills/recovery-workflow/evals/evals.json +21 -13
- package/bundled/skills/recovery-workflow/references/detection.md +48 -39
- package/bundled/skills/recovery-workflow/scripts/detect-recovery-state.py +258 -322
- package/bundled/skills/refactor-pipeline-launcher/SKILL.md +29 -11
- package/bundled/skills/refactor-planner/SKILL.md +2 -2
- package/bundled/skills/refactor-planner/references/behavior-preservation.md +24 -19
- package/bundled/skills/refactor-planner/references/fast-path.md +2 -4
- package/bundled/skills/refactor-planner/references/planning-phases.md +2 -2
- package/bundled/skills/refactor-workflow/SKILL.md +173 -307
- package/package.json +1 -1
- package/src/scaffold.js +5 -0
- package/bundled/dev-pipeline/templates/agent-prompts/reviewer-review.md +0 -6
- package/bundled/skills/feature-workflow/references/brainstorm-guide.md +0 -137
- package/bundled/skills/refactor-workflow/references/brainstorm-guide.md +0 -116
|
@@ -1,370 +1,241 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: "feature-workflow"
|
|
3
|
-
description: "
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
-
|
|
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
|
-
|
|
119
|
-
|
|
120
|
-
### Step 1.3: Parallel Deep Reading
|
|
24
|
+
## When to Use
|
|
121
25
|
|
|
122
|
-
|
|
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
|
-
|
|
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
|
-
|
|
40
|
+
## Route Overview
|
|
127
41
|
|
|
128
|
-
|
|
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
|
-
|
|
50
|
+
## Route Selection
|
|
131
51
|
|
|
132
|
-
1
|
|
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
|
-
|
|
54
|
+
Classify the user's request before asking detailed feature questions:
|
|
138
55
|
|
|
139
|
-
|
|
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
|
-
|
|
61
|
+
If the request is unclear, ask one concise clarification question before route selection.
|
|
142
62
|
|
|
143
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
95
|
+
For greenfield app work:
|
|
196
96
|
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
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
|
-
|
|
106
|
+
For an auto-discovered existing feature list:
|
|
202
107
|
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
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
|
-
|
|
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
|
-
|
|
215
|
-
- Confirm `.prizmkit/plans/feature-list.json` exists
|
|
216
|
-
- Show summary: total features, complexity distribution, dependencies
|
|
120
|
+
## Workflow Handoff Brief
|
|
217
121
|
|
|
218
|
-
|
|
122
|
+
When handing off, include this prompt brief in the next skill invocation. Do not write the brief to disk.
|
|
219
123
|
|
|
220
|
-
|
|
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
|
-
|
|
131
|
+
### User Goal
|
|
132
|
+
- original_request: <preserve the user's wording>
|
|
133
|
+
- normalized_goal: <lightly normalized feature/app goal>
|
|
225
134
|
|
|
226
|
-
|
|
135
|
+
### Scope
|
|
136
|
+
- included: <explicitly in scope>
|
|
137
|
+
- excluded: <explicitly out of scope or unknown>
|
|
227
138
|
|
|
228
|
-
|
|
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
|
-
|
|
231
|
-
|
|
232
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
249
|
-
- Confirm pipeline is running
|
|
250
|
-
- Record PID and log path for Phase 4
|
|
155
|
+
### Greenfield app path
|
|
251
156
|
|
|
252
|
-
|
|
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
|
-
|
|
165
|
+
### Fast Path
|
|
257
166
|
|
|
258
|
-
|
|
167
|
+
Use Fast Path only after explicit user selection.
|
|
259
168
|
|
|
260
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
273
|
-
|
|
274
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
|
328
|
-
|
|
329
|
-
|
|
|
330
|
-
|
|
|
331
|
-
|
|
|
332
|
-
|
|
|
333
|
-
|
|
|
334
|
-
|
|
|
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
|
-
##
|
|
227
|
+
## Handoff Map
|
|
341
228
|
|
|
342
229
|
| From | To | Condition |
|
|
343
|
-
|
|
344
|
-
|
|
|
345
|
-
|
|
|
346
|
-
|
|
|
347
|
-
|
|
|
348
|
-
|
|
|
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
|
-
|
|
368
|
-
|
|
369
|
-
-
|
|
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.
|