TDD Loop — Code Quality skill for Claude Code
Implement a feature using TDD (Red-Green-Refactor) for GarraRUST.
How to install TDD Loop
Installs to ~/.claude/skills/michelbr84-garrarust-tdd-loop/SKILL.md
mkdir -p ~/.claude/skills/michelbr84-garrarust-tdd-loop && curl -fsSL https://raw.githubusercontent.com/michelbr84/GarraRUST/HEAD/skills/tdd-loop.md -o ~/.claude/skills/michelbr84-garrarust-tdd-loop/SKILL.md Restart Claude Code, or start a new session, for it to be picked up.
What TDD Loop does
Implement a feature using TDD (Red-Green-Refactor) for GarraRUST.
Input: specification in plain English + file path to implement
Steps:
- Entender — leia o arquivo alvo e os testes existentes no mesmo crate
- RED — escreva o teste que falha:
- Rust: adicione
#[test]ou#[tokio::test]no módulotestsdo arquivo - Flutter: crie/atualize
test/_test.dart
- Rust: adicione
- Verificar RED —
cargo test -pdeve mostrar FAILED2>&1 | tail -5 - GREEN — imp
Alternatives in Code Quality
- Refactor — We are about to refactor code 1.6k ★
- Refactor Claude Md — Refactor CLAUDE.md by extracting sections to dedicated docs with path-scoped rules 1.6k ★
- Claude Command Suite — Professional slash commands for Claude Code that provide structured workflows for software development tasks 1.1k ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
ExecuteTask
Phase 6 — implement tasks in order, choosing the loop (core / red-green-refactor / prompt-iteration) per task;
TDD Feature
Complete TDD workflow orchestrator - RED (Sonnet) → GREEN (Haiku) → REFACTOR (Haiku) → REVIEW (Opus). Use with
Symfony TDD Pest
Start a TDD workflow using Pest PHP for Symfony with RED-GREEN-REFACTOR cycle
Symfony TDD Phpunit
Start a TDD workflow using PHPUnit for Symfony with RED-GREEN-REFACTOR cycle
Refactor TDD
REFACTOR phase - Improve code quality while keeping tests green with automatic metrics tracking in sprintdag d
Fec TDD
Use front-end TDD workflow to implement functions, fix bugs, or refactor logic: first write failing tests, the
Related Agents
Feature Implementer
Implement a ReviewFlow feature via TDD inside-out. Receives a validated plan (docs/plans/ .plan.md) and spec (
Dev TDD
TDD development with Red-Green-Refactor cycle, plus generating tests for existing code and setting up test inf
Sf Developer
Developer of the Software Factory cell. Use to implement a feature or fix strictly via TDD (RED-GREEN-REFACTOR