Install
openclaw skills install pr-reviewFind and fix code issues before publishing a PR. Single-pass review with auto-fix. Use when reviewing code changes before submission or auditing existing code for bugs/security. Don't use when running a coding agent to write code (use coding-agent) or checking GitHub CI status (use github).
openclaw skills install pr-reviewFind and fix issues before publishing your PR — not after.
Single-pass review using one capable model. No orchestration overhead, no agent swarm. Fast, cheap, thorough.
coding-agentgithubfork-manager/pr-review # Review changes on current branch vs main/master
/pr-review src/api/ src/auth/ # Audit specific directories
/pr-review **/*.ts # Audit files matching a pattern
/pr-review --audit # Audit entire codebase with smart prioritization
Two modes:
| Mode | Trigger | Scope | Fix threshold |
|---|---|---|---|
| Diff | No args, on branch with changes | Changed files only | >= 70 |
| Audit | Paths, patterns, or --audit | Specified files or full codebase | >= 80 |
No arguments provided:
git diff main...HEAD --name-only 2>/dev/null || git diff master...HEAD --name-only
Paths/patterns provided or --audit:
Read project guidelines (quick scan, don't overthink):
# Check for project conventions
cat CLAUDE.md .claude/settings.json CONTRIBUTING.md 2>/dev/null | head -100
cat .eslintrc* .prettierrc* biome.json tsconfig.json 2>/dev/null | head -50
cat package.json 2>/dev/null | head -20 # tech stack
Get the diff or file contents:
# Diff mode
git diff main...HEAD # or master
# Audit mode
cat <files> # read target files
Analyze all code in one pass. Cover these areas in priority order:
1. Correctness (highest priority)
2. Security
3. Reliability
4. Performance
5. Quality (lowest priority — skip if trivial)
For each issue found, assign:
| Score | Meaning | Action |
|---|---|---|
| 90-100 | Critical bug or vulnerability | Must fix |
| 70-89 | Real issue, will cause problems | Should fix |
| 50-69 | Code smell, needs human judgment | Report only |
| < 50 | Minor, likely false positive | Discard |
Discard thresholds:
Classify each issue:
blocker — security, data corruption, crash riskimportant — likely bug, perf regression, missing validationminor — edge case, maintainability, styleApply fixes directly for issues meeting the threshold:
For each fix: read file → apply edit → verify surrounding code preserved.
Never auto-fix:
After fixing, if any files were modified:
git diff --stat # show what changed
Format:
## Pre-Review Complete
**Risk:** Low / Medium / High
**Verdict:** ✅ Clean | ⚠️ Issues found | 🔴 Blockers
### 🔴 Blockers (must fix)
1. **file:line** — Description
- Impact: what goes wrong
- Fix: applied ✅ | manual required (reason)
### ⚠️ Important (should fix)
1. **file:line** — Description (score: XX)
- Fix: applied ✅ | suggestion
### 💡 Minor
1. **file:line** — Description
### Tests to Add
- description of test
### Files Modified: N
- path/to/file.ts
If zero issues found: ## Pre-Review Complete — ✅ Clean. No issues found.
DO:
DON'T: