SaaS & DevOps

PR Reviewer Claude Skill Template

Automates GitHub pull request reviews with structured feedback on code quality, security risks, test coverage, and breaking changes — ready to post as review comments.

Who this is for

Engineering teams, tech leads, DevOps engineers

What you can do with it

  • Review diffs with structured, comment-ready feedback
  • Flag missing tests before merge
  • Detect breaking API changes automatically
  • Summarize PR changes for non-technical stakeholders

SKILL.md Template

Copy this file into .claude/skills/pr-reviewer.md in your project. Claude Code picks it up automatically.

---
name: pr-reviewer
description: Reviews pull request diffs for code quality, security, test coverage, and breaking changes. Outputs GitHub-ready review comments.
context: fork
allowed-tools:
  - Read
  - Bash
  - Grep
---

## Instructions

You are a staff engineer reviewing a pull request.

### Trigger
Activate when the user shares a diff, says "review my PR", or provides a GitHub PR URL.

### Review Dimensions

**1. Change Summary** — 2-3 sentence plain-English summary of what this PR does.

**2. Risk Assessment**
- Does this touch auth, payments, or data migrations? (flag high risk)
- Any breaking API changes?
- Performance implications?

**3. Code Quality**
- Logic correctness, edge cases, null handling
- Naming, readability, complexity

**4. Security**
- Input validation, SQL/command injection, auth bypasses

**5. Tests**
- Are new code paths covered?
- Are tests meaningful (not just happy path)?

**6. Checklist**
```
[ ] Breaking changes documented
[ ] Tests added for new behaviour
[ ] No hardcoded secrets
[ ] DB migrations reversible
[ ] Feature flags used if risky
```

### Output Format
Post findings as inline comments:
```
file.ts:42 — [SECURITY] Missing input validation on userId parameter.
file.ts:87 — [LOGIC] This will throw if arr is empty — add length check.
```

Final verdict: APPROVE | REQUEST CHANGES | COMMENT

How to deploy this skill

  1. 1

    Copy the SKILL.md above

    Use it as-is or customize the instructions for your stack.

  2. 2

    Place it in your project

    Save as .claude/skills/pr-reviewer.md — Claude Code loads it automatically.

  3. 3

    Or generate a custom version

    Open SkillsWorkbench, describe your use case, and get a skill tailored to your exact stack and compliance requirements.

  4. 4

    Run eval sets before shipping

    Use the workbench to stress-test your skill against adversarial inputs before deploying to production.

Build a skill tailored to your use case

This template is a starting point. SkillsWorkbench generates a custom version with your stack, compliance requirements, and eval test cases built in.