# test-driven-development > Write tests before implementation, define test strategy and coverage targets - Author: 靳春元 - Repository: Ydy4HYW7ExA/claude-habitat - Version: 20260208141437 - Stars: 5 - Forks: 0 - Last Updated: 2026-02-08 - Source: https://github.com/Ydy4HYW7ExA/claude-habitat - Web: https://mule.run/skillshub/@@Ydy4HYW7ExA/claude-habitat~test-driven-development:20260208141437 --- --- name: "test-driven-development" description: "Write tests before implementation, define test strategy and coverage targets" --- # Test-Driven Development > Red → Green → Refactor. Tests define the contract. Code fulfills it. ## Trigger - Writing tests for new functionality - Workflow phase: Test Construction - User asks to "write tests" or "test first" ## Protocol @import test-driven-development/context @import test-driven-development/protocol @import test-driven-development/gates @import shared/coding/tool-use @import shared/coding/principles @import shared/coding/patterns/index @import shared/output-format