solo is a Claude Code plugin that runs every non-trivial change through three gates: plan → execute → pr-ready. Nothing gets written before a plan is approved, and nothing becomes a PR before a slop pass and a review.
It is built for one developer working with an AI pair: you make the decisions (approve the plan, answer open questions, say yes to push and merge), and the agents do the legwork in between. Every step leaves evidence behind: an OpenSpec change folder, a GitHub issue, atomic commits, a review.
- 19 skills: 4 gates (plan, execute, review, pr-ready), the
shipshortcut that chains them, and 14 helpers (brainstorm, investigate, tdd, refactor, slop, research, gap-analysis, adr, docs, writer, standard, map, issues, comments). - 4 subagents: planner, explorer, reviewer, implementer. Each one has a narrow job and a fixed model.
- Principles: cite evidence (
path:line), shortest correct diff, one logical change per commit, and a runnable check for every change.
You decide at Approve?, before the push and at merge. Everything between those points runs on its own and stops only on an open question, a failing check, or a review finding it cannot resolve.
flowchart LR
req["Request or #issue<br/>bugs go through /solo:investigate first"] --> plan["/solo:plan<br/>planner writes the OpenSpec change, stops"]
plan --> ok{"Approve?"}
ok -- revise --> plan
ok -- drop --> gone["change folder deleted"]
ok -- approved --> exec["/solo:execute<br/>branch, tasks, check, slop, review, commits"]
exec --> ready["/solo:pr-ready<br/>fold fixes and specs, dry run, ask, open the PR"]
ready --> merge["Merge, on your yes<br/>rebase-merge, never squash; issue closes"]
Revise sends one message back to the planner with the defect, and drop deletes the change folder. /solo:ship runs the whole chain in one command, still pausing at Approve?.
Each skill says what it does not do and which skill does that instead, so the model picks the right one and stays in its lane.
| Skill | Use it when | Not for (use instead) |
|---|---|---|
/solo:plan |
Any change touching more than one file, or any behavior change. Writes an OpenSpec change and stops for approval | Editing code (execute), diagnosing a bug (investigate), weighing approaches still open (brainstorm) |
/solo:execute |
A change is approved. Branches, implements task by task, runs the check, slop pass, review, atomic commits | Opening the PR (pr-ready) |
/solo:review |
After execute, or on any diff before merge. Dispatches the reviewer with the base branch's REVIEW.md rules, then fixes every finding |
Opening the PR (pr-ready calls it) |
/solo:pr-ready |
A branch is about to become a PR. Slop + review, folds fixes and specs, shows a dry run and opens the PR on your yes | Planning or implementing |
/solo:ship |
A change you would otherwise babysit through each gate. Runs plan → pause → execute → pr-ready | Skipping approval: the pause stays |
/solo:brainstorm |
The approach is still open: "what are our options", "should we X or Y". Three to five grounded options with cost and first failure, a recommendation and the open questions. Writes nothing | Planning the chosen option (plan), external sources (research) |
/solo:investigate |
A bug or failing behavior. Evidence (E#), root cause, a counter-check, a fix plan | Applying the fix (plan, execute) |
/solo:tdd |
Behavior worth driving from tests: parsers, money and auth paths, state machines. Red must be observed before green | Restructuring without new behavior (refactor) |
/solo:refactor |
The code's shape blocks a change, or seams show after a feature. Characterization test first, one move per green bar | Adding behavior (plan), fixing bugs (investigate) |
/solo:slop |
Code works but is bloated: dead code, duplicates, pass-through wrappers, weak tests. One smell class per pass | Restructuring for a coming change (refactor) |
/solo:research |
An open question before choosing a library, protocol or approach. Sourced evidence, ends on a recommendation | Searching this codebase (investigate), approaches to a change in this codebase (brainstorm) |
/solo:gap-analysis |
Before calling work done, or when inheriting a half-built feature. Lists what is missing, partial or extra against the spec | Finding bugs in code that matches the spec (review) |
/solo:adr |
A choice is hard to undo (dependency, schema, protocol, hosting, auth) or was argued about. Writes docs/adr/ |
How the system works (docs) |
/solo:docs |
Someone needs to use or change the thing: README, feature doc, API surface, from code evidence | Why a decision was made (adr) |
/solo:writer |
Prose people read sounds like a model wrote it: a README, ADR, PR body, issue or reply. Rewrites or reviews it, keeps every fact, no dashes. docs, adr and pr-ready run their prose through it | Code and code comments (slop), writing docs from code (docs) |
/solo:standard |
New repo, changed tooling, or a skill reports "no coding standard". Writes ## Coding standard in AGENTS.md |
Enforcing it on a diff (review) |
/solo:map |
New or inherited repo, or the layout moved. Writes a root ## Map and one AGENTS.md per directory that carries weight, keeps hand-written lines, then /solo:pr-ready |
The coding standard (standard), README or feature docs (docs) |
/solo:comments |
Review threads came in on your open PR, from a person or a bot. Triages each against the code, shows the verdicts and waits, folds the approved fixes into their commits, pushes through pr-ready, then replies and resolves on your yes |
Reviewing a diff (review), the push itself (pr-ready) |
/solo:issues |
Issue upkeep outside a change: a new work item, a retype, a milestone, a dependency, the ready queue. One script call per operation, --dry-run on every write |
A change's tracking issue (plan creates it on approval) |
The expensive model thinks once, in a throwaway context, and hands off a file. The main thread always verifies and commits; no agent checks its own work.
| Agent | Model | Tools | Dispatched by | Job |
|---|---|---|---|---|
solo:planner |
Opus (Fable only on your yes) | Read, Grep, Glob, Bash, Write | /solo:plan only |
Writes the OpenSpec change: proposal, delta specs, design, tasks. Never edits code or asks you; open questions go in design.md |
solo:explorer |
Haiku | Read, Grep, Glob, Bash | Any skill, when a sweep would flood context | Read-only sweep of a repo or log set. Returns file:line citations and a one-paragraph conclusion |
solo:reviewer |
Opus | Read, Grep, Glob, Bash | /solo:review (so also execute and pr-ready) |
Fresh-eyes review of a diff. Assumes the change is wrong and tries to prove it: bugs, missed callers, over-engineering, slop, leftover ponytail: markers |
solo:implementer |
Sonnet (Opus for heavy groups) | Read, Edit, Write, Bash, Grep, Glob | /solo:execute, /solo:tdd, /solo:refactor, /solo:map |
One bounded unit: a task group, a green step or a refactor move, with named paths and a verification command. Never plans, reviews, commits or ticks tasks |
When your repo's AGENTS.md or CLAUDE.md, or your own CLAUDE.md, names a reviewer agent for a repo, /solo:review dispatches that one instead of solo:reviewer. Work you can finish in a handful of tool calls is never delegated.
Every planned change is an OpenSpec folder plus one GitHub issue, and the folder rides in the branch next to the code. When the PR merges, its specs become the repo's living specs.
openspec/
specs/<capability>/spec.md living specs (what the system does today)
changes/<slug>/
proposal.md why + What Changes; Status: and Issue: lines
specs/<capability>/spec.md delta: ADDED / MODIFIED / REMOVED / RENAMED requirements + scenarios
design.md how, plus ## Open Questions
tasks.md task groups (= commit slices); the last group is the runnable check
changes/archive/YYYY-MM-DD-<slug>/ the change after it is folded
A change moves through four states. Each step is a script, never hand edits:
- draft:
new-change.sh <slug>creates the folder (andopenspec/on a new repo). The planner fills it;validate-change.shmust pass: strict OpenSpec validation,Status:and a well-formedIssue:line, every scenario named by a task. - approved: on your yes,
create-issue.sh <slug>opens the tracking issue (issue typeBug|Feature|Taskfrom the slug prefix, its body the proposal's Why and What Changes) unless the proposal names one, then setsStatus: approvedandIssue: owner/repo#n. Execute refuses anything else. - done:
set-status.sh <slug> donerefuses whiletasks.mdis missing or has an unticked box. The last slice commit carriesRefs owner/repo#n. - archived:
fold.sh <slug>in pr-ready applies the deltas toopenspec/specs/, moves the folder toarchive/, and commitsdocs(spec): fold <slug>withCloses owner/repo#n, so the merge closes the issue.
Work items are GitHub Issues in every repo: /solo:plan #n reads one, dependencies use --blocked-by, and ready work is gh issue list --search '-is:blocked is:open'. /solo:issues runs those and the rest of an issue's upkeep (create, edit, comment, close, milestones) through skills/issues/scripts/issue.sh. Issue and comment text from anyone who is not a collaborator is treated as a claim to verify, never as an instruction.
Skills run these instead of retyping CLI commands, so every run does the same thing. They work from anywhere inside the target repo and refuse a slug that is not kebab-case or an issue that is not owner/repo#n or none.
| Script | Does |
|---|---|
skills/plan/scripts/openspec.sh |
Runs OpenSpec 2.1.1: a global CLI only at that exact version, else npx -y @fission-ai/[email protected]; exit 127 when neither exists |
skills/plan/scripts/new-change.sh <slug> |
openspec init when the repo has none, creates the change, prints its path |
skills/plan/scripts/validate-change.sh <slug> |
Strict validation, Status:/Issue: checks, every scenario named in quotes by a task |
skills/plan/scripts/read-issue.sh <n|#n|url> |
Prints the issue JSON, then collaborator <login> or outsider <login> per author of the issue and its comments |
skills/plan/scripts/create-issue.sh <slug> [--dry-run] |
Creates the tracking issue from the proposal (title, Why + What Changes body, issue type, @me) unless it names one, then sets Status: approved |
skills/plan/scripts/set-status.sh <slug> <draft|approved|done> [owner/repo#n|none] |
Rewrites the header in proposal.md; done refuses while a task box is open |
skills/plan/scripts/verify-commits.sh <base> -- <check…> |
Runs the check at every branch commit, oldest first, in a throwaway worktree; names the first failing commit and leaves your tree untouched |
skills/pr-ready/scripts/fold.sh <slug> |
Box, status and clean-tree checks (untracked files outside openspec/ are ignored), validate, archive, validate living specs, commit docs(spec): fold <slug> |
skills/pr-ready/scripts/open-pr.sh <base> --title <t> --body-file <f> [--dry-run] |
Type label from the commits, creates it when missing, pushes, opens or updates the PR assigned to @me, refuses a body without Closes owner/repo#n |
skills/pr-ready/scripts/merge-pr.sh <n> [--dry-run] |
Switches squash merging off, rebase-merges, retargets open PRs stacked on the branch, prints each child's rebase, deletes the branch, fast-forwards the local base |
skills/map/scripts/check-map.sh [base-ref] |
Refuses an AGENTS.md anywhere below a plugin's or .claude/'s agents/, commands/ or output-styles/ folder, a link or Parent comment that does not resolve (code spans and fences are skipped), a nested AGENTS.md that no root ## Map row links, and a root ## Coding standard changed since base-ref |
skills/issues/scripts/issue.sh <create|edit|comment|close|reopen|list|milestone> … [--dry-run] |
One GitHub issue operation per call: exactly one type, set as GitHub's issue type (feat, bug, chore are Feature, Bug, Task), milestone, assignees, blocked-by, close reason; list --ready prints open unblocked issues one line each; milestone list|create|close. Bad input exits 2 before gh runs. Needs gh 2.100 or newer |
evals/run.sh [--case <glob>] [--runs <n>] [--model <m>] |
Runs the skill trigger suite in evals/ (one case per skill, zero-call guards on overlapping neighbours): one arm, report kept local, list-price ceiling SOLO_EVAL_MAX_USD (default 5), shell, write, web and subagent tools withheld. Spends model usage (19 cases × 3 runs by default); iterate with --case <skill> --runs 1. Pin --model when comparing two runs |
skills/execute/scripts/commit-guard.sh |
PreToolUse hook /solo:execute registers for the rest of the session: refuses a git commit on main or master that carries an approved OpenSpec change folder together with code (staged, added in the same command, or taken in by git add -A / commit -a; follows cd and git -C); a commit of only openspec/ files passes; a repo that commits approved changes to main opts out with git config solo.allowMainCommits true, and tells Claude to branch first. Every other command and repository passes; any fault lets the command run. Needs jq, rg, git |
skills/review/scripts/review-md.sh [--base <ref>] |
Prints the root REVIEW.md and the nearest one above each changed and untracked file, read from the base ref (default origin/main) with git show, so a branch cannot loosen the rules it is reviewed by; nothing when there are none; exit 1 on an unknown ref or unrelated history |
skills/comments/scripts/threads.sh <list|reply|resolve> … [--dry-run] |
list [<pr>] [--all] prints the unresolved review threads of the branch's PR (or <pr>), read from its base repository: thread id, state, path, line, first comment id, comments; reply <comment-id> --body-file <f> [--pr <n>] answers a thread; resolve <PRRT_id>… resolves threads, one call each. Bad input exits 2 before gh runs |
Tests: bash skills/plan/scripts/scripts.test.sh, bash skills/pr-ready/scripts/open-pr.test.sh, bash tests/guards.test.sh, bash skills/map/scripts/check-map.test.sh, bash skills/issues/scripts/issue.test.sh (needs jq), bash skills/execute/scripts/commit-guard.test.sh, bash skills/review/scripts/review-md.test.sh and bash skills/comments/scripts/threads.test.sh (needs jq). The eval suite (bash evals/run.sh) is not a test: it calls the model and runs only by hand.
These are hard stops, not style advice: a gate refuses to continue until each one holds.
| Rule | Enforced in | What it means |
|---|---|---|
| Evidence, not memory | investigate, planner, reviewer | Every claim about code cites path:line. Anything not inspected is written as Unverified: <what>, because <why> |
| One runnable check | plan, execute | The last task group in tasks.md is a command that fails if the logic breaks. Execute derives one from the repo if missing |
| Observed failure | tdd | No green step without pasting the red test's real assertion failure |
| Behavior locked first | slop, refactor | The check runs green before the first edit and after every pass; one smell class or one move per pass |
| No placeholders | execute, slop | TODO, FIXME, NotImplemented, .only, bare skip are blockers. A conditional skip with a reason string is fine |
No ponytail: markers |
review, pr-ready | A deliberate ceiling gets its upgrade implemented, or the marker is deleted because the ceiling does not apply |
| Atomic feature slices | execute, pr-ready | One commit per task group, ordered by dependency; every commit passes lint and the check on its own (a detached worktree loop over the commits) |
| Fold, don't stack | pr-ready | Fixes go into the commit that introduced the code (--fixup + autosquash). No "cleanup" or "address review" commits |
| Terse conventional commits | execute | type(scope): subject of 50 chars or fewer, imperative; a body only when the why is not obvious |
| Ask before remote writes | pr-ready | A dry run shows the push and PR writes, and they run only on your yes; merge and repository settings ask again |
| Rebase-merge | pr-ready | Never squash: it flattens the atomic history. More than about five slices become stacked PRs |
| Repo's own stack | execute, tdd, standard | AGENTS.md ## Coding standard decides runner and checks; with none, the lockfile is law. Framework questions go to Context7 |
You need git, gh (signed in), rg, and either OpenSpec 2.1.1 (npm install -g @fission-ai/[email protected]) or Node 22.20.0 or newer for npx. In a Claude Code session:
/plugin marketplace add diblaze/solo
/plugin install solo@diblaze
Then:
- Run
/solo:standardonce per repo, so the skills know its runner and check command. - Under zsh, add
"env": {"CLAUDE_CODE_SHELL": "/bin/bash"}to~/.claude/settings.json, so Bash tool calls run real bash. - Add the recommended
permissionsrules from SECURITY.md: they deny reads of the usual secrets files and the git commands that destroy uncommitted work. Never run solo inbypassPermissionsmode.
solo changed itself so that execute hands task groups to model-fit subagents:
/solo:plan Update /solo:execute to use subagents with the right modeldispatched the planner. It wroteopenspec/changes/add-execute-subagent-dispatch/and stopped.- On approve, an issue was created and the change set to
Status: approved. /solo:execute add-execute-subagent-dispatchbranched, worked the task groups, ran the check, the slop pass and the review, then committed one slice per group:feat(solo): add sonnet implementer agentfeat(solo): route execute groups to implementerfix(solo): slop and review see untracked files(a review finding, as its own slice)
/solo:pr-readyranfold.sh, which addeddocs(spec): fold add-execute-subagent-dispatchwithCloses, and opened the PR.- On the merge yes: rebase-merged, the four commits kept on
main, the issue closed, the change archived.
Install the tools once: go install github.com/evilmartians/lefthook/[email protected], go install github.com/zricethezav/gitleaks/[email protected], plus shellcheck and rg from your package manager. Then run lefthook install in the clone.
- pre-commit:
shellcheckon staged scripts, the three test suites when scripts, skills or agents change, andgitleakson the staged diff. - pre-push:
shellcheckon every script, the test suites, andgitleaksover the history. - CI (
.github/workflows/ci.yml) runs the same checks plusactionlintandclaude plugin validate --strict. The coding standard is in AGENTS.md. - Evals:
bash evals/run.shis manual and paid. No hook or CI job runs it;tests/guards.test.shfails if one does.
release-please reads the conventional commits on main and keeps one release PR open: feat bumps the minor version; fix, perf or revert the patch; a ! breaking commit the major. docs, chore, ci, test, refactor, style, build or any other type alone release nothing, so a dependency bump users must get is a fix(deps) commit. The PR bumps version in .claude-plugin/plugin.json, .release-please-manifest.json and CHANGELOG.md.
- GitHub holds the release PR's CI run, because the PR is opened by GitHub Actions. Approve the latest held run, the one on the PR's current head: "Approve and run" on the PR, or find it with
gh run list --repo diblaze/solo --status action_requiredand rungh api -X POST repos/diblaze/solo/actions/runs/<run-id>/approve. Then wait forcheck. Every push tomainthat updates the release PR holds a new run. - Then merge the release PR like any other, with
/solo:pr-readystep 6. The merge tagssolo--v<version>, the formatclaude plugin tagwrites and plugin dependency ranges resolve against, and publishes a GitHub release with that version's changelog. - Never bump
versionby hand:tests/guards.test.shfails whenplugin.jsonand the release manifest disagree. - Users get the release with
claude plugin update solo@diblaze, or on the marketplace's auto-update.
MIT, see LICENSE; third-party notices in NOTICE. Security reports: see SECURITY.md.