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
- Distinctive: line 16
Read the diff first: Never comment on changes without reading the actual diff
- Distinctive: line 17
Verify files exist: Check that referenced files are part of this MR
- Distinctive: line 18
Trace actual changes: Don't assume what code does - read it
- Distinctive: line 20
Admit uncertainty: If behavior is unclear, say "I need to verify..." and check
- Distinctive: line 24
Don't nitpick style in urgent bug fixes
- Distinctive: line 25
Don't suggest complete rewrites when small fixes suffice
- Distinctive: line 26
Don't make assumptions about code without reading it
- Distinctive: line 27
Don't block on minor issues when critical issues exist
- Distinctive: line 32
If given a branch name, use it
- Very specific: line 33
If given a PR/MR number, use gh pr view <number> to get branch info
- Distinctive: line 34
If no argument, review current branch against main/master
- Distinctive: line 117
Be proportional: Don't nitpick on style in a bug fix
- Distinctive: line 118
Be curious: Ask questions instead of assuming intent
- Distinctive: line 119
Be thorough: Check edge cases, error paths, tests
≈ “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.
Files
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
- 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
- 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 - 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 codeVerdict
[ ] Ready to merge - No critical issues [ ] Needs changes - Address critical/important issues first [ ] Needs discussion - Architectural concerns to resolve
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 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.
- docs/agents.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- changelog-writerSkill
- code-reviewSkill
- explain-codeSkill
- generate-testsSkill
- install-precommitSkill
- refactor-codeSkill
- refresh-claudeSkill
- release-checklistSkill
- risk-registerSkill
- wiggumSkill
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
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.

