thinking-partner
A deterministic thinking partner that challenges assumptions and applies mental models to sharpen decisions, solve problems, and think more clearly. Use this…
Run multiple phases hands-free. Chains discuss, plan, build, and verify automatically.
$ npx -y skills add SienkLogic/plan-build-run --skill autonomous --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/autonomousContext preview
The summary Claude sees to decide when to auto-load this skill.
Run multiple phases hands-free. Chains discuss, plan, build, and verify automatically.
name: autonomous description: "Run multiple phases hands-free. Chains discuss, plan, build, and verify automatically." allowed-tools: Read, Write, Bash, Glob, Grep, Skill, Task, AskUserQuestion argument-hint: "[--from <N>] [--through <N>] [--speculative-depth <N>] [--dry-run]"
**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 tokens. Begin executing Step 0 immediately.**
References: @references/questioning.md, @references/ui-brand.md
**Before ANY tool calls**, display this banner:
╔══════════════════════════════════════════════════════════════╗ ║ PLAN-BUILD-RUN ► AUTONOMOUS MODE ║ ╚══════════════════════════════════════════════════════════════╝
Then proceed to Step 1.
---
1. Read `.planning/config.json`. Check `workflow.autonomous` — if `false` or missing, display:
Autonomous mode is disabled. Enable with: /pbr:config set workflow.autonomous true
Stop immediately. Do NOT proceed.
2. Parse `$ARGUMENTS`:
| Argument | Meaning | Default | |----------|---------|---------| | `--from N` | Start from phase N | Current phase from STATE.md | | `--through N` | Stop after phase N | Last phase in current milestone | | `--speculative-depth N` | How many phases ahead to plan speculatively | From config `workflow.speculative_depth` (default 2) | | `--dry-run` | Show which phases would execute without doing anything | Off |
3. Determine speculative planning settings:
4. Read `gates.checkpoint_auto_resolve` from config (default: `"none"`). Values:
Store as `checkpointResolveLevel` for use in Step 3c. 5. Read `.planning/STATE.md` to determine current phase (used as default for `--from`). 6. Read `.planning/ROADMAP.md` to build phase list for current milestone. 7. **CRITICAL (hook-enforced): Write .active-skill NOW.** Write `.planning/.active-skill` with the content `autonomous` using the Write tool. This registers the autonomous session with the workflow enforcement hooks. Child Skill() calls (plan, build, review) will overwrite this with their own skill name during execution and should restore or re-write it — but the orchestrator owns the initial write and final cleanup. 8. Filter to phases from `--from` through `--through` that are not yet complete. 8. If no phases to execute, display: "All phases in range are complete." and stop.
**If `--dry-run`:** Display the phase list with planned actions per phase, then stop without executing.
DRY RUN — Would execute:
Phase 3 (data-layer): discuss -> plan -> build -> verify
Phase 4 (api-endpoints): plan -> build -> verify (CONTEXT.md exists, skip discuss)
[speculative: plan Phase 5 during Phase 4 build]
Phase 5 (frontend): discuss -> plan -> build -> verify
Speculative depth: 2When `speculativeDepth > 0`, append the speculative depth value and annotate phases where speculative planning would occur. When `speculativeDepth == 0` (speculative_planning is false), omit the speculation lines.
---
Before each phase iteration:
1. Re-read `.planning/ROADMAP.md` (catches inserted/removed phases between iterations) 2. Rebuild the phase list for the current milestone 3. Compare with previous iteration's list — if changed, log:
Phase list changed: {diff}. Adjusting execution order.4. Skip phases already marked as verified/complete in ROADMAP.md
**Verification tracking:** Initialize two counters at the start of the autonomous run:
---
For each remaining phase N:
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.
Manage backlog items — ideas not ready for active planning. Add, review, promote, or remove.
Start a new project. Deep questioning, research, requirements, and roadmap.
Execute all plans in a phase. Spawns agents to build in parallel, commits atomically.