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
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
Automate Your Git Commits with AI
This prompt analyzes a Git diff and automatically generates structured commit messages following project conventions, with atomic splitting if needed.
Define a Git Strategy for a Team
Define a complete Git strategy adapted to your team: branching model, conventions, code review, and release management.
Legacy Code Refactoring
Safely and incrementally refactor legacy code following SOLID principles and modern best practices.
Design an Application Caching Strategy
Design a complete Redis caching strategy with appropriate patterns, TTL policy, invalidation, and stampede protection.