/cdx:coderevfrom cdx
Pre-PR code review of the current branch, run by an independent reviewer subagent in a fresh context; the main agent then triages its findings on its own, fixes what is worth fixing in a separate commit, and reports what it fixed, skipped and needs the user for. Use proactively, without being asked, right before opening a pull request on the user's own branch: before running `gh pr create`, or when the user says "open a PR", "ready for review", "ship it", "push this up for review". Also invoked manually as `/cdx:coderev`.
Ships in cdx. 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.
An independent review of the branch, followed by automated triage and fixes, before it becomes a PR.
The value comes from a split of roles. A reviewer in a fresh context judges the code without knowing why it was written that way, so it isn't swayed by the reasoning that produced it. You, the main agent, wrote the change and know its intent, so you're the right one to decide what each finding is worth. Keep that split intact: don't do the review yourself, and don't hand the reviewer your rationale.
git merge-base HEAD origin/HEAD (fall back to main, then master). If HEAD is the base branch, review uncommitted changes against HEAD.git diff --stat <base>. If nothing changed, say so and stop.Leave out everything else you know: alternatives you considered, why you structured it this way, known shortcuts. If the reviewer has that, it will rationalise the same things you did.
Spawn one general-purpose subagent with this prompt:
Replace <skill dir> with the absolute path of this skill's directory (the folder that contains this SKILL.md).
Read <skill dir>/references/reviewer.md and follow it exactly.
Repository: <absolute repo path>
Base ref: <base>
Goal: <goal>
Constraints: <constraints, or "none">
Don't paste the diff or file contents. The reviewer pulls them itself, which keeps both contexts lean.
No subagent tool: if you can't spawn a subagent, run the same prompt as a separate headless process from the repo root, which is just as fresh a context: claude -p "<prompt>" --allowedTools "Read Grep Glob Bash". If that isn't available either, run the brief yourself, but put (not independent: reviewed by the author) on the report's first line, so the user knows the review lost its main safeguard.
Large changes: if the diff is several thousand lines across clearly separate areas (e.g. backend and frontend, or independent packages), spawn one reviewer per area in parallel, adding Area: <paths> to each prompt. Split by area, never by category: every reviewer should look at everything that matters in its slice.
Read every finding against the code before acting on it. The reviewer can be wrong, and so can you. Sort each one into a single bucket:
api/handler.go:88"), conflicts with a stated constraint, pre-existing code the branch didn't touch, or the cost outweighs the value.You're judging your own work, so hold yourself to a standard:
Apply each fix as a minimal, targeted edit. Then run the same checks the reviewer listed under CHECKS (plus any obvious project check it missed: CLAUDE.md commands, Makefile, package scripts).
Don't send the fixes back for a second review. One round, then report.
Address review findings, body with one line per fix (F<n>: <what changed>). Follow the repo's commit conventions, including any trailers recent commits use.Keep it short; the user reads this after the fact.
Code review: <n> findings — <x> fixed, <y> skipped, <z> need you
Fixed (<commit sha> | uncommitted):
- F1 <path:line> — <what changed>
Skipped:
- F3 — <reason>
Needs you:
- F5 <path:line> — <the decision you need, phrased as a question>
Checks: <command> → pass|fail, ...
Leave out empty sections. With zero findings, one line saying the review came back clean is the whole report.
Then carry on. If the review ran because you were about to open a PR, open it now, unless something is under "needs you". In that case, wait for the user's answer before publishing anything. If the review ran because the user typed /cdx:coderev, stop after the report.
Don't run the review again on the same HEAD in one session unless the user asks.
evals/clean-change-no-churn/case.yaml (opens in a new tab)evals/clean-change-no-churn/graders/01-reviewer-in-fresh-context.md (opens in a new tab)evals/clean-change-no-churn/graders/02-no-churn-commit.md (opens in a new tab)evals/clean-change-no-churn/graders/03-short-report.md (opens in a new tab)evals/clean-change-no-churn/graders/04-proceeds-to-pr.md (opens in a new tab)evals/clean-change-no-churn/place-files.sh (opens in a new tab)evals/clean-change-no-churn/prompt.md (opens in a new tab)evals/cross-file-option-not-wired/case.yaml (opens in a new tab)evals/cross-file-option-not-wired/graders/01-reviewer-in-fresh-context.md (opens in a new tab)evals/cross-file-option-not-wired/graders/02-wires-option-through.md (opens in a new tab)evals/cross-file-option-not-wired/graders/03-zero-means-unlimited.md (opens in a new tab)evals/cross-file-option-not-wired/graders/04-len-is-locked.md (opens in a new tab)evals/cross-file-option-not-wired/graders/05-separate-fix-commit.md (opens in a new tab)evals/cross-file-option-not-wired/graders/06-tests-pass.md (opens in a new tab)evals/cross-file-option-not-wired/place-files.sh (opens in a new tab)evals/cross-file-option-not-wired/prompt.md (opens in a new tab)evals/fixes-planted-bug-before-pr/case.yaml (opens in a new tab)evals/fixes-planted-bug-before-pr/graders/01-reviewer-in-fresh-context.md (opens in a new tab)evals/fixes-planted-bug-before-pr/graders/02-fixes-page-count.md (opens in a new tab)evals/fixes-planted-bug-before-pr/graders/03-fixes-empty-panic.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub deviantony/claude-plugins --plugin cdxOther plugins' skills for the same job
9 skills in this plugin
/dev-docsGenerate and maintain a `docs/` directory of markdown developer documentation for a project. Scans source code, writes structured docs with YAML frontmatter for git-based drift tracking, and produces clean markdown that renders on GitHub (including mermaid diagrams). Use this skill when the user asks to generate, create, update, or refresh developer documentation, scan their codebase for documentation purposes, or check whether existing docs have drifted from the code. Also trigger on phrases like "dev docs", "documentation builder", "doc generator", "refresh the docs", "check docs for drift", or "document this codebase". Do NOT trigger for implementation plans, architecture decisions, migration plans, general project planning, code reviews, API reference generation from annotations, or any task that isn't specifically about producing or maintaining a hand-written developer documentation set.
/html-reportTurn a discussion, proposal, investigation, or set of findings into a polished, self-contained HTML report in the Portainer house style (the look of docs/local/advanced-auth.html — DM Sans, the Portainer design-system palette, verdict bands, comparison tables, pros/cons cards, severity findings, CSS diagrams). Invoke this manually when you want a presented HTML document — a design doc, proposal, assessment, or write-up of findings — that is easier to review or share than a markdown dump or chat scrollback.