Enforce Test-Driven Development (TDD) workflow for implementation tasks
/plugin marketplace add towry/dots/plugin install claude-code-skills@local-marketplaceThis skill inherits all available tools. When active, it can use any tool Claude has access to.
The TDD workflow ensures high-quality implementation by enforcing a cycle of writing tests before code. This skill guides the agent to break down implementation tasks into small, verifiable steps, ensuring each step is verified by a test before moving forward.
TodoWrite tool for a coding task.TodoWrite list where every implementation step is paired with a verification step (test).When implementing a RealInfluxClient:
Todos:
1. RED: Write integration test for RealInfluxClient.health() with testcontainers
2. GREEN: Implement RealInfluxClient.health() to make test pass
3. VERIFY: Run test and ensure it passes
4. RED: Write integration test for RealInfluxClient.write_tick()
5. GREEN: Implement RealInfluxClient.write_tick()
6. VERIFY: Run test and ensure it passes
7. RED: Write integration test for RealInfluxClient.query_ticks()
8. GREEN: Implement RealInfluxClient.query_ticks()
9. VERIFY: Run test and ensure it passes
User: "Implement a function to reverse a string."
Agent: "I will use TDD to implement this. I'll start by creating a plan."
Calls TodoWrite:
test_reverse_hello expecting "olleh"reverse_string function to pass the testAgent: "I've created the plan. First, I'll write the failing test." Writes test, runs it (fails). "Now I will implement the logic." Writes code, runs test (passes).