Openclaw-superpowers test-driven-development
Red-green-refactor discipline. Use when writing new functionality.
install
source · Clone the upstream repo
git clone https://github.com/ArchieIndian/openclaw-superpowers
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/ArchieIndian/openclaw-superpowers "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/core/test-driven-development" ~/.claude/skills/archieindian-openclaw-superpowers-test-driven-development && rm -rf "$T"
OpenClaw · Install into ~/.openclaw/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/ArchieIndian/openclaw-superpowers "$T" && mkdir -p ~/.openclaw/skills && cp -r "$T/skills/core/test-driven-development" ~/.openclaw/skills/archieindian-openclaw-superpowers-test-driven-development && rm -rf "$T"
manifest:
skills/core/test-driven-development/SKILL.mdsource content
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