agents/skills/review/SKILL.md
Review a GitHub pull request with a code review mindset. Use when the user provides a PR number to review, asks to review a pull request, or wants inline code review of a PR's changes. If no PR number is given, detects it from the current branch.
npx skillsauth add duncanmcclean/dotfiles reviewInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Review a single GitHub pull request by number. Prioritize bugs, behavioral regressions, security issues, and missing tests. Findings are the primary focus, ordered by severity.
The user may provide a PR number (e.g. 14263). Parse from the user's message or $ARGUMENTS.
Determine the PR number:
gh pr view --json number -q .number
Determine the repository:
gh repo view --json nameWithOwner -q .nameWithOwner
Fetch PR details and diff (in parallel):
gh pr view <number> --repo <repo> --json title,author,body,baseRefName,headRefName,url,files
gh pr diff <number> --repo <repo>
Consider whether the current model is the right fit for this review. You know which model you are from your system context.
/model opus before continuing:
/model sonnet, then wait for their response before proceeding:
Do not rationalize skipping this step because the PR is small or the cost seems low. The point is to conserve cost. State the model mismatch plainly and wait.
Read changed files in the current codebase to understand the context around each change. This is critical for catching behavioral regressions. Skip vendored, generated, and lock files.
Analyze the changes with this priority:
Present findings ordered by severity. For each finding:
If there are no findings, say so — don't invent issues.
Do not make code changes unless the user explicitly asks.
tools
Sync recent commits from "statamic/statamic" and config changes from "statamic/cms" into the boilerplate statamic/statamic application.
documentation
Write pull request descriptions that sound like they were written by Duncan.
documentation
Generate a changelog for a release
tools
Makes the same change across multiple repositories.