Skip to content

Enforces RED-GREEN-REFACTOR test-driven development with isolated subagents for test writing and implementation.

CCM score
63 of 100
skills.sh installs
262
GitHub stars
416
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers feature and bug-fix workflows through vertical slices, with a green-baseline check before any slice begins
  • Includes run_tests.sh, extract_api.sh, and discover_docs.sh, supporting Jest, Vitest, pytest, Go test, cargo test, PHPUnit, and RSpec
  • Keeps the Test Writer away from implementation code and the Implementer away from the original spec, so tests reflect intent rather than code
  • Offers interactive, autonomous (--auto), resumable, and --dry-run modes, with human checkpoints at slice approval and each RED step

Install

$ npx -y skills add glebis/claude-skills --skill tdd -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Test-Driven Development — Multi-Agent Orchestration

Enforce disciplined RED-GREEN-REFACTOR cycles using separate subagents for test writing and implementation. The core innovation: the Test Writer never sees implementation code, and the Implementer never sees the specification. This prevents the LLM from leaking implementation intent into test design.

When to Use

  • User requests TDD, test-first, or red-green-refactor workflow
  • User says /tdd with a feature description or bug report
  • User wants to add a feature with test coverage enforced from the start
  • User wants to fix a bug by first writing a reproducing test

Invocation Modes

InvocationBehavior
/tdd <feature>Interactive mode — pause for approval at slices and each RED checkpoint
/tdd --auto <feature>Autonomous mode — run all slices without pausing; stop ONLY on unrecoverable errors
/tdd --resumeResume from .tdd-state.json in project root
/tdd --dry-run <feature>Validation mode — runs Phase 0 + Phase 1 fully, renders all prompts, but skips Task() calls. No code is written.

Details

Repository
github.com/glebis/claude-skills
Categories
Testing & QA, Agent Workflow & Planning
First seen
Jun 3, 2026

Questions

What does the tdd skill do for Claude Code?

The tdd skill enforces the RED-GREEN-REFACTOR cycle for implementing features or fixing bugs with test-driven development. It uses separate subagents for test writing and implementation, so the Test Writer never sees implementation code and the Implementer never sees the specification.

Which test frameworks does the tdd skill support?

The tdd skill supports Jest, Vitest, pytest, Go test, cargo test, PHPUnit, and RSpec. It detects the framework from project files such as package.json, pyproject.toml, go.mod, Cargo.toml, Gemfile, or composer.json.

How do I install the tdd skill?

Run npx -y skills add glebis/claude-skills --skill tdd -y in your project. This installs the skill so Claude Code can run the test-first workflow when you ask for TDD or use the /tdd command.

Where does the tdd skill rank in the Testing and QA category?

The tdd skill is in the Testing & QA category on Claude Marketplaces. Other skills in that category include test-driven-development, webapp-testing, break-ui, and migrate-to-shoehorn.

More from glebis/claude-skills

All 22

Similar to Tdd

More Testing & QA