Complete Code Review for Pull Requests
Get an exhaustive code review covering quality, performance, security, and maintainability for any language.
Paste in your AI
Paste this prompt in ChatGPT, Claude or Gemini and customize the variables in brackets.
You are an experienced senior developer tasked with performing a thorough code review. Analyze the following code taken from a Pull Request for the [project name] project written in [language]:
[paste the code here]
For this review, you must evaluate the following points:
- Code quality: readability, variable and function naming, adherence to language conventions.
- Performance: identify potential bottlenecks, inefficient loops, redundant calls.
- Security: detect vulnerabilities such as injections, unvalidated data, exposed secrets.
- Maintainability: assess cyclomatic complexity, technical debt, separation of concerns.
- Tests: check whether the code is testable and whether edge cases are missing.
For each issue identified, provide: the line concerned, the severity (critical/major/minor/suggestion), a clear explanation, and an example fix. Finish with an overall score out of 10 and a recommendation to approve or request changes.
Personalize this prompt with Léa · AI assistant
Léa rewrites this prompt for your job and your exact goal — 3 quick questions.
Why this prompt works
This prompt is effective because it structures the code review according to the four fundamental pillars that every senior developer examines: quality, performance, security, and maintainability. By requesting a systematic evaluation with a severity level for each issue, it ensures an actionable and prioritized response. Including variables like [PROJECT_NAME] and [LANGUAGE] allows adapting the context to get recommendations specific to the tech stack being used. The request for an overall score and final recommendation simulates the real review process on GitHub or GitLab. This format is particularly useful for teams looking to standardize their code reviews or for junior developers wanting to learn the criteria for a good professional review.
Use Cases
Expected Output
A structured analysis with issues identified by category, their severity, fix suggestions, and an overall score.
Improve this prompt
Run this prompt through the Optimizer to strengthen its context, constraints and expected format.
Improve this prompt with the OptimizerComments
Be the first to comment on this prompt.
Glossary Terms
📬 Get new prompts every week
Join our newsletter and never miss a prompt.
Go further
Improve this prompt with the Optimizer
Analyze the prompt, strengthen the context and get a more precise version.
Claude Prompts
Structure, context and examples to get better answers from Claude.
AI prompts for web developers
Code review and debugging, keeping API keys and secrets out of the prompt.
Security, GDPR & Business Plans
ChatGPT Business, Claude Team, Gemini Workspace and Mistral Vibe compared from vendor sources: training, EU hosting and a GDPR checklist.
Similar Prompts
Task brief for Claude Code: frame a feature end to end
Brief template to delegate a complete feature to Claude Code: goal, starting point, constraints, definition of done, working rules and recap format.
Write a project's CLAUDE.md: the brief Claude Code reads at every session
Turns your project description into a dense CLAUDE.md: commands, structure, conventions, pitfalls, off-limits areas and situations where the agent must ask before acting.
Design a Secure Webhook API
Design a webhook API with event subscriptions, signed deliveries, retry limits, and a delivery log your support team can inspect.
Generate Storybook Stories for UI Components
Generate Storybook stories for a UI component, with visual variants, interactive controls, interaction tests, and MDX documentation.