
Description
rtk-tdd is an agent skill that enforces test-driven development, using the Red-Green-Refactor cycle, for Rust work in the RTK project. It triggers on implementation, testing, refactoring and bug-fixing tasks, so the assistant does not write production code before a failing test exists. The skill sets out the three laws of TDD. Do not write production code without a failing test. Write only enough test to fail, and that includes a compile failure. Write only enough production code to pass the failing test. The working loop is red, where the test fails, then green, where the minimum code makes it pass, then refactor, where the code is cleaned up and cargo test is run again. The skill gives Rust-idiomatic guidance on how to write those tests and steps for each phase. It is useful for contributors who want the assistant to build features and fixes in small verified steps, and it helps prevent untested changes from reaching review. It is tied to the RTK project's use of cargo for testing. The skill passes Gen Agent Trust Hub, Socket and Snyk on skills.sh. Install it with npx skills add https://github.com/rtk-ai/rtk --skill rtk-tdd.…
Highlights
- Enforces red, green, refactor for Rust work
- Triggers on implementation, testing, refactoring and bug fixes
- Applies the three laws of TDD
- Runs cargo test at the refactor step
Ratings & Reviews
No ratings yet
Be the first to rate rtk-tdd.
People also visit
rtk-tdd FAQ
What does it enforce?
Test-driven development in the red, green, refactor cycle, so production code is written only against a failing test.
When does it apply?
Automatically, on implementation, testing, refactoring and bug-fixing tasks in Rust.
Does it run the tests?
It runs cargo test during the refactor step to confirm the code still passes.
How do I install it?
Run npx skills add https://github.com/rtk-ai/rtk --skill rtk-tdd.
Which security audits does it have?
On skills.sh, Gen Agent Trust Hub, Socket and Snyk all pass.
What are the best rtk-tdd alternatives?
Popular alternatives to rtk-tdd include rust-testing, tdd-rust and tdd. See all rtk-tdd alternatives





