TDD skill for behavior-first development. Follows the red-green-refactor loop to ensure robust, test-backed code.

Install

mkdir -p .claude/skills/tdd-marketsquare && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/10049" && unzip -o skill.zip -d .claude/skills/tdd-marketsquare && rm skill.zip

Installs to .claude/skills/tdd-marketsquare

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Test-driven development with red-green-refactor loop. Use when user wants to build features or fix bugs using TDD, mentions "red-green-refactor", wants integration tests, or asks for test-first development.
206 chars✓ has a “when” trigger
Intermediate

Key capabilities

  • →Build features via TDD
  • →Fix bugs using TDD
  • →Create integration tests
  • →Refactor with safety nets
  • →Verify system behavior

How it works

It follows the red-green-refactor loop, starting at the highest layer that exercises the behavior.

Inputs & outputs

You give it
Feature requirement
You get back
Tested code

When to use tdd

  • →Writing test-first features
  • →Fixing bugs using TDD
  • →Creating integration tests
  • →Refactoring with safety nets

About tdd

Guides the red-green-refactor development cycle. Focuses on integration-style tests that describe system behavior through public interfaces rather than internal implementation details.

Test-driven development with red-green-refactor loop. Use when user wants to build features or fix bugs using TDD, mentions "red-green-refactor", wants integration tests, or asks for test-first development.

When not to use it

  • →Horizontal slicing (all tests then all code)

Limitations

  • →You can't test everything

How it compares

It mandates vertical slicing (tracer bullets) to ensure tests verify actual behavior, not implementation.

Compared to similar skills

tdd side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
tdd (this skill)06moNo flagsIntermediate
qlty-check510moReviewBeginner
solid510moNo flagsAdvanced
code-refactor310moReviewIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry