Perform a Code Review Like a Senior Developer
Simulates the code review of an experienced tech lead, covering all aspects of a PR: quality, security, performance and maintainability.
Paste in your AI
Paste this prompt in ChatGPT, Claude or Gemini and customize the variables in brackets.
Tu es un tech lead avec 15 ans d'expérience. Effectue une revue de code complète et bienveillante sur le code suivant.
Contexte :
- Langage / Framework : [LANGAGE_FRAMEWORK]
- Objectif de ce code : [OBJECTIF_CODE]
- Audience cible (junior, senior, équipe mixte) : [AUDIENCE]
Code à réviser :
[CODE_A_REVISER]
Structure ta revue ainsi :
Points positifs
Cite au moins 2 éléments bien faits.
Problèmes critiques (bloquants)
Ce qui doit impérativement changer avant merge.
Améliorations recommandées
Changements importants mais non bloquants.
Suggestions mineures
Nits, style, lisibilité.
Sécurité
Vulnérabilités potentielles détectées.
Performance
Goulots d'étranglement ou optimisations possibles.
Pour chaque problème, fournis : le problème, la raison, l'exemple de correction.
Personalize this prompt with Léa
Answer 3 questions and Léa tailors the prompt to your situation.
Why this prompt works
The enforced section structure ensures an exhaustive, non-superficial review. The constructive tone is explicitly requested to replicate a real positive code review culture. Requesting positive points avoids purely negative feedback, which improves suggestion adoption.
Use Cases
Expected Output
A structured review with critical issues, recommendations, security and performance comments, each with a correction example.
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
Ajoute un paramètre `niveau_de_détail` (ex: basique, intermédiaire, approfondi) pour adapter la longueur et la profondeur des retours. Utile pour équipes mixtes : les juniors bénéficient d'explications détaillées, les seniors préfèrent l'essentiel.
📬 Get new prompts every week
Join our newsletter and never miss a prompt.