with one click
tdd
Test-driven development workflow using the Red-Green-Refactor cycle.
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Test-driven development workflow using the Red-Green-Refactor cycle.
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
Defines a reusable procedure. Source: xcaf/skills/<name>/skill.xcaf. Compiled to skills/<name>/SKILL.md per provider.
Performs thorough code review.
Deep search across files and symbols
Test-driven development workflow
Systematic code review workflow
Search the web
| name | tdd |
| description | Test-driven development workflow using the Red-Green-Refactor cycle. |
Write a test that describes the expected behavior. The test must fail before any implementation code is written. Run the test and confirm the failure message is clear and specific.
go test ./path/to/package -run TestNew -v
Verify the test fails with a meaningful message, not a compile error.
Write the minimal code required to make the failing test pass. Do not add extra functionality, error handling for hypothetical cases, or premature abstractions. Run the test and confirm it passes.
Improve the code structure without changing behavior. Extract functions, rename variables, remove duplication. Run the full test suite after each refactoring step to ensure nothing breaks.
TestCompile_MissingField_ReturnsError.t.Helper() in all test helper functions so failures report the caller's line number.