prizmkit 1.1.57 → 1.1.60
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/bin/create-prizmkit.js +8 -6
- package/bundled/VERSION.json +3 -3
- package/bundled/adapters/codex/agent-adapter.js +38 -0
- package/bundled/adapters/codex/paths.js +27 -0
- package/bundled/adapters/codex/rules-adapter.js +30 -0
- package/bundled/adapters/codex/settings-adapter.js +27 -0
- package/bundled/adapters/codex/skill-adapter.js +65 -0
- package/bundled/adapters/codex/team-adapter.js +37 -0
- package/bundled/dev-pipeline/.env.example +2 -1
- package/bundled/dev-pipeline/README.md +10 -7
- package/bundled/dev-pipeline/lib/common.sh +278 -37
- package/bundled/dev-pipeline/run-bugfix.sh +10 -61
- package/bundled/dev-pipeline/run-feature.sh +10 -78
- package/bundled/dev-pipeline/run-recovery.sh +10 -46
- package/bundled/dev-pipeline/run-refactor.sh +10 -61
- package/bundled/dev-pipeline/scripts/generate-bootstrap-prompt.py +17 -7
- package/bundled/dev-pipeline/scripts/generate-bugfix-prompt.py +9 -3
- package/bundled/dev-pipeline/scripts/generate-refactor-prompt.py +9 -3
- package/bundled/dev-pipeline/scripts/utils.py +6 -4
- package/bundled/dev-pipeline-windows/.env.example +28 -0
- package/bundled/dev-pipeline-windows/README.md +30 -0
- package/bundled/dev-pipeline-windows/SCHEMA_ANALYSIS.md +525 -0
- package/bundled/dev-pipeline-windows/assets/feature-list-example.json +146 -0
- package/bundled/dev-pipeline-windows/assets/prizm-dev-team-integration.md +138 -0
- package/bundled/dev-pipeline-windows/launch-bugfix-daemon.ps1 +9 -0
- package/bundled/dev-pipeline-windows/launch-feature-daemon.ps1 +9 -0
- package/bundled/dev-pipeline-windows/launch-refactor-daemon.ps1 +9 -0
- package/bundled/dev-pipeline-windows/lib/common.ps1 +432 -0
- package/bundled/dev-pipeline-windows/lib/daemon.ps1 +140 -0
- package/bundled/dev-pipeline-windows/lib/pipeline.ps1 +446 -0
- package/bundled/dev-pipeline-windows/lib/reset.ps1 +87 -0
- package/bundled/dev-pipeline-windows/reset-bug.ps1 +9 -0
- package/bundled/dev-pipeline-windows/reset-feature.ps1 +9 -0
- package/bundled/dev-pipeline-windows/reset-refactor.ps1 +9 -0
- package/bundled/dev-pipeline-windows/run-bugfix.ps1 +9 -0
- package/bundled/dev-pipeline-windows/run-feature.ps1 +9 -0
- package/bundled/dev-pipeline-windows/run-recovery.ps1 +76 -0
- package/bundled/dev-pipeline-windows/run-refactor.ps1 +9 -0
- package/bundled/dev-pipeline-windows/scripts/check-session-status.py +228 -0
- package/bundled/dev-pipeline-windows/scripts/cleanup-logs.py +192 -0
- package/bundled/dev-pipeline-windows/scripts/detect-stuck.py +530 -0
- package/bundled/dev-pipeline-windows/scripts/generate-bootstrap-prompt.py +1737 -0
- package/bundled/dev-pipeline-windows/scripts/generate-bugfix-prompt.py +685 -0
- package/bundled/dev-pipeline-windows/scripts/generate-recovery-prompt.py +805 -0
- package/bundled/dev-pipeline-windows/scripts/generate-refactor-prompt.py +763 -0
- package/bundled/dev-pipeline-windows/scripts/init-bugfix-pipeline.py +316 -0
- package/bundled/dev-pipeline-windows/scripts/init-dev-team.py +134 -0
- package/bundled/dev-pipeline-windows/scripts/init-pipeline.py +380 -0
- package/bundled/dev-pipeline-windows/scripts/init-refactor-pipeline.py +399 -0
- package/bundled/dev-pipeline-windows/scripts/parse-stream-progress.py +388 -0
- package/bundled/dev-pipeline-windows/scripts/patch-completion-notes.py +191 -0
- package/bundled/dev-pipeline-windows/scripts/update-bug-status.py +864 -0
- package/bundled/dev-pipeline-windows/scripts/update-checkpoint.py +173 -0
- package/bundled/dev-pipeline-windows/scripts/update-feature-status.py +1501 -0
- package/bundled/dev-pipeline-windows/scripts/update-refactor-status.py +1073 -0
- package/bundled/dev-pipeline-windows/scripts/utils.py +542 -0
- package/bundled/dev-pipeline-windows/templates/agent-prompts/critic-plan-challenge.md +7 -0
- package/bundled/dev-pipeline-windows/templates/agent-prompts/dev-fix.md +7 -0
- package/bundled/dev-pipeline-windows/templates/agent-prompts/dev-implement.md +30 -0
- package/bundled/dev-pipeline-windows/templates/agent-prompts/dev-resume.md +5 -0
- package/bundled/dev-pipeline-windows/templates/agent-prompts/reviewer-review.md +7 -0
- package/bundled/dev-pipeline-windows/templates/bootstrap-prompt.md +46 -0
- package/bundled/dev-pipeline-windows/templates/bootstrap-tier1.md +43 -0
- package/bundled/dev-pipeline-windows/templates/bootstrap-tier2.md +43 -0
- package/bundled/dev-pipeline-windows/templates/bootstrap-tier3.md +43 -0
- package/bundled/dev-pipeline-windows/templates/bug-fix-list-schema.json +263 -0
- package/bundled/dev-pipeline-windows/templates/bugfix-bootstrap-prompt.md +320 -0
- package/bundled/dev-pipeline-windows/templates/feature-list-schema.json +237 -0
- package/bundled/dev-pipeline-windows/templates/refactor-bootstrap-prompt.md +331 -0
- package/bundled/dev-pipeline-windows/templates/refactor-list-schema.json +270 -0
- package/bundled/dev-pipeline-windows/templates/sections/ac-verification-checklist.md +13 -0
- package/bundled/dev-pipeline-windows/templates/sections/checkpoint-system.md +91 -0
- package/bundled/dev-pipeline-windows/templates/sections/context-budget-rules.md +33 -0
- package/bundled/dev-pipeline-windows/templates/sections/critical-paths-agent.md +10 -0
- package/bundled/dev-pipeline-windows/templates/sections/critical-paths-full.md +12 -0
- package/bundled/dev-pipeline-windows/templates/sections/critical-paths-lite.md +7 -0
- package/bundled/dev-pipeline-windows/templates/sections/directory-convention-agent.md +8 -0
- package/bundled/dev-pipeline-windows/templates/sections/directory-convention-full.md +9 -0
- package/bundled/dev-pipeline-windows/templates/sections/directory-convention-lite.md +6 -0
- package/bundled/dev-pipeline-windows/templates/sections/failure-capture.md +21 -0
- package/bundled/dev-pipeline-windows/templates/sections/feature-context.md +31 -0
- package/bundled/dev-pipeline-windows/templates/sections/phase-browser-verification-auto.md +72 -0
- package/bundled/dev-pipeline-windows/templates/sections/phase-browser-verification-opencli.md +63 -0
- package/bundled/dev-pipeline-windows/templates/sections/phase-browser-verification.md +62 -0
- package/bundled/dev-pipeline-windows/templates/sections/phase-commit-full.md +71 -0
- package/bundled/dev-pipeline-windows/templates/sections/phase-commit.md +64 -0
- package/bundled/dev-pipeline-windows/templates/sections/phase-context-snapshot-agent-suffix.md +23 -0
- package/bundled/dev-pipeline-windows/templates/sections/phase-context-snapshot-base.md +24 -0
- package/bundled/dev-pipeline-windows/templates/sections/phase-context-snapshot-lite-suffix.md +12 -0
- package/bundled/dev-pipeline-windows/templates/sections/phase-critic-plan-full.md +53 -0
- package/bundled/dev-pipeline-windows/templates/sections/phase-critic-plan.md +32 -0
- package/bundled/dev-pipeline-windows/templates/sections/phase-implement-agent.md +37 -0
- package/bundled/dev-pipeline-windows/templates/sections/phase-implement-full.md +50 -0
- package/bundled/dev-pipeline-windows/templates/sections/phase-implement-lite.md +52 -0
- package/bundled/dev-pipeline-windows/templates/sections/phase-plan-agent.md +27 -0
- package/bundled/dev-pipeline-windows/templates/sections/phase-plan-lite.md +27 -0
- package/bundled/dev-pipeline-windows/templates/sections/phase-review-agent.md +27 -0
- package/bundled/dev-pipeline-windows/templates/sections/phase-review-full.md +29 -0
- package/bundled/dev-pipeline-windows/templates/sections/phase-specify-plan-full.md +77 -0
- package/bundled/dev-pipeline-windows/templates/sections/phase0-init.md +13 -0
- package/bundled/dev-pipeline-windows/templates/sections/phase0-test-baseline.md +23 -0
- package/bundled/dev-pipeline-windows/templates/sections/session-context.md +5 -0
- package/bundled/dev-pipeline-windows/templates/sections/subagent-timeout-recovery.md +6 -0
- package/bundled/dev-pipeline-windows/templates/sections/test-failure-recovery-agent.md +67 -0
- package/bundled/dev-pipeline-windows/templates/sections/test-failure-recovery-lite.md +58 -0
- package/bundled/dev-pipeline-windows/templates/session-status-schema.json +83 -0
- package/bundled/skills/_metadata.json +1 -1
- package/bundled/skills/app-planner/SKILL.md +26 -18
- package/bundled/skills/app-planner/references/architecture-decisions.md +9 -5
- package/bundled/skills/app-planner/references/frontend-design-guide.md +1 -1
- package/bundled/skills/feature-planner/SKILL.md +9 -2
- package/bundled/skills/prizmkit-init/SKILL.md +7 -6
- package/bundled/skills/recovery-workflow/scripts/detect-recovery-state.py +2 -0
- package/bundled/skills-windows/app-planner/SKILL.md +639 -0
- package/bundled/skills-windows/app-planner/assets/app-design-guide.md +101 -0
- package/bundled/skills-windows/app-planner/references/architecture-decisions.md +52 -0
- package/bundled/skills-windows/app-planner/references/brainstorm-guide.md +101 -0
- package/bundled/skills-windows/app-planner/references/frontend-design-guide.md +71 -0
- package/bundled/skills-windows/app-planner/references/project-brief-guide.md +82 -0
- package/bundled/skills-windows/app-planner/references/red-team-checklist.md +40 -0
- package/bundled/skills-windows/app-planner/references/rules/backend/derivation-rules.md +609 -0
- package/bundled/skills-windows/app-planner/references/rules/backend/fixed-rules.md +285 -0
- package/bundled/skills-windows/app-planner/references/rules/backend/question-bank.md +249 -0
- package/bundled/skills-windows/app-planner/references/rules/backend/template.md +173 -0
- package/bundled/skills-windows/app-planner/references/rules/database/derivation-rules.md +373 -0
- package/bundled/skills-windows/app-planner/references/rules/database/fixed-rules.md +211 -0
- package/bundled/skills-windows/app-planner/references/rules/database/question-bank.md +184 -0
- package/bundled/skills-windows/app-planner/references/rules/database/template.md +158 -0
- package/bundled/skills-windows/app-planner/references/rules/frontend/derivation-rules.md +810 -0
- package/bundled/skills-windows/app-planner/references/rules/frontend/fixed-rules.md +188 -0
- package/bundled/skills-windows/app-planner/references/rules/frontend/question-bank.md +302 -0
- package/bundled/skills-windows/app-planner/references/rules/frontend/template.md +320 -0
- package/bundled/skills-windows/app-planner/references/rules/mobile/derivation-rules.md +639 -0
- package/bundled/skills-windows/app-planner/references/rules/mobile/fixed-rules.md +290 -0
- package/bundled/skills-windows/app-planner/references/rules/mobile/question-bank.md +232 -0
- package/bundled/skills-windows/app-planner/references/rules/mobile/template.md +175 -0
- package/bundled/skills-windows/bug-fix-workflow/SKILL.md +415 -0
- package/bundled/skills-windows/bug-planner/SKILL.md +395 -0
- package/bundled/skills-windows/bug-planner/assets/bug-confirmation-template.md +43 -0
- package/bundled/skills-windows/bug-planner/references/critic-and-verification.md +44 -0
- package/bundled/skills-windows/bug-planner/references/error-recovery.md +73 -0
- package/bundled/skills-windows/bug-planner/references/input-formats.md +53 -0
- package/bundled/skills-windows/bug-planner/references/schema-validation.md +25 -0
- package/bundled/skills-windows/bug-planner/references/severity-rules.md +16 -0
- package/bundled/skills-windows/bug-planner/scripts/validate-bug-list.py +322 -0
- package/bundled/skills-windows/bugfix-pipeline-launcher/SKILL.md +380 -0
- package/bundled/skills-windows/feature-pipeline-launcher/SKILL.md +441 -0
- package/bundled/skills-windows/feature-pipeline-launcher/scripts/preflight-check.py +462 -0
- package/bundled/skills-windows/feature-planner/SKILL.md +401 -0
- package/bundled/skills-windows/feature-planner/assets/evaluation-guide.md +64 -0
- package/bundled/skills-windows/feature-planner/assets/planning-guide.md +214 -0
- package/bundled/skills-windows/feature-planner/references/browser-interaction.md +59 -0
- package/bundled/skills-windows/feature-planner/references/completeness-review.md +57 -0
- package/bundled/skills-windows/feature-planner/references/decomposition-patterns.md +75 -0
- package/bundled/skills-windows/feature-planner/references/error-recovery.md +90 -0
- package/bundled/skills-windows/feature-planner/references/incremental-feature-planning.md +112 -0
- package/bundled/skills-windows/feature-planner/references/new-project-planning.md +85 -0
- package/bundled/skills-windows/feature-planner/scripts/validate-and-generate.py +1029 -0
- package/bundled/skills-windows/feature-workflow/SKILL.md +531 -0
- package/bundled/skills-windows/prizmkit-init/SKILL.md +356 -0
- package/bundled/skills-windows/prizmkit-init/assets/project-brief-template.md +82 -0
- package/bundled/skills-windows/prizmkit-init/references/config-schema.md +68 -0
- package/bundled/skills-windows/prizmkit-init/references/rules/layer-detection.md +41 -0
- package/bundled/skills-windows/prizmkit-init/references/tech-stack-catalog.md +13 -0
- package/bundled/skills-windows/prizmkit-init/references/update-supplement.md +9 -0
- package/bundled/skills-windows/recovery-workflow/SKILL.md +456 -0
- package/bundled/skills-windows/recovery-workflow/evals/evals.json +46 -0
- package/bundled/skills-windows/recovery-workflow/scripts/detect-recovery-state.py +544 -0
- package/bundled/skills-windows/refactor-pipeline-launcher/SKILL.md +406 -0
- package/bundled/skills-windows/refactor-planner/SKILL.md +540 -0
- package/bundled/skills-windows/refactor-planner/assets/planning-guide.md +292 -0
- package/bundled/skills-windows/refactor-planner/references/behavior-preservation.md +301 -0
- package/bundled/skills-windows/refactor-planner/references/refactor-scoping-guide.md +221 -0
- package/bundled/skills-windows/refactor-planner/scripts/validate-and-generate-refactor.py +858 -0
- package/bundled/skills-windows/refactor-workflow/SKILL.md +503 -0
- package/package.json +3 -2
- package/src/clean.js +73 -2
- package/src/config.js +159 -50
- package/src/detect-platform.js +16 -8
- package/src/external-skills.js +26 -19
- package/src/index.js +31 -9
- package/src/manifest.js +6 -2
- package/src/metadata.js +43 -5
- package/src/platforms.js +36 -0
- package/src/prompts.js +31 -6
- package/src/runtimes.js +20 -0
- package/src/scaffold.js +314 -110
- package/src/upgrade.js +81 -41
|
@@ -0,0 +1,531 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: "feature-workflow"
|
|
3
|
+
description: "One-stop entry point for feature development. Brainstorms requirements with the user until fully clarified, then orchestrates feature-planner → feature-pipeline-launcher → execution. Handles multi-feature batch development from a single request. Use this skill whenever the user wants to build an app, develop multiple features at once, or go from idea to running code in one step. 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', 'batch implement'."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Feature Workflow
|
|
7
|
+
|
|
8
|
+
One-stop entry point for feature development. Covers the complete journey from a vague idea to running code: deep requirement brainstorming → structured planning → autonomous pipeline execution.
|
|
9
|
+
|
|
10
|
+
## When to Use
|
|
11
|
+
|
|
12
|
+
User says:
|
|
13
|
+
- "Build a new application", "Build XXX system", "Create a project"
|
|
14
|
+
- "One-click complete these features", "Batch implement these requirements"
|
|
15
|
+
- "Build a task management App from scratch"
|
|
16
|
+
- "Help me implement user login, registration, and avatar upload features"
|
|
17
|
+
- After receiving a batch of related feature requests
|
|
18
|
+
|
|
19
|
+
**Do NOT use this skill when:**
|
|
20
|
+
- User only wants to plan features (use `feature-planner` directly)
|
|
21
|
+
- User only wants to launch pipeline for existing .prizmkit/plans/feature-list.json (use `feature-pipeline-launcher`)
|
|
22
|
+
- User wants to fix bugs (use `bug-planner` + `bugfix-pipeline-launcher`)
|
|
23
|
+
- User wants to refactor code (use `refactor-workflow`)
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
## Overview
|
|
28
|
+
|
|
29
|
+
```
|
|
30
|
+
feature-workflow <idea / requirements>
|
|
31
|
+
│
|
|
32
|
+
├── Phase 1: Brainstorm → collect materials → parallel deep read → discuss requirements
|
|
33
|
+
│
|
|
34
|
+
├── Phase 2: Plan → feature-planner → .prizmkit/plans/feature-list.json
|
|
35
|
+
│
|
|
36
|
+
├── Phase 3: Launch → feature-pipeline-launcher → pipeline execution
|
|
37
|
+
│
|
|
38
|
+
└── Phase 4: Monitor → track progress → report results
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
### What This Skill Does
|
|
42
|
+
|
|
43
|
+
| Phase | Action | Result |
|
|
44
|
+
|-------|--------|--------|
|
|
45
|
+
| 1 | **Brainstorm** — collect reference materials, parallel deep read code & docs, discuss requirements grounded in real context | Fully clarified requirements document |
|
|
46
|
+
| 2 | Call `feature-planner` with clarified requirements | `.prizmkit/plans/feature-list.json` with N features |
|
|
47
|
+
| 3 | Call `feature-pipeline-launcher` | Pipeline started (execution mode chosen by user via launcher) |
|
|
48
|
+
| 4 | Monitor progress | Status updates, completion report |
|
|
49
|
+
|
|
50
|
+
### Why This Skill Exists
|
|
51
|
+
|
|
52
|
+
Without this skill, users must:
|
|
53
|
+
1. Figure out all requirements themselves
|
|
54
|
+
2. Invoke `feature-planner` → wait for .prizmkit/plans/feature-list.json
|
|
55
|
+
3. Invoke `feature-pipeline-launcher` → wait for pipeline start
|
|
56
|
+
4. Manually check progress
|
|
57
|
+
|
|
58
|
+
With this skill, users can:
|
|
59
|
+
1. Say "Build a task management App" with a rough idea
|
|
60
|
+
2. The skill brainstorms to fill in all gaps
|
|
61
|
+
3. All planning + execution happens automatically
|
|
62
|
+
|
|
63
|
+
### Branch Management
|
|
64
|
+
|
|
65
|
+
The dev-pipeline handles branch management per-feature automatically:
|
|
66
|
+
- Each feature is implemented on its own branch by the pipeline
|
|
67
|
+
- Branches are created, committed, and managed by the pipeline session
|
|
68
|
+
- This workflow does NOT create a top-level branch — the pipeline manages granular per-feature branches
|
|
69
|
+
|
|
70
|
+
---
|
|
71
|
+
|
|
72
|
+
## Input Modes
|
|
73
|
+
|
|
74
|
+
**Mode A: From natural language requirements** (default)
|
|
75
|
+
|
|
76
|
+
Natural language description of the project or features. Can be:
|
|
77
|
+
- A project vision: "Build a task management App with user login, task CRUD, and task categories"
|
|
78
|
+
- A batch of features: "Implement user registration, login, and password recovery features"
|
|
79
|
+
- An incremental request: "Add user avatar upload and nickname modification to the existing system"
|
|
80
|
+
|
|
81
|
+
Flow: brainstorm → feature-planner → feature-pipeline-launcher → monitor
|
|
82
|
+
|
|
83
|
+
**Mode B: From existing .prizmkit/plans/feature-list.json**
|
|
84
|
+
|
|
85
|
+
When user says "run pipeline from existing file" or .prizmkit/plans/feature-list.json already exists:
|
|
86
|
+
- Skip brainstorm and `feature-planner` (file already exists)
|
|
87
|
+
- Invoke `feature-pipeline-launcher` directly
|
|
88
|
+
- Monitor and report progress
|
|
89
|
+
|
|
90
|
+
**Mode C: Incremental (add to existing project)**
|
|
91
|
+
|
|
92
|
+
When user says "add features to existing project" or the project already has features:
|
|
93
|
+
- Brainstorm new feature requirements with the user
|
|
94
|
+
- Invoke `feature-planner` in incremental mode (reads existing .prizmkit/plans/feature-list.json)
|
|
95
|
+
- Append new features to existing list
|
|
96
|
+
- Invoke `feature-pipeline-launcher`
|
|
97
|
+
- Monitor and report progress
|
|
98
|
+
|
|
99
|
+
---
|
|
100
|
+
|
|
101
|
+
## Phase 1: Brainstorm — Deep Requirement Clarification
|
|
102
|
+
|
|
103
|
+
**Goal**: Through interactive Q&A and deep context reading, transform the user's rough idea into fully clarified, implementation-ready requirements. This phase is the foundation for high-quality code generation — vague requirements produce vague code.
|
|
104
|
+
|
|
105
|
+
**CRITICAL RULE**: The number of questions is **unlimited**. Do NOT rush through this phase. Ask as many rounds as needed until every aspect is clear. The framework strives for perfect code generation, which requires perfect understanding of requirements.
|
|
106
|
+
|
|
107
|
+
### Step 1.1: Understand the User's Vision
|
|
108
|
+
|
|
109
|
+
Ask the user to describe what they want to build. Listen for:
|
|
110
|
+
- **What** the system/feature does (core functionality)
|
|
111
|
+
- **Who** uses it (user roles, personas)
|
|
112
|
+
- **Why** it's needed (business value, problem being solved)
|
|
113
|
+
|
|
114
|
+
### Step 1.2: Collect Reference Materials
|
|
115
|
+
|
|
116
|
+
**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:
|
|
117
|
+
1. Acknowledge what was received: "I received the following materials: [list]"
|
|
118
|
+
2. Read/fetch all provided materials immediately
|
|
119
|
+
3. You MUST still ask: "Are there any additional materials you'd like to provide?"
|
|
120
|
+
4. NEVER skip this collection step just because the user already provided some materials
|
|
121
|
+
|
|
122
|
+
**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.
|
|
123
|
+
|
|
124
|
+
Ask:
|
|
125
|
+
1. **Existing code** — "Is there existing code I should look at? Which files or directories are relevant?"
|
|
126
|
+
2. **Design documents** — "Do you have any design docs, wireframes, API specs, or PRDs I should read?"
|
|
127
|
+
3. **Knowledge docs** — "Are there related `.prizmkit/prizm-docs/`, README files, or internal wiki pages?"
|
|
128
|
+
4. **Reference projects** — "Any reference implementations or similar projects I should look at for inspiration?"
|
|
129
|
+
|
|
130
|
+
Record everything the user provides — these become inputs for Step 1.3.
|
|
131
|
+
|
|
132
|
+
### Step 1.3: Parallel Deep Reading
|
|
133
|
+
|
|
134
|
+
**Goal**: Build comprehensive understanding of the project context before discussing detailed requirements. Spawn multiple agents in parallel to read all relevant materials simultaneously.
|
|
135
|
+
|
|
136
|
+
**Parallel reading tasks** (launch concurrently):
|
|
137
|
+
|
|
138
|
+
| Agent | What to read | Purpose |
|
|
139
|
+
|-------|-------------|---------|
|
|
140
|
+
| Agent A | User-provided code paths — read existing source files | Understand current architecture, patterns, conventions |
|
|
141
|
+
| Agent B | User-provided documents — design docs, specs, PRDs | Understand intended requirements and constraints |
|
|
142
|
+
| Agent C | `.prizmkit/prizm-docs/` — root.prizm, L1/L2 docs, TRAPS, RULES | Understand existing architecture knowledge and known pitfalls |
|
|
143
|
+
| Agent D | Database/schema files + `.prizmkit/config.json` | Understand data model and tech stack preferences |
|
|
144
|
+
|
|
145
|
+
**Also gather** (can be included in any agent's task):
|
|
146
|
+
- Directory structure of the project
|
|
147
|
+
- Existing test patterns and conventions
|
|
148
|
+
- Dependency relationships between existing modules
|
|
149
|
+
|
|
150
|
+
**After all agents complete**: Synthesize findings into a coherent understanding before proceeding to discussion.
|
|
151
|
+
|
|
152
|
+
### Step 1.4: Discuss Requirements
|
|
153
|
+
|
|
154
|
+
**Now** — with deep knowledge of the actual codebase and documents — discuss the requirements with the user. This discussion is grounded in real context, not abstract questions.
|
|
155
|
+
|
|
156
|
+
Present what you learned from the parallel reading:
|
|
157
|
+
- Current project structure and patterns (with specific references)
|
|
158
|
+
- Existing data model and schema conventions
|
|
159
|
+
- Known TRAPS and pitfalls from `.prizmkit/prizm-docs/`
|
|
160
|
+
- Integration points with existing modules
|
|
161
|
+
|
|
162
|
+
Then ask targeted questions based on what you read. **Adapt question depth to the feature complexity** — a simple CRUD feature needs fewer questions than a real-time collaboration system.
|
|
163
|
+
|
|
164
|
+
**Functional Requirements:**
|
|
165
|
+
- What are the core user actions/workflows?
|
|
166
|
+
- What inputs does the system accept? What outputs does it produce?
|
|
167
|
+
- What are the key business rules and validation logic?
|
|
168
|
+
- Are there different user roles with different permissions?
|
|
169
|
+
|
|
170
|
+
**Data Model & Database** (if applicable):
|
|
171
|
+
- What entities/data need to be stored?
|
|
172
|
+
- What are the relationships between entities?
|
|
173
|
+
- Are there existing database tables this feature must integrate with?
|
|
174
|
+
- What fields are required vs optional? What data types?
|
|
175
|
+
- Any unique constraints, indexes, or special query patterns needed?
|
|
176
|
+
- **RULE**: If the project has existing database tables, ALL new table designs must reference and conform to the existing schema style (naming conventions, ID strategy, timestamp patterns, constraint patterns). Ask the user to confirm the data model before proceeding.
|
|
177
|
+
|
|
178
|
+
**User Experience:**
|
|
179
|
+
- What does the user see and interact with?
|
|
180
|
+
- What is the expected flow/sequence of actions?
|
|
181
|
+
- How should errors be displayed to the user?
|
|
182
|
+
- Are there any specific UI/UX requirements?
|
|
183
|
+
|
|
184
|
+
**Integration & Architecture:**
|
|
185
|
+
- "Based on the existing code, this feature would integrate with [modules]. Does that match your expectations?"
|
|
186
|
+
- Any external APIs or services involved?
|
|
187
|
+
- What authentication/authorization model applies?
|
|
188
|
+
- Any real-time requirements (WebSocket, SSE, polling)?
|
|
189
|
+
|
|
190
|
+
**Edge Cases & Error Handling:**
|
|
191
|
+
- What happens when things go wrong? (network failure, invalid input, concurrent access)
|
|
192
|
+
- What are the boundary conditions? (empty states, max limits, permissions denied)
|
|
193
|
+
- Any rate limiting, quotas, or resource constraints?
|
|
194
|
+
|
|
195
|
+
**Non-Functional Requirements:**
|
|
196
|
+
- Performance expectations? (response time, throughput)
|
|
197
|
+
- Scalability considerations?
|
|
198
|
+
- Security requirements? (encryption, audit logs, compliance)
|
|
199
|
+
|
|
200
|
+
### Step 1.5: Confirm and Supplement
|
|
201
|
+
|
|
202
|
+
After the discussion:
|
|
203
|
+
|
|
204
|
+
1. **Summarize** the requirements — present it back to the user
|
|
205
|
+
2. **Ask explicitly**: "Is there anything else you'd like to discuss or supplement before we proceed to formal planning?"
|
|
206
|
+
3. **Identify gaps** — if any areas are still unclear, list them explicitly and ask follow-up questions
|
|
207
|
+
4. **Repeat** until the user confirms: "That covers everything" or "Let's proceed"
|
|
208
|
+
|
|
209
|
+
**Signs that brainstorming is complete:**
|
|
210
|
+
- All functional requirements have concrete acceptance criteria
|
|
211
|
+
- Data model entities and relationships are defined
|
|
212
|
+
- Edge cases and error handling are addressed
|
|
213
|
+
- Integration points are identified
|
|
214
|
+
- The user has confirmed the summary is accurate
|
|
215
|
+
|
|
216
|
+
**Signs that more questions are needed:**
|
|
217
|
+
- User's answers contain vague terms ("handle it appropriately", "make it user-friendly", "standard behavior")
|
|
218
|
+
- Core business rules are undefined ("depends on the situation")
|
|
219
|
+
- Data relationships are unclear ("somehow connected")
|
|
220
|
+
- User says "I'm not sure" — help them think through it with concrete options
|
|
221
|
+
|
|
222
|
+
### Step 1.6: Requirements Summary
|
|
223
|
+
|
|
224
|
+
Once brainstorming is complete, produce a structured requirements summary:
|
|
225
|
+
|
|
226
|
+
```markdown
|
|
227
|
+
## Requirements Summary
|
|
228
|
+
|
|
229
|
+
### Project/Feature: [Name]
|
|
230
|
+
|
|
231
|
+
### Core Functionality
|
|
232
|
+
- [Bullet list of what the system does]
|
|
233
|
+
|
|
234
|
+
### User Roles
|
|
235
|
+
- [Role]: [What they can do]
|
|
236
|
+
|
|
237
|
+
### Data Model Overview
|
|
238
|
+
- [Entity]: [Key fields, relationships]
|
|
239
|
+
|
|
240
|
+
### Key Business Rules
|
|
241
|
+
- [Rule 1]
|
|
242
|
+
- [Rule 2]
|
|
243
|
+
|
|
244
|
+
### Integration Points
|
|
245
|
+
- [External system/API/module]
|
|
246
|
+
|
|
247
|
+
### Edge Cases & Error Handling
|
|
248
|
+
- [Case]: [Expected behavior]
|
|
249
|
+
|
|
250
|
+
### Non-Functional Requirements
|
|
251
|
+
- [Requirement]
|
|
252
|
+
|
|
253
|
+
### Reference Materials Reviewed
|
|
254
|
+
- [List of code paths, documents, .prizmkit/prizm-docs/ files that were read]
|
|
255
|
+
|
|
256
|
+
### Confirmed by user: ✓
|
|
257
|
+
```
|
|
258
|
+
|
|
259
|
+
Present this summary to the user and get explicit confirmation before proceeding.
|
|
260
|
+
|
|
261
|
+
**CHECKPOINT CP-FW-0**: Requirements fully clarified and confirmed by user.
|
|
262
|
+
|
|
263
|
+
---
|
|
264
|
+
|
|
265
|
+
### Step 1.7: Complexity Assessment & Approach Selection
|
|
266
|
+
|
|
267
|
+
After confirming requirements, assess whether this feature needs the full pipeline or can be done directly in the current session.
|
|
268
|
+
|
|
269
|
+
**Simple feature → Fast Path candidate** (ALL must be true):
|
|
270
|
+
- Single module, no cross-module architectural impact
|
|
271
|
+
- ≤2 new files to create
|
|
272
|
+
- No new external dependencies or infrastructure changes
|
|
273
|
+
- Straightforward implementation (CRUD, utility, simple UI component)
|
|
274
|
+
- Clear acceptance criteria with existing patterns to follow
|
|
275
|
+
- No dependency on other unbuilt features
|
|
276
|
+
|
|
277
|
+
**User choice required (mandatory)** — Use `AskUserQuestion` to present interactive selectable options:
|
|
278
|
+
|
|
279
|
+
```
|
|
280
|
+
AskUserQuestion:
|
|
281
|
+
question: "This feature appears straightforward. How would you like to proceed?"
|
|
282
|
+
header: "Approach"
|
|
283
|
+
options:
|
|
284
|
+
- label: "Implement now (fast path)"
|
|
285
|
+
description: "Plan and implement directly in this session using /prizmkit-plan + /prizmkit-implement"
|
|
286
|
+
- label: "Add to feature list (pipeline)"
|
|
287
|
+
description: "Generate .prizmkit/plans/feature-list.json via feature-planner, then launch pipeline for autonomous execution"
|
|
288
|
+
```
|
|
289
|
+
|
|
290
|
+
- **Implement now** → Fast Path Workflow:
|
|
291
|
+
1. Invoke `/prizmkit-plan` with the requirements summary → generates `spec.md` + `plan.md`
|
|
292
|
+
2. Invoke `/prizmkit-implement` to execute the plan
|
|
293
|
+
3. After implementation, run `/prizmkit-code-review` for quality check
|
|
294
|
+
4. Commit via `/prizmkit-committer` with `feat(<scope>):` prefix
|
|
295
|
+
5. Run `/prizmkit-retrospective` to sync `.prizmkit/prizm-docs/`
|
|
296
|
+
6. **End workflow** — skip Phase 2/3/4
|
|
297
|
+
- **Add to feature list** → Continue to Phase 2 (Plan via pipeline)
|
|
298
|
+
|
|
299
|
+
**Complex feature → Planning Path** (ANY is true):
|
|
300
|
+
- Cross-module impact (>2 modules affected)
|
|
301
|
+
- New infrastructure, dependencies, or architectural patterns required
|
|
302
|
+
- Multiple interrelated features with dependency ordering
|
|
303
|
+
- Data model or API design decisions needed
|
|
304
|
+
- Requires integration with external services
|
|
305
|
+
|
|
306
|
+
**User choice required (mandatory)** — Use `AskUserQuestion` to present interactive selectable options:
|
|
307
|
+
|
|
308
|
+
```
|
|
309
|
+
AskUserQuestion:
|
|
310
|
+
question: "This feature is complex and will benefit from structured planning. How would you like to proceed?"
|
|
311
|
+
header: "Approach"
|
|
312
|
+
options:
|
|
313
|
+
- label: "Plan and implement now"
|
|
314
|
+
description: "Create a plan and implement in this session using /prizmkit-plan + /prizmkit-implement"
|
|
315
|
+
- label: "Add to feature list (pipeline)"
|
|
316
|
+
description: "Generate .prizmkit/plans/feature-list.json via feature-planner, then launch pipeline for autonomous execution"
|
|
317
|
+
```
|
|
318
|
+
|
|
319
|
+
- **Plan and implement now** → Invoke `/prizmkit-plan` with requirements → `/prizmkit-implement` → `/prizmkit-code-review` → `/prizmkit-committer` → `/prizmkit-retrospective`. **End workflow** — skip Phase 2/3/4.
|
|
320
|
+
- **Add to feature list** → Continue to Phase 2 (Plan via pipeline)
|
|
321
|
+
|
|
322
|
+
**NEVER proceed without explicit user confirmation via `AskUserQuestion`. Do NOT render options as plain text — the user must be able to click/select.**
|
|
323
|
+
|
|
324
|
+
**CHECKPOINT CP-FW-0.5**: Approach selected by user (fast path or pipeline).
|
|
325
|
+
|
|
326
|
+
---
|
|
327
|
+
|
|
328
|
+
## Phase 2: Plan
|
|
329
|
+
|
|
330
|
+
**Goal**: Generate structured .prizmkit/plans/feature-list.json from the clarified requirements.
|
|
331
|
+
|
|
332
|
+
**STEPS**:
|
|
333
|
+
|
|
334
|
+
1. **Invoke `feature-planner` skill** with the full requirements summary from Phase 1:
|
|
335
|
+
- Pass the structured requirements summary as input — NOT the raw user conversation
|
|
336
|
+
- For new projects: standard planning mode
|
|
337
|
+
- For existing projects with `--incremental`: incremental planning mode
|
|
338
|
+
- **Input**: Markdown requirements summary (feature descriptions, goals, constraints)
|
|
339
|
+
- **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
|
|
340
|
+
|
|
341
|
+
2. **Interactive planning** (if feature-planner requires clarification):
|
|
342
|
+
- Because Phase 1 was thorough, feature-planner should need minimal clarification
|
|
343
|
+
- If questions arise, answer from the Phase 1 context or pass through to user
|
|
344
|
+
|
|
345
|
+
3. **Validate output**:
|
|
346
|
+
- Confirm `.prizmkit/plans/feature-list.json` exists
|
|
347
|
+
- Show summary: total features, complexity distribution, dependencies
|
|
348
|
+
|
|
349
|
+
**CHECKPOINT CP-FW-1**: `.prizmkit/plans/feature-list.json` generated and validated.
|
|
350
|
+
|
|
351
|
+
**If user says `--from <file>`**: Skip Phase 1 and Phase 2 entirely.
|
|
352
|
+
|
|
353
|
+
---
|
|
354
|
+
|
|
355
|
+
## Phase 3: Launch
|
|
356
|
+
|
|
357
|
+
**Goal**: Start the development pipeline.
|
|
358
|
+
|
|
359
|
+
**STEPS**:
|
|
360
|
+
|
|
361
|
+
1. **Show feature summary** before launching:
|
|
362
|
+
```
|
|
363
|
+
Ready to launch pipeline with N features:
|
|
364
|
+
F-001: User authentication (high complexity)
|
|
365
|
+
F-002: Task CRUD (medium complexity)
|
|
366
|
+
F-003: Task categories (low complexity)
|
|
367
|
+
|
|
368
|
+
Proceed? (Y/n)
|
|
369
|
+
```
|
|
370
|
+
|
|
371
|
+
2. **Invoke `feature-pipeline-launcher` skill**:
|
|
372
|
+
- **Input**: Path to validated `.prizmkit/plans/feature-list.json`
|
|
373
|
+
- The launcher handles all prerequisites checks
|
|
374
|
+
- The launcher presents execution mode choices to the user (foreground/background/manual)
|
|
375
|
+
- The launcher asks whether to enable Critic Agent (adversarial review) — passes `--critic` flag if chosen
|
|
376
|
+
- Do NOT duplicate execution mode or critic selection here — let the launcher handle it
|
|
377
|
+
- **Output**: PID/status, log file path, execution mode selected
|
|
378
|
+
|
|
379
|
+
3. **Verify launch success**:
|
|
380
|
+
- Confirm pipeline is running
|
|
381
|
+
- Record PID and log path for Phase 4
|
|
382
|
+
|
|
383
|
+
**CHECKPOINT CP-FW-2**: Pipeline launched successfully.
|
|
384
|
+
|
|
385
|
+
---
|
|
386
|
+
|
|
387
|
+
## Phase 4: Monitor
|
|
388
|
+
|
|
389
|
+
**Goal**: Track pipeline progress and report to user.
|
|
390
|
+
|
|
391
|
+
**STEPS**:
|
|
392
|
+
|
|
393
|
+
1. **Initial status check**:
|
|
394
|
+
```powershell
|
|
395
|
+
.\.prizmkit\dev-pipeline\launch-feature-daemon.ps1 status
|
|
396
|
+
```
|
|
397
|
+
|
|
398
|
+
2. **Offer monitoring options**:
|
|
399
|
+
- "I'll check progress periodically. Say 'status' anytime for an update."
|
|
400
|
+
- "Say 'logs' to see recent activity."
|
|
401
|
+
- "Say 'stop' to pause the pipeline."
|
|
402
|
+
|
|
403
|
+
3. **Periodic progress reports** (when user asks):
|
|
404
|
+
```powershell
|
|
405
|
+
function Invoke-PrizmPython {
|
|
406
|
+
param([Parameter(ValueFromRemainingArguments = $true)][string[]]$Arguments)
|
|
407
|
+
$python = Get-Command python -ErrorAction SilentlyContinue
|
|
408
|
+
if ($python) {
|
|
409
|
+
& $python.Source -c 'import sys; raise SystemExit(0 if sys.version_info[0] == 3 else 1)' *> $null
|
|
410
|
+
if ($LASTEXITCODE -eq 0) {
|
|
411
|
+
& $python.Source @Arguments
|
|
412
|
+
return
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
$py = Get-Command py -ErrorAction SilentlyContinue
|
|
416
|
+
if ($py) {
|
|
417
|
+
& $py.Source -3 -c 'import sys; raise SystemExit(0 if sys.version_info[0] == 3 else 1)' *> $null
|
|
418
|
+
if ($LASTEXITCODE -eq 0) {
|
|
419
|
+
& $py.Source -3 @Arguments
|
|
420
|
+
return
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
throw "Python 3 is required. Install Python and ensure python or py is in PATH."
|
|
424
|
+
}
|
|
425
|
+
Invoke-PrizmPython .prizmkit/dev-pipeline/scripts/update-feature-status.py `
|
|
426
|
+
--feature-list .prizmkit/plans/feature-list.json `
|
|
427
|
+
--state-dir .prizmkit/state/features `
|
|
428
|
+
--action status
|
|
429
|
+
```
|
|
430
|
+
|
|
431
|
+
4. **Completion report** (when pipeline finishes all features):
|
|
432
|
+
```
|
|
433
|
+
Pipeline completed: 3/3 features
|
|
434
|
+
|
|
435
|
+
Summary:
|
|
436
|
+
- F-001: User authentication → COMMITTED (feat: user auth)
|
|
437
|
+
- F-002: Task CRUD → COMMITTED (feat: task crud)
|
|
438
|
+
- F-003: Task categories → COMMITTED (feat: categories)
|
|
439
|
+
|
|
440
|
+
Next steps:
|
|
441
|
+
- Review changes: git log --oneline -5
|
|
442
|
+
- Run tests: npm test
|
|
443
|
+
- Push when ready: git push
|
|
444
|
+
```
|
|
445
|
+
|
|
446
|
+
**CHECKPOINT CP-FW-3**: All features completed or user stopped pipeline.
|
|
447
|
+
|
|
448
|
+
---
|
|
449
|
+
|
|
450
|
+
## Resume — Interruption Recovery
|
|
451
|
+
|
|
452
|
+
The workflow supports resuming by detecting existing state:
|
|
453
|
+
|
|
454
|
+
| State Found | Resume From |
|
|
455
|
+
|-------------|------------|
|
|
456
|
+
| No `.prizmkit/plans/feature-list.json` | Phase 1: Brainstorm |
|
|
457
|
+
| `.prizmkit/plans/feature-list.json` exists, no pipeline state | Phase 3: Launch |
|
|
458
|
+
| `.prizmkit/plans/feature-list.json` + pipeline state exists | Phase 4: Monitor (check status) |
|
|
459
|
+
| All features completed | Report completion, suggest next steps |
|
|
460
|
+
|
|
461
|
+
**Resume**: If `.prizmkit/plans/feature-list.json` exists, ask user: "Existing feature plan found with N features. Resume pipeline or re-plan?"
|
|
462
|
+
|
|
463
|
+
---
|
|
464
|
+
|
|
465
|
+
## Interaction During Pipeline
|
|
466
|
+
|
|
467
|
+
While the pipeline runs, the user can continue the conversation:
|
|
468
|
+
|
|
469
|
+
| User says | Action |
|
|
470
|
+
|-----------|--------|
|
|
471
|
+
| "status" / "progress" | Show current progress |
|
|
472
|
+
| "logs" | Show recent log activity |
|
|
473
|
+
| "stop" | Stop the pipeline (state preserved) |
|
|
474
|
+
| "show F-002 logs" | Show specific feature's session log |
|
|
475
|
+
|
|
476
|
+
---
|
|
477
|
+
|
|
478
|
+
## Error Handling
|
|
479
|
+
|
|
480
|
+
| Error | Action |
|
|
481
|
+
|-------|--------|
|
|
482
|
+
| User's idea is too vague to brainstorm | Ask for more context: "Can you describe the main problem this solves?" |
|
|
483
|
+
| Brainstorming stalls | Offer concrete options: "Would you prefer A or B?" |
|
|
484
|
+
| `feature-planner` cannot parse requirements | Refine the requirements summary and retry |
|
|
485
|
+
| `.prizmkit/plans/feature-list.json` generation failed | Show error, retry with refined input |
|
|
486
|
+
| Pipeline launch failed | Show daemon log, suggest manual start |
|
|
487
|
+
| All features blocked/failed | Show status, suggest retrying specific features |
|
|
488
|
+
| User wants to cancel mid-brainstorming | Save conversation context, offer to resume later |
|
|
489
|
+
|
|
490
|
+
---
|
|
491
|
+
|
|
492
|
+
## Relationship to Other Skills
|
|
493
|
+
|
|
494
|
+
| Skill | Relationship |
|
|
495
|
+
|-------|-------------|
|
|
496
|
+
| `feature-planner` | **Called by Phase 2** — generates .prizmkit/plans/feature-list.json from clarified requirements |
|
|
497
|
+
| `feature-pipeline-launcher` | **Called by Phase 3** — starts pipeline (handles execution mode selection) |
|
|
498
|
+
| `bug-planner` | **Alternative** — for bug fix workflows |
|
|
499
|
+
| `bugfix-pipeline-launcher` | **Alternative** — for bug fix pipelines |
|
|
500
|
+
| `refactor-workflow` | **Alternative** — for code restructuring |
|
|
501
|
+
|
|
502
|
+
---
|
|
503
|
+
|
|
504
|
+
## Comparison with Alternative Workflows
|
|
505
|
+
|
|
506
|
+
| Dimension | feature-workflow | bug-fix-workflow | refactor-workflow |
|
|
507
|
+
|-----------|-----------------|------------------|-------------------|
|
|
508
|
+
| **Purpose** | New features (batch) | Single bug fix (interactive) | Code restructuring (batch) |
|
|
509
|
+
| **Brainstorming** | Yes — collect materials, parallel read, discuss | No (bug report is input) | Yes — clarify type, collect materials, parallel read, discuss |
|
|
510
|
+
| **Planning Skill** | `feature-planner` | None (triage built-in) | `refactor-planner` |
|
|
511
|
+
| **Branch** | Pipeline manages per-feature | `fix/<BUG_ID>-*` | Pipeline manages per-refactor |
|
|
512
|
+
| **Execution** | Foreground or background daemon | In-session, interactive | Foreground or background daemon |
|
|
513
|
+
| **Input** | Rough idea or requirements | Bug report / stack trace | Rough refactoring idea or target |
|
|
514
|
+
| **Output** | Multiple `feat()` commits | Single `fix()` commit | Multiple `refactor()` commits |
|
|
515
|
+
| **Behavior Change** | Expected (new functionality) | Fix behavior | Forbidden (structure only) |
|
|
516
|
+
| **Batch alternative** | (this is the batch flow) | `bug-planner` + `bugfix-pipeline-launcher` | (this is the batch flow) |
|
|
517
|
+
|
|
518
|
+
---
|
|
519
|
+
|
|
520
|
+
## Path References
|
|
521
|
+
|
|
522
|
+
All internal asset paths use `${SKILL_DIR}` placeholder for cross-IDE compatibility.
|
|
523
|
+
|
|
524
|
+
## Output
|
|
525
|
+
|
|
526
|
+
- Structured requirements summary (Phase 1 artifact)
|
|
527
|
+
- `.prizmkit/plans/feature-list.json` (Phase 2 artifact)
|
|
528
|
+
- Pipeline execution (Phase 3)
|
|
529
|
+
- Progress updates (Phase 4)
|
|
530
|
+
- Multiple git commits with `feat(<scope>):` prefix
|
|
531
|
+
- Updated `.prizmkit/prizm-docs/` (via prizmkit-retrospective per feature)
|