cursor/plugins
TDD
Tdd
Dans l'annuaire depuis le 18 novembre 2026.
Description
Un garde-fou pour le développement piloté par les tests, qui empêche Claude d'écrire des tests quand ils seraient inutiles. La boucle rouge-vert-refactorisation n'est appliquée que si vous demandez explicitement du TDD ou si le bug a une cible de test évidente et peu coûteuse. Flux strict : écrire un test qui échoue, confirmer qu'il échoue pour la bonne raison, corriger, vérifier.
Voir la description originale (anglais)
This is a guardrail for test-driven development that stops Claude from writing tests when they'd be wasteful. It enforces the red-green-refactor loop only when the user explicitly asks for TDD or when the bug has an obvious, cheap test target. The workflow is strict: write a failing test, confirm it fails for the right reason, fix the bug, then verify it passes. If a proper regression test would need brittle mocks, slow infrastructure, or expensive setup, it tells Claude to skip it and use the closest practical verification instead. The core insight is that a bad test is worse than no test, and forcing TDD on integration-heavy or unclear paths creates more problems than it solves.
Installer le skill
- 1Copiez la commande d'installation (bouton Copier, en haut de la fiche).
- 2Lancez-la dans un terminal, sur la machine où vous utilisez Claude Code.
- 3Demandez la tâche à Claude comme d'habitude : il charge le skill quand la demande s'y prête.