
Description
tdd-rust is an agent skill with a test-driven workflow for building filters in the RTK project. It enforces red-green-refactor for all RTK filter development, with two extra steps that suit a tool which trims command output. The loop starts with a red step that writes a failing test using a real fixture, then a green step with the minimum code to pass, then a refactor step that keeps the tests passing. After that comes a savings step, which checks that the filter cuts the output by at least 20 percent, and a snapshot step, which locks the output format with insta snapshot tests. The skill says never to write synthetic test data: you capture real command output and use it as the fixture, so the tests reflect what the tool actually sees. It is for contributors who add or change filters and want each change proven against real output and measured for token savings. The skill auto-triggers during filter work. It passes Gen Agent Trust Hub, Socket and Snyk on skills.sh. Install it with npx skills add https://github.com/rtk-ai/rtk --skill tdd-rust.…
Highlights
- Red-green-refactor workflow for RTK filter development
- Requires real command output as the test fixture
- Checks a token reduction of at least 20 percent
- Locks the output format with insta snapshot tests
Ratings & Reviews
No ratings yet
Be the first to rate tdd-rust.
People also visit

rust-testing
Rust testing patterns including unit tests, integration tests, async testing
tdd-rust FAQ
What are the steps?
Red with a real-fixture test, green with the minimum code, refactor, a savings check of at least 20 percent, and a snapshot with insta.
Can I use made-up test data?
No. The skill says never to write synthetic test data and to capture real command output as the fixture.
What does the savings check measure?
That the filter reduces token output by at least 20 percent.
How do I install it?
Run npx skills add https://github.com/rtk-ai/rtk --skill tdd-rust.
Which security audits does it have?
On skills.sh, Gen Agent Trust Hub, Socket and Snyk all pass.
What are the best tdd-rust alternatives?
Popular alternatives to tdd-rust include rtk-tdd, rust-testing and code-simplifier. See all tdd-rust alternatives




