Claude-code-sdk review-pr
Review a pull request for bugs, security issues, and improvements. Use when the user asks to review a PR, review changes, or check code quality of a branch.
install
source · Clone the upstream repo
git clone https://github.com/SeifBenayed/cloclo
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/SeifBenayed/cloclo "$T" && mkdir -p ~/.claude/skills && cp -r "$T/.claude/skills/review-pr" ~/.claude/skills/seifbenayed-claude-code-sdk-review-pr && rm -rf "$T"
manifest:
.claude/skills/review-pr/SKILL.mdsource content
Pull Request Review
Review the current branch's changes compared to the base branch.
Steps
-
Determine the base branch:
- Try
, thenmain
, then askmaster - Run
to see all commits in this PRgit log --oneline <base>..HEAD
- Try
-
Run
to see the full diffgit diff <base>...HEAD -
For large diffs, review file-by-file using
git diff <base>...HEAD -- <file> -
For each changed file, check for:
- Bugs: logic errors, off-by-one, null/undefined access, race conditions
- Security: injection, XSS, auth bypass, hardcoded secrets, SSRF
- Performance: N+1 queries, unbounded loops, missing indexes, memory leaks
- Error handling: missing try/catch, swallowed errors, unclear error messages
- Style: inconsistency with the rest of the codebase
- Tests: missing tests for new functionality or edge cases
-
Provide a structured review:
Summary — What the PR does (1-2 sentences)
Issues — Bugs, security, or correctness problems that should be fixed before merge
Suggestions — Non-blocking improvements worth considering
Verdict — Approve / Request Changes / Needs Discussion
Be specific — reference file paths and line numbers. Suggest concrete fixes, not vague advice.
$ARGUMENTS