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

Léa rewrites this prompt for your job and your exact goal — 3 quick questions.

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

💻DeveloppementAdvancedAll AIs

Implement CSP with nonces

Prevent XSS with strict CSP

0232
💻DeveloppementAdvancedAll AIs

Plan a monolith-to-microservices migration

Migrate monoliths incrementally

0205
💻DeveloppementIntermediateAll AIs

DALL-E Prompt to Generate JavaScript Code

DALL-E, the image generation model developed by OpenAI, is not designed to produce executable JavaScript code. However, it can play a valuable complementary role in a JavaScript developer's workflow. DALL-E excels at creating visuals related to development: user interface mockups, architecture diagrams, data flow schemas, or illustrations to document your code. By crafting precise prompts, you can obtain visual representations of complex JavaScript concepts like closures, the event loop, or design patterns. These visuals then serve as references for implementing your code, creating attractive technical documentation, or designing educational materials. The approach is to use DALL-E as a rapid visual prototyping tool: generate a UI mockup, then translate it into JavaScript components. This method accelerates the design phase and reduces back-and-forth between designers and developers. In this guide, we offer optimized prompts to get the most out of DALL-E in your JavaScript development process, from UI prototyping to visual documentation of your code.

0496
💻DeveloppementAdvancedAll AIs

Create a High-Performance Scalable Redis Cache System

A complete prompt to design and implement a Redis cache system with invalidation strategies, error handling and monitoring.

0169