@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,51 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: gsd:new-milestone
|
|
3
|
+
description: Start a new milestone cycle — update PROJECT.md and route to requirements
|
|
4
|
+
argument-hint: "[milestone name, e.g., 'v1.1 Notifications']"
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- Read
|
|
7
|
+
- Write
|
|
8
|
+
- Bash
|
|
9
|
+
- Task
|
|
10
|
+
- AskUserQuestion
|
|
11
|
+
---
|
|
12
|
+
<objective>
|
|
13
|
+
Start a new milestone: questioning → research (optional) → requirements → roadmap.
|
|
14
|
+
|
|
15
|
+
Brownfield equivalent of new-project. Project exists, PROJECT.md has history. Gathers "what's next", updates PROJECT.md, then runs requirements → roadmap cycle.
|
|
16
|
+
|
|
17
|
+
**Creates/Updates:**
|
|
18
|
+
- `.blueprint/PROJECT.md` — updated with new milestone goals
|
|
19
|
+
- `.blueprint/research/` — domain research (optional, NEW features only)
|
|
20
|
+
- `.blueprint/REQUIREMENTS.md` — scoped requirements for this milestone
|
|
21
|
+
- `.blueprint/ROADMAP.md` — phase structure (continues numbering)
|
|
22
|
+
- `.blueprint/STATE.md` — reset for new milestone
|
|
23
|
+
|
|
24
|
+
**After:** `/bp:plan-phase [N]` to start execution.
|
|
25
|
+
</objective>
|
|
26
|
+
|
|
27
|
+
<execution_context>
|
|
28
|
+
@~/.claude/blueprint/workflows/new-milestone.md
|
|
29
|
+
@~/.claude/blueprint/references/questioning.md
|
|
30
|
+
@~/.claude/blueprint/references/ui-brand.md
|
|
31
|
+
@~/.claude/blueprint/templates/project.md
|
|
32
|
+
@~/.claude/blueprint/templates/requirements.md
|
|
33
|
+
</execution_context>
|
|
34
|
+
|
|
35
|
+
<context>
|
|
36
|
+
Milestone name: $ARGUMENTS (optional - will prompt if not provided)
|
|
37
|
+
|
|
38
|
+
**Load project context:**
|
|
39
|
+
@.blueprint/PROJECT.md
|
|
40
|
+
@.blueprint/STATE.md
|
|
41
|
+
@.blueprint/MILESTONES.md
|
|
42
|
+
@.blueprint/config.json
|
|
43
|
+
|
|
44
|
+
**Load milestone context (if exists, from /bp:discuss-milestone):**
|
|
45
|
+
@.blueprint/MILESTONE-CONTEXT.md
|
|
46
|
+
</context>
|
|
47
|
+
|
|
48
|
+
<process>
|
|
49
|
+
Execute the new-milestone workflow from @~/.claude/blueprint/workflows/new-milestone.md end-to-end.
|
|
50
|
+
Preserve all workflow gates (validation, questioning, research, requirements, roadmap approval, commits).
|
|
51
|
+
</process>
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: gsd:new-project
|
|
3
|
+
description: Initialize a new project with deep context gathering and PROJECT.md
|
|
4
|
+
argument-hint: "[--auto]"
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- Read
|
|
7
|
+
- Bash
|
|
8
|
+
- Write
|
|
9
|
+
- Task
|
|
10
|
+
- AskUserQuestion
|
|
11
|
+
---
|
|
12
|
+
<context>
|
|
13
|
+
**Flags:**
|
|
14
|
+
- `--auto` — Automatic mode. After config questions, runs research → requirements → roadmap without further interaction. Expects idea document via @ reference.
|
|
15
|
+
</context>
|
|
16
|
+
|
|
17
|
+
<objective>
|
|
18
|
+
Initialize a new project through unified flow: questioning → research (optional) → requirements → roadmap.
|
|
19
|
+
|
|
20
|
+
**Creates:**
|
|
21
|
+
- `.blueprint/PROJECT.md` — project context
|
|
22
|
+
- `.blueprint/config.json` — workflow preferences
|
|
23
|
+
- `.blueprint/research/` — domain research (optional)
|
|
24
|
+
- `.blueprint/REQUIREMENTS.md` — scoped requirements
|
|
25
|
+
- `.blueprint/ROADMAP.md` — phase structure
|
|
26
|
+
- `.blueprint/STATE.md` — project memory
|
|
27
|
+
|
|
28
|
+
**After this command:** Run `/bp:plan-phase 1` to start execution.
|
|
29
|
+
</objective>
|
|
30
|
+
|
|
31
|
+
<execution_context>
|
|
32
|
+
@~/.claude/blueprint/workflows/new-project.md
|
|
33
|
+
@~/.claude/blueprint/references/questioning.md
|
|
34
|
+
@~/.claude/blueprint/references/ui-brand.md
|
|
35
|
+
@~/.claude/blueprint/templates/project.md
|
|
36
|
+
@~/.claude/blueprint/templates/requirements.md
|
|
37
|
+
</execution_context>
|
|
38
|
+
|
|
39
|
+
<process>
|
|
40
|
+
Execute the new-project workflow from @~/.claude/blueprint/workflows/new-project.md end-to-end.
|
|
41
|
+
Preserve all workflow gates (validation, approvals, commits, routing).
|
|
42
|
+
</process>
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: gsd:pause-work
|
|
3
|
+
description: Create context handoff when pausing work mid-phase
|
|
4
|
+
allowed-tools:
|
|
5
|
+
- Read
|
|
6
|
+
- Write
|
|
7
|
+
- Bash
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
<objective>
|
|
11
|
+
Create `.continue-here.md` handoff file to preserve complete work state across sessions.
|
|
12
|
+
|
|
13
|
+
Routes to the pause-work workflow which handles:
|
|
14
|
+
- Current phase detection from recent files
|
|
15
|
+
- Complete state gathering (position, completed work, remaining work, decisions, blockers)
|
|
16
|
+
- Handoff file creation with all context sections
|
|
17
|
+
- Git commit as WIP
|
|
18
|
+
- Resume instructions
|
|
19
|
+
</objective>
|
|
20
|
+
|
|
21
|
+
<execution_context>
|
|
22
|
+
@.blueprint/STATE.md
|
|
23
|
+
@~/.claude/blueprint/workflows/pause-work.md
|
|
24
|
+
</execution_context>
|
|
25
|
+
|
|
26
|
+
<process>
|
|
27
|
+
**Follow the pause-work workflow** from `@~/.claude/blueprint/workflows/pause-work.md`.
|
|
28
|
+
|
|
29
|
+
The workflow handles all logic including:
|
|
30
|
+
1. Phase directory detection
|
|
31
|
+
2. State gathering with user clarifications
|
|
32
|
+
3. Handoff file writing with timestamp
|
|
33
|
+
4. Git commit
|
|
34
|
+
5. Confirmation with resume instructions
|
|
35
|
+
</process>
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: gsd:plan-milestone-gaps
|
|
3
|
+
description: Create phases to close all gaps identified by milestone audit
|
|
4
|
+
allowed-tools:
|
|
5
|
+
- Read
|
|
6
|
+
- Write
|
|
7
|
+
- Bash
|
|
8
|
+
- Glob
|
|
9
|
+
- Grep
|
|
10
|
+
- AskUserQuestion
|
|
11
|
+
---
|
|
12
|
+
<objective>
|
|
13
|
+
Create all phases necessary to close gaps identified by `/bp:audit-milestone`.
|
|
14
|
+
|
|
15
|
+
Reads MILESTONE-AUDIT.md, groups gaps into logical phases, creates phase entries in ROADMAP.md, and offers to plan each phase.
|
|
16
|
+
|
|
17
|
+
One command creates all fix phases — no manual `/bp:add-phase` per gap.
|
|
18
|
+
</objective>
|
|
19
|
+
|
|
20
|
+
<execution_context>
|
|
21
|
+
@~/.claude/blueprint/workflows/plan-milestone-gaps.md
|
|
22
|
+
</execution_context>
|
|
23
|
+
|
|
24
|
+
<context>
|
|
25
|
+
**Audit results:**
|
|
26
|
+
Glob: .blueprint/v*-MILESTONE-AUDIT.md (use most recent)
|
|
27
|
+
|
|
28
|
+
**Original intent (for prioritization):**
|
|
29
|
+
@.blueprint/PROJECT.md
|
|
30
|
+
@.blueprint/REQUIREMENTS.md
|
|
31
|
+
|
|
32
|
+
**Current state:**
|
|
33
|
+
@.blueprint/ROADMAP.md
|
|
34
|
+
@.blueprint/STATE.md
|
|
35
|
+
</context>
|
|
36
|
+
|
|
37
|
+
<process>
|
|
38
|
+
Execute the plan-milestone-gaps workflow from @~/.claude/blueprint/workflows/plan-milestone-gaps.md end-to-end.
|
|
39
|
+
Preserve all workflow gates (audit loading, prioritization, phase grouping, user confirmation, roadmap updates).
|
|
40
|
+
</process>
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: gsd:plan-phase
|
|
3
|
+
description: Create detailed execution plan for a phase (PLAN.md) with verification loop
|
|
4
|
+
argument-hint: "[phase] [--research] [--skip-research] [--gaps] [--skip-verify]"
|
|
5
|
+
agent: bp-planner
|
|
6
|
+
allowed-tools:
|
|
7
|
+
- Read
|
|
8
|
+
- Write
|
|
9
|
+
- Bash
|
|
10
|
+
- Glob
|
|
11
|
+
- Grep
|
|
12
|
+
- Task
|
|
13
|
+
- WebFetch
|
|
14
|
+
- mcp__context7__*
|
|
15
|
+
---
|
|
16
|
+
<objective>
|
|
17
|
+
Create executable phase prompts (PLAN.md files) for a roadmap phase with integrated research and verification.
|
|
18
|
+
|
|
19
|
+
**Default flow:** Research (if needed) → Plan → Verify → Done
|
|
20
|
+
|
|
21
|
+
**Orchestrator role:** Parse arguments, validate phase, research domain (unless skipped), spawn bp-planner, verify with bp-plan-checker, iterate until pass or max iterations, present results.
|
|
22
|
+
</objective>
|
|
23
|
+
|
|
24
|
+
<execution_context>
|
|
25
|
+
@~/.claude/blueprint/workflows/plan-phase.md
|
|
26
|
+
@~/.claude/blueprint/references/ui-brand.md
|
|
27
|
+
</execution_context>
|
|
28
|
+
|
|
29
|
+
<context>
|
|
30
|
+
Phase number: $ARGUMENTS (optional — auto-detects next unplanned phase if omitted)
|
|
31
|
+
|
|
32
|
+
**Flags:**
|
|
33
|
+
- `--research` — Force re-research even if RESEARCH.md exists
|
|
34
|
+
- `--skip-research` — Skip research, go straight to planning
|
|
35
|
+
- `--gaps` — Gap closure mode (reads VERIFICATION.md, skips research)
|
|
36
|
+
- `--skip-verify` — Skip verification loop
|
|
37
|
+
|
|
38
|
+
Normalize phase input in step 2 before any directory lookups.
|
|
39
|
+
</context>
|
|
40
|
+
|
|
41
|
+
<process>
|
|
42
|
+
Execute the plan-phase workflow from @~/.claude/blueprint/workflows/plan-phase.md end-to-end.
|
|
43
|
+
Preserve all workflow gates (validation, research, planning, verification loop, routing).
|
|
44
|
+
</process>
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: gsd:progress
|
|
3
|
+
description: Check project progress, show context, and route to next action (execute or plan)
|
|
4
|
+
allowed-tools:
|
|
5
|
+
- Read
|
|
6
|
+
- Bash
|
|
7
|
+
- Grep
|
|
8
|
+
- Glob
|
|
9
|
+
- SlashCommand
|
|
10
|
+
---
|
|
11
|
+
<objective>
|
|
12
|
+
Check project progress, summarize recent work and what's ahead, then intelligently route to the next action - either executing an existing plan or creating the next one.
|
|
13
|
+
|
|
14
|
+
Provides situational awareness before continuing work.
|
|
15
|
+
</objective>
|
|
16
|
+
|
|
17
|
+
<execution_context>
|
|
18
|
+
@~/.claude/blueprint/workflows/progress.md
|
|
19
|
+
</execution_context>
|
|
20
|
+
|
|
21
|
+
<process>
|
|
22
|
+
Execute the progress workflow from @~/.claude/blueprint/workflows/progress.md end-to-end.
|
|
23
|
+
Preserve all routing logic (Routes A through F) and edge case handling.
|
|
24
|
+
</process>
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: gsd:quick
|
|
3
|
+
description: Execute a quick task with Blueprint guarantees (atomic commits, state tracking) but skip optional agents
|
|
4
|
+
argument-hint: ""
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- Read
|
|
7
|
+
- Write
|
|
8
|
+
- Edit
|
|
9
|
+
- Glob
|
|
10
|
+
- Grep
|
|
11
|
+
- Bash
|
|
12
|
+
- Task
|
|
13
|
+
- AskUserQuestion
|
|
14
|
+
---
|
|
15
|
+
<objective>
|
|
16
|
+
Execute small, ad-hoc tasks with Blueprint guarantees (atomic commits, STATE.md tracking) while skipping optional agents (research, plan-checker, verifier).
|
|
17
|
+
|
|
18
|
+
Quick mode is the same system with a shorter path:
|
|
19
|
+
- Spawns bp-planner (quick mode) + bp-executor(s)
|
|
20
|
+
- Skips bp-phase-researcher, bp-plan-checker, bp-verifier
|
|
21
|
+
- Quick tasks live in `.blueprint/quick/` separate from planned phases
|
|
22
|
+
- Updates STATE.md "Quick Tasks Completed" table (NOT ROADMAP.md)
|
|
23
|
+
|
|
24
|
+
Use when: You know exactly what to do and the task is small enough to not need research or verification.
|
|
25
|
+
</objective>
|
|
26
|
+
|
|
27
|
+
<execution_context>
|
|
28
|
+
@~/.claude/blueprint/workflows/quick.md
|
|
29
|
+
</execution_context>
|
|
30
|
+
|
|
31
|
+
<context>
|
|
32
|
+
@.blueprint/STATE.md
|
|
33
|
+
</context>
|
|
34
|
+
|
|
35
|
+
<process>
|
|
36
|
+
Execute the quick workflow from @~/.claude/blueprint/workflows/quick.md end-to-end.
|
|
37
|
+
Preserve all workflow gates (validation, task description, planning, execution, state updates, commits).
|
|
38
|
+
</process>
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Reapply local modifications after a Blueprint update
|
|
3
|
+
allowed-tools: Read, Write, Edit, Bash, Glob, Grep, AskUserQuestion
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
<purpose>
|
|
7
|
+
After a Blueprint update wipes and reinstalls files, this command merges user's previously saved local modifications back into the new version. Uses intelligent comparison to handle cases where the upstream file also changed.
|
|
8
|
+
</purpose>
|
|
9
|
+
|
|
10
|
+
<process>
|
|
11
|
+
|
|
12
|
+
## Step 1: Detect backed-up patches
|
|
13
|
+
|
|
14
|
+
Check for local patches directory:
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
# Global install
|
|
18
|
+
PATCHES_DIR="${HOME}/.claude/bp-local-patches"
|
|
19
|
+
# Local install fallback
|
|
20
|
+
if [ ! -d "$PATCHES_DIR" ]; then
|
|
21
|
+
PATCHES_DIR="./.claude/bp-local-patches"
|
|
22
|
+
fi
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Read `backup-meta.json` from the patches directory.
|
|
26
|
+
|
|
27
|
+
**If no patches found:**
|
|
28
|
+
```
|
|
29
|
+
No local patches found. Nothing to reapply.
|
|
30
|
+
|
|
31
|
+
Local patches are automatically saved when you run /bp:update
|
|
32
|
+
after modifying any Blueprint workflow, command, or agent files.
|
|
33
|
+
```
|
|
34
|
+
Exit.
|
|
35
|
+
|
|
36
|
+
## Step 2: Show patch summary
|
|
37
|
+
|
|
38
|
+
```
|
|
39
|
+
## Local Patches to Reapply
|
|
40
|
+
|
|
41
|
+
**Backed up from:** v{from_version}
|
|
42
|
+
**Current version:** {read VERSION file}
|
|
43
|
+
**Files modified:** {count}
|
|
44
|
+
|
|
45
|
+
| # | File | Status |
|
|
46
|
+
|---|------|--------|
|
|
47
|
+
| 1 | {file_path} | Pending |
|
|
48
|
+
| 2 | {file_path} | Pending |
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
## Step 3: Merge each file
|
|
52
|
+
|
|
53
|
+
For each file in `backup-meta.json`:
|
|
54
|
+
|
|
55
|
+
1. **Read the backed-up version** (user's modified copy from `bp-local-patches/`)
|
|
56
|
+
2. **Read the newly installed version** (current file after update)
|
|
57
|
+
3. **Compare and merge:**
|
|
58
|
+
|
|
59
|
+
- If the new file is identical to the backed-up file: skip (modification was incorporated upstream)
|
|
60
|
+
- If the new file differs: identify the user's modifications and apply them to the new version
|
|
61
|
+
|
|
62
|
+
**Merge strategy:**
|
|
63
|
+
- Read both versions fully
|
|
64
|
+
- Identify sections the user added or modified (look for additions, not just differences from path replacement)
|
|
65
|
+
- Apply user's additions/modifications to the new version
|
|
66
|
+
- If a section the user modified was also changed upstream: flag as conflict, show both versions, ask user which to keep
|
|
67
|
+
|
|
68
|
+
4. **Write merged result** to the installed location
|
|
69
|
+
5. **Report status:**
|
|
70
|
+
- `Merged` — user modifications applied cleanly
|
|
71
|
+
- `Skipped` — modification already in upstream
|
|
72
|
+
- `Conflict` — user chose resolution
|
|
73
|
+
|
|
74
|
+
## Step 4: Update manifest
|
|
75
|
+
|
|
76
|
+
After reapplying, regenerate the file manifest so future updates correctly detect these as user modifications:
|
|
77
|
+
|
|
78
|
+
```bash
|
|
79
|
+
# The manifest will be regenerated on next /bp:update
|
|
80
|
+
# For now, just note which files were modified
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
## Step 5: Cleanup option
|
|
84
|
+
|
|
85
|
+
Ask user:
|
|
86
|
+
- "Keep patch backups for reference?" → preserve `bp-local-patches/`
|
|
87
|
+
- "Clean up patch backups?" → remove `bp-local-patches/` directory
|
|
88
|
+
|
|
89
|
+
## Step 6: Report
|
|
90
|
+
|
|
91
|
+
```
|
|
92
|
+
## Patches Reapplied
|
|
93
|
+
|
|
94
|
+
| # | File | Status |
|
|
95
|
+
|---|------|--------|
|
|
96
|
+
| 1 | {file_path} | ✓ Merged |
|
|
97
|
+
| 2 | {file_path} | ○ Skipped (already upstream) |
|
|
98
|
+
| 3 | {file_path} | ⚠ Conflict resolved |
|
|
99
|
+
|
|
100
|
+
{count} file(s) updated. Your local modifications are active again.
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
</process>
|
|
104
|
+
|
|
105
|
+
<success_criteria>
|
|
106
|
+
- [ ] All backed-up patches processed
|
|
107
|
+
- [ ] User modifications merged into new version
|
|
108
|
+
- [ ] Conflicts resolved with user input
|
|
109
|
+
- [ ] Status reported for each file
|
|
110
|
+
</success_criteria>
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: gsd:remove-phase
|
|
3
|
+
description: Remove a future phase from roadmap and renumber subsequent phases
|
|
4
|
+
argument-hint: <phase-number>
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- Read
|
|
7
|
+
- Write
|
|
8
|
+
- Bash
|
|
9
|
+
- Glob
|
|
10
|
+
---
|
|
11
|
+
<objective>
|
|
12
|
+
Remove an unstarted future phase from the roadmap and renumber all subsequent phases to maintain a clean, linear sequence.
|
|
13
|
+
|
|
14
|
+
Purpose: Clean removal of work you've decided not to do, without polluting context with cancelled/deferred markers.
|
|
15
|
+
Output: Phase deleted, all subsequent phases renumbered, git commit as historical record.
|
|
16
|
+
</objective>
|
|
17
|
+
|
|
18
|
+
<execution_context>
|
|
19
|
+
@~/.claude/blueprint/workflows/remove-phase.md
|
|
20
|
+
</execution_context>
|
|
21
|
+
|
|
22
|
+
<context>
|
|
23
|
+
Phase: $ARGUMENTS
|
|
24
|
+
|
|
25
|
+
@.blueprint/ROADMAP.md
|
|
26
|
+
@.blueprint/STATE.md
|
|
27
|
+
</context>
|
|
28
|
+
|
|
29
|
+
<process>
|
|
30
|
+
Execute the remove-phase workflow from @~/.claude/blueprint/workflows/remove-phase.md end-to-end.
|
|
31
|
+
Preserve all validation gates (future phase check, work check), renumbering logic, and commit.
|
|
32
|
+
</process>
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: gsd:research-phase
|
|
3
|
+
description: Research how to implement a phase (standalone - usually use /bp:plan-phase instead)
|
|
4
|
+
argument-hint: "[phase]"
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- Read
|
|
7
|
+
- Bash
|
|
8
|
+
- Task
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
<objective>
|
|
12
|
+
Research how to implement a phase. Spawns bp-phase-researcher agent with phase context.
|
|
13
|
+
|
|
14
|
+
**Note:** This is a standalone research command. For most workflows, use `/bp:plan-phase` which integrates research automatically.
|
|
15
|
+
|
|
16
|
+
**Use this command when:**
|
|
17
|
+
- You want to research without planning yet
|
|
18
|
+
- You want to re-research after planning is complete
|
|
19
|
+
- You need to investigate before deciding if a phase is feasible
|
|
20
|
+
|
|
21
|
+
**Orchestrator role:** Parse phase, validate against roadmap, check existing research, gather context, spawn researcher agent, present results.
|
|
22
|
+
|
|
23
|
+
**Why subagent:** Research burns context fast (WebSearch, Context7 queries, source verification). Fresh 200k context for investigation. Main context stays lean for user interaction.
|
|
24
|
+
</objective>
|
|
25
|
+
|
|
26
|
+
<context>
|
|
27
|
+
Phase number: $ARGUMENTS (required)
|
|
28
|
+
|
|
29
|
+
Normalize phase input in step 1 before any directory lookups.
|
|
30
|
+
</context>
|
|
31
|
+
|
|
32
|
+
<process>
|
|
33
|
+
|
|
34
|
+
## 0. Initialize Context
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
INIT=$(node ~/.claude/blueprint/bin/blueprint-tools.js init phase-op "$ARGUMENTS")
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
Extract from init JSON: `phase_dir`, `phase_number`, `phase_name`, `phase_found`, `commit_docs`, `has_research`.
|
|
41
|
+
|
|
42
|
+
Resolve researcher model:
|
|
43
|
+
```bash
|
|
44
|
+
RESEARCHER_MODEL=$(node ~/.claude/blueprint/bin/blueprint-tools.js resolve-model bp-phase-researcher --raw)
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## 1. Validate Phase
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
PHASE_INFO=$(node ~/.claude/blueprint/bin/blueprint-tools.js roadmap get-phase "${phase_number}")
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
**If `found` is false:** Error and exit. **If `found` is true:** Extract `phase_number`, `phase_name`, `goal` from JSON.
|
|
54
|
+
|
|
55
|
+
## 2. Check Existing Research
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
ls .blueprint/phases/${PHASE}-*/RESEARCH.md 2>/dev/null
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
**If exists:** Offer: 1) Update research, 2) View existing, 3) Skip. Wait for response.
|
|
62
|
+
|
|
63
|
+
**If doesn't exist:** Continue.
|
|
64
|
+
|
|
65
|
+
## 3. Gather Phase Context
|
|
66
|
+
|
|
67
|
+
```bash
|
|
68
|
+
# Phase section already loaded in PHASE_INFO
|
|
69
|
+
echo "$PHASE_INFO" | jq -r '.section'
|
|
70
|
+
cat .blueprint/REQUIREMENTS.md 2>/dev/null
|
|
71
|
+
cat .blueprint/phases/${PHASE}-*/*-CONTEXT.md 2>/dev/null
|
|
72
|
+
grep -A30 "### Decisions Made" .blueprint/STATE.md 2>/dev/null
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
Present summary with phase description, requirements, prior decisions.
|
|
76
|
+
|
|
77
|
+
## 4. Spawn bp-phase-researcher Agent
|
|
78
|
+
|
|
79
|
+
Research modes: ecosystem (default), feasibility, implementation, comparison.
|
|
80
|
+
|
|
81
|
+
```markdown
|
|
82
|
+
<research_type>
|
|
83
|
+
Phase Research — investigating HOW to implement a specific phase well.
|
|
84
|
+
</research_type>
|
|
85
|
+
|
|
86
|
+
<key_insight>
|
|
87
|
+
The question is NOT "which library should I use?"
|
|
88
|
+
|
|
89
|
+
The question is: "What do I not know that I don't know?"
|
|
90
|
+
|
|
91
|
+
For this phase, discover:
|
|
92
|
+
- What's the established architecture pattern?
|
|
93
|
+
- What libraries form the standard stack?
|
|
94
|
+
- What problems do people commonly hit?
|
|
95
|
+
- What's SOTA vs what Claude's training thinks is SOTA?
|
|
96
|
+
- What should NOT be hand-rolled?
|
|
97
|
+
</key_insight>
|
|
98
|
+
|
|
99
|
+
<objective>
|
|
100
|
+
Research implementation approach for Phase {phase_number}: {phase_name}
|
|
101
|
+
Mode: ecosystem
|
|
102
|
+
</objective>
|
|
103
|
+
|
|
104
|
+
<context>
|
|
105
|
+
**Phase description:** {phase_description}
|
|
106
|
+
**Requirements:** {requirements_list}
|
|
107
|
+
**Prior decisions:** {decisions_if_any}
|
|
108
|
+
**Phase context:** {context_md_content}
|
|
109
|
+
</context>
|
|
110
|
+
|
|
111
|
+
<downstream_consumer>
|
|
112
|
+
Your RESEARCH.md will be loaded by `/bp:plan-phase` which uses specific sections:
|
|
113
|
+
- `## Standard Stack` → Plans use these libraries
|
|
114
|
+
- `## Architecture Patterns` → Task structure follows these
|
|
115
|
+
- `## Don't Hand-Roll` → Tasks NEVER build custom solutions for listed problems
|
|
116
|
+
- `## Common Pitfalls` → Verification steps check for these
|
|
117
|
+
- `## Code Examples` → Task actions reference these patterns
|
|
118
|
+
|
|
119
|
+
Be prescriptive, not exploratory. "Use X" not "Consider X or Y."
|
|
120
|
+
</downstream_consumer>
|
|
121
|
+
|
|
122
|
+
<quality_gate>
|
|
123
|
+
Before declaring complete, verify:
|
|
124
|
+
- [ ] All domains investigated (not just some)
|
|
125
|
+
- [ ] Negative claims verified with official docs
|
|
126
|
+
- [ ] Multiple sources for critical claims
|
|
127
|
+
- [ ] Confidence levels assigned honestly
|
|
128
|
+
- [ ] Section names match what plan-phase expects
|
|
129
|
+
</quality_gate>
|
|
130
|
+
|
|
131
|
+
<output>
|
|
132
|
+
Write to: .blueprint/phases/${PHASE}-{slug}/${PHASE}-RESEARCH.md
|
|
133
|
+
</output>
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
```
|
|
137
|
+
Task(
|
|
138
|
+
prompt="First, read ~/.claude/agents/bp-phase-researcher.md for your role and instructions.\n\n" + filled_prompt,
|
|
139
|
+
subagent_type="general-purpose",
|
|
140
|
+
model="{researcher_model}",
|
|
141
|
+
description="Research Phase {phase}"
|
|
142
|
+
)
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
## 5. Handle Agent Return
|
|
146
|
+
|
|
147
|
+
**`## RESEARCH COMPLETE`:** Display summary, offer: Plan phase, Dig deeper, Review full, Done.
|
|
148
|
+
|
|
149
|
+
**`## CHECKPOINT REACHED`:** Present to user, get response, spawn continuation.
|
|
150
|
+
|
|
151
|
+
**`## RESEARCH INCONCLUSIVE`:** Show what was attempted, offer: Add context, Try different mode, Manual.
|
|
152
|
+
|
|
153
|
+
## 6. Spawn Continuation Agent
|
|
154
|
+
|
|
155
|
+
```markdown
|
|
156
|
+
<objective>
|
|
157
|
+
Continue research for Phase {phase_number}: {phase_name}
|
|
158
|
+
</objective>
|
|
159
|
+
|
|
160
|
+
<prior_state>
|
|
161
|
+
Research file: @.blueprint/phases/${PHASE}-{slug}/${PHASE}-RESEARCH.md
|
|
162
|
+
</prior_state>
|
|
163
|
+
|
|
164
|
+
<checkpoint_response>
|
|
165
|
+
**Type:** {checkpoint_type}
|
|
166
|
+
**Response:** {user_response}
|
|
167
|
+
</checkpoint_response>
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
```
|
|
171
|
+
Task(
|
|
172
|
+
prompt="First, read ~/.claude/agents/bp-phase-researcher.md for your role and instructions.\n\n" + continuation_prompt,
|
|
173
|
+
subagent_type="general-purpose",
|
|
174
|
+
model="{researcher_model}",
|
|
175
|
+
description="Continue research Phase {phase}"
|
|
176
|
+
)
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
</process>
|
|
180
|
+
|
|
181
|
+
<success_criteria>
|
|
182
|
+
- [ ] Phase validated against roadmap
|
|
183
|
+
- [ ] Existing research checked
|
|
184
|
+
- [ ] bp-phase-researcher spawned with context
|
|
185
|
+
- [ ] Checkpoints handled correctly
|
|
186
|
+
- [ ] User knows next steps
|
|
187
|
+
</success_criteria>
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: gsd:resume-work
|
|
3
|
+
description: Resume work from previous session with full context restoration
|
|
4
|
+
allowed-tools:
|
|
5
|
+
- Read
|
|
6
|
+
- Bash
|
|
7
|
+
- Write
|
|
8
|
+
- AskUserQuestion
|
|
9
|
+
- SlashCommand
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
<objective>
|
|
13
|
+
Restore complete project context and resume work seamlessly from previous session.
|
|
14
|
+
|
|
15
|
+
Routes to the resume-project workflow which handles:
|
|
16
|
+
|
|
17
|
+
- STATE.md loading (or reconstruction if missing)
|
|
18
|
+
- Checkpoint detection (.continue-here files)
|
|
19
|
+
- Incomplete work detection (PLAN without SUMMARY)
|
|
20
|
+
- Status presentation
|
|
21
|
+
- Context-aware next action routing
|
|
22
|
+
</objective>
|
|
23
|
+
|
|
24
|
+
<execution_context>
|
|
25
|
+
@~/.claude/blueprint/workflows/resume-project.md
|
|
26
|
+
</execution_context>
|
|
27
|
+
|
|
28
|
+
<process>
|
|
29
|
+
**Follow the resume-project workflow** from `@~/.claude/blueprint/workflows/resume-project.md`.
|
|
30
|
+
|
|
31
|
+
The workflow handles all resumption logic including:
|
|
32
|
+
|
|
33
|
+
1. Project existence verification
|
|
34
|
+
2. STATE.md loading or reconstruction
|
|
35
|
+
3. Checkpoint and incomplete work detection
|
|
36
|
+
4. Visual status presentation
|
|
37
|
+
5. Context-aware option offering (checks CONTEXT.md before suggesting plan vs discuss)
|
|
38
|
+
6. Routing to appropriate next command
|
|
39
|
+
7. Session continuity updates
|
|
40
|
+
</process>
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: gsd:set-profile
|
|
3
|
+
description: Switch model profile for Blueprint agents (quality/balanced/budget)
|
|
4
|
+
argument-hint: <profile>
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- Read
|
|
7
|
+
- Write
|
|
8
|
+
- Bash
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
<objective>
|
|
12
|
+
Switch the model profile used by Blueprint agents. Controls which Claude model each agent uses, balancing quality vs token spend.
|
|
13
|
+
|
|
14
|
+
Routes to the set-profile workflow which handles:
|
|
15
|
+
- Argument validation (quality/balanced/budget)
|
|
16
|
+
- Config file creation if missing
|
|
17
|
+
- Profile update in config.json
|
|
18
|
+
- Confirmation with model table display
|
|
19
|
+
</objective>
|
|
20
|
+
|
|
21
|
+
<execution_context>
|
|
22
|
+
@~/.claude/blueprint/workflows/set-profile.md
|
|
23
|
+
</execution_context>
|
|
24
|
+
|
|
25
|
+
<process>
|
|
26
|
+
**Follow the set-profile workflow** from `@~/.claude/blueprint/workflows/set-profile.md`.
|
|
27
|
+
|
|
28
|
+
The workflow handles all logic including:
|
|
29
|
+
1. Profile argument validation
|
|
30
|
+
2. Config file ensuring
|
|
31
|
+
3. Config reading and updating
|
|
32
|
+
4. Model table generation from MODEL_PROFILES
|
|
33
|
+
5. Confirmation display
|
|
34
|
+
</process>
|