Strict TDD loop — red/green/refactor must be followed for every code change, no exceptions
74
61%
Does it follow best practices?
Impact
94%
1.42xAverage score across 3 eval scenarios
Passed
No known issues
Optimize this skill with Tessl
npx tessl skill review --optimize ./dot_config/opencode/skill/tdd/SKILL.mdEvery 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>4ed3a13
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.