P
IntermediateAll AIs

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.

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

Preparing a PR before submissionTraining in code review cultureAuditing legacy code before refactoring

Expected Output

A structured review with critical issues, recommendations, security and performance comments, each with a correction example.

Learn more

Check the full skill on Prompt Guide to master this technique from A to Z.

View on Prompt Guide

📬 Get new prompts every week

Join our newsletter and never miss a prompt.