🧪
QualityRust

RTK TDD

by rtk-ai

RTK TDD is a Quality skill for Claude Code, published by rtk-ai in rtk.

75.9K stars4.8K forkson rtk-ai/rtkAdded 2026/08/13Repository updated 2026/08/13
agentic-codingai-codinganthropicclaude-codeclicommand-line-toolcost-reductiondeveloper-toolsllmopen-sourceproductivityrusttoken-optimization
Install in seconds
Install RTK TDD
Copy RTK TDD into your Claude Code skills folder. Run the command in your terminal, or review the source on GitHub before installing.
terminal
npx degit https://github.com/rtk-ai/rtk/tree/develop/.claude/skills/rtk-tdd ~/.claude/skills/rtk-tdd

Requires Node.js. Downloads this skill only — not the rest of the repository — into your Claude Code skills folder.

Without Node.js

git clone https://github.com/rtk-ai/rtk.git

Clones the whole repository, then copy the skill’s own directory into your skills folder yourself.

In this catalog

Source file
.claude/skills/rtk-tdd/SKILL.md in rtk-ai/rtk
Installs to
~/.claude/skills/rtk-tdd
Collection
One of 12 skills cataloged from this repository
Category
Quality1354 skills

What RTK TDD does

RTK TDD enforces a Red-Green-Refactor test-driven development workflow for Rust projects, auto-triggering on implementation, testing, refactoring, and bug fixing tasks. It provides Rust-idiomatic testing patterns using anyhow/thiserror, cfg(test), and Arrange-Act-Assert.

RTK TDD is cataloged under Quality on DirSkills. RTK TDD comes from a repository tagged agentic-coding, ai-coding, anthropic, claude-code and cli.

Documentation

README

Rust TDD Workflow

Three Laws of TDD

  1. Do NOT write production code without a failing test
  2. Write only enough test to fail (including compilation failure)
  3. Write only enough production code to pass the failing test

Cycle: RED (test fails) -> GREEN (minimum to pass) -> REFACTOR (cleanup, cargo test)

Red-Green-Refactor Steps

1. Write test in #[cfg(test)] mod tests of the SAME file
2. cargo test MODULE::tests::test_name  -- must FAIL (red)
3. Implement the minimum in the function
4. cargo test MODULE::tests::test_name  -- must PASS (green)
5. Refactor if needed, re-run cargo test (still green)
6. cargo fmt && cargo clippy --all-targets && cargo test  (final gate)

Never skip step 2. If the test passes immediately, it tests nothing.

This is the opening of the README. Read the full README on GitHub.

Frequently asked about RTK TDD

  • What else does rtk-ai publish alongside RTK TDD?

    RTK TDD is one of 12 skills that DirSkills catalogs from rtk-ai/rtk, the repository it ships in. Its siblings there include Code Simplifier, Issue Triage and PR Review. Each one is a separate skill with its own page in this directory, installs the same way RTK TDD does, and is maintained by rtk-ai in that same repository. The rest of the collection is listed on the rtk-ai/rtk page.

  • How does RTK TDD compare to other Quality skills?

    RTK TDD ranks #37 by stars among the 1354 Quality skills in this catalog. The most-starred ones next to it are Benchmark, Benchmark Optimization Loop and API Design Patterns. DirSkills ranks by the star count of the repository each skill ships in, so that order reflects how popular those repositories are rather than any review of RTK TDD against them. Open each page to compare what they document and how they install.

More from rtk-ai/rtk

RTK TDD is one of 12 skills cataloged on DirSkills from rtk-ai/rtk.

See all 12 skills
🧹
3w ago

Code Simplifier

Code Simplifier reviews Rust code for idiomatic simplification patterns, reducing over-engineering and unnecessary allocations without changing behavior. Use it to apply Rust idioms like iterator chains, early returns, and Option/Result chaining while respecting project constraints.
Quality
75.9K4.8K
🔍
3w ago

Issue Triage

Issue Triage audits open issues, categorizes them, detects duplicates, cross-references pull requests, assesses risk, and posts comments. Use it to triage issues manually or proactively when many open issues need attention.
Automation
75.9K4.8K
🔍
3w ago

PR Review

PR Review batches open pull requests in order of complexity, checks merge readiness (conflicts, CLA, reviews), reads diffs, and asks for explicit approval before merging. It also posts comments on blocked PRs.
Quality
75.9K4.8K
🔍
3w ago

PR Triage

PR Triage audits open pull requests, flags risks, and helps choose which PRs need deeper review. It can draft and post review comments, with language handling for French or English.
Quality
75.9K4.8K
⏱️
3w ago

Performance

Performance analyzes RTK CLI startup time, memory usage, and token savings to detect and fix performance regressions. Use it after filter changes, dependency additions, or before release to verify the CLI meets <10ms startup, <5MB memory, and 60-90% token savings targets.
Quality
75.9K4.8K
🔍
3w ago

RTK Triage

RTK Triage orchestrates issue and PR triage, then cross-references the data to detect overlapping PRs, security gaps, P0 bugs without PRs, and internal conflicts, saving a report to claudedocs.
Quality
75.9K4.8K