Complete code review for Pull Request
Get a comprehensive 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 guarantees an actionable and prioritized response.</p><p>The inclusion of variables like [PROJECT_NAME] and [LANGUAGE] allows adapting the context and obtaining recommendations specific to the technology stack used. The request for an overall score and final recommendation simulates the real process of a review on GitHub or GitLab.</p><p>This format is particularly useful for teams that want to standardize their code reviews or for junior developers who want to learn the criteria of a good professional review.</p>
Use Cases
Expected Output
A structured analysis with problems identified by category, their severity, correction 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 GuideGlossary Terms
Similar Prompts
Learn the basics of Git for beginners
Learn Git from scratch with illustrated explanations, concrete examples, a practical workflow and a cheatsheet of essential commands.
Define a Git strategy for a team
Define a comprehensive Git strategy adapted to your team: branching model, conventions, code review and release management.
Configure a CI/CD pipeline with GitHub Actions
Configure a professional CI/CD pipeline with GitHub Actions covering testing, security, Docker build and multi-environment deployment.
Write integration tests for an API
Create comprehensive API integration tests with database setup, authentication, CRUD and end-to-end scenarios.