La version courte
- Une bonne revue identifie un risque concret et un moyen de le vérifier. Ces prompts distinguent le fonctionnement, la sécurité et la maintenabilité au lieu de demander un verdict général.
- Ne transmettez jamais d’identifiants, de données client privées ou de dépôts propriétaires complets à un assistant non autorisé. Exécutez les commandes et les tests proposés dans votre environnement. Un correctif plausible ne prouve pas que la modification fonctionne.
Une bonne revue identifie un risque concret et un moyen de le vérifier. Ces prompts distinguent le fonctionnement, la sécurité et la maintenabilité au lieu de demander un verdict général.
Ne transmettez jamais d’identifiants, de données client privées ou de dépôts propriétaires complets à un assistant non autorisé. Exécutez les commandes et les tests proposés dans votre environnement. Un correctif plausible ne prouve pas que la modification fonctionne.
Comment utiliser cette collection
Choisissez la tâche la plus proche de votre travail. Copiez le prompt, remplacez la scène ou le contexte générique par vos informations et conservez les contraintes utiles pour évaluer le résultat. Modifiez une variable à la fois afin d’identifier ce qui s’améliore.
Cette méthode reprend les recommandations du guide de prompt engineering de GitHub Copilot : fournir un contexte précis et vérifier la réponse, sans supposer qu’un premier résultat soigné est correct.
Prompts de diagnostic
Cette série porte sur le diagnostic. Fournissez votre code et votre commande de test avant de valider la réponse.
1. Une modification de l’authentification
Help with an authentication change in my existing codebase. Ask for the relevant file, expected behavior, actual behavior and test command if I have not supplied them. Then state competing hypotheses, request a minimal reproduction and identify evidence that separates them. Preserve public interfaces unless evidence requires a change. Show assumptions, a focused diff and the exact command I should run. Do not invent files, test results or security guarantees.Vérification : Exécutez le scénario de reproduction proposé avant d’appliquer un correctif.
2. Une migration de schéma
Help with a schema migration in my existing codebase. Ask for the relevant file, expected behavior, actual behavior and test command if I have not supplied them. Then state competing hypotheses, request a minimal reproduction and identify evidence that separates them. Preserve public interfaces unless evidence requires a change. Show assumptions, a focused diff and the exact command I should run. Do not invent files, test results or security guarantees.Vérification : Exécutez le scénario de reproduction proposé avant d’appliquer un correctif.
3. Une mise à jour de pagination d’API
Help with an API pagination update in my existing codebase. Ask for the relevant file, expected behavior, actual behavior and test command if I have not supplied them. Then state competing hypotheses, request a minimal reproduction and identify evidence that separates them. Preserve public interfaces unless evidence requires a change. Show assumptions, a focused diff and the exact command I should run. Do not invent files, test results or security guarantees.Vérification : Exécutez le scénario de reproduction proposé avant d’appliquer un correctif.
4. Un worker de file d’attente en arrière-plan
Help with a background queue worker in my existing codebase. Ask for the relevant file, expected behavior, actual behavior and test command if I have not supplied them. Then state competing hypotheses, request a minimal reproduction and identify evidence that separates them. Preserve public interfaces unless evidence requires a change. Show assumptions, a focused diff and the exact command I should run. Do not invent files, test results or security guarantees.Vérification : Exécutez le scénario de reproduction proposé avant d’appliquer un correctif.
5. Une route de téléversement de fichiers
Help with a file upload route in my existing codebase. Ask for the relevant file, expected behavior, actual behavior and test command if I have not supplied them. Then state competing hypotheses, request a minimal reproduction and identify evidence that separates them. Preserve public interfaces unless evidence requires a change. Show assumptions, a focused diff and the exact command I should run. Do not invent files, test results or security guarantees.Vérification : Exécutez le scénario de reproduction proposé avant d’appliquer un correctif.
6. Une modification de validation de formulaire
Help with a form validation change in my existing codebase. Ask for the relevant file, expected behavior, actual behavior and test command if I have not supplied them. Then state competing hypotheses, request a minimal reproduction and identify evidence that separates them. Preserve public interfaces unless evidence requires a change. Show assumptions, a focused diff and the exact command I should run. Do not invent files, test results or security guarantees.Vérification : Exécutez le scénario de reproduction proposé avant d’appliquer un correctif.
7. Une couche de cache
Help with a caching layer in my existing codebase. Ask for the relevant file, expected behavior, actual behavior and test command if I have not supplied them. Then state competing hypotheses, request a minimal reproduction and identify evidence that separates them. Preserve public interfaces unless evidence requires a change. Show assumptions, a focused diff and the exact command I should run. Do not invent files, test results or security guarantees.Vérification : Exécutez le scénario de reproduction proposé avant d’appliquer un correctif.
8. Un webhook de paiement
Help with a payment webhook in my existing codebase. Ask for the relevant file, expected behavior, actual behavior and test command if I have not supplied them. Then state competing hypotheses, request a minimal reproduction and identify evidence that separates them. Preserve public interfaces unless evidence requires a change. Show assumptions, a focused diff and the exact command I should run. Do not invent files, test results or security guarantees.Vérification : Exécutez le scénario de reproduction proposé avant d’appliquer un correctif.
9. Une mise à niveau de dépendance
Help with a dependency upgrade in my existing codebase. Ask for the relevant file, expected behavior, actual behavior and test command if I have not supplied them. Then state competing hypotheses, request a minimal reproduction and identify evidence that separates them. Preserve public interfaces unless evidence requires a change. Show assumptions, a focused diff and the exact command I should run. Do not invent files, test results or security guarantees.Vérification : Exécutez le scénario de reproduction proposé avant d’appliquer un correctif.
10. Une refactorisation de l’état côté client
Help with a client-side state refactor in my existing codebase. Ask for the relevant file, expected behavior, actual behavior and test command if I have not supplied them. Then state competing hypotheses, request a minimal reproduction and identify evidence that separates them. Preserve public interfaces unless evidence requires a change. Show assumptions, a focused diff and the exact command I should run. Do not invent files, test results or security guarantees.Vérification : Exécutez le scénario de reproduction proposé avant d’appliquer un correctif.

Prompts de mise en œuvre
Cette série porte sur la mise en œuvre. Fournissez votre code et votre commande de test avant de valider la réponse.
11. Une modification de l’authentification
Help with an authentication change in my existing codebase. Ask for the relevant file, expected behavior, actual behavior and test command if I have not supplied them. Then make the smallest change that satisfies the stated behavior and show a focused diff. Preserve public interfaces unless evidence requires a change. Show assumptions, a focused diff and the exact command I should run. Do not invent files, test results or security guarantees.Vérification : Vérifiez que le diff ne contient ni modification hors sujet ni accès aux données non prévu.
12. Une migration de schéma
Help with a schema migration in my existing codebase. Ask for the relevant file, expected behavior, actual behavior and test command if I have not supplied them. Then make the smallest change that satisfies the stated behavior and show a focused diff. Preserve public interfaces unless evidence requires a change. Show assumptions, a focused diff and the exact command I should run. Do not invent files, test results or security guarantees.Vérification : Vérifiez que le diff ne contient ni modification hors sujet ni accès aux données non prévu.
13. Une mise à jour de pagination d’API
Help with an API pagination update in my existing codebase. Ask for the relevant file, expected behavior, actual behavior and test command if I have not supplied them. Then make the smallest change that satisfies the stated behavior and show a focused diff. Preserve public interfaces unless evidence requires a change. Show assumptions, a focused diff and the exact command I should run. Do not invent files, test results or security guarantees.Vérification : Vérifiez que le diff ne contient ni modification hors sujet ni accès aux données non prévu.
14. Un worker de file d’attente en arrière-plan
Help with a background queue worker in my existing codebase. Ask for the relevant file, expected behavior, actual behavior and test command if I have not supplied them. Then make the smallest change that satisfies the stated behavior and show a focused diff. Preserve public interfaces unless evidence requires a change. Show assumptions, a focused diff and the exact command I should run. Do not invent files, test results or security guarantees.Vérification : Vérifiez que le diff ne contient ni modification hors sujet ni accès aux données non prévu.
15. Une route de téléversement de fichiers
Help with a file upload route in my existing codebase. Ask for the relevant file, expected behavior, actual behavior and test command if I have not supplied them. Then make the smallest change that satisfies the stated behavior and show a focused diff. Preserve public interfaces unless evidence requires a change. Show assumptions, a focused diff and the exact command I should run. Do not invent files, test results or security guarantees.Vérification : Vérifiez que le diff ne contient ni modification hors sujet ni accès aux données non prévu.
16. Une modification de validation de formulaire
Help with a form validation change in my existing codebase. Ask for the relevant file, expected behavior, actual behavior and test command if I have not supplied them. Then make the smallest change that satisfies the stated behavior and show a focused diff. Preserve public interfaces unless evidence requires a change. Show assumptions, a focused diff and the exact command I should run. Do not invent files, test results or security guarantees.Vérification : Vérifiez que le diff ne contient ni modification hors sujet ni accès aux données non prévu.
17. Une couche de cache
Help with a caching layer in my existing codebase. Ask for the relevant file, expected behavior, actual behavior and test command if I have not supplied them. Then make the smallest change that satisfies the stated behavior and show a focused diff. Preserve public interfaces unless evidence requires a change. Show assumptions, a focused diff and the exact command I should run. Do not invent files, test results or security guarantees.Vérification : Vérifiez que le diff ne contient ni modification hors sujet ni accès aux données non prévu.
18. Un webhook de paiement
Help with a payment webhook in my existing codebase. Ask for the relevant file, expected behavior, actual behavior and test command if I have not supplied them. Then make the smallest change that satisfies the stated behavior and show a focused diff. Preserve public interfaces unless evidence requires a change. Show assumptions, a focused diff and the exact command I should run. Do not invent files, test results or security guarantees.Vérification : Vérifiez que le diff ne contient ni modification hors sujet ni accès aux données non prévu.
19. Une mise à niveau de dépendance
Help with a dependency upgrade in my existing codebase. Ask for the relevant file, expected behavior, actual behavior and test command if I have not supplied them. Then make the smallest change that satisfies the stated behavior and show a focused diff. Preserve public interfaces unless evidence requires a change. Show assumptions, a focused diff and the exact command I should run. Do not invent files, test results or security guarantees.Vérification : Vérifiez que le diff ne contient ni modification hors sujet ni accès aux données non prévu.
20. Une refactorisation de l’état côté client
Help with a client-side state refactor in my existing codebase. Ask for the relevant file, expected behavior, actual behavior and test command if I have not supplied them. Then make the smallest change that satisfies the stated behavior and show a focused diff. Preserve public interfaces unless evidence requires a change. Show assumptions, a focused diff and the exact command I should run. Do not invent files, test results or security guarantees.Vérification : Vérifiez que le diff ne contient ni modification hors sujet ni accès aux données non prévu.

Prompts de test des limites
Cette série porte sur les tests de limites. Fournissez votre code et votre commande de test avant de valider la réponse.
21. Une modification de l’authentification
Help with an authentication change in my existing codebase. Ask for the relevant file, expected behavior, actual behavior and test command if I have not supplied them. Then add unit or integration cases for empty, invalid and concurrent inputs as appropriate. Preserve public interfaces unless evidence requires a change. Show assumptions, a focused diff and the exact command I should run. Do not invent files, test results or security guarantees.Vérification : Exécutez les tests et, si possible, vérifiez qu’ils échouent avant le correctif.
22. Une migration de schéma
Help with a schema migration in my existing codebase. Ask for the relevant file, expected behavior, actual behavior and test command if I have not supplied them. Then add unit or integration cases for empty, invalid and concurrent inputs as appropriate. Preserve public interfaces unless evidence requires a change. Show assumptions, a focused diff and the exact command I should run. Do not invent files, test results or security guarantees.Vérification : Exécutez les tests et, si possible, vérifiez qu’ils échouent avant le correctif.
23. Une mise à jour de pagination d’API
Help with an API pagination update in my existing codebase. Ask for the relevant file, expected behavior, actual behavior and test command if I have not supplied them. Then add unit or integration cases for empty, invalid and concurrent inputs as appropriate. Preserve public interfaces unless evidence requires a change. Show assumptions, a focused diff and the exact command I should run. Do not invent files, test results or security guarantees.Vérification : Exécutez les tests et, si possible, vérifiez qu’ils échouent avant le correctif.
24. Un worker de file d’attente en arrière-plan
Help with a background queue worker in my existing codebase. Ask for the relevant file, expected behavior, actual behavior and test command if I have not supplied them. Then add unit or integration cases for empty, invalid and concurrent inputs as appropriate. Preserve public interfaces unless evidence requires a change. Show assumptions, a focused diff and the exact command I should run. Do not invent files, test results or security guarantees.Vérification : Exécutez les tests et, si possible, vérifiez qu’ils échouent avant le correctif.
25. Une route de téléversement de fichiers
Help with a file upload route in my existing codebase. Ask for the relevant file, expected behavior, actual behavior and test command if I have not supplied them. Then add unit or integration cases for empty, invalid and concurrent inputs as appropriate. Preserve public interfaces unless evidence requires a change. Show assumptions, a focused diff and the exact command I should run. Do not invent files, test results or security guarantees.Vérification : Exécutez les tests et, si possible, vérifiez qu’ils échouent avant le correctif.
26. Une modification de validation de formulaire
Help with a form validation change in my existing codebase. Ask for the relevant file, expected behavior, actual behavior and test command if I have not supplied them. Then add unit or integration cases for empty, invalid and concurrent inputs as appropriate. Preserve public interfaces unless evidence requires a change. Show assumptions, a focused diff and the exact command I should run. Do not invent files, test results or security guarantees.Vérification : Exécutez les tests et, si possible, vérifiez qu’ils échouent avant le correctif.
27. Une couche de cache
Help with a caching layer in my existing codebase. Ask for the relevant file, expected behavior, actual behavior and test command if I have not supplied them. Then add unit or integration cases for empty, invalid and concurrent inputs as appropriate. Preserve public interfaces unless evidence requires a change. Show assumptions, a focused diff and the exact command I should run. Do not invent files, test results or security guarantees.Vérification : Exécutez les tests et, si possible, vérifiez qu’ils échouent avant le correctif.
28. Un webhook de paiement
Help with a payment webhook in my existing codebase. Ask for the relevant file, expected behavior, actual behavior and test command if I have not supplied them. Then add unit or integration cases for empty, invalid and concurrent inputs as appropriate. Preserve public interfaces unless evidence requires a change. Show assumptions, a focused diff and the exact command I should run. Do not invent files, test results or security guarantees.Vérification : Exécutez les tests et, si possible, vérifiez qu’ils échouent avant le correctif.
29. Une mise à niveau de dépendance
Help with a dependency upgrade in my existing codebase. Ask for the relevant file, expected behavior, actual behavior and test command if I have not supplied them. Then add unit or integration cases for empty, invalid and concurrent inputs as appropriate. Preserve public interfaces unless evidence requires a change. Show assumptions, a focused diff and the exact command I should run. Do not invent files, test results or security guarantees.Vérification : Exécutez les tests et, si possible, vérifiez qu’ils échouent avant le correctif.
30. Une refactorisation de l’état côté client
Help with a client-side state refactor in my existing codebase. Ask for the relevant file, expected behavior, actual behavior and test command if I have not supplied them. Then add unit or integration cases for empty, invalid and concurrent inputs as appropriate. Preserve public interfaces unless evidence requires a change. Show assumptions, a focused diff and the exact command I should run. Do not invent files, test results or security guarantees.Vérification : Exécutez les tests et, si possible, vérifiez qu’ils échouent avant le correctif.
Que vérifier avant d’utiliser le résultat
Ne transmettez jamais d’identifiants, de données client privées ou de dépôts propriétaires complets à un assistant non autorisé. Exécutez les commandes et les tests proposés dans votre environnement. Un correctif plausible ne prouve pas que la modification fonctionne.
Si le résultat ne répond pas à la tâche, raccourcissez le prompt et précisez l’information ou la contrainte manquante. Conservez la version utilisée pour pouvoir reproduire le visuel final ou la modification du code.
Pour aller plus loin
Poursuivre avec un guide associé
Mise en pratique
Votre prochaine étape
Vous avez une question ou une correction?
Contacter Thrive


