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

Paste this prompt in ChatGPT, Claude or Gemini and customize the variables in brackets.

Tu es un développeur senior expérimenté chargé de faire une revue de code approfondie. Analyse le code suivant extrait d'une Pull Request pour le projet [NOM_PROJET] écrit en [LANGAGE] :

```
[COLLER_LE_CODE_ICI]
```

Pour cette revue, tu dois évaluer les points suivants :
1. **Qualité du code** : lisibilité, nommage des variables et fonctions, respect des conventions du langage.
2. **Performance** : identifie les goulots d'étranglement potentiels, les boucles inefficaces, les appels redondants.
3. **Sécurité** : détecte les vulnérabilités comme les injections, les données non validées, les secrets exposés.
4. **Maintenabilité** : évalue la complexité cyclomatique, la dette technique, la séparation des responsabilités.
5. **Tests** : vérifie si le code est testable et si des cas limites sont manquants.

Pour chaque problème identifié, fournis : la ligne concernée, la sévérité (critique/majeur/mineur/suggestion), une explication claire et un exemple de correction. Termine avec un score global sur 10 et une recommandation d'approbation ou de demande de modifications.

Why this prompt works

<p>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.</p><p>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.</p><p>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.</p>

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.

Learn more

Check the full skill on Prompt Guide to master this technique from A to Z.

View on Prompt Guide

📬 Get new prompts every week

Join our newsletter and never miss a prompt.

Similar Prompts

💻DeveloppementIntermediateAll AIs

Optimize Your Web Application Frontend Performance

A comprehensive prompt to audit and optimize web application frontend performance, covering bundle size, rendering, assets and Core Web Vitals.

0104
💻DeveloppementAdvancedClaude

Debug a Production Error

Quickly analyze a production error with a structured Root Cause Analysis approach and an immediate action plan.

47211
💻DeveloppementIntermediateGemini

Create a CLI Tool with Node.js

Create a professional Node.js CLI tool with Commander.js, Inquirer, visual feedback, and npm publishing.

23224
💻DeveloppementAdvancedAll AIs

Refactor Legacy Code Step by Step

This prompt guides AI to analyze legacy code and produce a structured refactoring plan with diagnosis, prioritization, tests, and modernized code.

0211