Pr review

From CamiloAndresGTRUniandes/lucy-ai · View interactive version

Pr review is an AI agent skill from the GitHub repository CamiloAndresGTRUniandes/lucy-ai. Comprehensive, project-agnostic pull request review workflow. Use when reviewing PRs, checking code quality, validating implementations against specs, or deciding whether to approve, request changes, or ask for discussion.

How to use this skill

Skill file

PR Review Skill

When to Use

Use this skill when:

Before reviewing project-specific code, read the repo's local standards first, usually:

Then load the relevant technology skills only when they apply, for example TypeScript, Angular, .NET, Tailwind, or security skills.

Review Principles

Review Workflow

1. Understand the PR

2. Verify Spec Compliance

3. Security Checklist

4. Architecture Checklist

5. Testing Checklist

6. Code Quality Checklist

7. Performance and Reliability Checklist

8. UX / API Contract Checklist

Severity Guide

| Severity | Use for | Review action |

|---|---|---|

| 🔴 Blocking | Security risk, data loss, broken spec, failing critical path, missing required tests, breaking API/migration risk | Request changes |

| ⚠️ Suggestion | Maintainability, performance, readability, missing non-critical edge case | Comment, usually non-blocking |

| 💬 Nit | Small style/readability issue with low impact | Avoid unless project expects detailed nits |

| ✅ Praise | Good design, clear tests, thoughtful handling | Mention briefly when useful |

Review Output Format

When posting a PR review, use this structure:

## PR Review: [PR Title]

### Summary
[1-3 sentences on what this PR changes and overall readiness]

### ✅ Looks Good
- [specific strength]

### 🔴 Blocking Issues
- [file:line — issue, why it matters, suggested fix]

### ⚠️ Suggestions
- [file:line — improvement, tradeoff, optionality]

### Security
- [Passed / Issues found / Not applicable] — [brief note]

### Testing
- [Adequate / Missing / Not run] — [brief note]

### Recommendation
**Approve** / **Request Changes** / **Needs Discussion**

If there are no blocking issues, write None found under Blocking Issues. If tests were not run, say exactly why.

Anti-Patterns to Flag

| Anti-pattern | Why it matters |

|---|---|

| Client-only authorization | Users can bypass UI controls |

| Unvalidated input | Injection, crashes, inconsistent state |

| Raw dynamic queries/commands | Injection and escaping risk |

| Secrets in code/config committed to repo | Credential compromise |

| Logging sensitive data | Privacy/security breach |

| Silent error swallowing | Production issues become undiagnosable |

| Business logic in transport/UI layer | Harder to test and maintain |

| Large unrelated refactors inside feature PRs | Review risk and regression surface increase |

| Missing tests for new behavior | Regressions become likely |

| Non-idempotent migrations or jobs | Retry/deploy failures can corrupt state |

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.