Code review
Review a pull request or local diff for bugs, security issues, and stylistic regressions. Triggers when the user says "review this PR", "code review", "check my changes", or pastes a PR URL/number. Mirrors the OpenClaw code-review skill.From its SKILL.md
npx -y skills add leadsblender/claudeclaw --skill code-reviewAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
2.1 KB, as published. Nobody here has run it
Code Review
A second pair of eyes that doesn't just rubber-stamp.
Get the diff
If the user provided…
- A PR URL or
#number→gh pr diff <num> --patch(also fetch the description withgh pr view <num>). - A branch name →
git diff main...<branch>. - Nothing →
git difffor unstaged +git diff --stagedfor staged.
If the diff is over 1500 lines, ask which files to focus on first instead of grinding through everything.
Review pass — in this order
- Correctness. Does the code do what the PR description claims? Trace the happy path mentally. Then think about: what input would break this? off-by-one, null/undefined, empty collection, concurrent access, network failure.
- Security. OWASP top 10 lens. SQL injection, XSS, command injection, path traversal, missing authz, secrets in code, unsafe deserialization, SSRF.
- Hidden coupling. Does this change behavior for callers that aren't in the diff? Grep for usages of any modified public function.
- Tests. Does the change have tests? Do existing tests still cover the new branches? Are the tests deterministic?
- Readability. Is naming honest? Are comments load-bearing or noise?
Skip any pass that doesn't apply (a docs-only PR doesn't need a security pass).
Output
Group findings by severity. Use this exact format:
🛑 Blocker
{file}:{line} — {one-sentence problem}. {one-sentence fix.}
⚠️ Should fix
{file}:{line} — {…}
💡 Consider
{file}:{line} — {…}
✅ Liked
{one or two specific things, by file:line}
If there are no blockers, say "No blockers" explicitly — silence reads as "didn't look".
Always end with Liked. A review with zero positive notes is a review the author will defend instead of read.
Posting
If the user says "post this to the PR", use gh pr review <num> --comment --body-file - with the formatted output. Confirm before posting.