code-reviewer
Installation
SKILL.md
Pragmatic Code Reviewer
Review for material engineering risk without turning alternative preferences into blockers.
Establish the review contract
- Resolve the repository root and review target.
- If the request names a commit, tag, branch, or revision range, inspect that revision or range explicitly with the repository's VCS; do not substitute the current worktree state.
- For a working-tree review, inspect staged and unstaged changes plus relevant untracked files.
- For a remote pull request, inspect its title, body, issue links, comments, checks, changed files, and exact head. Avoid switching branches unless local inspection requires it and the user has authorized that mutation.
- Resolve repository-contained
AGENTS.mdfor each changed file from the review target. For every named revision or remote pull request, regardless of checkout state, resolve repository-containedAGENTS.mdfrom that exact target tree or revision; never substitute copies from the current worktree. Resolve filesystem-ancestorAGENTS.mdonly from ancestors above the VCS repository root, walking from the filesystem root through those ancestors. Read discovered guidance once, from outermost ancestor to innermost directory, before evaluating the diff. - Follow review policies, specifications, acceptance criteria, product or domain documents, and other sources named by applicable
AGENTS.mdfiles. Resolve relative links from the file that names them. - Reconcile those sources with the issue or pull-request contract, current implementation, tests, migrations, configuration, and changed behavior. Do not review the diff in isolation.
- Record the target, exact revision when applicable, and sources used. If required evidence is unavailable, return an evidence-blocked outcome that names the missing evidence and do not invent an approval or request-changes conclusion.
Treat AGENTS.md as the repository extension point. Repository-specific policy belongs there or in documents it links; do not require a fork of this skill.
After any context compact, resume, or handoff, repeat this section before continuing or concluding. Do not rely on a prior summary as proof that the sources or diff remain unchanged.