By rasatpetabit
Orchestrate long-running Claude Code workflows from brainstorm to retrospective with durable run bundles, strict context control, adversarial review, and parallel task execution.
Adversarial second-opinion review of a completed masterplan task. Shells out to the Codex CLI out-of-process and returns a severity-first findings digest (CD-10). Runs per done task during execution when the run bundle's codex.review is enabled — not gated by task Codex-eligibility.
Read-only reconnaissance for masterplan — run-bundle state reads, situation reports, and doctor-fact gathering. Returns compact digests only; never writes, never produces plan.index.json.
Bounded single-task executor for masterplan. Implements one task within its declared file scope, runs the task's verify commands, and returns a structured digest. Never commits, never writes run state.
Reviews a merged masterplan plan against its spec — spec coverage, cross-subsystem consistency, and verify-command adequacy — and returns a PASS/REVISE/FAIL verdict with findings. Read-only; runs at the planning gate after deterministic merge.
Turns an approved spec into an executable masterplan plan — tasks with wave assignments, Codex-routing annotations, and verify_commands — and emits plan.index.json. Used at the planning gate.
Suggest `/masterplan import` when legacy planning artifacts (PLAN.md, TODO.md, ROADMAP.md, pre-v3 superpowers plans/status files, branches without merged PRs, draft PRs with task lists) exist in the repo. Surfaces a one-line suggestion only — never auto-runs.
Generic/Codex entrypoint for masterplan: bare /masterplan, /masterplan:masterplan, $masterplan, or any verb. All verbs (full, brainstorm, plan, execute, finish, retro, import, doctor, status, validate, stats, clean, next, verbs, publish, follow) route through this single command — v8 ships NO per-verb /masterplan:<verb> skills (they shadowed Claude Code built-ins like /plan, /status, /doctor and added nothing over bare-command routing).
Uses power tools
Uses Bash, Write, or Edit tools
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
A Claude Code & Codex CLI plugin for durable multi-hour engineering work — brainstorm → plan → execute → finish on top of
obra/superpowersskills.
Current release: v9.1.1 · License: MIT · Works with: Claude Code, Codex CLI · See CHANGELOG.md
masterplan provides the /masterplan slash command. It orchestrates a brainstorm → plan → execute → finish development lifecycle on top of the obra/superpowers skills suite.
The core design principle: state lives on disk, not in the chat session. A run bundle at docs/masterplan/<slug>/ is the single source of truth. The orchestrator sequences decisions; all real work is delegated to short-lived subagents that return digests, never raw logs. If the session crashes, compacts, or is cleared, /masterplan re-reads the bundle and picks up exactly where it left off.
brainstorm → plan → execute → finish
| Phase | What happens |
|---|---|
| brainstorm | Codebase discovery; spec.md authored and reviewed |
| plan | spec.md → task decomposition → plan.index.json + plan.md |
| execute | Wave-by-wave task dispatch; each wave is one workflow launch |
| finish | Verification → retro.md → branch-finish gate → archive |
The state.yml phase field holds the enum brainstorm|plan|execute. finish is a terminal finalization flow that fires automatically when the last execute wave completes — it is not a phase value.
masterplan v8 is a five-layer system. Each layer delegates downward and never writes state on behalf of the layer above it.
┌─────────────────────────────────────────────────────────────┐
│ L0 — Run bundle (disk) │
│ docs/masterplan/<slug>/state.yml spec.md plan.md │
│ plan.index.json events.jsonl retro.md handoff.md │
└───────────────────────┬─────────────────────────────────────┘
│ read / atomic write (CD-7)
┌───────────────────────▼─────────────────────────────────────┐
│ L1 — Thin shell │
│ commands/masterplan.md (~800-line verb sequencer) │
│ bin/masterplan.mjs (mp — filesystem-only subcommands) │
│ lib/resume.mjs (pure decideNextAction) │
│ ← SOLE durable state writer; git commit/checkout live here │
└───────────────────────┬─────────────────────────────────────┘
│ launch + receive digests
┌───────────────────────▼─────────────────────────────────────┐
│ L2 — Workflow engine │
│ workflows/execute.workflow.js (one wave per launch) │
│ workflows/plan.workflow.js (subsystem fan-out) │
│ lib/plan-merge.mjs lib/dispatch/ lib/wave.mjs │
│ ← returns digests/fragments only; never writes disk/git │
└───────────────────────┬─────────────────────────────────────┘
│ bounded briefs / structured digests
┌───────────────────────▼─────────────────────────────────────┐
│ L3 — Agents │
│ agents/mp-explorer.md agents/mp-implementer.md │
│ agents/mp-planner.md agents/mp-codex-reviewer.md │
│ agents/mp-plan-reviewer.md agents/mp-subsystem-planner.md │
│ agents/mp-spec-decomposer.md │
│ ← no session history; return structured output only │
└───────────────────────┬─────────────────────────────────────┘
│ node bin/doctor.mjs
┌───────────────────────▼─────────────────────────────────────┐
│ L4 — Doctor │
│ bin/doctor.mjs dispatcher │
│ lib/doctor/*.mjs (14 check modules, auto-discovered) │
│ ← Finding {id, severity, summary, fix}; non-zero on ERROR │
└─────────────────────────────────────────────────────────────┘
Key invariants:
commands/masterplan.md + mp) is the only durable state writer (CD-7). All state mutations go through mp subcommands; L2 and below never commit to git or write state.yml.bin/masterplan.mjs is filesystem-only — git (commit, checkout, clean) is the shell's job.args on launch and return digests in the completion notification.Run inside the Claude Code CLI:
/plugin marketplace add rasatpetabit/masterplan
/plugin install masterplan@rasatpetabit-masterplan
/reload-plugins
The marketplace commands register the catalog and install the
masterplan-detectskill. The upstreamsuperpowerscore plugin is declared as a dependency and will be automatically resolved. See docs/install.md for offline, desktop-app, or manual installation paths.
npx claudepluginhub rasatpetabit/masterplan --plugin masterplanv9.44.1 — Patch release for Gemini environment/version detection and qwen auth gating. Run /octo:setup.
Harness-native ECC operator layer - 67 agents, 271 skills, 92 legacy command shims, reusable hooks, rules, selective install profiles, and production-ready workflows for Claude Code, Codex, OpenCode, Cursor, and related agent harnesses
Persistent file-based planning for AI coding agents. Crash-proof markdown plans (task_plan.md, findings.md, progress.md) that survive context loss and /clear, with an opt-in completion gate and multi-agent shared state. Manus-style. Works with Claude Code, Codex CLI, Cursor, Kiro, OpenCode and 60+ agents via the SKILL.md standard. Includes Arabic, German, Spanish, and Chinese (Simplified and Traditional).
Superpowers Plus core skills library for Claude Code: planning, execution routing, TDD, debugging, and collaboration workflows
Claude harness - A harness for solo developers (Vibecoders) to handle full-cycle contract development.
Unity Development Toolkit - Expert agents for scripting/refactoring/optimization, script templates, and Agent Skills for Unity C# development