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.zipInstalls 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.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
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.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| tdd (this skill) | 0 | 6mo | No flags | Intermediate |
| qlty-check | 5 | 10mo | Review | Beginner |
| solid | 5 | 10mo | No flags | Advanced |
| code-refactor | 3 | 10mo | Review | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
You might also like
qlty-check
parcadei
Code quality checks, formatting, and metrics via qlty CLI
solid
ramziddin
Use this skill when writing code, implementing features, refactoring, planning architecture, designing systems, reviewing code, or debugging. This skill transforms junior-level code into senior-engineer quality software through SOLID principles, TDD, clean code practices, and professional software design.
code-refactor
luongnv89
Systematic code refactoring based on Martin Fowler's methodology. Use when users ask to refactor code, improve code structure, reduce technical debt, clean up legacy code, eliminate code smells, or improve code maintainability. This skill guides through a phased approach with research, planning, and safe incremental implementation.
improvement
tddworks
Guide for making improvements to existing ClaudeBar functionality using TDD. Use this skill when: (1) Enhancing existing features (not adding new ones) (2) Improving UX, performance, or code quality (3) User asks "improve X", "make Y better", or "enhance Z" (4) Small enhancements that don't require full architecture design For NEW features, use implement-feature skill instead.
tdd-workflows-tdd-refactor
sickn33
Use when working with tdd workflows tdd refactor
moai-workflow-ddd
modu-ai
Domain-Driven Development workflow specialist using ANALYZE-PRESERVE-IMPROVE cycle for behavior-preserving code transformation