Back to Library

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.

More from Engineering & Product

Engineering & Product

Product Requirements Document (PRD) Generator

Write a comprehensive Product Requirements Document (PRD) for [FEATURE OR PRODUCT NAME] at [COMPANY NAME]. Context: - Problem being solved: [DESCRIPTION] - Tar...
Copilot Chat
Engineering & Product

Sprint Planning Facilitator

Facilitate sprint planning for [TEAM NAME] at [COMPANY NAME] for Sprint [NUMBER]. Sprint context: - Sprint length: [1 / 2 / 3 WEEKS] - Team velocity (average s...
Copilot Chat
Engineering & Product

Technical Architecture Decision Record

Write an Architecture Decision Record (ADR) for the following technical decision at [COMPANY NAME]. Decision context: - Decision title: [SHORT DESCRIPTIVE TITL...
Copilot Chat
Back to Library