claude-plan-review
Skill12 starsChanged 8 months agoMITView on GitHub
Send a design document to a separate Claude CLI run for review, then revise the document based on findings. Automatically loops until no critical issues remain or 5 rounds are complete.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- dgrissen2/persona-review-kittheir own version, first seen Aug 9, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- dgrissen2/persona-review-kit★ 0same name
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 repository29 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- add-testsSkill
- best-practiceSkill
- bootstrapSkill
- briefSkill
- changesSkill
- claude-code-reviewSkill
- codex-code-reviewSkill
- codex-plan-reviewSkill
- commit-pushSkill
- depsSkill
- design-researchSkill
- designSkill
- doc-driftSkill
- doc-syncSkill
- doc-tidySkill
- executeSkill
- explainSkill
- full-briefSkill
- goSkill
- grandmaSkill
- planSkill
- post-design-reviewSkill
- recordSkill
- self-reviewSkill
- tech-researchSkill
- testSkill
- timelineSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
20 rules. About 0 are common, 13 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈13
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 13
No arguments: pick the target as in step 1
- Distinctive: line 20
If the user specified a file path, use it
- Distinctive: line 22
If no plan file exists, review the current conversation context — find the most recently discussed design proposal, refactoring suggestion, …
- Distinctive: line 27
Loop automatically — do not ask the user between rounds: Stop when either is true:
- Very specific: line 35
Run in the background (Bash tool, run_in_background: true):
- Distinctive: line 43
From round 2 onward: If the previous round had findings deemed over-engineered, append a custom prompt with context:
- Very specific: line 50
Read <filename>_claude_review.md and summarize the findings for the user by severity ([Critical], [Moderate], [Suggestion]).
- Distinctive: line 54
Verify every critical and moderate finding with a subagent, not with a quick look of your own.
- Distinctive: line 70
Aggregate: After all subagents return, present each finding's verdict and supporting evidence to the user.
- Distinctive: line 73
Only fix issues that are verified as confirmed — skip rejected ones
- Distinctive: line 78
After revising, present a summary of changes to the user
- Very specific: line 81
If this round had [Critical] issues confirmed and fixed → automatically start the next round (back to 2a)
- Very specific: line 82
If every [Critical] this round was rejected and nothing was fixed → end the loop and report the rejections with their reasons
- Very specific: line 83
If this round had no [Critical] issues → output "Review passed" and end the loop
- Distinctive: line 84
If 5 rounds are complete → output final status and end the loop
- Distinctive: line 89
After the review loop ends (for any reason), clean up the gate marker:
- Very specific: line 97
After the review loop ends, recommend the next step, and list every "Needs the user's decision" entry this run added (also in --auto mode.
- Very specific: line 102
--automode: run qq-execute-checkpoint.py pipeline-advance --project . - Distinctive: line 106
Do not alter the design intent on your own initiative — only fix what the review found
- Distinctive: line 107
When revising, preserve the overall document structure.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Run qq scripts as
${CLAUDE_PLUGIN_ROOT}/bin/<name>: they are not on PATH, so a bareclaude-plan-review.shexits 127.
Respond in the user's preferred language (detect from their recent messages, or fall back to the language setting in CLAUDE.md).
Workflow: take
--workflow <name>from$ARGUMENTSif present, else runqq-config.py field workflow. Onprototype-loop, run one round only and verify the findings yourself (shared/prototype-loop.md§Plan), then hand off to/qq:execute; onheavy-review(the default), follow this file as written.
Arguments: $ARGUMENTS
- A file path to a design document or plan
- No arguments: pick the target as in step 1
Execution Flow
1. Identify the Target File
Try in priority order:
- If the user specified a file path, use it
- Otherwise check the current conversation for a Claude-generated plan and use the latest one
- If no plan file exists, review the current conversation context — find the most recently discussed design proposal, refactoring suggestion, or review conclusion, write it as a temporary spec file (
Docs/qq/<branch-name>/tmp-review-spec_<YYYYMMDD-HHmm>.md, timestamped with the current time), then review that file. Get the branch name with:git branch --show-current | tr '/' '_' - Final fallback: use
ls -t Docs/**/*.md | grep -v '/qq/' | grep -vE '(_review|-review_[^/]*)\.md$' | head -1to find the most recently modified design document (excluding qq-generated artifacts and review reports:<doc>_review.md,<doc>_claude_review.md,claude-code-review_<timestamp>.md, including ones older qq versions left inDocs/<branch>/)
2. Review Loop
Loop automatically — do not ask the user between rounds. Stop when either is true:
- No
[Critical]issues in the review result - 5 rounds have been completed
Each round:
2a. Send to Claude for Review
Run in the background (Bash tool, run_in_background: true):
${CLAUDE_PLUGIN_ROOT}/bin/claude-plan-review.sh <file_path>The script calls claude -p and writes results to stdout and <filename>_claude_review.md (same directory as the document).
It always points the reviewer at the project root's CLAUDE.md and adds a provenance check, even with a custom prompt; don't repeat them in your round-2 prompt.
A review takes 2-5 minutes and you are notified when it finishes.
From round 2 onward: If the previous round had findings deemed over-engineered, append a custom prompt with context:
${CLAUDE_PLUGIN_ROOT}/bin/claude-plan-review.sh <file_path> "Review the updated document using the same review criteria as the first round (architecture, correctness, completeness, feasibility). Additional context: the following suggestions from the previous round were judged as over-engineered and replaced with simpler alternatives: <list items and rationale>. Do not re-suggest more complex approaches unless the simpler version introduces a real defect. Grade by severity: [Critical] [Moderate] [Suggestion]."2b. Summarize Review Results
Read <filename>_claude_review.md and summarize the findings for the user by severity ([Critical], [Moderate], [Suggestion]).
2c. Independent Verification
Verify every critical and moderate finding with a subagent, not with a quick look of your own.
For a Provenance: finding, first check this conversation yourself for the user's words on each item: note the ones you find (quote them into the document in 2d), and send the verifier only the items still unbacked. If that leaves no finding to verify, run the Clean Up Gate command (step 3) before 2d: a gate expecting 0 verifiers blocks Docs/*.md edits.
Dispatch the verifiers with the Agent tool (subagent_type: "general-purpose", model: "opus"). By default hand all of this round's findings to one verifier, which gives a verdict for each; split them into a few groups verified in parallel only when there are too many for one agent to check properly. Each prompt must include the original findings (verbatim), relevant file paths, and the instructions from ../../shared/verification-prompt.md.
The review script leaves a gate: Edit/Write on .cs and Docs/*.md files stays blocked until you write the number of verifiers to it and that many have returned. Write it right after dispatching them:
source "${CLAUDE_PLUGIN_ROOT}/scripts/platform/detect.sh"
if qq_session_id && [[ -f "$QQ_TEMP_DIR/review-gate-$QQ_SESSION_ID" ]]; then
IFS=: read -r ts count _ < "$QQ_TEMP_DIR/review-gate-$QQ_SESSION_ID"
echo "${ts}:${count}:N" > "$QQ_TEMP_DIR/review-gate-$QQ_SESSION_ID"
fi(N = the number of verification subagents dispatched. The gate file is per session; if this session has none, there is nothing to write.)
Aggregate: After all subagents return, present each finding's verdict and supporting evidence to the user.
2d. Revise the Design Document
- Only fix issues that are verified as confirmed — skip rejected ones
- For findings flagged as Confirmed but over-engineered, apply a simpler alternative fix
- For each confirmed critical issue, update the relevant section of the design document
- For confirmed moderate issues, apply fixes at your discretion
- Provenance findings: follow
shared/user-decisions.md. Quote the user's words if they exist; if the user wrote the document themselves, reject the finding; otherwise put the item on the "Needs the user's decision" list and write the body with the normal rule (no protection, no added restriction, a cut item back in scope). Never mark it as your own call. Moved items count as fixed - After revising, present a summary of changes to the user
2e. Decide Whether to Continue
- If this round had
[Critical]issues confirmed and fixed → automatically start the next round (back to 2a) - If every
[Critical]this round was rejected and nothing was fixed → end the loop and report the rejections with their reasons - If this round had no
[Critical]issues → output "Review passed" and end the loop - If 5 rounds are complete → output final status and end the loop
Print === Round N/5 === at the start of each round.
3. Clean Up Gate
After the review loop ends (for any reason), clean up the gate marker:
source "${CLAUDE_PLUGIN_ROOT}/scripts/platform/detect.sh"
if qq_session_id; then rm -f "$QQ_TEMP_DIR/review-gate-$QQ_SESSION_ID"; fiHandoff
After the review loop ends, recommend the next step, and list every "Needs the user's decision" entry this run added (also in --auto mode; don't wait for answers):
- Review passed, plan is solid → "Plan looks good. Want to run
/qq:execute <path>to start implementing?" - Issues were found and fixed → "Plan revised. Want to run
/qq:execute <path>, or another review round?"
--auto mode: run qq-execute-checkpoint.py pipeline-advance --project . --completed-skill "/qq:claude-plan-review" --next-skill "/qq:execute", then invoke /qq:execute <path> --auto.
Notes
claude-plan-review.shneeds the Claude CLI (claude) on PATH.- Do not alter the design intent on your own initiative — only fix what the review found
- When revising, preserve the overall document structure; only change what needs changing
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.

