Skip to main content
ClaudeWave
Skill62 repo starsupdated 1mo ago

test-driven-development

Red-green-refactor discipline. Use when writing new functionality.

Install in Claude Code
Copy
git clone --depth 1 https://github.com/ArchieIndian/openclaw-superpowers /tmp/test-driven-development && cp -r /tmp/test-driven-development/skills/core/test-driven-development ~/.claude/skills/test-driven-development
Then start a new Claude Code session; the skill loads automatically.

SKILL.md

# Test-Driven Development

## The Cycle

### Red
Write a test that describes the behavior you want. Run it. It should fail.

### Green
Write the minimum code to make the test pass.

### Refactor
Make the code good. Tests must still pass.

## Test Quality

A good test:
- Tests behavior, not implementation
- Has one clear assertion
- Has a descriptive name
- Is independent
- Is fast