P
IntermediateAll AIs

Perform a code review as a senior developer

Simulate 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 imposed section structure ensures a comprehensive and non-superficial review. The benevolent tone is explicitly requested to reproduce a true constructive code review culture. The request for positive points avoids purely negative feedback, which improves the adoption of suggestions.

Use Cases

Prepare a PR before submissionTrain on code review cultureAudit legacy code before refactoring

Expected Output

Structured review in sections with critical issues, recommendations, security and performance comments, each accompanied by a correction example.

Learn more

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

View on Prompt Guide