Skip to content
Kitbay
Skill

tdd-rust

Apache-2.0Updated on Nov 11, 202686,197GitHub stars

A skill for building output filters in RTK, rtk-ai's Rust command-line tool.

What the skill teaches

A skill for building output filters in RTK, rtk-ai's Rust command-line tool. For each new filter the agent captures real command output as a fixture, writes a failing test, implements the minimum filter to pass, accepts an insta snapshot of the result, wires the command into main.rs and runs the quality gate. A filter only counts as done when tests show it cuts token count by at least 20 percent. It includes RTK-specific test patterns for stripping ANSI codes, fallback behaviour and savings at several input sizes, plus a list of things never to do in tests.

Capabilities

  • Capture real command output as test fixtures
  • Write snapshot tests with insta
  • Assert token savings of at least 20 percent