P
💻DeveloppementIntermediateClaude

Complete Code Review for Pull Requests

Get an exhaustive code review covering quality, performance, security, and maintainability for any language.

Paste in your AI

Adapt this prompt

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:

  1. Code quality: readability, variable and function naming, adherence to language conventions.
  2. Performance: identify potential bottlenecks, inefficient loops, redundant calls.
  3. Security: detect vulnerabilities such as injections, unvalidated data, exposed secrets.
  4. Maintainability: assess cyclomatic complexity, technical debt, separation of concerns.
  5. 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

Pull Request review before mergeJunior developer trainingLegacy code audit

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 Optimizer

Comments

Be the first to comment on this prompt.

📬 Get new prompts every week

Join our newsletter and never miss a prompt.

Go further

Similar Prompts

💻DeveloppementIntermediateClaude

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.

1681
💻DeveloppementIntermediateClaude

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.

640
💻DeveloppementAdvancedAll AIs

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.

411
💻DeveloppementIntermediateAll AIs

Generate Storybook Stories for UI Components

Generate Storybook stories for a UI component, with visual variants, interactive controls, interaction tests, and MDX documentation.

474