/agentic-framework:code-reviewfrom Agentic Framework for Claude
Reviews PRs, branches, diffs, or files using a structured 3-pass method (architecture, logic, expressiveness) with a five-question evaluator, provenance check, and ICE-prefixed findings in a summary-first report.
Ships in Agentic Framework for Claude. 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.
None: SKILL.md is the whole skill.
An invocable review procedure: three ordered passes over a diff, a five-question
evaluator inside pass 2, a provenance check before anything protective is
removed, and a fixed report - summary first, one ICE-prefixed finding per
bullet, verdict last. The bare name code-review also belongs to Claude Code's
built-in /code-review skill and, where the code-review plugin is installed,
to code-review:code-review. This skill ships in the agentic-framework plugin,
so it loads as agentic-framework:code-review and is invoked as
/agentic-framework:code-review.
peer-review-critic, whose Stop gate keeps its own
methodology and verdict handling.code-review-gatekeeper applies this skill as its procedure for a gate
review: a branch against its base before gh pr create/glab mr create, or
the commits about to be pushed to main/master. The recorder hook records
that run's VERDICT: and Target: into the marker the push/PR gate
(pretooluse-code-review-gate) checks. Only a code-review-gatekeeper
sub-agent run unlocks the push/PR gate, and it never satisfies the Stop
gate; applied inline or by any other agent, this skill's output unlocks
nothing.Resolve the target in this order. An explicit target is final: an explicit PR or named branch that yields nothing stops under the empty-diff rule below; explicit paths fall back as Commands describes. Steps 2 and 3 fall through to the first that yields a non-empty diff:
git diff <base>...<branch>, reads via git show <branch>:<path>), or uncommitted work (step 3's commands, even when the branch has commits ahead).git symbolic-ref --short refs/remotes/origin/HEAD when it is set, else the first of origin/main, origin/master, main, master that exists (the order the framework's Stop gate uses). A missing base stops (below) unless git status --porcelain is non-empty, in which case step 3 applies with fallback: no base found; committed branch work not reviewed; an empty diff falls through. When the tree is dirty and the branch diff is reviewed, record uncommitted changes present, not reviewed in the Target line's fallback field and read files with git show HEAD:<path> so citations come from the reviewed commit.Commands:
git diff <base>...<head> -- <paths> and git diff HEAD -- <paths> (staged and unstaged together; first when the caller says the paths are uncommitted work), the latter plus git ls-files --others --exclude-standard -- <paths> reviewed whole; when all are empty, review each named file whole, measured with wc -l, counted as changed files, and recorded as whole-file review in the Target line's fallback field. When the committed diff was used and git status --porcelain -- <paths> is non-empty, record uncommitted changes present, not reviewed (untracked files included) in the fallback field and read files with git show <head>:<path>. Paths given with a PR number restrict the review to git diff <remote>/<baseRefName>...<head> -- <paths>, with <remote> and <head> as the PR bullet resolves them.<head> is git rev-parse HEAD for the current branch or git rev-parse <branch> for a named one. git diff --stat <base>...<head> first for blast radius, then git diff <base>...<head> (three-dot, merge-base semantics; git merge-base <base> <head> prints the base commit the graph step takes). A named branch that is not checked out (<head> differs from git rev-parse HEAD) is read through git show <head>:<path>, has its history searched against <head>, and skips the graph step with graph: skipped (branch not checked out); a named branch that is the current branch gets step 2's dirty-tree record.git diff HEAD (staged and unstaged in one diff; git diff --cached when HEAD has no commits yet), plus every file git ls-files --others --exclude-standard lists, each reviewed whole.gh pr view <n> (title, body, linked issues), then gh pr diff <n>, which is the diff under review in both PR paths below; when GitHub refuses the diff for size, use git diff <remote>/<baseRefName>...<head> after the fetches below. <remote> is the base repository's remote: origin unless origin is a fork. The base is the remote copy of the PR's base branch, never the local one, which is stale after gh pr checkout: git fetch <remote> <baseRefName> (baseRefName from gh pr view <n> --json baseRefName -q .baseRefName), then <remote>/<baseRefName>. When gh pr view <n> --json headRefOid -q .headRefOid equals git rev-parse HEAD, <head> is HEAD and the checkout serves file reads (through git show HEAD:<path> when the tree is dirty), history, and the graph step. Otherwise git fetch <remote> pull/<n>/head (both fetches write only to .git, never to the working tree), <head> is git rev-parse FETCH_HEAD taken right after that fetch (another fetch in the same repository moves FETCH_HEAD), read files with git show <head>:<path>, run history searches against <head>, and skip the graph step with graph: skipped (PR head not checked out) on the coverage line. Any other gh or git fetch failure on a PR target is a stop case: quote the error, ask, and emit no findings and no verdict.Boundaries:
git diff HEAD -- <paths>): say so in one line, ask for the target or base, and emit no findings and no verdict. These stop cases, the PR fetch failure above, and the gh failure below are the only outputs that do not use the report template.generated (pass 1 only) field; they count neither toward the size measurement, nor toward partial coverage, nor toward <N> on the coverage line, and the Chesterton triggers skip their deleted lines. A vendored file whose change is a hand edit rather than a re-vendoring is ordinary code. When every changed file is generated, passes 2 and 3 run on the manifest-level change instead (which dependency or artifact moved, from what to what, and why) and the coverage line's <n> of <N> changed files reads the manifest-level change.git diff --numstat <base>...<head> [-- <paths>] (branch, or paths against the base), git diff HEAD --numstat [-- <paths>] plus wc -l of the untracked files (whenever the git diff HEAD form was used), or git diff --numstat <remote>/<baseRefName>...<head> after the fetches (PR).
detect_changes_tool results when the graph is available, a file's risk being that of its highest-ranked function, with files the graph does not rank following in the heuristic order; otherwise files that touch authentication, permissions, crypto, SQL or shell construction, concurrency primitives, error handling, or persisted state and schema first, then the rest by changed lines descending.CHANGES_REQUIRED with the reason partial coverage: <k> files not reviewed in depth; split the diff or raise the budget.gh missing or not authenticated (gh auth status fails): fall back to the local branch when the caller names the PR's head branch and git branch --show-current prints it, and record the fallback and the assumed base on the Summary's Target: line. Otherwise stop, quote the exact gh error, ask, and emit no findings and no verdict. Never reconstruct a PR description from memory.The order of the passes is mandatory: 1, then 2, then 3. Do not reorder them.
Inspect: architecture and existing boundaries, design patterns in use, file structure and placement, and scope - does the change belong here, is it the right size, does it stay inside the layers it should.
Code graph lead-in (skip for non-code diffs, a single known file, or languages the graph does not parse):
mcp__plugin_agentic-framework_code-review-graph__detect_changes_tool at detail_level: "minimal", base = the commit git merge-base <base> <head> printed. The graph reads the checkout, so this step runs only when <head> is the checked-out commit; Scope names the skip note otherwise._graph.head_matches_build is false, a tool answers status: not_ready, or no graph exists yet, call mcp__plugin_agentic-framework_code-review-graph__build_or_update_graph_tool once, then continue.graph: unavailable (<reason>) on the coverage line and proceed from the diff.Typical prefixes (defined under ICE prefixes below): [Blocker] (wrong layer, wrong abstraction, out-of-scope change), [Question] (unclear intent), [Suggestion] (placement, size).
An architectural [Blocker] leads the report, but it does not stop the
review: passes 2 and 3 still run in full. Tag any later finding on code that
blocker would discard with (moot if the [Blocker] above is accepted) so the
author can skip it.
Inspect: core logic, edge cases, state management, race conditions, error handling, performance bottlenecks, and test coverage (does a test fail without this change). For a non-code diff, read the semantics of the values and the documented behavior against the implementation it describes.
Answer the five questions first, one line each, then list findings:
Typical prefixes: [Blocker] (data loss, security hole, broken invariant), [Suggestion] (missing edge-case test), [Question] (intent behind a branch).
Inspect: naming conventions, readability, typing, variable scope, and the local framework idioms - what this codebase already does, not personal taste. For a non-code diff, read consistency with surrounding prose and format.
Typical prefixes: [Nitpick] (naming, wording), [Suggestion] (idiom, tighter typing), [Question] (why this name or shape).
Do not remove or loosen a protection until you know why it was added.
Triggers: any deleted function, branch, or check; any loosened validation, limit, retry, timeout, lock, permission check, feature flag, or error handler; any refactor of such code.
Evidence: the introducing commit - git log -S'<identifier>' -- <path> (a short
identifier from the removed lines, never raw code with quotes) or git blame on
the pre-image, which is git blame $(git merge-base <base> <head>) -- <path> for
committed targets because removed lines do not exist at the head, and
git blame HEAD -- <path> for uncommitted work (paths reviewed through
git diff HEAD included) - plus its linked issue or PR, and from them the reason
the code existed. A located commit with no recoverable reason is not evidence. Summarize
what you found inside the finding.
Consequence:
[Blocker]). Reason gone or replaced: cite the commit on the Chesterton line and raise no finding.[Question].[Blocker] until provenance is shown.The reviewer runs the investigation when the author did not; do not just ask. Shallow clone, squashed history, or no linked issue: state what was tried (the commands you ran and what they returned), classify per the rule above, and name the evidence that would resolve it (for example the pre-squash commit or the original ticket).
Report the outcome on the Summary's Chesterton check line: n/a = no trigger
fired; investigated (<sha>[, <sha>]) = every triggered change has a located
commit and a recoverable reason, the commits listed; unverified (<path:line>[, ...])
= at least one triggered change has no recoverable reason (its finding names
it), optionally followed by ; investigated (<sha>[, ...]) for the ones that do.
Every finding carries exactly one of four prefixes, mapped to Impact, Clarity, Effort:
[Blocker] - high impact regardless of effort; must be resolved before merge.[Suggestion] - a clear improvement whose effort is proportionate; non-blocking.[Nitpick] - low impact; explicitly non-blocking.[Question] - a clarity gap about intent or domain; not a defect claim.Decide in this order: Impact first (high impact is a [Blocker]), then Clarity
(you cannot tell what the author intended: [Question]), then Impact against
Effort: [Nitpick] when the fix changes no behavior, types, structure, or tests
(wording, naming, formatting); [Suggestion] when the improvement is worth its
effort; an improvement that is not worth its effort is not reported.
Finding shape: one top-level bullet whose first token is the prefix, then
path:line (the new-file line; for removed code the old-file line followed by
(removed); path alone for file-level findings), then a one-sentence claim. The
why and the concrete fix (or the question) are indented continuation lines,
never sibling bullets, so the finding pastes verbatim as a single inline PR comment.
Continuation labels: Why: and Fix: for Blocker, Suggestion, and Nitpick;
Why: and Ask: for Question, so a Question reads [Question] path:line - <what is unclear>
followed by its indented Why: and Ask: lines. A moot tag goes at the end of
the claim sentence.
Order: Blocker, Suggestion, Question, Nitpick. List at most 5 nitpicks; for the
remainder add one non-bullet line +<k> more nitpicks not listed under the
Nitpick group. Summary counts are totals found, unlisted nitpicks included.
Never invent or pad findings to fill a group; an empty group reads none.
Emit exactly this structure. The verdict is CHANGES_REQUIRED when at least one
[Blocker] is listed or coverage is partial, otherwise APPROVED: the last line
is VERDICT: APPROVED or VERDICT: CHANGES_REQUIRED, it appears once, and it is
never quoted elsewhere in the output. The Summary's Verdict: line is prose;
only the last line carries the machine token, and VERDICT: APPROVED always
means every file except the named generated, vendored, or lock files received
all three passes. With zero findings, the Summary
(with Top findings: none), the five answers, the coverage and provenance
lines, and What's good are still emitted and counts read 0. The Blocker entry
below is a worked example of the finding shape; replace it with the real
findings, or with none.
## Summary
Verdict: <Approved | Changes required> - <one-line reason; "partial coverage: <k> files not reviewed in depth; split the diff or raise the budget" when it applies>
What it does: <one or two sentences on what the change does>
Target: <PR #<n> <head-sha> vs <remote>/<baseRefName> (<merge-base>..<head-sha>) | <branch> vs <base> (<merge-base>..<head-sha>) | uncommitted @ <sha> | paths <list> @ <sha> | paths <list> in PR #<n> <head-sha>>; fallback: <none | reason>
Counts: Blocker <n> | Suggestion <n> | Question <n> | Nitpick <n>
Top findings (at most 3, blockers first): <none | the indented lines below>
- [<prefix>] <path:line - claim>
Problem: <one line>
Approach: <one line>
Correctness: <one line>
Safety & Performance: <one line>
Maintainability: <one line>
Coverage: passes 1-3 over <n> of <N> changed files; pass 1 only: <files | none>; generated (pass 1 only): <files | none>; graph: <used | skipped (<reason>) | unavailable (<reason>)>
Chesterton check: <n/a | investigated (<sha>[, <sha>]) | unverified (<path:line>[, ...])[; investigated (<sha>[, ...])]>
## Findings
### [Blocker]
- [Blocker] src/api/auth.ts:42 (removed) - The 256-byte length check on the token was removed.
Why: git log -S'MAX_TOKEN_LEN' shows it was added in a1b2c3d for issue #118 (oversized-token DoS); nothing replaces it.
Fix: restore the check, or point to the new guard that covers the same input.
### [Suggestion]
none
### [Question]
none
### [Nitpick]
none
## What's good
- <one or two concrete strengths | none>
VERDICT: CHANGES_REQUIRED
gh pr review, no gh pr comment, no API writes; the output is paste-ready Markdown for the caller..code-review-graph/ store.path:line for every claim; label inference as inference.path:line only; never reproduce its value in the report.[Blocker] among nitpicks.security-specialist - depth on a security [Blocker] when the review alone cannot settle exploitability (the orchestrator delegates it; a sub-agent applying this skill names the need in its hand-back).comprehensive-analyst on sonnet - the executor when an orchestrator session applies this skill to a diff over the large-diff threshold (Model tiering in the plugin's POLICY.md, printed at session start); the delegation states the depth budget, and with none stated the executor reviews the whole diff in depth, so a delegated review is not partial by arithmetic. The orchestrator reviews the returned report.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
11 skills in this plugin
/agent-debuggerDiagnose and fix agent routing, loading, and configuration issues by inspecting agents/*.md frontmatter, the claude.json registry, hook registration, and validator output — use when an agent is "not found", tasks route to the wrong specialist, models mismatch, hooks do not fire, or validate-consistency.sh fails./agent-routing-advisorRecommends which framework agent (or multi-agent workflow) should handle a task; use when the user asks which agent to use, how to delegate a piece of work, or how to sequence agents for a multi-domain task./code-scaffolderGenerate idiomatic project scaffolding, config files, and boilerplate per language — use when starting a new project, adding a service, or bootstrapping a library/package (e.g. "scaffold a Rust CLI", "set up a new FastAPI project")./code-scoring-loopIteratively improve a pending (uncommitted) code change by having the matching specialist agent score the diff 0-100 against an explicit rubric, rewriting the weakest parts, and repeating until the score plateaus. Use after the quality bar is green (build/lint/format/tests clean) but before the review gates — e.g. polishing an implementation or refactor, or when asked to "clean up" uncommitted code without concrete criteria. Code-side sibling of self-scoring-loop./dependency-checkerVerify the framework's toolchain (git, bash, jq, gh, yq, PowerShell 7+, Node.js/npx, uv/uvx, shellcheck, Claude Code CLI) is installed and working — use when setting up the framework, after system updates, or when hooks, validators, MCP servers, or the executor agents fail with "command not found"./git-workflow-assistantGit branching, commit, PR, conflict-resolution, and release guidance integrated with the framework's review gates — use when planning branches, writing commit messages, preparing or opening PRs, resolving merge conflicts, cutting releases, when the Stop gate blocks a session over unreviewed committed work, or when the push/PR gate denies a PR, MR or push to main/master.npx claudepluginhub tomas-rampas/agentic-framework --plugin agentic-frameworkOther plugins' skills for the same job