Strict TDD loop — red/green/refactor must be followed for every code change, no exceptions
78
Does it follow best practices?
If you maintain this skill, you can automatically optimize it using the tessl CLI to improve its score:
npx tessl skill review --optimize ./path/to/skillValidation for skill structure
Every code change follows the full red/green/refactor loop. No exceptions. This applies each time new functionality is written or existing behavior is changed, regardless of how far into a session we are.
| Mistake | Correction |
|---|---|
| Writing implementation before a test | Stop. Delete the implementation. Write the test first. |
| Skipping the red phase ("I know it'll fail") | Not optional. Run it. See the failure. |
| Writing multiple features before committing | One cycle at a time. Commit after each green. |
| "Just a small change, no test needed" | No change is too small. Write the test. |
If TDD discipline has slipped during the session:
After each cycle, note:
Red: <test name> failed with <error>
Green: <what was implemented>
Refactor: <what was cleaned up, or "none">
Committed: <short sha>31daf20
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.