@lipter7/blueprint 2.0.0
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/LICENSE +21 -0
- package/README.md +626 -0
- package/agents/bp-codebase-mapper.md +761 -0
- package/agents/bp-debugger.md +1198 -0
- package/agents/bp-executor.md +403 -0
- package/agents/bp-integration-checker.md +423 -0
- package/agents/bp-phase-researcher.md +469 -0
- package/agents/bp-plan-checker.md +622 -0
- package/agents/bp-planner.md +1157 -0
- package/agents/bp-project-researcher.md +618 -0
- package/agents/bp-research-synthesizer.md +236 -0
- package/agents/bp-roadmapper.md +605 -0
- package/agents/bp-verifier.md +523 -0
- package/bin/install.js +1754 -0
- package/blueprint/bin/blueprint-tools.js +4597 -0
- package/blueprint/bin/blueprint-tools.test.js +2033 -0
- package/blueprint/references/checkpoints.md +775 -0
- package/blueprint/references/continuation-format.md +249 -0
- package/blueprint/references/decimal-phase-calculation.md +65 -0
- package/blueprint/references/git-integration.md +248 -0
- package/blueprint/references/git-planning-commit.md +38 -0
- package/blueprint/references/model-profile-resolution.md +32 -0
- package/blueprint/references/model-profiles.md +73 -0
- package/blueprint/references/phase-argument-parsing.md +61 -0
- package/blueprint/references/planning-config.md +194 -0
- package/blueprint/references/questioning.md +141 -0
- package/blueprint/references/tdd.md +263 -0
- package/blueprint/references/ui-brand.md +160 -0
- package/blueprint/references/verification-patterns.md +612 -0
- package/blueprint/templates/DEBUG.md +159 -0
- package/blueprint/templates/UAT.md +247 -0
- package/blueprint/templates/codebase/architecture.md +255 -0
- package/blueprint/templates/codebase/concerns.md +310 -0
- package/blueprint/templates/codebase/conventions.md +307 -0
- package/blueprint/templates/codebase/integrations.md +280 -0
- package/blueprint/templates/codebase/stack.md +186 -0
- package/blueprint/templates/codebase/structure.md +285 -0
- package/blueprint/templates/codebase/testing.md +480 -0
- package/blueprint/templates/config.json +35 -0
- package/blueprint/templates/context.md +283 -0
- package/blueprint/templates/continue-here.md +78 -0
- package/blueprint/templates/debug-subagent-prompt.md +91 -0
- package/blueprint/templates/discovery.md +146 -0
- package/blueprint/templates/milestone-archive.md +123 -0
- package/blueprint/templates/milestone.md +115 -0
- package/blueprint/templates/phase-prompt.md +567 -0
- package/blueprint/templates/planner-subagent-prompt.md +117 -0
- package/blueprint/templates/project.md +184 -0
- package/blueprint/templates/requirements.md +231 -0
- package/blueprint/templates/research-project/ARCHITECTURE.md +204 -0
- package/blueprint/templates/research-project/FEATURES.md +147 -0
- package/blueprint/templates/research-project/PITFALLS.md +200 -0
- package/blueprint/templates/research-project/STACK.md +120 -0
- package/blueprint/templates/research-project/SUMMARY.md +170 -0
- package/blueprint/templates/research.md +552 -0
- package/blueprint/templates/roadmap.md +202 -0
- package/blueprint/templates/state.md +176 -0
- package/blueprint/templates/summary-complex.md +59 -0
- package/blueprint/templates/summary-minimal.md +41 -0
- package/blueprint/templates/summary-standard.md +48 -0
- package/blueprint/templates/summary.md +246 -0
- package/blueprint/templates/user-setup.md +311 -0
- package/blueprint/templates/verification-report.md +322 -0
- package/blueprint/workflows/add-phase.md +111 -0
- package/blueprint/workflows/add-todo.md +157 -0
- package/blueprint/workflows/audit-milestone.md +241 -0
- package/blueprint/workflows/check-todos.md +176 -0
- package/blueprint/workflows/complete-milestone.md +644 -0
- package/blueprint/workflows/diagnose-issues.md +219 -0
- package/blueprint/workflows/discovery-phase.md +289 -0
- package/blueprint/workflows/discuss-phase.md +408 -0
- package/blueprint/workflows/execute-phase.md +338 -0
- package/blueprint/workflows/execute-plan.md +437 -0
- package/blueprint/workflows/help.md +470 -0
- package/blueprint/workflows/insert-phase.md +129 -0
- package/blueprint/workflows/list-phase-assumptions.md +178 -0
- package/blueprint/workflows/map-codebase.md +327 -0
- package/blueprint/workflows/new-milestone.md +373 -0
- package/blueprint/workflows/new-project.md +958 -0
- package/blueprint/workflows/pause-work.md +122 -0
- package/blueprint/workflows/plan-milestone-gaps.md +256 -0
- package/blueprint/workflows/plan-phase.md +376 -0
- package/blueprint/workflows/progress.md +385 -0
- package/blueprint/workflows/quick.md +230 -0
- package/blueprint/workflows/remove-phase.md +154 -0
- package/blueprint/workflows/research-phase.md +74 -0
- package/blueprint/workflows/resume-project.md +306 -0
- package/blueprint/workflows/set-profile.md +80 -0
- package/blueprint/workflows/settings.md +145 -0
- package/blueprint/workflows/transition.md +493 -0
- package/blueprint/workflows/update.md +212 -0
- package/blueprint/workflows/verify-phase.md +226 -0
- package/blueprint/workflows/verify-work.md +570 -0
- package/commands/bp/add-phase.md +39 -0
- package/commands/bp/add-todo.md +42 -0
- package/commands/bp/audit-milestone.md +42 -0
- package/commands/bp/check-todos.md +41 -0
- package/commands/bp/complete-milestone.md +136 -0
- package/commands/bp/debug.md +162 -0
- package/commands/bp/discuss-phase.md +86 -0
- package/commands/bp/execute-phase.md +42 -0
- package/commands/bp/help.md +22 -0
- package/commands/bp/insert-phase.md +33 -0
- package/commands/bp/join-discord.md +18 -0
- package/commands/bp/list-phase-assumptions.md +50 -0
- package/commands/bp/map-codebase.md +71 -0
- package/commands/bp/new-milestone.md +51 -0
- package/commands/bp/new-project.md +42 -0
- package/commands/bp/pause-work.md +35 -0
- package/commands/bp/plan-milestone-gaps.md +40 -0
- package/commands/bp/plan-phase.md +44 -0
- package/commands/bp/progress.md +24 -0
- package/commands/bp/quick.md +38 -0
- package/commands/bp/reapply-patches.md +110 -0
- package/commands/bp/remove-phase.md +32 -0
- package/commands/bp/research-phase.md +187 -0
- package/commands/bp/resume-work.md +40 -0
- package/commands/bp/set-profile.md +34 -0
- package/commands/bp/settings.md +36 -0
- package/commands/bp/update.md +37 -0
- package/commands/bp/verify-work.md +39 -0
- package/hooks/dist/bp-check-update.js +62 -0
- package/hooks/dist/bp-statusline.js +91 -0
- package/package.json +48 -0
- package/scripts/build-hooks.js +42 -0
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
<purpose>
|
|
2
|
+
Interactive configuration of Blueprint workflow agents (research, plan_check, verifier) and model profile selection via multi-question prompt. Updates .blueprint/config.json with user preferences.
|
|
3
|
+
</purpose>
|
|
4
|
+
|
|
5
|
+
<required_reading>
|
|
6
|
+
Read all files referenced by the invoking prompt's execution_context before starting.
|
|
7
|
+
</required_reading>
|
|
8
|
+
|
|
9
|
+
<process>
|
|
10
|
+
|
|
11
|
+
<step name="ensure_and_load_config">
|
|
12
|
+
Ensure config exists and load current state:
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
node ~/.claude/blueprint/bin/blueprint-tools.js config-ensure-section
|
|
16
|
+
INIT=$(node ~/.claude/blueprint/bin/blueprint-tools.js state load)
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Creates `.blueprint/config.json` with defaults if missing and loads current config values.
|
|
20
|
+
</step>
|
|
21
|
+
|
|
22
|
+
<step name="read_current">
|
|
23
|
+
```bash
|
|
24
|
+
cat .blueprint/config.json
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Parse current values (default to `true` if not present):
|
|
28
|
+
- `workflow.research` — spawn researcher during plan-phase
|
|
29
|
+
- `workflow.plan_check` — spawn plan checker during plan-phase
|
|
30
|
+
- `workflow.verifier` — spawn verifier during execute-phase
|
|
31
|
+
- `model_profile` — which model each agent uses (default: `balanced`)
|
|
32
|
+
- `git.branching_strategy` — branching approach (default: `"none"`)
|
|
33
|
+
</step>
|
|
34
|
+
|
|
35
|
+
<step name="present_settings">
|
|
36
|
+
Use AskUserQuestion with current values pre-selected:
|
|
37
|
+
|
|
38
|
+
```
|
|
39
|
+
AskUserQuestion([
|
|
40
|
+
{
|
|
41
|
+
question: "Which model profile for agents?",
|
|
42
|
+
header: "Model",
|
|
43
|
+
multiSelect: false,
|
|
44
|
+
options: [
|
|
45
|
+
{ label: "Quality", description: "Opus everywhere except verification (highest cost)" },
|
|
46
|
+
{ label: "Balanced (Recommended)", description: "Opus for planning, Sonnet for execution/verification" },
|
|
47
|
+
{ label: "Budget", description: "Sonnet for writing, Haiku for research/verification (lowest cost)" }
|
|
48
|
+
]
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
question: "Spawn Plan Researcher? (researches domain before planning)",
|
|
52
|
+
header: "Research",
|
|
53
|
+
multiSelect: false,
|
|
54
|
+
options: [
|
|
55
|
+
{ label: "Yes", description: "Research phase goals before planning" },
|
|
56
|
+
{ label: "No", description: "Skip research, plan directly" }
|
|
57
|
+
]
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
question: "Spawn Plan Checker? (verifies plans before execution)",
|
|
61
|
+
header: "Plan Check",
|
|
62
|
+
multiSelect: false,
|
|
63
|
+
options: [
|
|
64
|
+
{ label: "Yes", description: "Verify plans meet phase goals" },
|
|
65
|
+
{ label: "No", description: "Skip plan verification" }
|
|
66
|
+
]
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
question: "Spawn Execution Verifier? (verifies phase completion)",
|
|
70
|
+
header: "Verifier",
|
|
71
|
+
multiSelect: false,
|
|
72
|
+
options: [
|
|
73
|
+
{ label: "Yes", description: "Verify must-haves after execution" },
|
|
74
|
+
{ label: "No", description: "Skip post-execution verification" }
|
|
75
|
+
]
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
question: "Git branching strategy?",
|
|
79
|
+
header: "Branching",
|
|
80
|
+
multiSelect: false,
|
|
81
|
+
options: [
|
|
82
|
+
{ label: "None (Recommended)", description: "Commit directly to current branch" },
|
|
83
|
+
{ label: "Per Phase", description: "Create branch for each phase (gsd/phase-{N}-{name})" },
|
|
84
|
+
{ label: "Per Milestone", description: "Create branch for entire milestone (gsd/{version}-{name})" }
|
|
85
|
+
]
|
|
86
|
+
}
|
|
87
|
+
])
|
|
88
|
+
```
|
|
89
|
+
</step>
|
|
90
|
+
|
|
91
|
+
<step name="update_config">
|
|
92
|
+
Merge new settings into existing config.json:
|
|
93
|
+
|
|
94
|
+
```json
|
|
95
|
+
{
|
|
96
|
+
...existing_config,
|
|
97
|
+
"model_profile": "quality" | "balanced" | "budget",
|
|
98
|
+
"workflow": {
|
|
99
|
+
"research": true/false,
|
|
100
|
+
"plan_check": true/false,
|
|
101
|
+
"verifier": true/false
|
|
102
|
+
},
|
|
103
|
+
"git": {
|
|
104
|
+
"branching_strategy": "none" | "phase" | "milestone"
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
Write updated config to `.blueprint/config.json`.
|
|
110
|
+
</step>
|
|
111
|
+
|
|
112
|
+
<step name="confirm">
|
|
113
|
+
Display:
|
|
114
|
+
|
|
115
|
+
```
|
|
116
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
117
|
+
Blueprint ► SETTINGS UPDATED
|
|
118
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
119
|
+
|
|
120
|
+
| Setting | Value |
|
|
121
|
+
|----------------------|-------|
|
|
122
|
+
| Model Profile | {quality/balanced/budget} |
|
|
123
|
+
| Plan Researcher | {On/Off} |
|
|
124
|
+
| Plan Checker | {On/Off} |
|
|
125
|
+
| Execution Verifier | {On/Off} |
|
|
126
|
+
| Git Branching | {None/Per Phase/Per Milestone} |
|
|
127
|
+
|
|
128
|
+
These settings apply to future /bp:plan-phase and /bp:execute-phase runs.
|
|
129
|
+
|
|
130
|
+
Quick commands:
|
|
131
|
+
- /bp:set-profile <profile> — switch model profile
|
|
132
|
+
- /bp:plan-phase --research — force research
|
|
133
|
+
- /bp:plan-phase --skip-research — skip research
|
|
134
|
+
- /bp:plan-phase --skip-verify — skip plan check
|
|
135
|
+
```
|
|
136
|
+
</step>
|
|
137
|
+
|
|
138
|
+
</process>
|
|
139
|
+
|
|
140
|
+
<success_criteria>
|
|
141
|
+
- [ ] Current config read
|
|
142
|
+
- [ ] User presented with 5 settings (profile + 3 workflow toggles + git branching)
|
|
143
|
+
- [ ] Config updated with model_profile, workflow, and git sections
|
|
144
|
+
- [ ] Changes confirmed to user
|
|
145
|
+
</success_criteria>
|
|
@@ -0,0 +1,493 @@
|
|
|
1
|
+
<required_reading>
|
|
2
|
+
|
|
3
|
+
**Read these files NOW:**
|
|
4
|
+
|
|
5
|
+
1. `.blueprint/STATE.md`
|
|
6
|
+
2. `.blueprint/PROJECT.md`
|
|
7
|
+
3. `.blueprint/ROADMAP.md`
|
|
8
|
+
4. Current phase's plan files (`*-PLAN.md`)
|
|
9
|
+
5. Current phase's summary files (`*-SUMMARY.md`)
|
|
10
|
+
|
|
11
|
+
</required_reading>
|
|
12
|
+
|
|
13
|
+
<purpose>
|
|
14
|
+
|
|
15
|
+
Mark current phase complete and advance to next. This is the natural point where progress tracking and PROJECT.md evolution happen.
|
|
16
|
+
|
|
17
|
+
"Planning next phase" = "current phase is done"
|
|
18
|
+
|
|
19
|
+
</purpose>
|
|
20
|
+
|
|
21
|
+
<process>
|
|
22
|
+
|
|
23
|
+
<step name="load_project_state" priority="first">
|
|
24
|
+
|
|
25
|
+
Before transition, read project state:
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
cat .blueprint/STATE.md 2>/dev/null
|
|
29
|
+
cat .blueprint/PROJECT.md 2>/dev/null
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Parse current position to verify we're transitioning the right phase.
|
|
33
|
+
Note accumulated context that may need updating after transition.
|
|
34
|
+
|
|
35
|
+
</step>
|
|
36
|
+
|
|
37
|
+
<step name="verify_completion">
|
|
38
|
+
|
|
39
|
+
Check current phase has all plan summaries:
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
ls .blueprint/phases/XX-current/*-PLAN.md 2>/dev/null | sort
|
|
43
|
+
ls .blueprint/phases/XX-current/*-SUMMARY.md 2>/dev/null | sort
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
**Verification logic:**
|
|
47
|
+
|
|
48
|
+
- Count PLAN files
|
|
49
|
+
- Count SUMMARY files
|
|
50
|
+
- If counts match: all plans complete
|
|
51
|
+
- If counts don't match: incomplete
|
|
52
|
+
|
|
53
|
+
<config-check>
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
cat .blueprint/config.json 2>/dev/null
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
</config-check>
|
|
60
|
+
|
|
61
|
+
**If all plans complete:**
|
|
62
|
+
|
|
63
|
+
<if mode="yolo">
|
|
64
|
+
|
|
65
|
+
```
|
|
66
|
+
⚡ Auto-approved: Transition Phase [X] → Phase [X+1]
|
|
67
|
+
Phase [X] complete — all [Y] plans finished.
|
|
68
|
+
|
|
69
|
+
Proceeding to mark done and advance...
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
Proceed directly to cleanup_handoff step.
|
|
73
|
+
|
|
74
|
+
</if>
|
|
75
|
+
|
|
76
|
+
<if mode="interactive" OR="custom with gates.confirm_transition true">
|
|
77
|
+
|
|
78
|
+
Ask: "Phase [X] complete — all [Y] plans finished. Ready to mark done and move to Phase [X+1]?"
|
|
79
|
+
|
|
80
|
+
Wait for confirmation before proceeding.
|
|
81
|
+
|
|
82
|
+
</if>
|
|
83
|
+
|
|
84
|
+
**If plans incomplete:**
|
|
85
|
+
|
|
86
|
+
**SAFETY RAIL: always_confirm_destructive applies here.**
|
|
87
|
+
Skipping incomplete plans is destructive — ALWAYS prompt regardless of mode.
|
|
88
|
+
|
|
89
|
+
Present:
|
|
90
|
+
|
|
91
|
+
```
|
|
92
|
+
Phase [X] has incomplete plans:
|
|
93
|
+
- {phase}-01-SUMMARY.md ✓ Complete
|
|
94
|
+
- {phase}-02-SUMMARY.md ✗ Missing
|
|
95
|
+
- {phase}-03-SUMMARY.md ✗ Missing
|
|
96
|
+
|
|
97
|
+
⚠️ Safety rail: Skipping plans requires confirmation (destructive action)
|
|
98
|
+
|
|
99
|
+
Options:
|
|
100
|
+
1. Continue current phase (execute remaining plans)
|
|
101
|
+
2. Mark complete anyway (skip remaining plans)
|
|
102
|
+
3. Review what's left
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
Wait for user decision.
|
|
106
|
+
|
|
107
|
+
</step>
|
|
108
|
+
|
|
109
|
+
<step name="cleanup_handoff">
|
|
110
|
+
|
|
111
|
+
Check for lingering handoffs:
|
|
112
|
+
|
|
113
|
+
```bash
|
|
114
|
+
ls .blueprint/phases/XX-current/.continue-here*.md 2>/dev/null
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
If found, delete them — phase is complete, handoffs are stale.
|
|
118
|
+
|
|
119
|
+
</step>
|
|
120
|
+
|
|
121
|
+
<step name="update_roadmap_and_state">
|
|
122
|
+
|
|
123
|
+
**Delegate ROADMAP.md and STATE.md updates to blueprint-tools:**
|
|
124
|
+
|
|
125
|
+
```bash
|
|
126
|
+
TRANSITION=$(node ~/.claude/blueprint/bin/blueprint-tools.js phase complete "${current_phase}")
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
The CLI handles:
|
|
130
|
+
- Marking the phase checkbox as `[x]` complete with today's date
|
|
131
|
+
- Updating plan count to final (e.g., "3/3 plans complete")
|
|
132
|
+
- Updating the Progress table (Status → Complete, adding date)
|
|
133
|
+
- Advancing STATE.md to next phase (Current Phase, Status → Ready to plan, Current Plan → Not started)
|
|
134
|
+
- Detecting if this is the last phase in the milestone
|
|
135
|
+
|
|
136
|
+
Extract from result: `completed_phase`, `plans_executed`, `next_phase`, `next_phase_name`, `is_last_phase`.
|
|
137
|
+
|
|
138
|
+
</step>
|
|
139
|
+
|
|
140
|
+
<step name="archive_prompts">
|
|
141
|
+
|
|
142
|
+
If prompts were generated for the phase, they stay in place.
|
|
143
|
+
The `completed/` subfolder pattern from create-meta-prompts handles archival.
|
|
144
|
+
|
|
145
|
+
</step>
|
|
146
|
+
|
|
147
|
+
<step name="evolve_project">
|
|
148
|
+
|
|
149
|
+
Evolve PROJECT.md to reflect learnings from completed phase.
|
|
150
|
+
|
|
151
|
+
**Read phase summaries:**
|
|
152
|
+
|
|
153
|
+
```bash
|
|
154
|
+
cat .blueprint/phases/XX-current/*-SUMMARY.md
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
**Assess requirement changes:**
|
|
158
|
+
|
|
159
|
+
1. **Requirements validated?**
|
|
160
|
+
- Any Active requirements shipped in this phase?
|
|
161
|
+
- Move to Validated with phase reference: `- ✓ [Requirement] — Phase X`
|
|
162
|
+
|
|
163
|
+
2. **Requirements invalidated?**
|
|
164
|
+
- Any Active requirements discovered to be unnecessary or wrong?
|
|
165
|
+
- Move to Out of Scope with reason: `- [Requirement] — [why invalidated]`
|
|
166
|
+
|
|
167
|
+
3. **Requirements emerged?**
|
|
168
|
+
- Any new requirements discovered during building?
|
|
169
|
+
- Add to Active: `- [ ] [New requirement]`
|
|
170
|
+
|
|
171
|
+
4. **Decisions to log?**
|
|
172
|
+
- Extract decisions from SUMMARY.md files
|
|
173
|
+
- Add to Key Decisions table with outcome if known
|
|
174
|
+
|
|
175
|
+
5. **"What This Is" still accurate?**
|
|
176
|
+
- If the product has meaningfully changed, update the description
|
|
177
|
+
- Keep it current and accurate
|
|
178
|
+
|
|
179
|
+
**Update PROJECT.md:**
|
|
180
|
+
|
|
181
|
+
Make the edits inline. Update "Last updated" footer:
|
|
182
|
+
|
|
183
|
+
```markdown
|
|
184
|
+
---
|
|
185
|
+
*Last updated: [date] after Phase [X]*
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
**Example evolution:**
|
|
189
|
+
|
|
190
|
+
Before:
|
|
191
|
+
|
|
192
|
+
```markdown
|
|
193
|
+
### Active
|
|
194
|
+
|
|
195
|
+
- [ ] JWT authentication
|
|
196
|
+
- [ ] Real-time sync < 500ms
|
|
197
|
+
- [ ] Offline mode
|
|
198
|
+
|
|
199
|
+
### Out of Scope
|
|
200
|
+
|
|
201
|
+
- OAuth2 — complexity not needed for v1
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
After (Phase 2 shipped JWT auth, discovered rate limiting needed):
|
|
205
|
+
|
|
206
|
+
```markdown
|
|
207
|
+
### Validated
|
|
208
|
+
|
|
209
|
+
- ✓ JWT authentication — Phase 2
|
|
210
|
+
|
|
211
|
+
### Active
|
|
212
|
+
|
|
213
|
+
- [ ] Real-time sync < 500ms
|
|
214
|
+
- [ ] Offline mode
|
|
215
|
+
- [ ] Rate limiting on sync endpoint
|
|
216
|
+
|
|
217
|
+
### Out of Scope
|
|
218
|
+
|
|
219
|
+
- OAuth2 — complexity not needed for v1
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
**Step complete when:**
|
|
223
|
+
|
|
224
|
+
- [ ] Phase summaries reviewed for learnings
|
|
225
|
+
- [ ] Validated requirements moved from Active
|
|
226
|
+
- [ ] Invalidated requirements moved to Out of Scope with reason
|
|
227
|
+
- [ ] Emerged requirements added to Active
|
|
228
|
+
- [ ] New decisions logged with rationale
|
|
229
|
+
- [ ] "What This Is" updated if product changed
|
|
230
|
+
- [ ] "Last updated" footer reflects this transition
|
|
231
|
+
|
|
232
|
+
</step>
|
|
233
|
+
|
|
234
|
+
<step name="update_current_position_after_transition">
|
|
235
|
+
|
|
236
|
+
**Note:** Basic position updates (Current Phase, Status, Current Plan, Last Activity) were already handled by `blueprint-tools phase complete` in the update_roadmap_and_state step.
|
|
237
|
+
|
|
238
|
+
Verify the updates are correct by reading STATE.md. If the progress bar needs updating, use:
|
|
239
|
+
|
|
240
|
+
```bash
|
|
241
|
+
PROGRESS=$(node ~/.claude/blueprint/bin/blueprint-tools.js progress bar --raw)
|
|
242
|
+
```
|
|
243
|
+
|
|
244
|
+
Update the progress bar line in STATE.md with the result.
|
|
245
|
+
|
|
246
|
+
**Step complete when:**
|
|
247
|
+
|
|
248
|
+
- [ ] Phase number incremented to next phase (done by phase complete)
|
|
249
|
+
- [ ] Plan status reset to "Not started" (done by phase complete)
|
|
250
|
+
- [ ] Status shows "Ready to plan" (done by phase complete)
|
|
251
|
+
- [ ] Progress bar reflects total completed plans
|
|
252
|
+
|
|
253
|
+
</step>
|
|
254
|
+
|
|
255
|
+
<step name="update_project_reference">
|
|
256
|
+
|
|
257
|
+
Update Project Reference section in STATE.md.
|
|
258
|
+
|
|
259
|
+
```markdown
|
|
260
|
+
## Project Reference
|
|
261
|
+
|
|
262
|
+
See: .blueprint/PROJECT.md (updated [today])
|
|
263
|
+
|
|
264
|
+
**Core value:** [Current core value from PROJECT.md]
|
|
265
|
+
**Current focus:** [Next phase name]
|
|
266
|
+
```
|
|
267
|
+
|
|
268
|
+
Update the date and current focus to reflect the transition.
|
|
269
|
+
|
|
270
|
+
</step>
|
|
271
|
+
|
|
272
|
+
<step name="review_accumulated_context">
|
|
273
|
+
|
|
274
|
+
Review and update Accumulated Context section in STATE.md.
|
|
275
|
+
|
|
276
|
+
**Decisions:**
|
|
277
|
+
|
|
278
|
+
- Note recent decisions from this phase (3-5 max)
|
|
279
|
+
- Full log lives in PROJECT.md Key Decisions table
|
|
280
|
+
|
|
281
|
+
**Blockers/Concerns:**
|
|
282
|
+
|
|
283
|
+
- Review blockers from completed phase
|
|
284
|
+
- If addressed in this phase: Remove from list
|
|
285
|
+
- If still relevant for future: Keep with "Phase X" prefix
|
|
286
|
+
- Add any new concerns from completed phase's summaries
|
|
287
|
+
|
|
288
|
+
**Example:**
|
|
289
|
+
|
|
290
|
+
Before:
|
|
291
|
+
|
|
292
|
+
```markdown
|
|
293
|
+
### Blockers/Concerns
|
|
294
|
+
|
|
295
|
+
- ⚠️ [Phase 1] Database schema not indexed for common queries
|
|
296
|
+
- ⚠️ [Phase 2] WebSocket reconnection behavior on flaky networks unknown
|
|
297
|
+
```
|
|
298
|
+
|
|
299
|
+
After (if database indexing was addressed in Phase 2):
|
|
300
|
+
|
|
301
|
+
```markdown
|
|
302
|
+
### Blockers/Concerns
|
|
303
|
+
|
|
304
|
+
- ⚠️ [Phase 2] WebSocket reconnection behavior on flaky networks unknown
|
|
305
|
+
```
|
|
306
|
+
|
|
307
|
+
**Step complete when:**
|
|
308
|
+
|
|
309
|
+
- [ ] Recent decisions noted (full log in PROJECT.md)
|
|
310
|
+
- [ ] Resolved blockers removed from list
|
|
311
|
+
- [ ] Unresolved blockers kept with phase prefix
|
|
312
|
+
- [ ] New concerns from completed phase added
|
|
313
|
+
|
|
314
|
+
</step>
|
|
315
|
+
|
|
316
|
+
<step name="update_session_continuity_after_transition">
|
|
317
|
+
|
|
318
|
+
Update Session Continuity section in STATE.md to reflect transition completion.
|
|
319
|
+
|
|
320
|
+
**Format:**
|
|
321
|
+
|
|
322
|
+
```markdown
|
|
323
|
+
Last session: [today]
|
|
324
|
+
Stopped at: Phase [X] complete, ready to plan Phase [X+1]
|
|
325
|
+
Resume file: None
|
|
326
|
+
```
|
|
327
|
+
|
|
328
|
+
**Step complete when:**
|
|
329
|
+
|
|
330
|
+
- [ ] Last session timestamp updated to current date and time
|
|
331
|
+
- [ ] Stopped at describes phase completion and next phase
|
|
332
|
+
- [ ] Resume file confirmed as None (transitions don't use resume files)
|
|
333
|
+
|
|
334
|
+
</step>
|
|
335
|
+
|
|
336
|
+
<step name="offer_next_phase">
|
|
337
|
+
|
|
338
|
+
**MANDATORY: Verify milestone status before presenting next steps.**
|
|
339
|
+
|
|
340
|
+
**Use the transition result from `blueprint-tools phase complete`:**
|
|
341
|
+
|
|
342
|
+
The `is_last_phase` field from the phase complete result tells you directly:
|
|
343
|
+
- `is_last_phase: false` → More phases remain → Go to **Route A**
|
|
344
|
+
- `is_last_phase: true` → Milestone complete → Go to **Route B**
|
|
345
|
+
|
|
346
|
+
The `next_phase` and `next_phase_name` fields give you the next phase details.
|
|
347
|
+
|
|
348
|
+
If you need additional context, use:
|
|
349
|
+
```bash
|
|
350
|
+
ROADMAP=$(node ~/.claude/blueprint/bin/blueprint-tools.js roadmap analyze)
|
|
351
|
+
```
|
|
352
|
+
|
|
353
|
+
This returns all phases with goals, disk status, and completion info.
|
|
354
|
+
|
|
355
|
+
---
|
|
356
|
+
|
|
357
|
+
**Route A: More phases remain in milestone**
|
|
358
|
+
|
|
359
|
+
Read ROADMAP.md to get the next phase's name and goal.
|
|
360
|
+
|
|
361
|
+
**If next phase exists:**
|
|
362
|
+
|
|
363
|
+
<if mode="yolo">
|
|
364
|
+
|
|
365
|
+
```
|
|
366
|
+
Phase [X] marked complete.
|
|
367
|
+
|
|
368
|
+
Next: Phase [X+1] — [Name]
|
|
369
|
+
|
|
370
|
+
⚡ Auto-continuing: Plan Phase [X+1] in detail
|
|
371
|
+
```
|
|
372
|
+
|
|
373
|
+
Exit skill and invoke SlashCommand("/bp:plan-phase [X+1]")
|
|
374
|
+
|
|
375
|
+
</if>
|
|
376
|
+
|
|
377
|
+
<if mode="interactive" OR="custom with gates.confirm_transition true">
|
|
378
|
+
|
|
379
|
+
```
|
|
380
|
+
## ✓ Phase [X] Complete
|
|
381
|
+
|
|
382
|
+
---
|
|
383
|
+
|
|
384
|
+
## ▶ Next Up
|
|
385
|
+
|
|
386
|
+
**Phase [X+1]: [Name]** — [Goal from ROADMAP.md]
|
|
387
|
+
|
|
388
|
+
`/bp:plan-phase [X+1]`
|
|
389
|
+
|
|
390
|
+
<sub>`/clear` first → fresh context window</sub>
|
|
391
|
+
|
|
392
|
+
---
|
|
393
|
+
|
|
394
|
+
**Also available:**
|
|
395
|
+
- `/bp:discuss-phase [X+1]` — gather context first
|
|
396
|
+
- `/bp:research-phase [X+1]` — investigate unknowns
|
|
397
|
+
- Review roadmap
|
|
398
|
+
|
|
399
|
+
---
|
|
400
|
+
```
|
|
401
|
+
|
|
402
|
+
</if>
|
|
403
|
+
|
|
404
|
+
---
|
|
405
|
+
|
|
406
|
+
**Route B: Milestone complete (all phases done)**
|
|
407
|
+
|
|
408
|
+
<if mode="yolo">
|
|
409
|
+
|
|
410
|
+
```
|
|
411
|
+
Phase {X} marked complete.
|
|
412
|
+
|
|
413
|
+
🎉 Milestone {version} is 100% complete — all {N} phases finished!
|
|
414
|
+
|
|
415
|
+
⚡ Auto-continuing: Complete milestone and archive
|
|
416
|
+
```
|
|
417
|
+
|
|
418
|
+
Exit skill and invoke SlashCommand("/bp:complete-milestone {version}")
|
|
419
|
+
|
|
420
|
+
</if>
|
|
421
|
+
|
|
422
|
+
<if mode="interactive" OR="custom with gates.confirm_transition true">
|
|
423
|
+
|
|
424
|
+
```
|
|
425
|
+
## ✓ Phase {X}: {Phase Name} Complete
|
|
426
|
+
|
|
427
|
+
🎉 Milestone {version} is 100% complete — all {N} phases finished!
|
|
428
|
+
|
|
429
|
+
---
|
|
430
|
+
|
|
431
|
+
## ▶ Next Up
|
|
432
|
+
|
|
433
|
+
**Complete Milestone {version}** — archive and prepare for next
|
|
434
|
+
|
|
435
|
+
`/bp:complete-milestone {version}`
|
|
436
|
+
|
|
437
|
+
<sub>`/clear` first → fresh context window</sub>
|
|
438
|
+
|
|
439
|
+
---
|
|
440
|
+
|
|
441
|
+
**Also available:**
|
|
442
|
+
- Review accomplishments before archiving
|
|
443
|
+
|
|
444
|
+
---
|
|
445
|
+
```
|
|
446
|
+
|
|
447
|
+
</if>
|
|
448
|
+
|
|
449
|
+
</step>
|
|
450
|
+
|
|
451
|
+
</process>
|
|
452
|
+
|
|
453
|
+
<implicit_tracking>
|
|
454
|
+
Progress tracking is IMPLICIT: planning phase N implies phases 1-(N-1) complete. No separate progress step—forward motion IS progress.
|
|
455
|
+
</implicit_tracking>
|
|
456
|
+
|
|
457
|
+
<partial_completion>
|
|
458
|
+
|
|
459
|
+
If user wants to move on but phase isn't fully complete:
|
|
460
|
+
|
|
461
|
+
```
|
|
462
|
+
Phase [X] has incomplete plans:
|
|
463
|
+
- {phase}-02-PLAN.md (not executed)
|
|
464
|
+
- {phase}-03-PLAN.md (not executed)
|
|
465
|
+
|
|
466
|
+
Options:
|
|
467
|
+
1. Mark complete anyway (plans weren't needed)
|
|
468
|
+
2. Defer work to later phase
|
|
469
|
+
3. Stay and finish current phase
|
|
470
|
+
```
|
|
471
|
+
|
|
472
|
+
Respect user judgment — they know if work matters.
|
|
473
|
+
|
|
474
|
+
**If marking complete with incomplete plans:**
|
|
475
|
+
|
|
476
|
+
- Update ROADMAP: "2/3 plans complete" (not "3/3")
|
|
477
|
+
- Note in transition message which plans were skipped
|
|
478
|
+
|
|
479
|
+
</partial_completion>
|
|
480
|
+
|
|
481
|
+
<success_criteria>
|
|
482
|
+
|
|
483
|
+
Transition is complete when:
|
|
484
|
+
|
|
485
|
+
- [ ] Current phase plan summaries verified (all exist or user chose to skip)
|
|
486
|
+
- [ ] Any stale handoffs deleted
|
|
487
|
+
- [ ] ROADMAP.md updated with completion status and plan count
|
|
488
|
+
- [ ] PROJECT.md evolved (requirements, decisions, description if needed)
|
|
489
|
+
- [ ] STATE.md updated (position, project reference, context, session)
|
|
490
|
+
- [ ] Progress table updated
|
|
491
|
+
- [ ] User knows next steps
|
|
492
|
+
|
|
493
|
+
</success_criteria>
|