@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,41 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: gsd:check-todos
|
|
3
|
+
description: List pending todos and select one to work on
|
|
4
|
+
argument-hint: [area filter]
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- Read
|
|
7
|
+
- Write
|
|
8
|
+
- Bash
|
|
9
|
+
- AskUserQuestion
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
<objective>
|
|
13
|
+
List all pending todos, allow selection, load full context for the selected todo, and route to appropriate action.
|
|
14
|
+
|
|
15
|
+
Routes to the check-todos workflow which handles:
|
|
16
|
+
- Todo counting and listing with area filtering
|
|
17
|
+
- Interactive selection with full context loading
|
|
18
|
+
- Roadmap correlation checking
|
|
19
|
+
- Action routing (work now, add to phase, brainstorm, create phase)
|
|
20
|
+
- STATE.md updates and git commits
|
|
21
|
+
</objective>
|
|
22
|
+
|
|
23
|
+
<execution_context>
|
|
24
|
+
@.blueprint/STATE.md
|
|
25
|
+
@.blueprint/ROADMAP.md
|
|
26
|
+
@~/.claude/blueprint/workflows/check-todos.md
|
|
27
|
+
</execution_context>
|
|
28
|
+
|
|
29
|
+
<process>
|
|
30
|
+
**Follow the check-todos workflow** from `@~/.claude/blueprint/workflows/check-todos.md`.
|
|
31
|
+
|
|
32
|
+
The workflow handles all logic including:
|
|
33
|
+
1. Todo existence checking
|
|
34
|
+
2. Area filtering
|
|
35
|
+
3. Interactive listing and selection
|
|
36
|
+
4. Full context loading with file summaries
|
|
37
|
+
5. Roadmap correlation checking
|
|
38
|
+
6. Action offering and execution
|
|
39
|
+
7. STATE.md updates
|
|
40
|
+
8. Git commits
|
|
41
|
+
</process>
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: prompt
|
|
3
|
+
name: gsd:complete-milestone
|
|
4
|
+
description: Archive completed milestone and prepare for next version
|
|
5
|
+
argument-hint: <version>
|
|
6
|
+
allowed-tools:
|
|
7
|
+
- Read
|
|
8
|
+
- Write
|
|
9
|
+
- Bash
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
<objective>
|
|
13
|
+
Mark milestone {{version}} complete, archive to milestones/, and update ROADMAP.md and REQUIREMENTS.md.
|
|
14
|
+
|
|
15
|
+
Purpose: Create historical record of shipped version, archive milestone artifacts (roadmap + requirements), and prepare for next milestone.
|
|
16
|
+
Output: Milestone archived (roadmap + requirements), PROJECT.md evolved, git tagged.
|
|
17
|
+
</objective>
|
|
18
|
+
|
|
19
|
+
<execution_context>
|
|
20
|
+
**Load these files NOW (before proceeding):**
|
|
21
|
+
|
|
22
|
+
- @~/.claude/blueprint/workflows/complete-milestone.md (main workflow)
|
|
23
|
+
- @~/.claude/blueprint/templates/milestone-archive.md (archive template)
|
|
24
|
+
</execution_context>
|
|
25
|
+
|
|
26
|
+
<context>
|
|
27
|
+
**Project files:**
|
|
28
|
+
- `.blueprint/ROADMAP.md`
|
|
29
|
+
- `.blueprint/REQUIREMENTS.md`
|
|
30
|
+
- `.blueprint/STATE.md`
|
|
31
|
+
- `.blueprint/PROJECT.md`
|
|
32
|
+
|
|
33
|
+
**User input:**
|
|
34
|
+
|
|
35
|
+
- Version: {{version}} (e.g., "1.0", "1.1", "2.0")
|
|
36
|
+
</context>
|
|
37
|
+
|
|
38
|
+
<process>
|
|
39
|
+
|
|
40
|
+
**Follow complete-milestone.md workflow:**
|
|
41
|
+
|
|
42
|
+
0. **Check for audit:**
|
|
43
|
+
|
|
44
|
+
- Look for `.blueprint/v{{version}}-MILESTONE-AUDIT.md`
|
|
45
|
+
- If missing or stale: recommend `/bp:audit-milestone` first
|
|
46
|
+
- If audit status is `gaps_found`: recommend `/bp:plan-milestone-gaps` first
|
|
47
|
+
- If audit status is `passed`: proceed to step 1
|
|
48
|
+
|
|
49
|
+
```markdown
|
|
50
|
+
## Pre-flight Check
|
|
51
|
+
|
|
52
|
+
{If no v{{version}}-MILESTONE-AUDIT.md:}
|
|
53
|
+
⚠ No milestone audit found. Run `/bp:audit-milestone` first to verify
|
|
54
|
+
requirements coverage, cross-phase integration, and E2E flows.
|
|
55
|
+
|
|
56
|
+
{If audit has gaps:}
|
|
57
|
+
⚠ Milestone audit found gaps. Run `/bp:plan-milestone-gaps` to create
|
|
58
|
+
phases that close the gaps, or proceed anyway to accept as tech debt.
|
|
59
|
+
|
|
60
|
+
{If audit passed:}
|
|
61
|
+
✓ Milestone audit passed. Proceeding with completion.
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
1. **Verify readiness:**
|
|
65
|
+
|
|
66
|
+
- Check all phases in milestone have completed plans (SUMMARY.md exists)
|
|
67
|
+
- Present milestone scope and stats
|
|
68
|
+
- Wait for confirmation
|
|
69
|
+
|
|
70
|
+
2. **Gather stats:**
|
|
71
|
+
|
|
72
|
+
- Count phases, plans, tasks
|
|
73
|
+
- Calculate git range, file changes, LOC
|
|
74
|
+
- Extract timeline from git log
|
|
75
|
+
- Present summary, confirm
|
|
76
|
+
|
|
77
|
+
3. **Extract accomplishments:**
|
|
78
|
+
|
|
79
|
+
- Read all phase SUMMARY.md files in milestone range
|
|
80
|
+
- Extract 4-6 key accomplishments
|
|
81
|
+
- Present for approval
|
|
82
|
+
|
|
83
|
+
4. **Archive milestone:**
|
|
84
|
+
|
|
85
|
+
- Create `.blueprint/milestones/v{{version}}-ROADMAP.md`
|
|
86
|
+
- Extract full phase details from ROADMAP.md
|
|
87
|
+
- Fill milestone-archive.md template
|
|
88
|
+
- Update ROADMAP.md to one-line summary with link
|
|
89
|
+
|
|
90
|
+
5. **Archive requirements:**
|
|
91
|
+
|
|
92
|
+
- Create `.blueprint/milestones/v{{version}}-REQUIREMENTS.md`
|
|
93
|
+
- Mark all v1 requirements as complete (checkboxes checked)
|
|
94
|
+
- Note requirement outcomes (validated, adjusted, dropped)
|
|
95
|
+
- Delete `.blueprint/REQUIREMENTS.md` (fresh one created for next milestone)
|
|
96
|
+
|
|
97
|
+
6. **Update PROJECT.md:**
|
|
98
|
+
|
|
99
|
+
- Add "Current State" section with shipped version
|
|
100
|
+
- Add "Next Milestone Goals" section
|
|
101
|
+
- Archive previous content in `<details>` (if v1.1+)
|
|
102
|
+
|
|
103
|
+
7. **Commit and tag:**
|
|
104
|
+
|
|
105
|
+
- Stage: MILESTONES.md, PROJECT.md, ROADMAP.md, STATE.md, archive files
|
|
106
|
+
- Commit: `chore: archive v{{version}} milestone`
|
|
107
|
+
- Tag: `git tag -a v{{version}} -m "[milestone summary]"`
|
|
108
|
+
- Ask about pushing tag
|
|
109
|
+
|
|
110
|
+
8. **Offer next steps:**
|
|
111
|
+
- `/bp:new-milestone` — start next milestone (questioning → research → requirements → roadmap)
|
|
112
|
+
|
|
113
|
+
</process>
|
|
114
|
+
|
|
115
|
+
<success_criteria>
|
|
116
|
+
|
|
117
|
+
- Milestone archived to `.blueprint/milestones/v{{version}}-ROADMAP.md`
|
|
118
|
+
- Requirements archived to `.blueprint/milestones/v{{version}}-REQUIREMENTS.md`
|
|
119
|
+
- `.blueprint/REQUIREMENTS.md` deleted (fresh for next milestone)
|
|
120
|
+
- ROADMAP.md collapsed to one-line entry
|
|
121
|
+
- PROJECT.md updated with current state
|
|
122
|
+
- Git tag v{{version}} created
|
|
123
|
+
- Commit successful
|
|
124
|
+
- User knows next steps (including need for fresh requirements)
|
|
125
|
+
</success_criteria>
|
|
126
|
+
|
|
127
|
+
<critical_rules>
|
|
128
|
+
|
|
129
|
+
- **Load workflow first:** Read complete-milestone.md before executing
|
|
130
|
+
- **Verify completion:** All phases must have SUMMARY.md files
|
|
131
|
+
- **User confirmation:** Wait for approval at verification gates
|
|
132
|
+
- **Archive before deleting:** Always create archive files before updating/deleting originals
|
|
133
|
+
- **One-line summary:** Collapsed milestone in ROADMAP.md should be single line with link
|
|
134
|
+
- **Context efficiency:** Archive keeps ROADMAP.md and REQUIREMENTS.md constant size per milestone
|
|
135
|
+
- **Fresh requirements:** Next milestone starts with `/bp:new-milestone` which includes requirements definition
|
|
136
|
+
</critical_rules>
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: gsd:debug
|
|
3
|
+
description: Systematic debugging with persistent state across context resets
|
|
4
|
+
argument-hint: [issue description]
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- Read
|
|
7
|
+
- Bash
|
|
8
|
+
- Task
|
|
9
|
+
- AskUserQuestion
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
<objective>
|
|
13
|
+
Debug issues using scientific method with subagent isolation.
|
|
14
|
+
|
|
15
|
+
**Orchestrator role:** Gather symptoms, spawn bp-debugger agent, handle checkpoints, spawn continuations.
|
|
16
|
+
|
|
17
|
+
**Why subagent:** Investigation burns context fast (reading files, forming hypotheses, testing). Fresh 200k context per investigation. Main context stays lean for user interaction.
|
|
18
|
+
</objective>
|
|
19
|
+
|
|
20
|
+
<context>
|
|
21
|
+
User's issue: $ARGUMENTS
|
|
22
|
+
|
|
23
|
+
Check for active sessions:
|
|
24
|
+
```bash
|
|
25
|
+
ls .blueprint/debug/*.md 2>/dev/null | grep -v resolved | head -5
|
|
26
|
+
```
|
|
27
|
+
</context>
|
|
28
|
+
|
|
29
|
+
<process>
|
|
30
|
+
|
|
31
|
+
## 0. Initialize Context
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
INIT=$(node ~/.claude/blueprint/bin/blueprint-tools.js state load)
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
Extract `commit_docs` from init JSON. Resolve debugger model:
|
|
38
|
+
```bash
|
|
39
|
+
DEBUGGER_MODEL=$(node ~/.claude/blueprint/bin/blueprint-tools.js resolve-model bp-debugger --raw)
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## 1. Check Active Sessions
|
|
43
|
+
|
|
44
|
+
If active sessions exist AND no $ARGUMENTS:
|
|
45
|
+
- List sessions with status, hypothesis, next action
|
|
46
|
+
- User picks number to resume OR describes new issue
|
|
47
|
+
|
|
48
|
+
If $ARGUMENTS provided OR user describes new issue:
|
|
49
|
+
- Continue to symptom gathering
|
|
50
|
+
|
|
51
|
+
## 2. Gather Symptoms (if new issue)
|
|
52
|
+
|
|
53
|
+
Use AskUserQuestion for each:
|
|
54
|
+
|
|
55
|
+
1. **Expected behavior** - What should happen?
|
|
56
|
+
2. **Actual behavior** - What happens instead?
|
|
57
|
+
3. **Error messages** - Any errors? (paste or describe)
|
|
58
|
+
4. **Timeline** - When did this start? Ever worked?
|
|
59
|
+
5. **Reproduction** - How do you trigger it?
|
|
60
|
+
|
|
61
|
+
After all gathered, confirm ready to investigate.
|
|
62
|
+
|
|
63
|
+
## 3. Spawn bp-debugger Agent
|
|
64
|
+
|
|
65
|
+
Fill prompt and spawn:
|
|
66
|
+
|
|
67
|
+
```markdown
|
|
68
|
+
<objective>
|
|
69
|
+
Investigate issue: {slug}
|
|
70
|
+
|
|
71
|
+
**Summary:** {trigger}
|
|
72
|
+
</objective>
|
|
73
|
+
|
|
74
|
+
<symptoms>
|
|
75
|
+
expected: {expected}
|
|
76
|
+
actual: {actual}
|
|
77
|
+
errors: {errors}
|
|
78
|
+
reproduction: {reproduction}
|
|
79
|
+
timeline: {timeline}
|
|
80
|
+
</symptoms>
|
|
81
|
+
|
|
82
|
+
<mode>
|
|
83
|
+
symptoms_prefilled: true
|
|
84
|
+
goal: find_and_fix
|
|
85
|
+
</mode>
|
|
86
|
+
|
|
87
|
+
<debug_file>
|
|
88
|
+
Create: .blueprint/debug/{slug}.md
|
|
89
|
+
</debug_file>
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
```
|
|
93
|
+
Task(
|
|
94
|
+
prompt=filled_prompt,
|
|
95
|
+
subagent_type="bp-debugger",
|
|
96
|
+
model="{debugger_model}",
|
|
97
|
+
description="Debug {slug}"
|
|
98
|
+
)
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
## 4. Handle Agent Return
|
|
102
|
+
|
|
103
|
+
**If `## ROOT CAUSE FOUND`:**
|
|
104
|
+
- Display root cause and evidence summary
|
|
105
|
+
- Offer options:
|
|
106
|
+
- "Fix now" - spawn fix subagent
|
|
107
|
+
- "Plan fix" - suggest /bp:plan-phase --gaps
|
|
108
|
+
- "Manual fix" - done
|
|
109
|
+
|
|
110
|
+
**If `## CHECKPOINT REACHED`:**
|
|
111
|
+
- Present checkpoint details to user
|
|
112
|
+
- Get user response
|
|
113
|
+
- Spawn continuation agent (see step 5)
|
|
114
|
+
|
|
115
|
+
**If `## INVESTIGATION INCONCLUSIVE`:**
|
|
116
|
+
- Show what was checked and eliminated
|
|
117
|
+
- Offer options:
|
|
118
|
+
- "Continue investigating" - spawn new agent with additional context
|
|
119
|
+
- "Manual investigation" - done
|
|
120
|
+
- "Add more context" - gather more symptoms, spawn again
|
|
121
|
+
|
|
122
|
+
## 5. Spawn Continuation Agent (After Checkpoint)
|
|
123
|
+
|
|
124
|
+
When user responds to checkpoint, spawn fresh agent:
|
|
125
|
+
|
|
126
|
+
```markdown
|
|
127
|
+
<objective>
|
|
128
|
+
Continue debugging {slug}. Evidence is in the debug file.
|
|
129
|
+
</objective>
|
|
130
|
+
|
|
131
|
+
<prior_state>
|
|
132
|
+
Debug file: @.blueprint/debug/{slug}.md
|
|
133
|
+
</prior_state>
|
|
134
|
+
|
|
135
|
+
<checkpoint_response>
|
|
136
|
+
**Type:** {checkpoint_type}
|
|
137
|
+
**Response:** {user_response}
|
|
138
|
+
</checkpoint_response>
|
|
139
|
+
|
|
140
|
+
<mode>
|
|
141
|
+
goal: find_and_fix
|
|
142
|
+
</mode>
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
```
|
|
146
|
+
Task(
|
|
147
|
+
prompt=continuation_prompt,
|
|
148
|
+
subagent_type="bp-debugger",
|
|
149
|
+
model="{debugger_model}",
|
|
150
|
+
description="Continue debug {slug}"
|
|
151
|
+
)
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
</process>
|
|
155
|
+
|
|
156
|
+
<success_criteria>
|
|
157
|
+
- [ ] Active sessions checked
|
|
158
|
+
- [ ] Symptoms gathered (if new)
|
|
159
|
+
- [ ] bp-debugger spawned with context
|
|
160
|
+
- [ ] Checkpoints handled correctly
|
|
161
|
+
- [ ] Root cause confirmed before fixing
|
|
162
|
+
</success_criteria>
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: gsd:discuss-phase
|
|
3
|
+
description: Gather phase context through adaptive questioning before planning
|
|
4
|
+
argument-hint: "<phase>"
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- Read
|
|
7
|
+
- Write
|
|
8
|
+
- Bash
|
|
9
|
+
- Glob
|
|
10
|
+
- Grep
|
|
11
|
+
- AskUserQuestion
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
<objective>
|
|
15
|
+
Extract implementation decisions that downstream agents need — researcher and planner will use CONTEXT.md to know what to investigate and what choices are locked.
|
|
16
|
+
|
|
17
|
+
**How it works:**
|
|
18
|
+
1. Analyze the phase to identify gray areas (UI, UX, behavior, etc.)
|
|
19
|
+
2. Present gray areas — user selects which to discuss
|
|
20
|
+
3. Deep-dive each selected area until satisfied
|
|
21
|
+
4. Create CONTEXT.md with decisions that guide research and planning
|
|
22
|
+
|
|
23
|
+
**Output:** `{phase}-CONTEXT.md` — decisions clear enough that downstream agents can act without asking the user again
|
|
24
|
+
</objective>
|
|
25
|
+
|
|
26
|
+
<execution_context>
|
|
27
|
+
@~/.claude/blueprint/workflows/discuss-phase.md
|
|
28
|
+
@~/.claude/blueprint/templates/context.md
|
|
29
|
+
</execution_context>
|
|
30
|
+
|
|
31
|
+
<context>
|
|
32
|
+
Phase number: $ARGUMENTS (required)
|
|
33
|
+
|
|
34
|
+
**Load project state:**
|
|
35
|
+
@.blueprint/STATE.md
|
|
36
|
+
|
|
37
|
+
**Load roadmap:**
|
|
38
|
+
@.blueprint/ROADMAP.md
|
|
39
|
+
</context>
|
|
40
|
+
|
|
41
|
+
<process>
|
|
42
|
+
1. Validate phase number (error if missing or not in roadmap)
|
|
43
|
+
2. Check if CONTEXT.md exists (offer update/view/skip if yes)
|
|
44
|
+
3. **Analyze phase** — Identify domain and generate phase-specific gray areas
|
|
45
|
+
4. **Present gray areas** — Multi-select: which to discuss? (NO skip option)
|
|
46
|
+
5. **Deep-dive each area** — 4 questions per area, then offer more/next
|
|
47
|
+
6. **Write CONTEXT.md** — Sections match areas discussed
|
|
48
|
+
7. Offer next steps (research or plan)
|
|
49
|
+
|
|
50
|
+
**CRITICAL: Scope guardrail**
|
|
51
|
+
- Phase boundary from ROADMAP.md is FIXED
|
|
52
|
+
- Discussion clarifies HOW to implement, not WHETHER to add more
|
|
53
|
+
- If user suggests new capabilities: "That's its own phase. I'll note it for later."
|
|
54
|
+
- Capture deferred ideas — don't lose them, don't act on them
|
|
55
|
+
|
|
56
|
+
**Domain-aware gray areas:**
|
|
57
|
+
Gray areas depend on what's being built. Analyze the phase goal:
|
|
58
|
+
- Something users SEE → layout, density, interactions, states
|
|
59
|
+
- Something users CALL → responses, errors, auth, versioning
|
|
60
|
+
- Something users RUN → output format, flags, modes, error handling
|
|
61
|
+
- Something users READ → structure, tone, depth, flow
|
|
62
|
+
- Something being ORGANIZED → criteria, grouping, naming, exceptions
|
|
63
|
+
|
|
64
|
+
Generate 3-4 **phase-specific** gray areas, not generic categories.
|
|
65
|
+
|
|
66
|
+
**Probing depth:**
|
|
67
|
+
- Ask 4 questions per area before checking
|
|
68
|
+
- "More questions about [area], or move to next?"
|
|
69
|
+
- If more → ask 4 more, check again
|
|
70
|
+
- After all areas → "Ready to create context?"
|
|
71
|
+
|
|
72
|
+
**Do NOT ask about (Claude handles these):**
|
|
73
|
+
- Technical implementation
|
|
74
|
+
- Architecture choices
|
|
75
|
+
- Performance concerns
|
|
76
|
+
- Scope expansion
|
|
77
|
+
</process>
|
|
78
|
+
|
|
79
|
+
<success_criteria>
|
|
80
|
+
- Gray areas identified through intelligent analysis
|
|
81
|
+
- User chose which areas to discuss
|
|
82
|
+
- Each selected area explored until satisfied
|
|
83
|
+
- Scope creep redirected to deferred ideas
|
|
84
|
+
- CONTEXT.md captures decisions, not vague vision
|
|
85
|
+
- User knows next steps
|
|
86
|
+
</success_criteria>
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: gsd:execute-phase
|
|
3
|
+
description: Execute all plans in a phase with wave-based parallelization
|
|
4
|
+
argument-hint: "<phase-number> [--gaps-only]"
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- Read
|
|
7
|
+
- Write
|
|
8
|
+
- Edit
|
|
9
|
+
- Glob
|
|
10
|
+
- Grep
|
|
11
|
+
- Bash
|
|
12
|
+
- Task
|
|
13
|
+
- TodoWrite
|
|
14
|
+
- AskUserQuestion
|
|
15
|
+
---
|
|
16
|
+
<objective>
|
|
17
|
+
Execute all plans in a phase using wave-based parallel execution.
|
|
18
|
+
|
|
19
|
+
Orchestrator stays lean: discover plans, analyze dependencies, group into waves, spawn subagents, collect results. Each subagent loads the full execute-plan context and handles its own plan.
|
|
20
|
+
|
|
21
|
+
Context budget: ~15% orchestrator, 100% fresh per subagent.
|
|
22
|
+
</objective>
|
|
23
|
+
|
|
24
|
+
<execution_context>
|
|
25
|
+
@~/.claude/blueprint/workflows/execute-phase.md
|
|
26
|
+
@~/.claude/blueprint/references/ui-brand.md
|
|
27
|
+
</execution_context>
|
|
28
|
+
|
|
29
|
+
<context>
|
|
30
|
+
Phase: $ARGUMENTS
|
|
31
|
+
|
|
32
|
+
**Flags:**
|
|
33
|
+
- `--gaps-only` — Execute only gap closure plans (plans with `gap_closure: true` in frontmatter). Use after verify-work creates fix plans.
|
|
34
|
+
|
|
35
|
+
@.blueprint/ROADMAP.md
|
|
36
|
+
@.blueprint/STATE.md
|
|
37
|
+
</context>
|
|
38
|
+
|
|
39
|
+
<process>
|
|
40
|
+
Execute the execute-phase workflow from @~/.claude/blueprint/workflows/execute-phase.md end-to-end.
|
|
41
|
+
Preserve all workflow gates (wave execution, checkpoint handling, verification, state updates, routing).
|
|
42
|
+
</process>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: gsd:help
|
|
3
|
+
description: Show available Blueprint commands and usage guide
|
|
4
|
+
---
|
|
5
|
+
<objective>
|
|
6
|
+
Display the complete Blueprint command reference.
|
|
7
|
+
|
|
8
|
+
Output ONLY the reference content below. Do NOT add:
|
|
9
|
+
- Project-specific analysis
|
|
10
|
+
- Git status or file context
|
|
11
|
+
- Next-step suggestions
|
|
12
|
+
- Any commentary beyond the reference
|
|
13
|
+
</objective>
|
|
14
|
+
|
|
15
|
+
<execution_context>
|
|
16
|
+
@~/.claude/blueprint/workflows/help.md
|
|
17
|
+
</execution_context>
|
|
18
|
+
|
|
19
|
+
<process>
|
|
20
|
+
Output the complete Blueprint command reference from @~/.claude/blueprint/workflows/help.md.
|
|
21
|
+
Display the reference content directly — no additions or modifications.
|
|
22
|
+
</process>
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: gsd:insert-phase
|
|
3
|
+
description: Insert urgent work as decimal phase (e.g., 72.1) between existing phases
|
|
4
|
+
argument-hint: <after> <description>
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- Read
|
|
7
|
+
- Write
|
|
8
|
+
- Bash
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
<objective>
|
|
12
|
+
Insert a decimal phase for urgent work discovered mid-milestone that must be completed between existing integer phases.
|
|
13
|
+
|
|
14
|
+
Uses decimal numbering (72.1, 72.2, etc.) to preserve the logical sequence of planned phases while accommodating urgent insertions.
|
|
15
|
+
|
|
16
|
+
Purpose: Handle urgent work discovered during execution without renumbering entire roadmap.
|
|
17
|
+
</objective>
|
|
18
|
+
|
|
19
|
+
<execution_context>
|
|
20
|
+
@~/.claude/blueprint/workflows/insert-phase.md
|
|
21
|
+
</execution_context>
|
|
22
|
+
|
|
23
|
+
<context>
|
|
24
|
+
Arguments: $ARGUMENTS (format: <after-phase-number> <description>)
|
|
25
|
+
|
|
26
|
+
@.blueprint/ROADMAP.md
|
|
27
|
+
@.blueprint/STATE.md
|
|
28
|
+
</context>
|
|
29
|
+
|
|
30
|
+
<process>
|
|
31
|
+
Execute the insert-phase workflow from @~/.claude/blueprint/workflows/insert-phase.md end-to-end.
|
|
32
|
+
Preserve all validation gates (argument parsing, phase verification, decimal calculation, roadmap updates).
|
|
33
|
+
</process>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: gsd:join-discord
|
|
3
|
+
description: Join the Blueprint Discord community
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
<objective>
|
|
7
|
+
Display the Discord invite link for the Blueprint community server.
|
|
8
|
+
</objective>
|
|
9
|
+
|
|
10
|
+
<output>
|
|
11
|
+
# Join the Blueprint Discord
|
|
12
|
+
|
|
13
|
+
Connect with other Blueprint users, get help, share what you're building, and stay updated.
|
|
14
|
+
|
|
15
|
+
**Invite link:** https://discord.gg/5JJgD5svVS
|
|
16
|
+
|
|
17
|
+
Click the link or paste it into your browser to join.
|
|
18
|
+
</output>
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: gsd:list-phase-assumptions
|
|
3
|
+
description: Surface Claude's assumptions about a phase approach before planning
|
|
4
|
+
argument-hint: "[phase]"
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- Read
|
|
7
|
+
- Bash
|
|
8
|
+
- Grep
|
|
9
|
+
- Glob
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
<objective>
|
|
13
|
+
Analyze a phase and present Claude's assumptions about technical approach, implementation order, scope boundaries, risk areas, and dependencies.
|
|
14
|
+
|
|
15
|
+
Purpose: Help users see what Claude thinks BEFORE planning begins - enabling course correction early when assumptions are wrong.
|
|
16
|
+
Output: Conversational output only (no file creation) - ends with "What do you think?" prompt
|
|
17
|
+
</objective>
|
|
18
|
+
|
|
19
|
+
<execution_context>
|
|
20
|
+
@~/.claude/blueprint/workflows/list-phase-assumptions.md
|
|
21
|
+
</execution_context>
|
|
22
|
+
|
|
23
|
+
<context>
|
|
24
|
+
Phase number: $ARGUMENTS (required)
|
|
25
|
+
|
|
26
|
+
**Load project state first:**
|
|
27
|
+
@.blueprint/STATE.md
|
|
28
|
+
|
|
29
|
+
**Load roadmap:**
|
|
30
|
+
@.blueprint/ROADMAP.md
|
|
31
|
+
</context>
|
|
32
|
+
|
|
33
|
+
<process>
|
|
34
|
+
1. Validate phase number argument (error if missing or invalid)
|
|
35
|
+
2. Check if phase exists in roadmap
|
|
36
|
+
3. Follow list-phase-assumptions.md workflow:
|
|
37
|
+
- Analyze roadmap description
|
|
38
|
+
- Surface assumptions about: technical approach, implementation order, scope, risks, dependencies
|
|
39
|
+
- Present assumptions clearly
|
|
40
|
+
- Prompt "What do you think?"
|
|
41
|
+
4. Gather feedback and offer next steps
|
|
42
|
+
</process>
|
|
43
|
+
|
|
44
|
+
<success_criteria>
|
|
45
|
+
|
|
46
|
+
- Phase validated against roadmap
|
|
47
|
+
- Assumptions surfaced across five areas
|
|
48
|
+
- User prompted for feedback
|
|
49
|
+
- User knows next steps (discuss context, plan phase, or correct assumptions)
|
|
50
|
+
</success_criteria>
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: gsd:map-codebase
|
|
3
|
+
description: Analyze codebase with parallel mapper agents to produce .blueprint/codebase/ documents
|
|
4
|
+
argument-hint: "[optional: specific area to map, e.g., 'api' or 'auth']"
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- Read
|
|
7
|
+
- Bash
|
|
8
|
+
- Glob
|
|
9
|
+
- Grep
|
|
10
|
+
- Write
|
|
11
|
+
- Task
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
<objective>
|
|
15
|
+
Analyze existing codebase using parallel bp-codebase-mapper agents to produce structured codebase documents.
|
|
16
|
+
|
|
17
|
+
Each mapper agent explores a focus area and **writes documents directly** to `.blueprint/codebase/`. The orchestrator only receives confirmations, keeping context usage minimal.
|
|
18
|
+
|
|
19
|
+
Output: .blueprint/codebase/ folder with 7 structured documents about the codebase state.
|
|
20
|
+
</objective>
|
|
21
|
+
|
|
22
|
+
<execution_context>
|
|
23
|
+
@~/.claude/blueprint/workflows/map-codebase.md
|
|
24
|
+
</execution_context>
|
|
25
|
+
|
|
26
|
+
<context>
|
|
27
|
+
Focus area: $ARGUMENTS (optional - if provided, tells agents to focus on specific subsystem)
|
|
28
|
+
|
|
29
|
+
**Load project state if exists:**
|
|
30
|
+
Check for .blueprint/STATE.md - loads context if project already initialized
|
|
31
|
+
|
|
32
|
+
**This command can run:**
|
|
33
|
+
- Before /bp:new-project (brownfield codebases) - creates codebase map first
|
|
34
|
+
- After /bp:new-project (greenfield codebases) - updates codebase map as code evolves
|
|
35
|
+
- Anytime to refresh codebase understanding
|
|
36
|
+
</context>
|
|
37
|
+
|
|
38
|
+
<when_to_use>
|
|
39
|
+
**Use map-codebase for:**
|
|
40
|
+
- Brownfield projects before initialization (understand existing code first)
|
|
41
|
+
- Refreshing codebase map after significant changes
|
|
42
|
+
- Onboarding to an unfamiliar codebase
|
|
43
|
+
- Before major refactoring (understand current state)
|
|
44
|
+
- When STATE.md references outdated codebase info
|
|
45
|
+
|
|
46
|
+
**Skip map-codebase for:**
|
|
47
|
+
- Greenfield projects with no code yet (nothing to map)
|
|
48
|
+
- Trivial codebases (<5 files)
|
|
49
|
+
</when_to_use>
|
|
50
|
+
|
|
51
|
+
<process>
|
|
52
|
+
1. Check if .blueprint/codebase/ already exists (offer to refresh or skip)
|
|
53
|
+
2. Create .blueprint/codebase/ directory structure
|
|
54
|
+
3. Spawn 4 parallel bp-codebase-mapper agents:
|
|
55
|
+
- Agent 1: tech focus → writes STACK.md, INTEGRATIONS.md
|
|
56
|
+
- Agent 2: arch focus → writes ARCHITECTURE.md, STRUCTURE.md
|
|
57
|
+
- Agent 3: quality focus → writes CONVENTIONS.md, TESTING.md
|
|
58
|
+
- Agent 4: concerns focus → writes CONCERNS.md
|
|
59
|
+
4. Wait for agents to complete, collect confirmations (NOT document contents)
|
|
60
|
+
5. Verify all 7 documents exist with line counts
|
|
61
|
+
6. Commit codebase map
|
|
62
|
+
7. Offer next steps (typically: /bp:new-project or /bp:plan-phase)
|
|
63
|
+
</process>
|
|
64
|
+
|
|
65
|
+
<success_criteria>
|
|
66
|
+
- [ ] .blueprint/codebase/ directory created
|
|
67
|
+
- [ ] All 7 codebase documents written by mapper agents
|
|
68
|
+
- [ ] Documents follow template structure
|
|
69
|
+
- [ ] Parallel agents completed without errors
|
|
70
|
+
- [ ] User knows next steps
|
|
71
|
+
</success_criteria>
|