What problem does it solve?
This Skill prevents bugs, ensures code quality, and builds confidence by enforcing the Test-Driven Development (TDD) cycle. It eliminates the risk of writing untestable code or tests that don't actually verify behavior.
Core Features & Use Cases
- Red-Green-Refactor Cycle: Guides you through writing a failing test, implementing minimal code to pass, and then refactoring.
- Iron Law Enforcement: Strictly prohibits writing production code without a failing test first, preventing common TDD shortcuts.
- Verification-First: Mandates watching tests fail before writing implementation, proving tests actually verify behavior.
- Use Case: When implementing any new feature or fixing a bug, use this Skill to ensure every line of code is backed by a verifiable test.
Quick Start
Write a minimal failing test
[Fact]
public async Task MyFeature_ShouldDoSomething()
{
// Arrange
var service = new MyService();
// Act
var result = await service.DoSomething();
// Assert
Assert.Equal("expected", result);
}
Run test to see it fail
dotnet test --filter "MyFeature_ShouldDoSomething"