From sauce
Use when asked to review a branch, PR, or implementation where the quality of the approach itself is in question — not just code style, but whether the technique or design is sound. Also use when the user expresses suspicion about an approach and wants independent verification, or says: look up, research, what do others do, good practice, validate approach.
How this skill is triggered — by the user, by Claude, or both
Slash command
/sauce:review-with-researchThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Reviews a branch by dispatching a code-review subagent in a worktree alongside a research subagent, then synthesizes their findings into an evidence-based verdict.
Reviews a branch by dispatching a code-review subagent in a worktree alongside a research subagent, then synthesizes their findings into an evidence-based verdict.
Core principle: Review in isolation (worktree), research the domain, compare against what established tools do. Never rubber-stamp, never just echo the user's hunch.
Skip for: pure style reviews or quick thumbs-up on small changes.
digraph review {
rankdir=TB;
node [shape=box];
worktree [label="0. Create worktree\nfor the branch"];
review [label="1. Dispatch review subagent\n(read diff + baseline in worktree)"];
research [label="2. Dispatch research subagent\n(ecosystem, libraries, how major tools do it)"];
parallel [label="Run 1 and 2\nin parallel" shape=diamond];
synthesize [label="3. Synthesize + verdict:\ncompare impl vs best practices"];
cleanup [label="4. Remove worktree"];
worktree -> parallel;
parallel -> review;
parallel -> research;
review -> synthesize;
research -> synthesize;
synthesize -> cleanup;
}
git worktree add --detach .worktrees/review-<branch> <branch>
Why
--detach? If<branch>is already checked out (e.g., it's the current branch),git worktree addwill refuse. Using--detachcreates the worktree in detached HEAD state, avoiding the "already checked out" error. The worktree still has the branch's content.
Check that .worktrees/ is in .gitignore. If not, add it before creating the worktree. This keeps the main session on its current branch. Clean up after the review.
Before dispatching subagents, skim the diff briefly to identify the technique or domain to research:
git diff main..<branch> --stat
git diff main..<branch> | head -200
This is a quick read, not the full review — just enough to know the research topic (e.g., "file locking with advisory locks", "JWT refresh token rotation", "concurrent HashMap sharding"). If the diff is empty, short-circuit: report "nothing to review" and stop.
Dispatch an Explore subagent (read-only) into the worktree.
| Parameter | Value |
|---|---|
subagent_type | Explore |
run_in_background | true |
The subagent should:
cd <worktree-absolute-path> as its first action (the Agent tool starts subagents in the parent's working directory, not the worktree)git diff main..<branch>)git show main:<path> to read baseline files on main for contextSubagent prompt template:
You are reviewing branch
<branch>. First,cd <worktree-absolute-path>. Then readgit diff main..<branch>and examine the changed files. Usegit show main:<path>to read baseline files on main. Read files directly from the worktree for the branch version. Produce a detailed review: what the branch does, any correctness/design concerns with line numbers, and questions about the approach. Do NOT write code.
| Parameter | Value |
|---|---|
subagent_type | general-purpose |
model | "sonnet" |
run_in_background | true |
Dispatch a general-purpose subagent to:
Subagent prompt template:
Research best practices for [topic] in [language/ecosystem]. Find: (1) common libraries, (2) tradeoffs between approaches, (3) what well-known tools use, (4) known failure modes of [technique]. Do NOT write code.
Compare the review subagent's findings against the research and produce a verdict with this structure:
Reconciliation guidance:
Handoff: If the recommendation is "revise" and the user wants to proceed with fixes, hand off to review-and-fix.
git worktree remove .worktrees/review-<branch>
| Rule | Why |
|---|---|
| Don't just confirm user suspicions | They want independent verification, not validation |
| Don't just contradict either | If the approach is fine, say so with evidence |
| Cite specifics, not vibes | "PID reuse is a known failure mode" beats "PIDs seem unreliable" |
| Always suggest the alternative | Rejection without a path forward isn't useful |
| Review in a worktree, not main | Don't switch branches on the main session |
| Mistake | Fix |
|---|---|
| Reviewing on the main thread's branch | Always create a worktree — keep main session clean |
| Reviewing from memory, skipping research | Always dispatch research subagent — training data may be stale |
| Only reading the diff, not main | Need baseline context to judge what changed |
| Agreeing with user before researching | Research first, form opinion second |
npx claudepluginhub raiderrobert/sauce --plugin sauceMulti-agent code review with parallel specialized reviewers, architecture validation, and challenge validation. Automatically activates on PRs, branches, diffs, and review requests.
Performs multi-agent code review of current git branch against main: detects bugs via specialist agents, verifies findings, ranks severity, generates persistent report before push/merge.
Requests a code review for all commits on the current branch and presents the results, with optional base branch, review type (security/design), and panel configuration.