tdd

Enforces red-green-refactor test-driven development cycles with per-phase git commits.

1|Updated Feb 19, 2026
One-click install
npx skills add https://github.com/alessioroberto82/claude-plugin-circle --skill tdd-alessioroberto82
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: tdd
Source: https://github.com/alessioroberto82/claude-plugin-circle/tree/main/plugins/circle/skills/tdd
Command: npx skills add https://github.com/alessioroberto82/claude-plugin-circle --skill tdd-alessioroberto82

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Developers often skip writing tests first or add tests after implementation, losing the design feedback and regression safety that test-driven development provides. This Skill enforces a strict red-green-refactor discipline so every line of code is justified by a failing test. ## Core Features & Use Cases - Strict TDD Cycle Enforcement: Guides the AI through RED (write one failing test), GREEN (write minimum code to pass), and REFACTOR (improve without breaking tests), with hard stops when rules are violated. - Automatic Domain Detection: Detects Swift, Node, Go, Python, Rust, Java, or general projects via marker files and selects the correct build and test commands. - Structured Commit Conventions: Creates per-phase commits using test(red):, feat(green):, and refactor: prefixes so QA can verify TDD compliance later. - Use Case: Ask the AI to implement "password must be at least 8 characters" and it writes a failing test, commits it, adds the minimal validation code, commits again, refactors, and reports a cycle summary with test counts. ## Quick Start Ask the AI to run a TDD cycle for a specific unit of work, for example: use the tdd skill to implement password length validation in the login form.

Frequently Asked Questions about tdd

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enforce test-driven development with an AI coding assistant?▼

Invoke the tdd skill with a unit of work description, and it walks through red-green-refactor phases with hard stops. It writes one failing test first, adds minimal implementation code, then refactors, committing after each phase.

How does the TDD cycle handle commits in git?▼

Each phase gets its own commit with a strict prefix convention: test(red): for the failing test, feat(green): for the implementation, and refactor: for cleanup. Only relevant files are staged per phase, and squashing is deferred until after QA approval.

Which languages and test frameworks does TDD automation support?▼

The skill detects Swift (swift test), Node (npm test), Go (go test), Python (pytest), Rust (cargo test), and Java (Maven or Gradle) via marker files like Package.swift, package.json, go.mod, or Cargo.toml, then uses the matching build and test commands.

What happens if the new test passes immediately in the red phase?▼

The cycle stops immediately. A passing test means either the feature already exists or the test does not actually cover the new behavior, so you must fix the test or confirm the feature exists before proceeding.

Can I run TDD without a test framework configured?▼

No. If no test runner is detected, the skill stops and provides setup suggestions per language, such as adding pytest for Python or a test script in package.json for Node. It will not proceed without a working test runner.

Why do existing failing tests block a new TDD cycle?▼

The pre-flight step runs the full suite to establish a baseline. If tests already fail, the cycle stops because you cannot distinguish new failures from pre-existing ones, so the existing failures must be fixed first.