Testing, quality and security Checked against documentation Intermediate
test-driven-development
obra/superpowers
Écrire le test avant le code
The skill descriptions are in French for now. The interface is in English; the pages will be translated later.
This description is still being proofread: the technical information is checked, the wording has not yet been validated by a human.
What it does
Fait travailler l'agent en cycle test d'abord : il écrit un test qui échoue, le constate, écrit juste assez de code pour le faire passer, puis nettoie, pour chaque nouvelle fonction ou correction de bug.
Who it is for
Pour toi qui codes avec l'agent et veux des fonctions qui marchent dès le départ.
Example requests
- « Ajoute cette fonction de calcul de remise en commençant par les tests. »
- « Corrige ce bug en écrivant d'abord un test qui le reproduit. »
- « Refais cette fonction en gardant mes tests au vert. »
Limits
- Il faut un projet où l'on peut lancer des tests.
- Le skill est strict : du code écrit avant le test doit être jeté, ce qui peut sembler lent au début.
- Les prototypes jetables, le code généré et les fichiers de configuration sont des exceptions à valider avec toi.
- Une alternative existe : le skill tdd de mattpocock.
Install this skill
Prerequisites : Projet avec tests
Copy the command, paste it into your terminal (Mac) or PowerShell (Windows), then confirm yourself when the program asks.
Command (latest published version)
npx skills add https://github.com/obra/superpowers --skill test-driven-development -a claude-codeThe npx command needs Node.js 22.20 or later. Windows : si la création de liens échoue : ajouter --copy (non testé).
Command pinned to the checked version · Or from the official Claude Code plugin catalog
Command pinned to the checked version
npx skills add obra/superpowers@22f0b463e7a5e579904dd6211a520321035526f7 --skill test-driven-development -a claude-codeOr from the official Claude Code plugin catalog (The plugin may install several skills at once.)
/plugin install superpowers@claude-plugins-officialCommand checked against the documentation, not yet tried by Neurylio.
Before installing. Read the SKILL.md file on GitHub, check where the skill comes from and what it can do. The lessons of module 7 explain how: