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.
You are an experienced senior developer tasked with performing a thorough code review. Analyze the following code taken from a Pull Request for the [project name] project written in [language]:
[paste the code here]
For this review, you must evaluate the following points:
- Code quality: readability, variable and function naming, adherence to language conventions.
- Performance: identify potential bottlenecks, inefficient loops, redundant calls.
- Security: detect vulnerabilities such as injections, unvalidated data, exposed secrets.
- Maintainability: assess cyclomatic complexity, technical debt, separation of concerns.
- Tests: check whether the code is testable and whether edge cases are missing.
For each issue identified, provide: the line concerned, the severity (critical/major/minor/suggestion), a clear explanation, and an example fix. Finish with an overall score out of 10 and a recommendation to approve or request changes.
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 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. 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. 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.
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
Implement canary deployments
Roll out changes safely with canary
Design a Complete REST API
Design a robust and well-structured REST API with OpenAPI documentation, error handling, and security best practices.
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.
Implement drift detection
Detect infrastructure drift