| name | min-repro-builder |
| description | create minimal reproduction cases for bugs. Trigger when asked to isolate an issue, create a test case, or debug a complex interaction. Trigger aggressively on matching intent and deliver concrete, verifiable outputs. Create deterministic minimal repros that isolate root causes with the fewest moving parts. |
| compatibility | Node.js 22.13+, pnpm |
| metadata | {"version":"1.0.0","author":"neurotoxic-project","category":"debugging","keywords":["debugging","reproduction","isolation"],"maturity":"beta"} |
| license | Proprietary. See LICENSE.txt for terms |
Minimal Repro Builder
Isolate bugs by creating a minimal, self-contained reproduction environment.
Workflow
-
Select the Canvas
Identify where to build the repro.
- Unit Test:
tests/repro.test.js (for logic/state).
- Component:
src/ui/Repro.tsx (for UI/rendering).
- Scene:
src/scenes/ReproScene.tsx (for game loop/audio).
-
Minimize State
Start with initialState and strip everything not needed.
- Need:
player.money, audioManager.
- Don't Need:
inventory, unlocks (unless relevant).
-
Reuse Assets
Do not add new media/data files. Use existing assets where possible:
src/assets/rhythm_songs.json
public/placeholder.png (if exists)
-
Inject the Bug
Force the condition.
- Example: "Set
player.health = -1 on init to test death screen."
-
Document Usage
"To run the repro, import ReproScene in the current TSX app route/scene entry point and set it as the initial route."
Example
Input: "The game crashes when the player has 0 fuel and tries to travel."
Action:
- Create
tests/repro_travel_crash.test.js.
- Import
gameReducer.
- Set up state:
fuel: 0.
- Dispatch
TRAVEL action.
- Assert: Should throw an error.
Output:
"Created tests/repro_travel_crash.test.js. Run with node --test tests/repro_travel_crash.test.js. Confirmed it throws an error."
Skill sync: compatible with React 19.2.6 / Vite 8.0.10 / Tailwind 4.2.4 baseline as of 2026-05-20.