Sign inGet started
–

test-driven-development

by addyosmani/agent-skills · Coding & Development

Guides development using the test-driven red-green-refactor loop, writing failing tests first to prove code works and reproduce bugs before fixing them.

Quality · GLM-5.3-flash−1.1ptsdirectional · all models →
92
Trustsecurity · quality · license · upkeep
Scan Saferisk 0/100
LicenseMITserved via MCP

What it does

Drives development with tests using the red-green-refactor loop. Use when implementing any logic, fixing any bug, or changing any behavior. Use when you need to prove that code works, when a bug report arrives, or when you're about to modify existing functionality. Use when asked to add tests to a function, fix a bug in it or change its behavior, even when the code is pasted inline, the request does not mention tests and the answer looks obvious from reading it. The skill writes the failing test first and changes the function second, never the change alone.

#bug-fixing#red-green-refactor#tdd#testing#unit-tests

Quality judgment

completeness
9.0/10
clarity
9.0/10
trigger quality
9.0/10
examples
8.5/10
structure
9.0/10
overall
9.0/10

Comprehensive and actionable TDD skill with strong trigger guidance, clear red-green-refactor and prove-it workflows, and practical anti-patterns, red flags, and verification steps. Minor limitation: examples are TypeScript-centric, though the document explicitly emphasizes stack discovery and transferability.

Files (3)

LICENSE · 1.0 KBreferences/shared/testing-patterns.md · 7.4 KBSKILL.md · 16.6 KB