/godmode:code-reviewfrom GodMode
Enforces a two-stage code review protocol: spec compliance then build quality. Required before any change lands, with automated diff generation and reviewer dispatch.
Ships in GodMode. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
A change is reviewed by someone who did not write it, in two stages: first "does it do exactly what was asked", then "is it built well". The author then explains the change to the user in plain language and discloses everything that was not asked for. The author's confidence is not evidence; a fresh reviewer reading the diff is.
NO CHANGE LANDS UNTIL A FRESH REVIEWER HAS PASSED IT AND THE USER HAS SEEN WHAT CHANGED
No exceptions. No workarounds. No shortcuts.
Required:
Skip:
Check entry conditions. The suite passes on the branch, the work is committed, and you can say in two sentences what was built and why. If the suite is red, fix it first; a reviewer's time is wasted on a change that does not run.
Fix the range and write the diff to a file. Take the base commit (the merge base with the target branch, or the commit before the task) and the head commit:
BASE=$(git merge-base origin/main HEAD) # or the commit before this task
HEAD_SHA=$(git rev-parse HEAD)
git diff --stat "$BASE" "$HEAD_SHA" > review-stat.txt
git diff "$BASE" "$HEAD_SHA" > review.diff
Write these files to a scratch directory or a git-ignored path, never into tracked source. The reviewer reads the file instead of receiving a pasted diff, which keeps both contexts small.
Dispatch a fresh reviewer. Dispatch a subagent that has none of your session history, using the reviewer template. Fill in the summary, the requirements (plan file and task, or the user's words), the base and head commits, and the paths to the diff files. Name the reviewer's model and effort on the dispatch (see godmode:model-routing); the final review of a whole branch takes the top tier. The reviewer is read-only and does not dispatch helpers of its own. If your harness ships a code reviewer agent definition, you may dispatch that persona with the same filled-in template.
Stage one: spec compliance. The reviewer checks the diff against the requirements line by line:
A stage-one failure goes back to the implementer before stage two is worth running. Small diffs may run both stages in one dispatch; the reviewer still reports them separately.
Stage two: quality. Correctness at the edges, error handling, security surface, tests that assert real behaviour, conventions of the surrounding code, simplicity, performance where it matters. The template carries the full checklist.
Triage the findings.
| Severity | Meaning | What you do |
|---|---|---|
| Critical | Wrong behaviour, data loss, a security hole, a crash, a broken build | Fix now, then re-review the fix |
| Important | Missing requirement, weak error handling, test gaps, structural problems | Fix before the next task or before landing |
| Minor | Naming, style, small clean-ups | Fix if cheap, otherwise record it for the user |
Evaluate every finding with godmode:review-response: verify it against the code before you act, and push back with evidence when the reviewer is wrong. Rule on every item the reviewer listed as "declined to judge"; nothing set aside is dropped silently.
Bound the fix loop. After fixes, re-review only the fixes against the findings they address, with a fresh reviewer or the same one. If the same Critical or Important finding survives two fix rounds, stop and hand over to godmode:error-recovery; a third identical round is not progress.
Write the change walkthrough. For the user, in plain language, before you commit or merge. One entry per changed file or per coherent group of files:
### src/middleware/rate-limit.ts
What: logins are now limited to five attempts per minute per IP address.
Why: the login endpoint accepted unlimited password guesses.
Context: runs before the auth routes; counters live in Redis.
Risk: if Redis is down the limiter lets everything through. Decide whether it should block instead.
Finish with structural consequences (new dependencies, new layers, changed data flow) and open questions for the user. If you cannot explain a change in plain words, you do not understand it well enough to ship it; go back and find out.
Disclose unsolicited changes. List every change the user did not ask for, separately and before the commit:
Not requested: I also renamed parseDate to parseIsoDate in three files because the old name hid that it rejects other formats. Keep it or revert it?
This includes reformatting, dependency bumps, renamed symbols, deleted dead code and "while I was there" fixes. The user decides; you do not commit an undisclosed change.
Record the outcome. In the progress ledger, the task notes or the pull request description: the range reviewed, the reviewer's model, the verdict, which findings were fixed and which were declined with the reason. Then hand on to godmode:cross-model-review before landing, or to godmode:merge-protocol.
| Give | Withhold |
|---|---|
| The requirements in full, or the path to the plan and the task number | Your session history and reasoning |
| The base and head commits and the diff file paths | Your opinion of the code ("it is solid, just check style") |
| What was built, in two sentences | Pre-written findings you want confirmed |
| Known limitations and decisions the user already made | Instructions to be lenient or quick |
A reviewer handed your conclusion tends to return it confirmed. Give it the work and the requirements, not your verdict.
| Rationalisation | Truth |
|---|---|
| "It is a small change; review is overkill." | Small diffs cause large outages, and a small diff reviews in minutes. |
| "I tested it thoroughly." | Tests and review catch different kinds of defect. A test cannot tell you that you built the wrong thing. |
| "I will review my own diff; it is faster." | You will read what you meant, not what you wrote. A reviewer without your context reads the code. |
| "The reviewer needs my whole history to understand." | If the change cannot be understood from the requirements and the diff, the next maintainer cannot understand it either. |
| "The tests pass, so the user does not need the walkthrough." | Passing tests say the code does something. The walkthrough says what, so the user can own it. |
| "That extra rename was obviously helpful; no need to mention it." | Every undisclosed change is a surprise in someone's next debugging session. Disclose it. |
| "We will batch the review into the next pull request." | Defects compound across tasks. Review each task before the next one builds on it. |
Never:
Always:
godmode:review-response: how you evaluate and answer each finding the reviewer returns.godmode:cross-model-review: after this review passes, one narrow pass by a different model family before landing.godmode:completion-gate: re-run the verification after the last fix, before you say the work is done.godmode:delegated-execution: runs this review after every implementer task.godmode:model-routing: which model takes the reviewer seat.godmode:error-recovery: takes over when the same finding survives two fix rounds.godmode:merge-protocol: landing the reviewed branch.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub noobygains/godmode --plugin godmode33 skills in this plugin
/agent-briefingUse when writing a prompt for a subagent or teammate, deciding how much context another agent needs, writing or reading a handoff report between agents, or sending a message to another agent mid-task./codebase-conventionsUse when about to add or change code in an existing codebase: a new file, module, route, component, service, test, migration, error path or dependency, especially in a project the agent did not write or has not yet surveyed in this session./completion-gateUse when about to say that work is done, fixed, passing, working, deployed or ready, before committing, opening or merging a pull request, closing a task, moving to the next task, or reporting a subagent's result as finished./cross-model-reviewUse when a reviewed change is about to land on a shared branch, be released or be deployed, and when the user asks for a second opinion on a change from a different model or a different AI vendor./delegated-executionUse when a written implementation plan is ready to execute in the current session and its tasks are mostly independent, so each one can go to a fresh implementer subagent with its own review./doctorUse when GodMode skills do not seem to trigger, when the user asks whether GodMode is installed or working, or after installing or updating the plugin on any harnessOther plugins' skills for the same job