| name | pr-review |
| description | Generic PR review skill for any software project. Use when reviewing pull requests, checking code quality, or validating implementations against spec. Applies to all projects — no project-specific conventions included. For project-specific conventions, add them to the project's workspace TOOLS.md.
|
| metadata | {"author":"lucy-ai","version":"1.0"} |
PR Review Skill
Generic, project-agnostic PR review. Project-specific conventions (naming, stack details, design system) should live in the project's own workspace — not here.
Review Workflow
1. Understand the PR
Before reviewing code:
- Read the PR title and description
- Check which files changed
- Identify the feature/fix scope
- Link back to spec, issue, or task tracker
2. Verify Spec Compliance
- Does the implementation match the spec?
- Are all acceptance criteria addressed?
- Are edge cases handled?
- Is the feature boundary correct (out of scope items not included)?
3. Security Checklist
4. Architecture Checklist
5. Testing Checklist
6. Code Quality Checklist
7. Performance Checklist
Anti-Patterns to Flag
| Anti-pattern | What to do instead |
|---|
| Magic numbers | Extract to named constant |
| God class/object | Split into smaller, focused units |
| No input validation | Validate all user input, fail fast |
| No error handling | Handle errors explicitly, don't swallow |
| Hardcoded credentials | Use environment variables or secrets manager |
console.log left in | Remove or use proper logging |
| Inconsistent naming | Pick convention and stick to it |
| Premature optimization | Write clear code first, optimize when measured |
Review Output Format
When posting a PR review, use this structure:
## PR Review: [PR Title]
### Summary
[1-3 sentences on what this PR does and its quality]
### ✅ Looks Good
- [item that works well]
### ⚠️ Suggestions
- [optional improvement, non-blocking]
### 🔴 Blocking Issues
- [must-fix before merge, with specific file:line references]
### Security
- [ ] Passed / [ ] Issues found
### Testing
- [ ] Tests adequate / [ ] Tests missing
### Recommendation
**Approve** / **Request Changes** / **Needs Discussion**
Principles
- Be specific — Reference exact files and line numbers
- Explain the why — Don't just say "bad", say why it's a problem
- Distinguish blocking vs. suggestions — Not everything is a blocker
- Acknowledge good work — Reinforce what's done right
- Be kind — Code is written by humans; critique the code, not the person