Code Review Assistant
Engineering & ProductCopilot Chatcode reviewengineeringqualitypull requestbest practices
Prompt
Review the following code and provide structured, actionable feedback. Code to review: [PASTE CODE OR DESCRIBE WHAT'S BEING REVIEWED] Language/framework: [LANGUAGE AND VERSION] Context: [WHAT THIS CODE DOES AND WHERE IT FITS IN THE SYSTEM] Review focus: [CORRECTNESS / PERFORMANCE / SECURITY / READABILITY / ALL] Audience: [JUNIOR / MID / SENIOR ENGINEER] Conduct a structured code review: 1. **Summary** — Overall assessment in 2-3 sentences. Is this ready to merge, or does it need significant rework? 2. **Critical Issues** (must fix before merge) — Bugs, security vulnerabilities, data loss risks. Be specific: line number, issue, and how to fix. 3. **Important Improvements** (should fix) — Performance concerns, anti-patterns, maintainability issues. 4. **Suggestions** (nice to fix) — Style improvements, opportunities for simplification, alternative approaches to consider. 5. **What's Done Well** — Genuine positive feedback. What patterns or choices should be reinforced? 6. **Test Coverage Assessment** — Are the tests adequate? What cases are missing? 7. **Documentation** — Is the code self-documenting? Where are comments needed? Review principles: be direct but constructive. Explain the why, not just the what. Reference established patterns or documentation where relevant. One reviewer's opinion is not gospel — frame suggestions accordingly.