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

Adapt this prompt

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

You are a senior developer specializing in software quality assurance with 15 years of code review experience. Generate a complete, structured code review checklist for a project using [language/framework] in the following context: [project description and its business domain].

The checklist must cover the following categories, with a severity level for each item (blocking, major, minor):

  1. Functional correctness: does the code do what it's supposed to do? Are edge cases handled?
  2. Readability and maintainability: variable/function naming, cyclomatic complexity, adherence to project conventions.
  3. Security: injections, input validation, secret management, applicable OWASP Top 10 vulnerabilities.
  4. Performance: N+1 queries, memory leaks, suboptimal algorithms, caching.
  5. Tests: coverage of nominal and boundary cases, quality of assertions, test independence.
  6. Architecture: adherence to SOLID principles, coupling, separation of concerns.
  7. Error handling: exceptions caught and handled correctly, explicit error messages, logging.
  8. Documentation: docstrings on public functions, comments on complex logic only.

For each checklist item, provide:

  • The question to ask during the review
  • A concrete example of problematic code in [language/framework]
  • The corresponding corrected version
  • The severity level

End with a "Red flags" section listing the 5 warning signs that should trigger an in-depth review.

Personalize this prompt with Léa · AI assistant

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

Why this prompt works

This prompt leverages the quality assurance expert role to produce a code review checklist that goes beyond superficial checks. By specifying your language or framework, you get code examples directly applicable to your project rather than generic advice. The 8-category structure covers all critical review dimensions: from functional correctness to documentation, including security and performance. The severity level system (blocking, major, minor) helps prioritize feedback and avoids drowning the code author in cosmetic remarks when structural issues exist. To get the most from this prompt, describe your business context precisely in the [PROJECT DESCRIPTION] 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.

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 canary deployments

Roll out changes safely with canary

495
💻DeveloppementIntermediateAll AIs

Design a Complete REST API

Design a robust and well-structured REST API with OpenAPI documentation, error handling, and security best practices.

852
💻DeveloppementIntermediateAll AIs

Sora Prompt for Generating a Database Schema

Sora, the visual generation model developed by OpenAI, offers interesting possibilities for creating visual representations of database schemas. Instead of working with traditional technical tools like dbdiagram.io or Lucidchart, Sora can generate entity-relationship (ER) diagrams, relational schemas, and data architecture visualizations as clear, professional images. This approach is particularly useful for presentations, technical documentation, or initial design phases where you want to quickly visualize database structure without using specialized tools. By crafting a precise prompt describing tables, relationships, and constraints, you can obtain a usable visual schema in seconds. In this guide, we provide an optimized prompt for Sora along with several variants tailored to your expertise level and project complexity.

534
💻DeveloppementIntermediateAll AIs

Midjourney Prompt to Generate SQL Queries

Midjourney, renowned for its powerful AI image generation, can be creatively repurposed to produce visuals related to SQL queries. Although Midjourney does not directly generate executable SQL code, it excels at creating visual representations of database structures, relational diagrams, table schemas, and educational illustrations that facilitate understanding and designing SQL queries. By crafting precise prompts, you can obtain elegant entity-relationship diagrams, data flow visualizations, infographics explaining SQL joins, or database architectural schemas. These visuals are particularly useful for technical documentation, team presentations, training materials, and specialized blog posts. The approach involves accurately describing the type of data structure you want to illustrate, using SQL technical vocabulary to guide Midjourney toward relevant and professional results. Whether you are a developer, data architect, or trainer, these prompts will allow you to transform abstract database concepts into clear and impactful visuals.

528