/dev10x-coding:reviewfrom dev10x-coding
Reviews local branch changes before PR creation: diffs against base branch, runs pre-commit checks, and produces structured findings with severity, file, line, and suggested fix. Supports attended (pick findings) or unattended (auto-advance to fixer) modes.
Ships in dev10x-coding. 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.
Persona: Staff engineer doing a pre-push self-review: ranks findings by what a reviewer would block on, cites the exact line, and verifies each finding before reporting it.
Review current branch changes against the base branch, applying project
review guidelines. Produces structured findings that dev10x-coding:review-fix
can consume to create fixup commits.
--unattended — skip finding approval, auto-advance to
dev10x-coding:review-fix for all actionable findings--loop — re-review each round of fixes with fresh reviewers until
a round finds no defects, capped at 4 rounds (Step 6b). Combines
with --unattended; the work-on shipping pipeline passes bothwork-on shipping pipelineNot for remote PR review — use dev10x-coding:gh-pr-review to post
findings to GitHub.
Not a CI replica — it routes files to reviewer specs the same way
the Claude CI review does (references/review-routing.md), but its
model, diff base and rule copies differ; to see what CI would post on
a PR, use dev10x-coding:ci-review (GH-1621).
Audit GH-161 caught a session where dev10x-coding:review and
simplify were auto-completed with the marker
Auto-skipped: solo-maintainer despite the diff touching 8+
files including domain restructuring and a platform Registry
split. Blanket auto-skip when nobody else reviews defeats the
purpose of the review gate.
Threshold rule: Call mcp__plugin_dev10x_cli__resolve_gate( gate="request_review", context={}). Only when it returns
effect: "skip" — nobody else is being asked to look — may
auto-skip apply at all, and then ONLY to small-surface changes.
Never read active_modes or any session file to make this call.
Compute the touched-files count from
git develop-diff --name-only | wc -l:
| Files touched | Behavior when request_review resolves to skip |
|---|---|
| ≤ 3 files | Auto-skip allowed (Auto-skipped: no reviewer) |
| 4–7 files | Run review in --unattended mode (no gate) |
| ≥ 8 files | Run review in --unattended mode; if findings |
exist, emit AskUserQuestion so the user retains override |
Orchestrators (e.g., dev10x-coding:work-on) MUST NOT mark the
review task completed with the auto-skip marker when the
diff exceeds the small-surface threshold. The same rule
applies to the simplify step that follows review.
This skill follows references/task-orchestration.md patterns
(Tier: Standard).
Auto-advance: Complete each step and immediately start the next — no checkpoints the resolver did not ask for. Never pause between steps to ask "should I continue?".
REQUIRED: Create tasks before ANY work. Execute these
TaskCreate calls at startup:
TaskCreate(subject="Verify branch state", activeForm="Checking branch")TaskCreate(subject="Run spec compliance gate", activeForm="Checking spec compliance")TaskCreate(subject="Run automated checks", activeForm="Running checks")TaskCreate(subject="Review changed files (one subagent per spec)", activeForm="Reviewing files")TaskCreate(subject="Present findings", activeForm="Presenting findings")Set sequential dependencies.
Nested-mode exemption: When invoked as a nested skill within
a parent orchestrator (e.g., via Skill() from dev10x-coding:work-on),
startup task creation is optional — at most 1 summary task. The
parent provides progress visibility. See
references/task-orchestration.md § Delegated Invocation Exception.
git develop-log alias to find commits
ahead of develop. If alias fails, fall back to origin/developBefore running automated checks or per-file review, dispatch the
spec-reviewer agent to confirm the diff matches its declared
specification. Domain-level review is wasted effort when scope is
wrong or acceptance criteria are unmet — surfacing that early
short-circuits the rest of the pipeline.
Skip Phase 0 when:
dev10x-coding:review with --skip-spec (reserved
flag for explicit opt-out)Dispatch spec-reviewer with the ticket, Job Story and branch
diff inlined — template and pre-read steps in
references/spec-gate.md.
Parse the trailing status line and branch:
DONE → continue to Step 2 (branch diff)
DONE_WITH_CONCERNS: <text> → continue, queue the concern for
the final findings summary as a WARNING with source: manual,
category: spec — the findings contract has no spec source
(GH-1749)
NEEDS_CONTEXT: <what> → re-dispatch with the requested
additional inline context once
BLOCKED: <verdict>: <reason> → short-circuit the review. No
Step 3 automated check runs and no Step 4 domain subagent is
dispatched until the gate resolves. The options are:
source: manual, category: spec)Attended mode — REQUIRED: Call AskUserQuestion (do NOT use
plain text) with the two options above.
--unattended (GH-1749) — no widget unless the resolver asks
for one. Call mcp__plugin_dev10x_cli__resolve_gate( gate="shipping_continuation", context={}) and branch on effect:
ask — fire the AskUserQuestion widget above.auto-advance — take Address spec gap first without a
widget and surface the returned record line: skip Steps 2–6,
report the verdict as an ERROR spec finding in the Step 7
summary (which still runs), and end with
BLOCKED: spec: <verdict>: <reason> as the last line so the
caller queues the decision instead of the pipeline stalling on
a prompt nobody is watching.skip — the same as auto-advance, without the record line.error key — fail safe: fire the widget.Never take Continue review anyway without a human answer: a failed spec check is the one verdict an unattended run must not talk itself past.
Anchor on origin/<base>, not the local ref (GH-1463).
git develop-diff resolves its merge-base against the local
develop, which lags origin/develop after any rebase-merge —
the same hazard dev10x-coding:git-groom Phase 1 documents (GH-486,
GH-997). Reviewing the stale local merge-base scopes the review
to every file any previously-merged PR touched, not just this
branch's own changes, and the failure is silent: the diff is
larger, not empty.
<base> via mcp__plugin_dev10x_cli__detect_base_branch
rather than hardcoding develop.git fetch origin <base>
git diff origin/<base>...HEAD
This is the primary path. git develop-diff (the bare local
alias) is a fallback ONLY when origin/<base> cannot be
resolved (offline, no remote configured).git rev-list --count <base>..origin/<base> is non-zero,
surface a base_notice-style warning ("local is N
commits behind origin/") so a reviewer who falls back to
the local ref knows it is stale rather than discovering it from
an oversized diff.Parse the diff to extract the list of changed files with their change types (added, modified, deleted, renamed).
Linting and formatting run through the project's single
pre-commit source of truth — never as inline ruff/black/
mypy/isort invocations (GH-592, consistent with the
inline-linter block validator, GH-596):
pre-commit run --files <changed files>
pre-commit selects and runs the configured
lint/format/type hooks itself.ERROR and
source automated. pre-commit prints the offending file/line
and any auto-applied diff — surface that in the finding so the
lint/format result stays visible to the reviewer.Missing .pre-commit-config.yaml: Do NOT fall back to inline
linters. Emit a single setup-guidance finding ("No pre-commit
config — run pre-commit install and add a .pre-commit-config.yaml
with the project's ruff/mypy hooks") and skip the automated-check
stage. Per-file manual review (Step 4) still runs.
The orchestrator routes and merges. It does not apply reviewer specs
itself: one agent holding the whole diff and every spec skims the
specs it reads last (GH-1741). The routing, dispatch and merge rules
are the same ones the CI review follows, written down once in
references/review-routing.md; the local template and the mapping
into findings are in
references/domain-dispatch.md.
REQUIRED: Execute these steps in order.
.claude/rules/INDEX.md § "File Patterns -> Agents" — the only
routing source; never keep an agent list in this skill. Group
files by agent. Use project specs (.claude/agents/<name>.md),
else plugin specs (dev10x:<name>). A repo without INDEX.md
routes by the plugin reviewers' Triggers: patterns.<file> blocks so the
subagent needs no Read prompts.Agent call in ONE message,
in the foreground. Pass no model: — each spec's model:
frontmatter sets its tier. Split a group over ~15 files in two.
If the calls come back as background launches, wait for every
report before merging (shared doc, Rule 3).file:line, apply the false-positive
gate below, Read the cited line to verify each survivor, and map
it into the findings format (CRITICAL → ERROR).references/review-checks-common.md. So are the
cross-cutting checks — dead code, call sites of a changed
signature — which need the whole diff.The summary (Step 7) names each agent dispatched and the files it covered.
False Positive Prevention Gate (from review-checks-common.md):
Before recording any finding, verify:
Each finding is a structured object:
Finding:
severity: ERROR | WARNING | INFO
confidence: <0-100>
source: automated | manual
file: <path>
line: <number>
description: <what's wrong>
suggested_fix: <code or guidance>
category: <bug | security | architecture | style | test | spec>
A Phase 0 verdict is a manual finding with category: spec, never a
third source value — dev10x-coding:review-fix reads source as
automated | manual (GH-1749). It names a scope or acceptance gap,
not a code location, so it has no file/line: report it in the
Step 7 summary and leave it out of the findings handoff file.
Confidence scoring (GH-872): Each finding includes a
confidence score (0-100) indicating how certain the reviewer
is that this is a genuine issue:
| Range | Meaning | Example |
|---|---|---|
| 90-100 | Certain defect | Missing null check on user input |
| 70-89 | Likely issue | Broad exception catch in prod path |
| 50-69 | Possible issue | Style preference, debatable pattern |
| 0-49 | Low confidence | Nitpick, subjective suggestion |
Threshold filtering: In unattended mode, only findings with
confidence >= 70 are passed to dev10x-coding:review-fix. Below-
threshold findings are reported as INFO in the summary but not
auto-fixed. In attended mode, all findings are presented
regardless of confidence.
The threshold is currently hardcoded at 70 — not yet configurable. Its intended home is a per-project key in the global durable prefs (ADR-0018 D1), alongside the other project-scoped settings:
# ~/.config/Dev10x/friction.yaml — INTENDED, no reader yet
projects:
- match: ["*/<repo>", "*/<repo>-*"]
review_confidence_threshold: 70
Setting that key today has no effect: nothing reads it. It is
documented as the destination so a future reader lands in the right
place, not as a working knob. (Before ADR-0018 this was documented
against the retired per-repo session.yaml, which had no reader
either — the location changed, the gap did not.)
Write findings to a temp file for handoff:
/tmp/Dev10x/bin/mktmp.sh review findings .json
Write the findings array as JSON to the temp file path.
With --loop, Step 6b drives this step. Go to Step 6b now: it
decides, per round, which findings reach the fixer and when, and uses
the mechanics below to hand them over. Never invoke the fixer from
here first. Without --loop, continue below; every path ends at
Step 6c.
Unattended mode (--unattended):
confidence >= threshold AND
severity ERROR or WARNING to dev10x-coding:review-fixSkill(skill="dev10x-coding:review-fix", args="<findings-file-path>")Attended mode (default):
When findings = 0:
REQUIRED: Call AskUserQuestion even when no findings exist.
This confirms the clean review to the user and prevents silent
skip-through (GH-447 F5).
Unattended mode exemption (GH-760 F6): When invoked with
--unattended flag (e.g., from dev10x-coding:work-on shipping
pipeline), skip this gate and auto-advance to Step 6c. The parent
orchestrator already approved the work plan — pausing for
zero-findings confirmation adds friction without safety value.
Attended mode options:
--loop
round, the same scope: Step 6b item 4)In a --loop round whose ledger holds a declined finding, the
question must say that Continue ends the loop clean but
unstamped, and name the declined findings (file:line) — Step 6c
refuses the stamp, so the user is not offered a confirmation the pass
cannot earn (GH-1863). Continue stays the recommended option even
then: a declined entry is never removed for the rest of the loop —
a Re-review keeps the round's declined list when it replaces the
entry, whether it comes back clean or turns into a fix round, and
Step 6c refuses a loop that holds one from any round. No option at
this gate can earn the stamp, so the recommendation does not depend
on the ledger state (.claude/rules/skill-gates.md, GH-1404).
When findings > 0:
REQUIRED: Call AskUserQuestion (do NOT use plain text).
Options:
dev10x-coding:review-fixIf "Pick findings": present each finding with fix/skip choice,
collect approved findings, then invoke dev10x-coding:review-fix. Picking
none is a Skip.
If "Fix all" or after picking: invoke dev10x-coding:review-fix with
the findings file path.
--loop, GH-1831)Without --loop, skip to Step 6c. With it, the review runs in rounds
until a round is clean. The round rules, the defect/polish split and
the round ledger are in
references/loop-mode.md — Read it before
round 1 and create the ledger it describes.
A round's fix set is what it would hand to dev10x-coding:review-fix:
round 1 hands every ERROR/WARNING finding at confidence >= 70 (defects
and polish); later rounds hand defects only. A round is clean when
its fix set is empty. A round that fixed anything — round-1 polish
included — is followed by a round that reviews those fixes.
REQUIRED: Execute each round in order.
round_start_sha (git rev-parse HEAD) in the ledger.Agent calls: round 1 runs
Steps 1b–4 on the whole branch; later rounds run Steps 3–4 on
git diff <previous round_start_sha>..HEAD plus its blast radius.
Never SendMessage an earlier round's reviewer, and never judge
your own fix.declined finding, the question also says
that Continue ends the loop unstamped and names those findings
(GH-1863). Re-review repeats this round on the same scope with
new Agent calls and replaces the round's ledger entry — same
round and round_start_sha, new findings_file, defects and
polish counts. It keeps the entry's scope and declined: the
HEAD has not moved, and a declined finding stays for the rest of
the loop. Then it returns to item 3. A Re-review that finds a
defect makes the round not clean: it continues through items 5–6
like any other round, and its fixes get a following round (GH-1863).
Then go to Step 6c.dev10x-coding:review-fix, filtered to the fix set; attended, through
the Step 6 findings gate, where Fix all and Pick findings
cover the fix set only — from round 2 on, polish is listed, not
offered.
A fix-set finding left unpicked, or reported as deferred by
dev10x-coding:review-fix, goes into the ledger's declined list: no later
delta has to touch it, so that loop never stamps.
An attended Skip ends the loop unstamped: go to Step 7.BLOCKED: review-loop: <N> findings, fixer made no commit.
Otherwise record fixed_head_sha and start the next round.Round-cap gate. Which option comes first and carries
(Recommended) is computed from the ledger's defect counts
(references/loop-mode.md § Escalation recommendation).
Attended mode — REQUIRED: Call AskUserQuestion (do NOT use
plain text, call spec:
ask-loop-escalation.md).
Options, ordered by the ledger:
--unattended — call mcp__plugin_dev10x_cli__resolve_gate( gate="shipping_continuation", context={}) and branch on effect:
ask, or an error key — fire the widget above.auto-advance / skip — take Stop and hand back without a
widget (surface the record line on auto-advance), run Step 7,
and end with BLOCKED: review-loop: <N> defects after <R> rounds
as the last line so the caller queues the decision.Never take Continue one more round or Ship with open defects listed without a human answer: both decide what an unbounded or defective loop is worth, which is the supervisor's call.
REQUIRED when the review is clean. A single pass is clean when it
found no ERROR/WARNING finding at confidence >= 70 and so handed
nothing to dev10x-coding:review-fix; a loop is clean when a round's fix set
was empty (references/loop-mode.md § Round rules, item 7). Call
mcp__plugin_dev10x_cli__review_stamp_write(cwd=<absolute checkout>)
and report the returned head_sha in Step 7. Otherwise go to Step 7.
Never stamp a pass that handed findings to the fixer: those fixups
are unreviewed, which is exactly what the stamp must not certify.
Never stamp a pass with findings the user chose to Skip or left
unpicked — declining a fix does not make the finding go away, so an
empty fix set from a declined gate is not a clean round. Never stamp
a loop whose ledger holds a declined finding from any round, even
when its last round is clean. Never stamp a loop that ended on Ship
with open defects listed, Stop and hand back or a
BLOCKED: review-loop line. A clean round reached after Continue
one more round is stamped like any other.
The stamp records the HEAD and tree the clean pass reviewed. In repos
whose friction.yaml entry sets review_stamp: required, the DX019
hook denies merge_pr, pr_ready and request_review until the PR
head matches that stamp (same commit, or same tree after a groom).
Report:
references/review-checks-common.md, not a
spec. The core reviewers (reviewer-generic, -security,
-silent-failures, -skill, -skill-behavior, -docs, -infra,
-rules-maintenance) live in Dev10x's own .claude/agents/ and
ship with no consumer repo, so there this list usually holds every
Python, shell, docs and skill file — the parallel fan-out does not
apply to them, and the summary must not imply it did (GH-1749)--loop: the per-round defect and polish counts, how the loop
ended (clean, no-commit round, or cap), the polish list, and the HEAD
SHA the clean round reviewed (references/loop-mode.md § Summary
additions)The JSON findings file is the contract between dev10x-coding:review
and dev10x-coding:review-fix:
[
{
"severity": "WARNING",
"confidence": 85,
"source": "manual",
"file": "src/auth/middleware.py",
"line": 42,
"description": "Missing type annotation on return value",
"suggested_fix": "def validate(self, token: str) -> bool:",
"category": "style"
}
]
Both skills must agree on this format. The fixer reads the file path passed as its argument.
work-on shipping pipeline
└─ dev10x-coding:review ← this skill (reviewer)
└─ dev10x-coding:review-fix ← fixer (consumes findings)
└─ git commit fixup! ← one fixup commit per finding
Complements:
dev10x-coding:gh-pr-review — posts findings to GitHub (remote PRs)dev10x-coding:gh-pr-respond — responds to PR review comments--post-to-pr Mode (GH-319)If dev10x-coding:review ever gains a --post-to-pr flag that hands off
findings to a GitHub PR review, that mode MUST default to Draft
(PENDING) rather than submitting immediately. The self-review
author is almost always the PR author — who should finalize the
review as a human action, not have it auto-submitted on their
behalf. Codify "draft-first" at design time to avoid retro-fitting
the same gap that GH-319 addressed in dev10x-coding:gh-pr-review.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub dev10x-guru/dev10x-claude --plugin dev10x-codingOther plugins' skills for the same job
40 skills in this plugin
/ci-reviewdev10x-coding:ci-reviewUse when a change to a Claude CI review prompt, args file, reviewer agent or CLI pin needs checking before it merges — so you read what the CI code review and PR hygiene check would post on a real PR, with nothing reaching GitHub unless you choose, after reading the report, to share it as one marked replica comment. TRIGGER when: "what would the CI review say", replaying the Claude CI review locally, verifying a review prompt or model change on a PR. DO NOT TRIGGER when: self-reviewing a branch with no PR (use dev10x-coding:review), or reviewing someone's PR and posting (use dev10x-coding:gh-pr-review).
/fanoutdev10x-coding:fanoutProcess multiple independent work items as a worktree-isolated swarm — each item runs the full dev10x-coding:work-on lifecycle inside its own background Agent with isolation="worktree" (under Herdr, its own Herdr workspace and agent). Honors dependencies, minimizes conflicts, auto-advances by default. TRIGGER when: 2+ independent work items need parallel processing (PRs, issues, tickets). DO NOT TRIGGER when: single task or sequential dependency chain (use dev10x-coding:work-on); already running as a swarm child (see recursive-fanout guard).