---
name: "Test-Driven Development"
description: "Structured TDD workflow that guides engineers to write tests first before implementing features, reducing bugs and improving code design."
type: skill
roles: ["Engineering"]
activities: ["Coding", "Unit Testing"]
tags: ["TDD", "Testing", "Quality", "Automation"]
owner: "Superpowers Team"
version: "2.1.0"
sourceUrl: "https://github.com/superpowers/tdd"
compatibility: "Claude Code >= 1.0"
---

# Test-Driven Development

> Structured TDD workflow that guides engineers to write tests first before implementing features, reducing bugs and improving code design.

## Overview

Test-Driven Development Skill guides engineers through a disciplined test-first workflow. It enforces the red-green-refactor cycle so every feature is backed by meaningful tests before implementation begins, catching edge cases early and keeping design clean.

## Capabilities

| Capability | Description |
|---|---|
| Test First Workflow | Guides engineers to write failing tests before any implementation |
| Red-Green-Refactor | Enforces the TDD cycle for clean, iterative development |
| Edge Case Detection | Prompts for boundary conditions and error paths automatically |
| Coverage Analysis | Analyzes test coverage and suggests missing test scenarios |
| Refactoring Support | Identifies safe refactoring opportunities after tests pass |

## Install Steps

### 1. Install via Claude Code

```bash
claude skill install superpowers:test-driven-development
```

### 2. Activate in your session

```
/tdd
```

### 3. Verify installation

```bash
claude skill list | grep tdd
```

Need help? Contact the Integration Team or open an issue on the source repository.
