threejs-game-generator-skill
Installation
SKILL.md
Three.js Game Generator
Turn a game brief or an unfinished Three.js scene into a small, complete browser game. Lead with one satisfying playable loop, make the direction original, work in the user's existing stack, and verify the result in a real browser.
Choose the operating mode
- New game: create the smallest maintainable project that fits the request. Default to Three.js with Vite when no stack exists.
- Existing game: preserve the package manager, architecture, routes, assets, controls, and working systems. Change only what the requested outcome needs.
- Scene-to-game: keep the useful scene, then add an explicit goal, player verbs, feedback, failure or completion, restart, and progression.
- Polish pass: profile and play the current build before changing it. Fix broken feedback, camera, controls, pacing, performance, and state transitions in that order.
Do not publish, buy assets, call paid services, or mutate external systems unless the user explicitly asks.
Establish the game contract
Infer what is missing when the brief is loose, but do not silently expand a prototype into a large production.
Write a compact contract before implementation: