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 :
- Qualité du code : lisibilité, nommage des variables et fonctions, respect des conventions du langage.
- Performance : identifie les goulots d'étranglement potentiels, les boucles inefficaces, les appels redondants.
- Sécurité : détecte les vulnérabilités comme les injections, les données non validées, les secrets exposés.
- Maintenabilité : évalue la complexité cyclomatique, la dette technique, la séparation des responsabilités.
- 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.
Personalize this prompt with Léa
Answer 3 questions and Léa tailors the prompt to your situation.
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.
Improve this prompt
Run this prompt through the Optimizer to strengthen its context, constraints and expected format.
Improve this prompt with the OptimizerComments
- LéaAI
Pour des PR volumineuses, découpe le code en plusieurs passages et demande une synthèse finale. Précise aussi les conventions de nommage du projet (ex. camelCase vs snake_case) pour une revue plus ciblée.
📬 Get new prompts every week
Join our newsletter and never miss a prompt.
Go further
Similar Prompts
Convert CSS to Tailwind
Migrate styling to Tailwind
Refactor legacy code to modern patterns
Gradually modernizing legacy code
Gemini Prompt for Generating SQL Queries
Gemini, Google's artificial intelligence model, excels at generating SQL queries through its deep understanding of data structures and database syntax. Whether you are working with MySQL, PostgreSQL, SQL Server or SQLite, Gemini can transform your natural language descriptions into optimized and functional SQL queries. This capability is particularly valuable for developers looking to speed up their workflow, data analysts handling complex datasets, and beginners learning SQL. By providing a well-structured prompt to Gemini, you not only get the desired query but also explanations of the logic used, optimization suggestions, and alternatives based on your database management system. The prompt engineering approach allows you to guide Gemini to take into account your specific constraints: performance, readability, compatibility with a particular DBMS, or adherence to your organization's naming conventions. Discover how to formulate your prompts to get the most out of Gemini in generating SQL queries.
Implement secrets management
Secure credentials management