01
It starts by itself
new filter requested. Runs in Claude Code routine.
- ↻ new filter requested
task to implement a new RTK filter or command
Every new filter proves its savings.
Install the RTK TDD Rust skill and make it a habit: follow https://gethabit.dev/skills/rtk-ai/tdd-rust.md
1K installs84K starsApache-2.0 licenceSource on GitHub ↗

RTK TDD Rust
by rtk-ai · 1K installs
The skill
The RTK TDD Rust skill enforces red-green-refactor for RTK filter development: real command fixtures, a 20% token savings test, insta snapshots, edge case tests and a fmt, clippy and test gate.
Only when you ask.
The habit
Every new filter proves its savings.
↻ Runs by itselfnew filter requested
When does it start? How does it check its work? What does it remember?
Stops after one filter and 2 gate retries per run.
Your agent saves real command output as tests/fixtures/<command>_raw.txt.
It writes snapshot, 20% savings, empty and malformed input tests and runs cargo test to see them fail.
It writes the minimum filter_<cmd> returning Result<String>.
It runs the snapshot test and cargo insta review.
It adds a run() with fallback and registers it in the main.rs Commands enum.
It runs cargo fmt --all, cargo clippy --all-targets and cargo test.
It writes only in its own folder and asks you before anything goes out.
Read both lists. If the left one sounds like you, the RTK TDD Rust skill helps.
No. The skill requires real captured command output.
At least 20% fewer tokens than the raw output.
Copy the prompt at the top into your agent. It installs the skill from rtk-ai/rtk and sets up the habit. Or run npx skills add rtk-ai/rtk --skill tdd-rust.
Yes. It is published under Apache-2.0. Habit is free too.
Install the RTK TDD Rust skill and make it a habit: follow https://gethabit.dev/skills/rtk-ai/tdd-rust.md
All rtk-ai skills →More code skills →
Works in
Made by rtk-ai, published under Apache-2.0. Habit links to the original and never changes it. Is this your skill?