michelbr84

TDD Loop — Code Quality skill for Claude Code

Code Quality community

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

Terminal
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:

  1. Entender — leia o arquivo alvo e os testes existentes no mesmo crate
  2. RED — escreva o teste que falha:
    • Rust: adicione #[test] ou #[tokio::test] no módulo tests do arquivo
    • Flutter: crie/atualize test/_test.dart
  3. Verificar RED — cargo test -p 2>&1 | tail -5 deve mostrar FAILED
  4. 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 Repository