tdd-mastery

Test-driven development workflow with Red-Green-Refactor cycle across languages

Content Preview
---
name: tdd-mastery
description: Test-driven development workflow with Red-Green-Refactor cycle across languages
---

# TDD Mastery

## Core Cycle: Red-Green-Refactor

1. **Red** - Write a failing test that defines the desired behavior
2. **Green** - Write the minimum code to make the test pass
3. **Refactor** - Clean up while keeping tests green

Never write production code without a failing test first. Each cycle should take 2-10 minutes.

## Test Structure

Use the Arrange-Act-Assert patter
How to Use

Recommended: Install to project (local)

mkdir -p .claude/skills
curl -o .claude/skills/tdd-mastery.md \
  https://raw.githubusercontent.com/rohitg00/awesome-claude-code-toolkit/main/skills/tdd-mastery/SKILL.md

Skill is scoped to this project only. Add .claude/skills/ to your .gitignoreif you don't want to commit it.

Alternative: Clone full repo

git clone https://github.com/rohitg00/awesome-claude-code-toolkit

Then reference at skills/tdd-mastery/SKILL.md

Related Skills