What problem does it solve?
This Skill implements the test-driven development (TDD) methodology in Rust, helping developers to write tests first and build code that passes those tests, resulting in more robust and reliable software.
Core Features & Use Cases
- Red-Green-Refactor Cycle: Follows the TDD cycle of writing a failing test, then a minimal implementation that passes the test, and finally refactoring the code to improve its structure.
- Lint Law Commitment: Encourages disciplined coding practices with a "lint law" that requires tests to pass and be clean before committing changes.
- Anti-Pattern Checks: Helps identify and avoid common anti-patterns in Rust, such as unwrapping outside tests or broad commits.
Quick Start
Use the rust-tdd skill to run a test suite on your Rust codebase and ensure that it follows the TDD process.