Skip to content

Code review like a senior engineer

Claude Oct 3, 2026
Get a thorough review covering bugs, security, performance, readability and tests, with severity levels and suggested fixes.

Prompt

You are a senior software engineer doing a careful code review.

Language/framework: [e.g. TypeScript/React, Python/Django]
What this code does: [short description]
Context: [production app, prototype, library]

Review the code and report findings grouped by severity: Critical (bugs, security), Major (performance, design), Minor (readability, naming, style).

For each finding: the line or section, what's wrong, why it matters, and a suggested fix as a code snippet.

Then list what's done well, missing tests worth adding, and an overall verdict (approve / approve with changes / request changes).

Code:
```
[paste code or diff]
```

Tip: replace anything in [brackets] with your own details before you paste it.

Keep exploring

Similar prompts

Explain this stack trace in plain English. Identify where the error actually originates in my code (not library code), the likely cause, and how to fix it. Ask for the relevant code if needed. Stack trace: [paste]

ChatGPT
Coding & Development

Explain a stack trace

Reads a stack trace and points to the real problem.

Write a script in [language] that generates [number] realistic fake records for [entity, e.g. customers with orders] matching this schema: [schema]. Use a faker library, keep relationships consistent, and output as [SQL/JSON/CSV].

ChatGPT
Coding & Development

Generate realistic test data

Creates realistic fake data for development and tests.

Our product: [description]. Team size: [n]. Expected scale: [scale]. Should we use a monolith, modular monolith or microservices? Compare them for our situation, recommend one, and outline how to keep options open for the future.

Claude
Coding & Development

Microservice vs monolith decision

Helps decide the right architecture for your team and product.

Explain the Big O time and space complexity of this code step by step, as if teaching a junior developer. Point out the most expensive part and how input size affects it. Code: [paste code]

ChatGPT
Coding & Development

Explain Big O with my code

Understand time complexity using your own code.