starwards-tdd
SKILL.md
Test-Driven Development for Starwards
Overview
Write the test first. Watch it fail. Write minimal code to pass.
Core principle: "If you didn't watch the test fail, you don't know if it tests the right thing."
Starwards-specific: Test state sync, decorators, multiplayer scenarios, and UI interactions.
When to Use
Always:
- New ship systems (@gameField decorators)
- New space objects (Spaceship, Projectile, etc.)
- Bug fixes in game logic
- UI widget changes (Tweakpane panels)
- Multiplayer scenarios (Colyseus state sync)
- Command handlers (JSON Pointer or typed commands)