Skip to main content
ClaudeWave
Skill70 repo starsupdated 2mo ago

test-driven-development

This skill implements the red-green-refactor cycle for test-driven development, guiding developers through writing failing tests first, implementing minimal code to pass them, then refactoring while maintaining test coverage. Use it when building new features to ensure code quality, maintainability, and comprehensive test coverage from the start.

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