plan-review
Skill0 starsChanged 8 days agoMITView on GitHub
External engineering review of an implementation plan before any code is written. Launches Codex in an Orca terminal beside the session (codex exec only as the launcher's last resort, then a fallback reviewer agent), routes confidence-7+ findings through the TypeSafe judge, revises the plan, runs exactly one re-review round, then shows the user the plan's key architecture decisions and goes on to execution without stopping. Use after writing-plans, when asked to "review the plan", or before subagent-driven-development.
53 other projects use a version of this.
Adopted by
Most recently taken up by
- zaynram/reasoning-protocolstheir own version, first seen Nov 29, 2026
- Tyderion/claude-skillstheir own version, first seen Nov 29, 2026
- ZenStudioLab/skillstheir own version, first seen Nov 29, 2026
- DavidCho1999/archaiflow-skillstheir own version, first seen Nov 29, 2026
- ramda-dev/reasoning-protocolstheir own version, first seen Nov 22, 2026
- lastxuanain/ainward-skillstheir own version, first seen Nov 22, 2026
Used with
Projects with it also use plan-execute, pr-comment and 9 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
longranger2Skillplan-execute
Use when the user says "/plan-execute", "plan execute", "implement plan", or "execute plan" and provides a finalized plan file path to carry out. Claude orchestrates, Codex writes code, Claude reviews, and Codex fixes issues until the quality bar is met.
Also in 5 projects that use this
BenjaminGSkillpr-comment
This skill should be used when reviewing someone else's pull request and you want drafted review comments posted to GitHub — either quality-gate findings (tier-marked) or pr-challenge's reviewer questions (unmarked) — each drafted through humanizer and posted as a standalone inline comment at its file:line, after one confirmation. Triggers on "post these as review comments", "comment the gate findings on the PR", "draft and post my review", "leave review comments", after a quality-gate run or a pr-challenge pass on a PR you're reviewing.
Also in 3 projects that use this
AnthropicSkilloffice-hours
Set up and run Claude Code office hours, including the calendar event when the champion's own calendar connector allows it. Use when a champion wants a regular time for teammates to bring problems.
Also in 3 projects that use this
Hugging FaceSkillsimplify
Refactor code after tests pass. The "Refactor" phase of Red-Green-Refactor.
Also in 3 projects that use this
BlockSkillplan
Draft a TDD, PRD, or lightweight plan in the conversation without committing it.
Also in 5 projects that use this
AWSSkillretro
Conduct a retrospective on a coding session.
Also in 5 projects that use this
Other versions53 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 53
- ahmadrosid/nakama★ 871same name
- igerber/diff-diff★ 415same name
- Mathews-Tom/armory★ 340same name
- sd0xdev/sd0x-dev-flow★ 196same name
- sd0xdev/sd0x-harness★ 196same name
- YougLin-dev/Aha-Loop★ 181same name
- longranger2/claude-gpt-workflow★ 76same name
- ConnorGriffin/skills★ 21same name
- liewcf/agent-skills★ 16same name
- aws-solutions/konductor★ 12same name
43 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository11 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- finishing-a-development-branchSkill
- kickoffSkill
- reviewSkill
- spec-reviewSkill
- subagent-driven-developmentSkill
- systematic-debuggingSkill
- test-driven-developmentSkill
- typesafe-aiSkill
- verification-before-completionSkill
- writing-plansSkill
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 1 is distinctive, and 4 are very specific to this project.
0
Common
Most of the 46 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 20
Create a temp file outside the repo (under $TMPDIR) containing, in order:
- Very specific: line 77
Run the judge exactly as judge.md says.
- Very specific: line 119
Do not wait for a reply: this is information, not a gate.
- Distinctive: line 123
Never start implementation from this skill.
- Very specific: line 124
Never edit REPORT; it is the reviewer's artifact.
“Common” is measured: kept by at least 6 in 10 of the 46 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Plan Review
Announce at start: "Using plan-review on <plan path>."
0. Inputs
PLAN: the argument, or the newest file indocs/plans/. Stop with a message if none.REPORT:<directory of PLAN>/<plan basename without .md>.review.md— beside the plan, always repo-relative;reviewer.shrejects an absolute path. It is relative to the reporeviewer.shworks in, so run from the repo containingPLAN, or pass--repo <that repo>toreviewer.sh.ROUND: 1.- Locate the repo and the judge protocol: read
judge.mdfrom thekickoffskill directory (same repo,skills/kickoff/judge.md; locate the repo with the snippet in that file, replacingkickoffwithplan-review). Every fenced block below is one shell call: fillSKILL_DIRfrom this loaded skill's absolute base directory and run the locator in each call that uses$SKILLS_REPO. Read the runtime adapter for Codex command sessions and delegation.
1. Build the prompt
Create a temp file outside the repo (under $TMPDIR) containing, in order:
- The full text of
reviewer.mdfrom this skill's directory. THE PLAN:followed by the plan file verbatim inside a fence longer than any backtick run in the plan — use seven backticks unless the plan contains a run of seven or more, then go longer still.Referenced source files:followed by the repo-relative paths mentioned in the plan that are real files: grep the plan for path-like tokens containing/, keep those that passtest -f, drop anything undernode_modules/(repo-localagents/,.claude/and.codex/files stay as data), deduplicate and sort, and keep at most 40 entries.- On round 2 only:
Previous report:followed by the previous report verbatim (from<REPORT>.round1.md), thenOnly report findings that are still present after the plan changes; mark fixed ones as resolved. Write the report to <REPORT>on its own line — the last line of the file, in round 1 and round 2 alike. Self-check before launching:[ "$(tail -1 "$PROMPT")" = "Write the report to $REPORT" ] || echo "prompt malformed". If it printsprompt malformed, rebuild the prompt in this order and re-check; do not launch the reviewer.
Say nothing about models or reasoning effort in the prompt — the launcher pins those.
2. Launch the external reviewer
The reviewer is Codex in an Orca terminal opened beside this session — a visible tab the user can watch. codex exec is only the launcher's last resort: reviewer.sh itself falls back to it when Orca cannot start a Codex terminal, and says why on stderr. So launch only by running the block below as written: never run codex, codex exec or orca terminal … yourself, never write your own launcher, never skip the block because Orca "looks unavailable". In Claude Code run the block with dangerouslyDisableSandbox: true (the sandbox can cut Orca's local socket and Codex's network, which silently turns the review into codex exec) and run_in_background: true (the review outlives the Bash timeout; you are notified when it exits).
Substitute the real paths and round values for the placeholders before running:
SKILL_DIR="<absolute directory of the loaded plan-review skill>"
SKILLS_REPO="$(cd -P "$SKILL_DIR/../.." 2>/dev/null && pwd -P)"
[ -f "$SKILL_DIR/SKILL.md" ] && [ -f "$SKILLS_REPO/scripts/typesafe-judge.mjs" ] || { echo "distro root not found for loaded skill: $SKILL_DIR" >&2; exit 2; }
[ -f "$SKILLS_REPO/scripts/reviewer.sh" ] || { echo "reviewer not found: SKILLS_REPO=$SKILLS_REPO" >&2; exit 2; }
PROMPT="<the temp prompt file from section 1>"
REPORT="<REPORT, repo-relative>"
ROUND="<1 or 2>"
ROUND1_REPORT="<the round-1 REPORT; in round 2 the same value as in round 1>"
SESSION="$(git rev-parse --show-toplevel)/.context/plan-review-$(basename "$ROUND1_REPORT" .md)-session"
echo "SESSION=$SESSION"
# Round 1 starts fresh: close an orphan left by an interrupted earlier review of this plan.
[ "$ROUND" = 1 ] && bash "$SKILLS_REPO/scripts/reviewer.sh" --close-session "$SESSION"
bash "$SKILLS_REPO/scripts/reviewer.sh" --prompt-file "$PROMPT" --output "$REPORT" --title plan-review --timeout-min 15 --session-file "$SESSION"
echo "reviewer_exit=$?"0: report is atREPORT; note which path ran (reviewer: orca/reviewer: codex-exec). Onreviewer: codex-exec, copy theorca: …stderr line into the section-6 summary as the reason the Orca terminal was not used; do not relaunch by hand.3: dispatch the fallback reviewer with the same prompt file content as its prompt and the instruction to writeREPORT, and wait for it. Claude Code:subagent_type=verus-reviewer(verus-skills:verus-reviewerwhen installed as a plugin), unnamed, in the background, nomodelparameter. For Codex, follow the runtime adapter: prepend the matching role body to the task prompt and dispatch in fresh context with the native subagent tool. On a host with no subagent tool at all, do not stop: perform the review yourself in this session followingreviewer.mdexactly, writeREPORT, and state in the report header that it was produced by the fallback reviewer, not an independent second voice.1: fix the invocation; do not proceed. An Orca terminal that could not be closed is left recorded in the session file, and the section-6 close retries it.- any other exit code (e.g.
127): the launcher was not found or could not run — treat as1: fix the invocation, do not proceed.
3. Triage findings
Parse ## Findings (confidence 7+). For each finding, in order of severity:
First decide whether the finding is a real choice.
One reasonable fix — for example a reproduced bug with an obvious remedy, or a factual error in a document: do not call the judge. Accept it and print, in place of a decision block:
accepted without the judge: <finding one-liner> — <the evidence: reproduction, file:line, command output>
Record that line with the decisions (section 4).
Otherwise build a judge question about how to fix it:
question: "How should <the finding, in a few words> be fixed?"- options: 2–4 concrete ways to fix it, each one a reasonable engineer could pick, each with its concrete consequence in
description. The reviewer's proposal may be one of them. A "leave it as is" option is allowed only when itsdescriptionstates the strongest argument for leaving it; never add a bare "reject". Map each option to the judge's JSON fields:labelis a short name,descriptionthe consequence. context: a structured object —goal(what the plan delivers, one sentence),decisions(findings already triaged in this round),facts(the plan's Goal and Architecture lines, the spec's relevant constraint, the finding verbatim, and the relevant plan excerpt),constraints(the user's rules and the plan's hard limits),consequences(one entry per option id, each naming what concretely happens or breaks — file, behaviour, test — if that option is chosen; equal specificity and length for every id, no comparative or preference language). Facts only — a stranger readingfactsalone must be able to pick.recommended: your pick. It is shown to the user and never sent to the judge.
Run the judge exactly as judge.md says. Accepted → apply the decision; unaccepted → take your recommended option without asking and apply it the same way; any non-zero judge exit → ask the user. Print every decision block in chat as it happens.
Findings in the Appendix are not acted on; leave them in the report.
4. Revise the plan
Apply to PLAN directly (edit tasks, add tests, add steps) the chosen action of every judged finding, whatever its option letter and whether the judge accepted it, it fell back to your recommendation, or the user chose it, and every finding accepted without the judge. A "leave it as is" choice is recorded with the decisions but changes nothing in the plan. Append to the plan a section:
## Plan review decisions (round N)
<one decision block per judged finding, one "accepted without the judge: …" line per finding decided without it, and a "Left as is: <finding> — <argument>" line for each finding the judge or the user chose to leave>Commit: git commit -am "docs(plan): apply plan-review round N".
5. Second round
Skip round 2 if the round-1 report has no P0/P1 at confidence 7+. Otherwise, if ROUND is 1 and at least one finding changed the plan: copy the round-1 report to <REPORT>.round1.md first (reviewer.sh deletes REPORT at startup, so the only copy would be lost), then set ROUND to 2, rebuild the prompt (section 1, reading the previous report from <REPORT>.round1.md), relaunch (section 2; pass the same SESSION as round 1 — in Orca that reuses round 1's terminal, so the reviewer sees its own earlier context), triage and revise again.
Stop after round 2.
6. Hand off
First close this review's reviewer session:
SKILL_DIR="<absolute directory of the loaded plan-review skill>"
SKILLS_REPO="$(cd -P "$SKILL_DIR/../.." 2>/dev/null && pwd -P)"
[ -f "$SKILL_DIR/SKILL.md" ] && [ -f "$SKILLS_REPO/scripts/typesafe-judge.mjs" ] || { echo "distro root not found for loaded skill: $SKILL_DIR" >&2; exit 2; }
SESSION="<the SESSION printed by section 2>"
bash "$SKILLS_REPO/scripts/reviewer.sh" --close-session "$SESSION"Report to the user: rounds run, reviewer path used, findings accepted/rejected/asked, path of the final report, and — when round 2 ran — the path of the kept round-1 report (<REPORT>.round1.md). Then show the plan's key architecture decisions — the user does not read the whole plan, so this block is what they see of it:
Key architecture decisions (<PLAN>):
- <decision> — <why, or what it rules out>3–7 bullets, one line each, taken from the final plan: its Architecture line, new modules or files and the boundaries between them, new dependencies, data formats, schemas, public interfaces, CLI flags or config keys, migrations and anything hard to undo, places the plan departs from the spec, and plan-review decisions that changed any of these. Leave out routine choices (test layout, naming, task order). If the plan makes no such decision, print one bullet saying so.
Do not wait for a reply: this is information, not a gate. Say: "Plan review done. Next: subagent-driven-development on <PLAN> — write here at any time to stop or change a decision." and invoke subagent-driven-development (verus-skills:subagent-driven-development when installed as a plugin) right away.
Rules
- Never start implementation from this skill.
- Never edit
REPORT; it is the reviewer's artifact. Decisions go into the plan. - One re-review round maximum. Residual P2/P3 go to the plan's
Plan review decisions (round N)section as "deferred" — a separate heading from theReview decisions (round N)section thereviewskill appends after the code exists, so the two never collide in one plan. - Whenever this skill stops — hand-off, a stop after round 1 or 2, report-only mode, a red suite — first run
reviewer.sh --close-session "$SESSION"(section 6), so review terminals never pile up.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

