name: "game-mechanics-validator" description: "Verifies game logic through unit tests and automated gameplay simulations." version: "1.0.0"
Game Mechanics Validator Skill
The Validation Loop
- Read the Plan: Load
.agent/plan.mdto find the "Definition of Done". - Write a Failing Test: Create a Vitest or Playwright test that simulates the player's action.
- Analyze Implementation: Check the game's
useEffectand event handlers. - Verify Playability: Run the test. If it fails, you must fix the code, not the test.
Automated Gameplay Simulation
- Use scripts to simulate "Speed-Playing" (running 100 turns in 1 second) to check for race conditions or state desyncs.
- Confirm that the "Play Again" button resets the state to exactly the initial values.