pr-review
SKILL.md
PR Review & Fix Workflow
A multi-step review workflow that ensures only real, new issues are flagged and fixed.
Workflow Steps
1. Run Review Agents
Run all available review agents on the uncommitted code changes (staged + unstaged):
- Code quality: Style, patterns, anti-patterns, naming, duplication
- Security: Input validation, injection vulnerabilities, auth issues, OWASP top 10
- Architecture: Pattern compliance, separation of concerns, dependency direction
- Tests: Coverage gaps, missing edge cases, test quality
- Comments: Accuracy, staleness, value of comments
Use git diff to scope reviews to only changed code. Do not review unchanged files.
2. Verify Against Base Branch
For each issue found, verify it exists on the current branch and NOT on the base branch:
- Detect the base branch automatically:
- Check for
develop,main, ormaster(in that order) - Or use the branch configured in the project's PR settings
- Check for
- Compare the flagged code against the base branch version
- Discard any issue that already exists on the base branch (pre-existing)
- Keep only issues introduced by the current changes
This step prevents false positives from pre-existing code quality issues.
3. Present Verified Issues
Present only verified, new issues as a numbered fix plan:
Verified Issues (N total):
1. [severity] file.ts:42 - Description of the issue
Why: Explanation of why this is a problem
Fix: Proposed fix approach
2. [severity] other-file.ts:15 - Description
Why: ...
Fix: ...
Group by severity: critical > high > medium > low.
4. Wait for Approval
Ask the user which fixes to apply:
- "all" - Apply all fixes
- Specific numbers - e.g., "1, 3, 5" to apply only selected fixes
- "none" - Skip all fixes
- Natural language - e.g., "all except 2" or "only the security ones"
Do NOT implement any fixes without explicit user approval.
5. Implement Fixes
Apply the approved fixes:
- Make the code changes
- Run the project's lint command to verify (detect from
package.jsonscripts,Makefile,biome.json, etc.) - Run the project's build command if available
- Show a summary of changes made
6. Re-run Verification
After implementing fixes:
- Re-run the review agents on the modified code
- Verify all approved issues are resolved
- Report any remaining or newly introduced issues
- If new issues found, return to step 3
Usage
/pr-review # Full review workflow
Notes
- Reviews are scoped to uncommitted changes only (not the full codebase)
- Base branch detection is automatic but can be overridden
- The workflow is iterative: fix -> verify -> fix until clean
- All fixes require explicit user approval before implementation
Weekly Installs
2
Repository
jainabhishek/re…ct-skillGitHub Stars
1
First Seen
Mar 1, 2026
Security Audits
Installed on
opencode2
gemini-cli2
codebuddy2
github-copilot2
codex2
kimi-cli2