{"enrichment":{"faq":[{"a":"tdd-rust teaches the Red-Green-Refactor cycle for filter development. First, write a failing test (red) against real command output fixtures. Second, implement the minimum code to make it pass (green). Third, refactor while keeping tests green. This cycle enforces quality gates via cargo test, clippy, and fmt, ensuring your RTK filter implementation stays maintainable and correct.","q":"What is the red green refactor rust testing workflow in tdd-rust?"},{"a":"tdd-rust includes test patterns that measure token reduction in your filter output. Your tests compare the original command output size against the filtered result, asserting that the reduction meets or exceeds 60%. This verification runs automatically during cargo test, so token savings become a testable requirement rather than a manual check.","q":"How does tdd-rust verify token savings of \u226560% in filter implementations?"},{"a":"Yes. tdd-rust integrates insta snapshot testing to lock your filter's output format. Once you approve a snapshot, any unintended change to the filter output will cause the test to fail, preventing regressions. This pairs with real fixtures to ensure your RTK filter produces consistent, predictable results across runs.","q":"Can tdd-rust lock filter output format using snapshot testing with insta?"},{"a":"tdd-rust emphasizes real command output fixtures as your test foundation. Rather than mocking, you capture actual CLI output and use it as test input. This grounds your tests in reality, ensures your filter handles genuine edge cases, and makes snapshot tests meaningful. Real fixtures also support fallback behavior testing and ANSI stripping validation.","q":"What role do real fixtures play in tdd-rust filter development?"},{"a":"tdd-rust integrates cargo test, cargo clippy, and cargo fmt into your development loop. These tools enforce code quality and consistency automatically. Combined with the Red-Green-Refactor discipline, quality gates prevent low-quality code from entering your filter implementation, keeping your RTK filter robust and maintainable.","q":"How does tdd-rust enforce quality gates in the test workflow?"},{"a":"Yes. tdd-rust includes patterns for testing edge cases and fallback behavior in your RTK filters. Examples include ANSI stripping edge cases, missing fields, and graceful degradation when filters encounter unexpected input. These tests ensure your filter remains reliable even when real-world data deviates from the happy path.","q":"Does tdd-rust cover edge case and fallback behavior testing for Rust filters?"}],"shadow_tags":["fixture-driven-testing","token-optimization","snapshot-validation","quality-gates","test-automation","edge-case-coverage","regression-prevention","code-cleanup","integration-testing","error-handling"],"summary_rewrite":"tdd-rust guides you through test-driven filter implementation for RTK using the Red-Green-Refactor cycle. Start with real command output fixtures, write failing tests that verify both output format and \u226560% token reduction, then implement the minimum code to pass. Lock output format with snapshot tests and integrate into your CLI."},"files":[{"bytes":7588,"path":".claude/skills/tdd-rust/SKILL.md","sha256":"2f2aede1ea58e54d2a66ce9092be6373ca4eafd2bce067b81322e98f4675f1c9","url":"https://skillfed.io/files/rtk-ai/rtk/tdd-rust/9393da8b/SKILL.md"}],"id":"rtk-ai/rtk/tdd-rust","links":{"html":"https://skillfed.io/rtk-ai/rtk/tdd-rust","md":"https://skillfed.io/rtk-ai/rtk/tdd-rust.md","repo":"https://github.com/rtk-ai/rtk"},"meta":{"agents_supported":["claude-code"],"first_seen":"2026-07-28","forks":4597,"language":"Rust","last_updated":"2026-07-27","license":"Apache-2.0","name":"tdd-rust","publisher":"rtk-ai","stars":73568},"relations":{"similar":[{"id":"rtk-ai/rtk/performance"},{"id":"rtk-ai/rtk/security-guardian"},{"id":"rtk-ai/rtk/rtk-tdd"},{"id":"rtk-ai/rtk/code-simplifier"},{"id":"FlorianBruniaux/claude-code-ultimate-guide/rtk-optimizer"},{"id":"nanocoai/nanoclaw/add-rtk"},{"id":"akillness/jeo-skills/rtk"},{"id":"oliver-kriska/claude-elixir-phoenix/phx-mix-compression"},{"id":"oliver-kriska/claude-elixir-phoenix/mix-compression"},{"id":"rtk-ai/rtk/ship"}]},"slug":{"owner":"rtk-ai","repo":"rtk","skill":"tdd-rust"},"version":"9393da8b"}
