rtk-tdd

Automate Red-Green-Refactor TDD workflows for Rust with cargo test and clippy.

Updated Apr 28, 2026
One-click install
npx skills add https://github.com/roberttmadsen13-del/TOURney --skill rtk-tdd-roberttmadsen13-del
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rtk-tdd
Source: https://github.com/roberttmadsen13-del/TOURney/tree/main/SKILLS/rtk-master/.claude/skills/rtk-tdd
Command: npx skills add https://github.com/roberttmadsen13-del/TOURney --skill rtk-tdd-roberttmadsen13-del

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps Rust developers adopt test-driven development by enforcing a Red-Green-Refactor workflow, ensuring tests drive production code and guiding automated practices.

Core Features & Use Cases

  • Automated TDD workflow integration for Rust projects
  • Idiomatic Rust testing patterns (Arrange-Act-Assert, #[cfg(test)] tests, and common assertions)
  • Step-by-step cycling: Red -> Green -> Refactor with cargo test, cargo fmt, and cargo clippy
  • Triggered on implementation, testing, refactoring, and bug fixes to maintain quality

Quick Start

Write a failing test first, implement production code to pass it, then run cargo test to validate the cycle.

Frequently Asked Questions about rtk-tdd

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

FAQPage Schema
How do I enforce a test-driven development workflow in Rust?

You enforce Rust test-driven development by automating the Red-Green-Refactor cycle, writing a failing test first, implementing code to pass it, and validating the cycle with cargo test.

What is the Red-Green-Refactor cycle in Rust testing?

The Red-Green-Refactor cycle in Rust testing involves writing a failing test, implementing production code to pass it, and refactoring while validating each stage with cargo test.

How do I set up idiomatic Rust testing patterns with cargo test?

You set up idiomatic Rust testing patterns by applying Arrange-Act-Assert structures and #[cfg(test)] configurations, validating assertions with cargo test during implementation and refactoring tasks.

Can I use cargo fmt and cargo clippy as final quality gates in TDD?

Yes, you can use cargo fmt and cargo clippy as final quality gates in TDD. This Skill applies formatting and linting checks as the final step to maintain quality during the refactoring phase.

When should I trigger a Rust TDD workflow during development?

You should trigger a Rust TDD workflow during implementation, testing, refactoring, and bug-fixing tasks to ensure tests drive production code and maintain automated quality practices.