code-review

SKILL.md

Review Pull Request

Mode: $ARGUMENTS

If mode is one of the following, adjust the review:

  • BUGS: Focus only on logical or other bugs
  • SECURITY: Focus only on security issues
  • PERFORMANCE: Focus only on performance issues

Pre-loaded context

  • PR details: !gh pr view
  • PR diff: !gh pr diff
  • Changed files: !gh pr diff --name-only

Workflow

  1. Analyze the diff and pre-loaded PR context
  2. Read changed files to understand full context
  3. Review based on mode (or all categories if no mode set)
  4. Provide structured feedback

Output format

Group by severity:

  • Critical - must fix before merge (bugs, security vulnerabilities)
  • Suggestions - improvements worth considering
  • Positives - good patterns to call out

Use file:line references for all findings. Include suggested fix for each critical issue.

See examples.md for output format and review-checklist.md for full checklist.

Rules

  • Review ALL changed files, not just the latest commit
  • Be specific: file:line + issue + suggested fix
  • Separate critical issues from suggestions

Error Handling

  • If gh pr view fails → run gh auth status to verify authentication; ask user for PR number if not on a PR branch
  • If a changed file is deleted in the PR → skip reading it; note it was removed
  • If diff is too large → prioritize changed files with highest risk (auth, payments, data mutation)
Weekly Installs
5
First Seen
10 days ago
Installed on
mcpjam5
claude-code5
replit5
junie5
windsurf5
zencoder5