thinking-partner
A deterministic thinking partner that challenges assumptions and applies mental models to sharpen decisions, solve problems, and think more clearly. Use this…
Execute all plans in a phase. Spawns agents to build in parallel, commits atomically.
$ npx -y skills add SienkLogic/plan-build-run --skill build --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/buildContext preview
The summary Claude sees to decide when to auto-load this skill.
Execute all plans in a phase. Spawns agents to build in parallel, commits atomically.
name: build description: "Execute all plans in a phase. Spawns agents to build in parallel, commits atomically." allowed-tools: Read, Write, Edit, Bash, Glob, Grep, Task, AskUserQuestion, Skill argument-hint: "<phase-number> [--gaps-only] [--team] [--model <model>] [--auto]"
**STOP — DO NOT READ THIS FILE. You are already reading it. This prompt was injected into your context by Claude Code's plugin system. Using the Read tool on this SKILL.md file wastes ~7,600 tokens. Begin executing Step 1 immediately.**
**References:** `@references/questioning.md`, `@references/ui-brand.md`
You are the orchestrator for `/pbr:execute-phase`. This skill executes all plans in a phase by spawning executor agents. Plans are grouped by wave and executed in order — independent plans run in parallel, dependent plans wait. Your job is to stay lean, delegate ALL building work to Task() subagents, and keep the user's main context window clean.
Reference: `skills/shared/context-budget.md` for the universal orchestrator rules. Reference: `skills/shared/agent-type-resolution.md` for agent type fallback when spawning Task() subagents.
Reference: `skills/shared/agent-context-enrichment.md` for enriching executor spawn prompts with project context. Reference: `references/deviation-rules.md` for the deviation taxonomy (Rules 1-4) used by executors to classify and handle unexpected issues. Reference: `references/node-repair.md` for the node repair taxonomy (RETRY, DECOMPOSE, PRUNE, ESCALATE) used by executors to handle failed tasks.
Additionally for this skill:
`pbr-tools skill-section build "step-6"` → returns that step's content as JSON. Use this when context budget is DEGRADING.
**Before ANY tool calls**, display this banner:
╔══════════════════════════════════════════════════════════════╗
║ PLAN-BUILD-RUN ► BUILDING PHASE {N} ║
╚══════════════════════════════════════════════════════════════╝Where `{N}` is the phase number from `$ARGUMENTS`. Then proceed to Step 1.
Before any phase-modifying operations (spawning executors, writing SUMMARY.md, updating STATE.md/ROADMAP.md), acquire a claim:
acquireClaim(phaseDir, sessionId)
If the claim fails (another session owns this phase), display: "Another session owns this phase. Use `/pbr:progress` to see active claims."
On completion or error (including all exit paths), release the claim:
releaseClaim(phaseDir, sessionId)
---
Parse `$ARGUMENTS` according to `skills/shared/phase-argument-parsing.md`.
| Argument | Meaning | |----------|---------| | `3` | Build phase 3 | | `3 --gaps-only` | Build only gap-closure plans in phase 3 | | `3 --team` | Use Agent Teams for complex inter-agent coordination | | `3 --model opus` | Use opus for all executor spawns in phase 3 (overrides config and adaptive selection) | | `3 --auto` | Build phase 3 with auto mode — suppress confirmation gates, auto-advance on success | | (no number) | Use current phase from STATE.md | | `3 --preview` | Preview what build would do for phase 3 without executing | | `3 --cross-check` | Before spawning executors for phase 3, check current plan files_modified against prior-phase provides for conflicts |
---
If `--preview` is present in `$ARGUMENTS`:
1. Extract the phase slug from `$ARGUMENTS` (use the phase number to look up the slug, or pass the number directly — the CLI accepts partial slug matches). 2. Run:
pbr-tools build-preview {phase-slug}Capture the JSON output. 3. Render the following preview document (do NOT proceed to Step 2):
╔══════════════════════════════════════════════════════════════╗
║ DRY RUN — /pbr:execute-phase {N} --preview ║
║ No executor agents will be spawned ║
╚══════════════════════════════════════════════════════════════╝
PHASE: {phase}
## Plans
{for each plan: - {id} (wave {wave}, {task_count} tasks)}
## Wave Structure
{for each wave: Wave {wave}: {plan IDs} [parallel | sequential]}
## Files That Would Be Modified
{for each file in files_affected: - {file}}
(Total: {count} files)
## Estimated Agent Spawns
{agent_count} executor task(s)
## Critical Path
{critical_path joined with " → "}
## Dependency Chain
{for each entry in dependency_chain: - {id} (wave {wave}) depends on: {depends_on or "none"}}4. **STOP** — do not proceed to Step 2.
---
Execute these steps in order.
---
Reference: `skills/shared/config-loading.md` for the tooling shortcut and config field reference.
1. Parse `$ARGUMENTS` for phase number and flags
2. **CRITICAL — Init first.** Run the init CLI call as the FIRST action after argument parsing:
node plugins/pbr/scripts/pbr-tools.js init execute-phase {N}Store the JSON result as `blob`. All downstream steps MUST reference `blob` fields instead of re-reading files. Key fields: `blob.phase.dir`, `blob.phase.status`, `blob
Plan it. Build it. Run it. A Claude Code plugin for structured development with context-engineered agents.
Repo: SienkLogic/plan-build-run
A deterministic thinking partner that challenges assumptions and applies mental models to sharpen decisions, solve problems, and think more clearly. Use this…
Run audit, prioritize findings, auto-fix via quick tasks, test, and commit.
Review past Claude Code sessions for PBR workflow compliance and UX quality.
Run multiple phases hands-free. Chains discuss, plan, build, and verify automatically.
Manage backlog items — ideas not ready for active planning. Add, review, promote, or remove.
Start a new project. Deep questioning, research, requirements, and roadmap.