add-3d-assets
Replace primitive 3D shapes with real GLB models — animated characters, world props, buildings, and scenery for Three.js games.…
Add browser QA tests to a game — visual regression, gameplay verification, and performance. Use when the user says "add tests", "test my game", "add QA", "check for bugs", or "add visual regression tests". Do NOT use for manual playtesting or gameplay design.
Claude Code
$ npx -y skills add playableintelligence/game-creator --skill qa-game --agent claude-code
Codex
$ npx skills add playableintelligence/game-creator --skill qa-game -a codex -y
Cursor
$ npx skills add playableintelligence/game-creator --skill qa-game -a cursor -y
Gemini CLI
$ npx skills add playableintelligence/game-creator --skill qa-game -a gemini-cli -y
GitHub Copilot
$ npx skills add playableintelligence/game-creator --skill qa-game -a github-copilot -y
OpenCode
$ npx skills add playableintelligence/game-creator --skill qa-game -a opencode -y
Windsurf
$ npx skills add playableintelligence/game-creator --skill qa-game -a windsurf -y
name: qa-game description: Add browser QA tests to a game — visual regression, gameplay verification, and performance. Use when the user says "add tests", "test my game", "add QA", "check for bugs", or "add visual regression tests". Do NOT use for manual playtesting or gameplay design. argument-hint: "[path-to-game]" license: MIT metadata: author: OpusGameLabs version: 1.3.0 tags: [game, qa, testing, cdp, visual-regression]
Add automated browser QA testing (Chrome over the DevTools protocol, no npm dependency) to an existing game project. Tests verify your game boots, scenes work, scoring functions, and visuals haven't broken — like a safety net for your game.
Analyze the game at `$ARGUMENTS` (or the current directory if no path given).
First, load the game-qa skill to get the full testing patterns and fixtures.
1. Copy the helpers from the plugin: `mkdir -p scripts && cp <plugin-root>/scripts/cdp.mjs <plugin-root>/scripts/browser-test.mjs scripts/` (needs Node 22+ or Bun and Google Chrome; no npm install), and add the `test`, `test:headed` and `test:update-snapshots` scripts from the `game-qa` skill to `package.json` 2. Create `browser.config.mjs` with the correct dev server port and webServer config 3. Expose `window.__GAME__`, `window.__GAME_STATE__`, `window.__EVENT_BUS__`, `window.__EVENTS__` in `src/main.js` if not already present 4. Create the test directory structure:
tests/
├── e2e/
│ ├── game.spec.js
│ ├── visual.spec.js
│ └── perf.spec.js
├── fixtures/
│ └── game-test.js
└── helpers/
└── seed-random.js5. Add npm scripts: `test`, `test:ui`, `test:headed`, `test:update-snapshots`
Write tests based on what the game actually does:
Follow the game-qa skill patterns. Use `gamePage` fixture. Use `page.evaluate()` to read game state. Use `page.keyboard.press()` for input.
Add a `test.describe('Design Intent')` block to game.spec.js. These tests catch mechanics that technically exist but are too weak to matter.
1. **Lose condition**: Detect deterministically whether the game has a lose state. Read `GameState.js` — if it has a `won`, `result`, or similar boolean/enum field, the game distinguishes win from loss. Also check `render_game_to_text()` in `main.js` — if it returns distinct outcome modes (e.g., `'win'` vs `'game_over'`), the game has a lose state.
If a lose state exists: start the game, provide NO input, let it run to completion (use `page.waitForFunction` with the round duration from Constants.js). Assert the outcome is the losing one (e.g., `won === false`, `mode === 'game_over'`).
**This assertion is non-negotiable.** Do NOT write a test that passes when the player wins by doing nothing. If the current game behavior is "player wins with no input," that is a bug — write the test to catch it.
2. **Opponent/AI pressure**: If an AI-driven mechanic exists (auto-climbing bar, enemy spawning, difficulty ramp), test that it produces substantial state changes. Run the game for half its duration without player input. Assert the opponent's state reaches at least 25% of its maximum. If `design-brief.md` exists, use its expected magnitudes for thresholds. Otherwise, derive from Constants.js: calculate `rate * duration` and assert it reaches meaningful levels.
3. **Win condition**: Test that active player input leads to a win. Provide rapid input throughout the round and assert the outcome is a win.
Audit collision and interaction logic for asymmetries that would confuse a first-time player.
If `design-brief.md` has an "Entity Interactions" section, use it as the checklist. Otherwise, audit `GameScene.js` directly:
1. Find all collision handlers, overlap checks, or distance-based interactions 2. Map which entities interact with which others 3. Flag any visible moving entity that interacts with one side (player OR opponent) but not the other — add a `// QA FLAG: asymmetric interaction` comment in the test file noting the entity name and the asymmetry
This is a flag, not a hard fail. Some asymmetries are intentional (e.g., hazards that only affect the player). The flag ensures the asymmetry is a conscious design choice, not an oversight.
1. Run `npm test` to execute all tests 2. If visual tests fail on first run, that's expected — generate baselines with `npm run test:update-snapshots` 3. Run again to verify all tests pass 4. Summarize results
Tell the user in plain English:
`
Go from game idea to deployed, monetized browser game in minutes — not hours. Tell your AI coding agent "make a space invaders game" and get a fully playable 2D or 3D browser game with pixel art, procedural audio, and automated QA. Deploy instantly to the web.
Replace primitive 3D shapes with real GLB models — animated characters, world props, buildings, and scenery for Three.js games.…
Replace geometric shapes with pixel art sprites — recognizable characters, enemies, and items with optional animation. Use when…
Add music and sound effects to a game using the Web Audio API — background music, gameplay themes, and SFX. Zero dependencies.…
Add a new gameplay feature to an existing browser game following its architecture patterns. Use when the user says "add a…
Add real-time or turn-based multiplayer to an existing browser game using PartyKit (Cloudflare Durable Objects). Scaffolds a…
Audit and improve the visual design, polish, and player experience of an existing game. Use when the user says "make my game look…
四柱八字命理分析。通过交互式步骤收集出生信息(姓名、曾用名、阳历/农历生日、时辰、性别、出生地), 排出四柱八字,参照经典命理典籍(穷通宝典、三命通会、滴天髓、渊海子平、子平真诠等)进行专业分析。 Use this skill whenever the…
Generate, texture, rig, animate, stylize, convert, and download 3D assets for Three.js games via the Tripo API. Use for…
Use this skill when authoring or extending an Unreal Engine toolset, a class of static, AI-callable functions registered with…
Code-drawn stills, films, 3D motion graphics, explainers and web animations in 32 styles, with scores, narration and subtitles.…