tdd-rust

Automate the TDD workflow for RTK filter development in Rust.

Updated May 25, 2026
One-click install
npx skills add https://github.com/ngquaanghuy/Crypto --skill tdd-rust-ngquaanghuy
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd-rust
Source: https://github.com/ngquaanghuy/Crypto/tree/main/.agents/skills/tdd-rust
Command: npx skills add https://github.com/ngquaanghuy/Crypto --skill tdd-rust-ngquaanghuy

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires rust, cargo, insta, lazy_static, regex, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the TDD workflow for RTK filter development in Rust, reducing manual steps and ensuring code quality.

Core Features & Use Cases

  • TDD Workflow: Enforces Red-Green-Refactor for RTK filter development.
  • Real Fixtures: Uses real command output for tests, ensuring accuracy.
  • Token Savings: Ensures ≥60% token reduction for efficient code.
  • Snapshots: Locks output format for consistent results.
  • Auto-Trigger: Triggers on new filter implementation or command addition.

Quick Start

Run the tdd-rust skill to start the TDD workflow for a new RTK filter.

Frequently Asked Questions about tdd-rust

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate TDD workflow for RTK filter development in Rust?

You can automate TDD for RTK filter development in Rust by enforcing the Red-Green-Refactor cycle with real command output fixtures. This workflow triggers automatically when adding new filters, ensuring code quality and reducing manual testing steps.

What is the best way to reduce tokens when testing Rust filters?

To reduce tokens when testing Rust filters, use a TDD workflow that leverages real fixtures and snapshot testing. This approach locks output format for consistent results and achieves at least a 60% token reduction during development.

Do I need specific Rust libraries to run TDD workflows with snapshots?

Yes, you need Rust and Cargo installed, along with specific dependencies like insta for snapshots, lazy_static, and regex. These libraries enable the TDD workflow to lock output formats and validate RTK filter behavior accurately.

How does snapshot testing work for Rust command output?

Snapshot testing for Rust command output works by locking the expected output format using the insta library. During the TDD workflow, it compares real command fixtures against these snapshots to ensure consistent and accurate filter results.

When should I use real fixtures in Rust TDD workflows?

You should use real fixtures in Rust TDD workflows when implementing new RTK filters or adding commands. Using actual command output ensures test accuracy, locks output formats via snapshots, and maintains code quality throughout the Red-Green-Refactor cycle.