本文へスキップ
Kitbay
スキル

tdd-rust

Apache-2.02026年11月11日 更新86,197GitHubスター

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

スキルの内容

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.

できること

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