| name | code-review-checklist |
| description | Code review guidelines covering code quality, security, and best practices. |
| when_to_use | When reviewing code for quality, security, and best practices. When the user says 'review my code' or 'check this PR'. |
Code Review Checklist
Quick Review Checklist
Correctness
Security
Performance
Code Quality
Testing
Documentation
AI & LLM Review Patterns (2025)
Logic & Hallucinations
Prompt Engineering Review
// ❌ Vague prompt in code
const response = await ai.generate(userInput);
// ✅ Structured & Safe prompt
const response = await ai.generate({
system: "You are a specialized parser...",
input: sanitize(userInput),
schema: ResponseSchema
});
Anti-Patterns to Flag
if (status === 3) { ... }
if (status === Status.ACTIVE) { ... }
if (a) { if (b) { if (c) { ... } } }
if (!a) return;
if (!b) return;
if (!c) return;
const data: any = ...
const data: UserData = ...
Review Comments Guide
// Blocking issues use 🔴
🔴 BLOCKING: SQL injection vulnerability here
// Important suggestions use 🟡
🟡 SUGGESTION: Consider using useMemo for performance
// Minor nits use 🟢
🟢 NIT: Prefer const over let for immutable variable
// Questions use ❓
❓ QUESTION: What happens if user is null here?