Skip to main content
ClaudeWave
Skill70 estrellas del repoactualizado 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.

Instalar en Claude Code
Copiar
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
Después abre una sesión nueva de Claude Code; el skill carga automáticamente.

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