Loading...
Loading...
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.
npx skill4agent add zbruhnke/claude-code-starter review-mrgh pr view <number># 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# 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 codeundefined