/consult:code-reviewfrom consult
Fresh-context review of a diff, branch, or PR for bugs, regressions, security gaps, missing proof, and agent mistakes, reported as findings by severity. Invoke with /consult:code-review in a new session before committing.
Ships in consult. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Findings first. Block on correctness, safety, data loss, and missing proof.
Review in a fresh context: a subagent, a fresh session, or the host's review command. Give the reviewer only the diff, the stated intent and acceptance criteria, and the repo's declared constraints (runtime, framework, support policy, test command). Withhold the implementation rationale, because it biases the reviewer toward accepting the code. Review once; after fixes, report what remains instead of reviewing again.
Report findings first, by severity. Each names a file and line, the issue, its impact, a fix direction, and the evidence or missing proof. Ask only when uncertainty blocks a finding.
| Severity | When |
|---|---|
| Critical | Exploitable security, data loss, broken auth, destructive migration, outage risk |
| High | Incorrect behavior, broken contract, missing authorization, race, serious regression |
| Medium | Error handling, compatibility, or test gaps likely to cause defects |
| Low | Non-blocking clarity; skip unless asked |
Every review includes a security pass and a proof pass: each acceptance criterion has a check that fails when it is not met. Red or absent CI makes the review unproven; review the code anyway. A change to auth, secrets, or dependencies also gets the ecosystem's dependency audit and a secrets scan.
A maintainability finding names a concrete risk: hidden state, coupled effects, stale flags, duplicated rules with diverging meaning, dead compatibility code, unreachable paths. Style doesn't block unless it hides ambiguity or unsafe control flow.
Check for agent mistakes: speculative abstraction, unneeded shims, dead defensive code, test theater, fabricated APIs, scope creep, refactors that change behavior, hand-rolled versions of solved problems, and code too large or vague for a person to hold in their head.
If one person can't review the diff in one sitting, say which part you reviewed and report the size as a finding with a suggested split.
What SKILL.md sets; muted values are Claude Code's defaults
11 skills in this plugin
/apiHouse rules for HTTP APIs: spec first, compatibility for shipped consumers, status codes by where the failure starts, error format, idempotency, pagination, and webhooks. Use when adding or changing an endpoint, handler, status code, response or error body, or pagination./databaseProduction-data safety rules for migrations, schema changes, indexes, constraints, backfills, transactions, and locking. Use when writing or changing a migration, schema, index, query, or transaction./documentationWrites or updates docs for existing code: READMEs, runbooks, API docs, and comments, linking the source of truth instead of restating it. Invoke with /documentation when docs are the deliverable.Other plugins' skills for the same job
npx claudepluginhub dawson-design/consult --plugin consult