feature
Plan and implement a feature from the game design doc
SKILL.md.claude/skills/feature
GitHubImplement Feature
Implement a specific feature from the GridRacer design document.
Arguments
$ARGUMENTS - Feature name (e.g., "collision detection", "lap counting", "move preview")
Process
1. Research
- Read
docs/GridRacer Concept.mdfor specifications - Find relevant sections for the feature
- Identify dependencies and prerequisites
2. Plan
- Break into subtasks
- Identify files to modify
- Design data structures if needed
- Consider edge cases from design doc
3. Implement
- Write code following project conventions
- Use value types (structs) for game state
- Integer-only coordinates
- Follow naming conventions
4. Test
- Add unit tests for game logic
- Run
/testto verify - Run
/play-testfor visual verification
5. Document
- Update architecture.md if needed
- Add to known-issues.md if incomplete
Feature Checklist from Design Doc
- Grid rendering
- Movement model (position + velocity + acceleration)
- 9 acceleration options UI
- Path checking (Bresenham's algorithm)
- Collision detection
- Crash handling (life lost, respawn)
- Lap counting
- Win conditions
- AI opponent
- Move preview markers
- Velocity vector display