P
💻DeveloppementIntermediateAll AIs

Create a Complete Code Review Checklist for Your Project

A prompt to generate an exhaustive code review checklist, adapted to your tech stack and business context, with concrete examples.

Paste in your AI

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

Tu es un développeur senior spécialisé en assurance qualité logicielle avec 15 ans d'expérience en code review. Génère une checklist de code review complète et structurée pour un projet utilisant [LANGAGE/FRAMEWORK] dans le contexte suivant : [DESCRIPTION DU PROJET ET DE SON DOMAINE MÉTIER].

La checklist doit couvrir les catégories suivantes, avec pour chaque point un niveau de sévérité (bloquant, majeur, mineur) :

  1. Correction fonctionnelle : le code fait-il ce qu'il est censé faire ? Les edge cases sont-ils gérés ?
  2. Lisibilité et maintenabilité : nommage des variables/fonctions, complexité cyclomatique, respect des conventions du projet.
  3. Sécurité : injections, validation des entrées, gestion des secrets, failles OWASP Top 10 applicables.
  4. Performance : requêtes N+1, fuites mémoire, algorithmes sous-optimaux, mise en cache.
  5. Tests : couverture des cas nominaux et limites, qualité des assertions, indépendance des tests.
  6. Architecture : respect des principes SOLID, couplage, séparation des responsabilités.
  7. Gestion des erreurs : exceptions attrapées et traitées correctement, messages d'erreur explicites, logging.
  8. Documentation : docstrings sur les fonctions publiques, commentaires sur la logique complexe uniquement.

Pour chaque point de la checklist, fournis :

  • La question à se poser lors de la review
  • Un exemple concret de code problématique en [LANGAGE/FRAMEWORK]
  • La version corrigée correspondante
  • Le niveau de sévérité

Termine par une section "Red flags" listant les 5 signaux d'alerte qui doivent déclencher une review approfondie.

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 leverages the quality assurance expert role to produce a code review checklist that goes beyond superficial checks. By specifying your <strong>language or framework</strong>, you get code examples directly applicable to your project rather than generic advice.</p><p>The 8-category structure covers all critical review dimensions: from functional correctness to documentation, including security and performance. The <strong>severity level</strong> system (blocking, major, minor) helps prioritize feedback and avoids drowning the code author in cosmetic remarks when structural issues exist.</p><p>To get the most from this prompt, describe your business context precisely in the <strong>[PROJECT DESCRIPTION]</strong> variable: a banking API will not have the same security requirements as an internal tool. You can also iterate by asking to deepen a specific category after receiving the initial checklist.</p>

Use Cases

Standardize the code review process in a development teamTrain junior developers on code review best practicesCreate a pull request template with essential checks to verifyAudit an existing codebase before a critical production release

Expected Output

A structured checklist in 8 sections with a review question, a problematic code example, its correction, and a severity level for each point. Ends with a list of 5 priority red flags.

Improve this prompt

Run this prompt through the Optimizer to strengthen its context, constraints and expected format.

Improve this prompt with the Optimizer

Comments

  • LéaAI

    Pour gagner du temps, commencez par personnaliser les red flags avec les anti-patrons récurrents de votre projet (ex : fuite de contexte, logs inutiles). Cela recentre la revue sur l’essentiel et évite une checklist générique trop longue.

📬 Get new prompts every week

Join our newsletter and never miss a prompt.

Go further

Similar Prompts

💻DeveloppementIntermediateChatGPT

Prompt ChatGPT to Generate SQL Queries

Generating SQL queries is an essential skill for any developer, data analyst, or database administrator. However, writing complex queries involving multiple joins, nested subqueries, or aggregate functions can be time-consuming and error-prone. ChatGPT transforms this practice radically by allowing you to describe your needs in natural language to obtain optimized and functional SQL queries in seconds. Whether you work with MySQL, PostgreSQL, SQL Server, or SQLite, the AI adapts to the specific syntax of your database management system. By providing your table schema and a clear description of what you want, you can generate perfectly structured SELECT, INSERT, UPDATE, or DELETE queries. ChatGPT also excels at line-by-line explanations of generated queries, making it a valuable learning tool for beginners and professionals alike who wish to explore advanced SQL features like CTEs, window functions, or recursive queries.

0121
💻DeveloppementAdvancedAll AIs

Build a virtualized list

Handle massive data lists

0151
💻DeveloppementIntermediateAll AIs

E2E Tests with Playwright

Automate testing of critical user journeys

0125
💻DeveloppementIntermediateAll AIs

Prometheus Configuration and Alerts

Set up Prometheus monitoring

0105