Zum Inhalt springen
Kitbay
Skill

tdd-rust

Apache-2.0Aktualisiert am 11. Nov. 202686.197GitHub-Sterne

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

Was der Skill vermittelt

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.

Funktionen

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