/blueprint:plan-approvedfrom blueprint
Execute a reviewed plan by delegating work to subagents and coordinated teams. Reads the Execution Strategy from the plan, dispatches workers per round, tracks task completion with [x] marks and timestamps, commits after each phase, and manages context for long executions. Use this skill whenever the user says "/plan-approved", "execute the plan", "start implementation", "run the plan", or any request to begin coding based on an existing reviewed plan. Also triggers on "let's build it", "go ahead and implement", or "start coding". Does NOT trigger on: "resume", "continue the plan", "pick up where we left off", "where did we stop" — use /resume for those. ALWAYS run after /plan-review. With 1M context, if context usage is under 30% after plan-review, continue directly — the coordinator only orchestrates (delegates to subagents), so it needs minimal context. Only clear when context is already above 50% after plan-review.
Ships in blueprint. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Read blueprint/.config.yml → language. If auto, detect from the user's messages. All generated content MUST be in the detected language. Skill instructions stay in English — only output changes.
Execute a reviewed plan by delegating all work to subagents or coordinated teams. The leader orchestrates — it never writes code directly.
/plan → /plan-review → /plan-approved → /plan-check → /pr → /finish
↑ context clear only if context usage > 50% after plan-review
blueprint meta, validates review markers, detects TDD mode, and extracts the Execution Strategy — all from the same read. If [H]/[S]/[O] markers or ## Execution Strategy are missing → STOP.plan-review/references/team-execution.md if Execution Strategy is incomplete.The #1 failure mode is the coordinator doing work itself instead of spawning agents. This wastes context, runs sequentially, and defeats the entire execution strategy.
"Am I about to read a source file, write code, or run a test?" → YES = STOP. Dispatch a worker via the
Agenttool instead. → The ONLY exception is Mode G (Leader Direct, ≤3 trivial[H]tasks).
| Plan size | Minimum dispatch |
|---|---|
≤3 tasks, all [H] | Leader Direct OK (Mode G) |
| 4-5 tasks | At least 1 subagent |
| 6+ tasks | At least 2 concurrent subagents per round |
Any [S]/[O] | MUST be dispatched to agent — never Leader Direct |
For each worker, call the Agent tool with subagent_type: "general-purpose". The prompt MUST include:
cd /path/to/project as the first instructionExample dispatch (2 parallel subagents):
Agent call 1: "Implement Phase 1 — Service layer refactoring"
prompt: "You are worker-1. cd /Users/.../project. Your phase: [paste phase details]. Files: [...]. When done: [paste Worker Completion Protocol]."
Agent call 2: "Implement Phase 2 — Frontend components"
prompt: "You are worker-2. cd /Users/.../project. Your phase: [paste phase details]. Files: [...]. When done: [paste Worker Completion Protocol]."
Both calls go in ONE message — they run simultaneously. This is 2x faster than sequential.
Model selection per worker:
[H] → dispatch with model: "sonnet" (faster output for simple tasks)[S] or [O] → use default model (Opus — maximum quality for anything with real logic)Example with model selection:
Agent call 1: "Phase 1 — Config + migrations" (all [H])
model: "sonnet"
prompt: "You are worker-1..."
Agent call 2: "Phase 2 — Business logic service" (has [S] tasks)
prompt: "You are worker-2..." ← Opus (default) for maximum quality
Run these in parallel (one bash call each):
# Check 1: flow-auto lock
if [ -f "blueprint/.flow-auto-lock" ]; then
echo "flow-auto is currently active (lock file found). Yielding."
exit 0
fi
# Check 2: get plan metadata
echo "🔷 BP: plan-approved [1/4] reading plan file"
~/.blueprint/bin/blueprint meta
If the lock file exists, STOP and inform the user. Do not proceed — conflicting execution will cause merge conflicts.
Returns branch, base_branch, plan_file, next_num, project, team, git_remote as JSON.
READ the full plan file, then analyze it in ONE pass (no extra tool calls):
[x] vs [ ] tasks to determine status[x] → SKIP | Mix of [x] and [ ] → RESUME from first [ ] | All [ ] → EXECUTECheck for BOTH — if EITHER is missing, STOP with AskUserQuestion:
| Check | What to look for |
|---|---|
| Complexity markers | [H], [S], or [O] on tasks in Phases section |
| Execution strategy | ## Execution Strategy section in plan body |
Valid input statuses: todo, awaiting-review, or approved — all are fine. Status is set to in-progress at Step 2.
Check for mode: tdd in frontmatter or > **Mode:** TDD in the plan. If active:
| Phase type | Constraint |
|---|---|
| Phase 0 (RED) | Workers write ONLY tests — zero implementation code. ALL tests must fail before marking complete. |
| GREEN phases | Workers implement ONLY what failing tests require. Run targeted tests after each task. |
| REFACTOR phase | Run the project's test coverage command — must reach 100% coverage. |
TDD enforcement rules are appended to the Worker Completion Protocol (Step 4).
Extract rounds, modes, model tiers, and worker assignments from the ## Execution Strategy section. Skip reading plan-review/references/team-execution.md — the plan already has everything.
Quick model reference (inline — no file read needed):
[H] tasks → model: "sonnet" (fast output)[S]/[O] → default model (Opus, maximum quality)status: in-progresssession: "${CLAUDE_SESSION_ID}" (single field, not array) — this enables resume via claude -r <session-id>echo "🔷 BP: plan-approved [2/4] committing baseline"
# Project code baseline (if staged changes):
blueprint commit "📋 plan: start execution NNNN"
# or on resume:
blueprint commit "📋 plan: resume execution NNNN"
# Plan file status update → project repo:
git add blueprint/ && git commit -m "📋 plan: start execution NNNN"
Creates the baseline snapshot: project code via blueprint commit, plan state via git. This is critical for the commit chain guarantee — every state is recoverable from git history.
echo "🔷 BP: plan-approved [3/4] starting execution — following strategy from plan"
Context Protection: Execute ONE round at a time. After each round: update plan → test → commit → assess context. With 1M context, most plans complete in a single session — suggest compacting only after 5+ rounds or when context visibly degrades.
Read the Execution Strategy section from the plan. Execute EXACTLY the mode it specifies.
Mode A — Parallel Subagents (2+ independent all-[H] phases)
Agent tool N times in ONE message — they run simultaneouslyMode B — Parallel Teams (2+ independent phases with [S]/[O])
Agent tool N times in ONE message — each spawned subagent IS a team-leadMode C — Single Team (1 sequential [S]/[O] phase, coordinator actively manages)
TeamCreate to create one team. Assign workers with sequential IDs (worker-1, worker-2, etc.)Mode D — Mixed Dispatch (1 team + concurrent [H] subagents)
Agent for the [H] subagent(s)Mode E — Coordinated Team (tasks within a team need sequential handoff)
Mode F — Single Subagent (1 phase, all [H], sequential)
Agent call. Self-contained prompt. Coordinator waits for completion.Mode G — Leader Direct (≤ 3 [H] tasks total)
Every worker prompt (subagent or team) MUST include these instructions:
WHEN YOU FINISH YOUR PHASE:
1. Mark ALL your tasks [x] with timestamp in the plan file:
- [x] [H] Task description ✅ DD/MM/YYYY HH:MM
- Preserve the complexity marker ([H]/[S]/[O]) added by /plan-review
- Get timestamp via: date "+%d/%m/%Y %H:%M" — NEVER guess the date
2. Run targeted tests and confirm they pass:
- Run the project's test command with appropriate filter for your changes
- On failure: categorize by root cause, report to coordinator — do NOT attempt multi-category fixes alone
3. Commit and push via /ship (includes formatting):
- ALWAYS use /ship — NEVER use raw git commit
- /ship runs: format → git add → git commit → git push
4. Commit plan marks:
- git add blueprint/ && git commit -m "✨ feat: phase X complete NNNN"
HARD RULES:
- NEVER skip /ship — it handles formatting, commit, and push in one step
- NEVER use raw git commit — always /ship for code, git commit only for blueprint/ files
- NEVER leave tasks unmarked
- NEVER add AI signatures to commits
- NEVER stage .env, *-api-key, or credential files
TaskOutput. If stuck or hung, stop it via TaskStop and dispatch a replacement worker for the remaining tasks.[x] in the plan file[ ] tasksEvery worker prompt MUST include these context sections. The coordinator gathers this info BEFORE dispatching:
WORKER CONTEXT BLOCK (include in every worker prompt):
## Project
- Working directory: /path/to/project
- Phase: [paste exact phase details from plan]
- Files to touch: [list every file path]
## Tech Stack Versions
[Auto-detected from project config — see plan-review]
- Framework: X.x
- Key packages: [any relevant package versions]
## Code Patterns (read BEFORE implementing)
- Read one existing file of the same type for patterns
Example: building a new Resource? Read an existing Resource first
- Follow the existing naming conventions, imports, and structure exactly
## Test Commands
- Run the project's test command with appropriate filter for your changes
## Commit Rules
- Use /ship for ALL commits (never raw git commit)
- Format: <emoji> <type>: <description>
- No AI signatures
[paste Worker Completion Protocol here]
The coordinator MUST:
Before dispatching each round, the coordinator MUST verify:
[x]).Skip pre-dispatch validation only for Mode G (Leader Direct) where overhead exceeds value.
The leader is an orchestrator, not a debugger. When a verification step reveals failures:
If a pre-existing diagnostic file exists (failing-tests.md, captured test output), read it ONCE, count distinct failure categories, and dispatch immediately. Investigation is a worker task, not a coordinator task.
For each incomplete round:
[x].git diff, run targeted tests for the completed phase.
4b. Data validation — If the completed phase involved data import/seeding, verify counts:
[x] and timestamps/commit # project code changes (if any coordinator fixes)
git add blueprint/ && git commit -m "📋 plan: round X complete NNNN" # plan progress
AskUserQuestion to suggest compact + resume. With 1M context, most plans complete without needing this.If a worker reports test failures or incomplete work:
NEVER investigate failures inline. The coordinator reads results, categorizes, dispatches. Workers investigate and fix.
echo "🔷 BP: plan-approved [4/4] all phases complete"
status: completed (v1 compat: also accepts Completed)/commit for final plan state (all [x] marks and timestamps visible)git add blueprint/ && git commit -m "✨ feat: complete NNNN-<description>"Use AskUserQuestion:
/commit (or /ship for workers)What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (skaisser/blueprint-plugin) — no native marketplace selected
npx claudepluginhub p/skaisser-blueprint27 skills in this plugin
/address-prFetch PR review comments, categorize feedback, implement fixes, and push. Use this skill whenever the user says "/address-pr", "address review", "fix review comments", "handle PR feedback", or any request to implement fixes based on PR review feedback. Also triggers on "fix the review", "address feedback", "implement review changes", "implement the requested changes", or "handle review comments". Fetches real comments via blueprint pr-review.
/backlogCapture, manage, and promote pre-planning ideas before they become full plans. Use this skill whenever the user says "/backlog", "add to backlog", "backlog idea", "capture this idea", "save this for later", "I had an idea", or any request to manage the idea backlog. Also triggers on "list ideas", "promote idea", "backlog list", "drop idea", "mark done", "what's in the backlog", "show me the ideas", "pending ideas", or any request to add/view/promote/done/drop items in blueprint/backlog/. The backlog is the pre-planning stage — ideas live here until promoted to /plan. Even if the user doesn't explicitly say "backlog", trigger when they describe wanting to capture a feature idea, task, or improvement for later without implementing it now. This skill is the gateway to the SDLC — nothing gets planned or built without first passing through the backlog.
Other plugins' skills for the same job