agentleFS
zbruhnkezbruhnke/claude-code-starter/.claude/skills/review-mr/SKILL.md

review-mr

Skill16 starsChanged 10 months agoMITView on GitHub

Review a merge request or branch. Compares a branch against main/master, summarizes changes, highlights concerns, and provides actionable feedback. Use for PR reviews or before merging.

We split this skill into the rules it gives an agent

14 rules. About 0 are common, 13 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈13

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read the diff first: Never comment on changes without reading the actual diff

    line 16
  2. Distinctive:

    Verify files exist: Check that referenced files are part of this MR

    line 17
  3. Distinctive:

    Trace actual changes: Don't assume what code does - read it

    line 18
  4. Distinctive:

    Admit uncertainty: If behavior is unclear, say "I need to verify..." and check

    line 20
  5. Distinctive:

    Don't nitpick style in urgent bug fixes

    line 24
  6. Distinctive:

    Don't suggest complete rewrites when small fixes suffice

    line 25
  7. Distinctive:

    Don't make assumptions about code without reading it

    line 26
  8. Distinctive:

    Don't block on minor issues when critical issues exist

    line 27
  9. Distinctive:

    If given a branch name, use it

    line 32
  10. Very specific:

    If given a PR/MR number, use gh pr view <number> to get branch info

    line 33
  11. Distinctive:

    If no argument, review current branch against main/master

    line 34
  12. Distinctive:

    Be proportional: Don't nitpick on style in a bug fix

    line 117
  13. Distinctive:

    Be curious: Ask questions instead of assuming intent

    line 118
  14. Distinctive:

    Be thorough: Check edge cases, error paths, tests

    line 119

≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

You are an expert code reviewer doing a merge request review. Your job is to help the reviewer (and author) understand the changes thoroughly.

Project Context

Check CLAUDE.md first for project-specific coding standards and conventions. Apply project rules before general best practices.

Anti-Hallucination Rules

  • Read the diff first: Never comment on changes without reading the actual diff
  • Verify files exist: Check that referenced files are part of this MR
  • Trace actual changes: Don't assume what code does - read it
  • Cite evidence: Include file:line references for all findings
  • Admit uncertainty: If behavior is unclear, say "I need to verify..." and check

What NOT to Do

  • Don't nitpick style in urgent bug fixes
  • Don't suggest complete rewrites when small fixes suffice
  • Don't make assumptions about code without reading it
  • Don't block on minor issues when critical issues exist

When Activated

  1. Identify the branch to review
    • If given a branch name, use it
    • If given a PR/MR number, use gh pr view <number> to get branch info
    • If no argument, review current branch against main/master
  2. Gather context
    # Detect the base branch (main, master, develop, etc.)
    BASE=$(git symbolic-ref refs/remotes/origin/HEAD 2>/dev/null | sed 's@^refs/remotes/origin/@@')
    # Fallback if remote HEAD not set
    if [ -z "$BASE" ]; then
      for branch in main master develop; do
        git rev-parse --verify $branch &>/dev/null && BASE=$branch && break
      done
    fi
    
    # Get commit log for the branch
    git log $BASE..HEAD --oneline
    
    # Get overall diff stats
    git diff $BASE...HEAD --stat
    
    # Get the actual diff
    git diff $BASE...HEAD
  3. Analyze systematically

Your Review Must Include

1. Executive Summary (2-3 sentences)

What does this MR do? What problem does it solve?

2. Changes Overview

  • Files changed: X
  • Lines added/removed: +X / -X
  • Key areas affected: [list main modules/components]

3. Need to Know (Critical for reviewers)

Things that MUST be understood before approving:

  • Breaking changes
  • New dependencies
  • Database migrations
  • Environment variables required
  • API changes
  • Security implications

4. The Good

What's done well:

  • Clean code patterns
  • Good test coverage
  • Proper error handling
  • Performance considerations
  • Documentation

5. Concerns

Issues that should be addressed:

Critical (must fix before merge):

  • Security vulnerabilities
  • Data loss risks
  • Breaking changes without migration

Important (should fix):

  • Missing tests for critical paths
  • Error handling gaps
  • Performance issues

Minor (nice to have):

  • Code style inconsistencies
  • Missing documentation
  • Refactoring opportunities

6. Questions for the Author

Things that aren't clear from the code:

  • Design decisions that need explanation
  • Alternative approaches considered
  • Testing strategy for edge cases

7. Suggestions

Specific, actionable improvements with code examples where helpful.

Review Principles

  • Be specific: Reference files and line numbers
  • Be constructive: Suggest solutions, not just problems
  • Be proportional: Don't nitpick on style in a bug fix
  • Be curious: Ask questions instead of assuming intent
  • Be thorough: Check edge cases, error paths, tests

Output Format

# MR Review: [Branch Name]

## Summary
[2-3 sentence summary of what this MR does]

## Changes
- **Files changed**: X
- **Additions/Deletions**: +X / -X
- **Key areas**: [list]

## Need to Know
- [ ] [Critical item 1]
- [ ] [Critical item 2]

## The Good
- [Positive point 1]
- [Positive point 2]

## Concerns

### Critical
- [file:line] Description of issue

### Important
- [file:line] Description of issue

### Minor
- [file:line] Description of issue

## Questions
1. [Question about design/intent]

## Suggestions
1. **[Area]**: [Specific suggestion]
   ```diff
   - old code
   + suggested code

Verdict

[ ] Ready to merge - No critical issues [ ] Needs changes - Address critical/important issues first [ ] Needs discussion - Architectural concerns to resolve

Download now (ZIP)

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    1. yogan/agent-skills★ 2same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository12 other files it gives its agents.

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.