add-3d-assets
Replace primitive 3D shapes with real GLB models — animated characters, world props, buildings, and scenery for Three.js games.…
Game QA testing with browser tests (Chrome over the DevTools protocol, no npm dependency) — visual regression, gameplay verification and performance for browser games. Use when writing or running game tests, debugging test failures, or building QA infrastructure. This is the
Claude Code
$ npx -y skills add playableintelligence/game-creator --skill game-qa --agent claude-code
Codex
$ npx skills add playableintelligence/game-creator --skill game-qa -a codex -y
Cursor
$ npx skills add playableintelligence/game-creator --skill game-qa -a cursor -y
Gemini CLI
$ npx skills add playableintelligence/game-creator --skill game-qa -a gemini-cli -y
GitHub Copilot
$ npx skills add playableintelligence/game-creator --skill game-qa -a github-copilot -y
OpenCode
$ npx skills add playableintelligence/game-creator --skill game-qa -a opencode -y
Windsurf
$ npx skills add playableintelligence/game-creator --skill game-qa -a windsurf -y
name: game-qa description: Game QA testing with browser tests (Chrome over the DevTools protocol, no npm dependency) — visual regression, gameplay verification and performance for browser games. Use when writing or running game tests, debugging test failures, or building QA infrastructure. This is the reference skill — use qa-game for the user-facing command. argument-hint: "[topic]" license: MIT compatibility: Requires Node.js 22+ (or Bun) and Google Chrome for browser-based game testing. metadata: author: OpusGameLabs version: 1.3.0 tags: [game, qa, testing, cdp]
You are an expert QA engineer for browser games. You use the plugin's dependency-free browser helpers (`scripts/cdp.mjs` and `scripts/browser-test.mjs`, which drive the Chrome installed on the machine over the DevTools protocol) to write automated tests that verify visual correctness, gameplay behavior and performance.
For detailed reference, see companion files in this directory:
When adding browser tests to a game project, copy the helpers from the plugin (no npm install; needs Node 22+ or Bun and Google Chrome, or set `BOOP_CHROME=/path/to/chrome`):
mkdir -p scripts cp <plugin-root>/scripts/cdp.mjs <plugin-root>/scripts/browser-test.mjs scripts/
Add to `package.json` scripts:
{
"scripts": {
"test": "node --test --test-concurrency=1 \"tests/**/*.spec.js\"",
"test:headed": "BROWSER_TEST_HEADED=1 node --test --test-concurrency=1 \"tests/**/*.spec.js\"",
"test:update-snapshots": "BROWSER_TEST_UPDATE_SNAPSHOTS=1 node --test --test-concurrency=1 \"tests/**/*.spec.js\""
}
}tests/ ├── e2e/ │ ├── game.spec.js # Core game tests (boot, scenes, input, score) │ ├── visual.spec.js # Visual regression screenshots │ └── perf.spec.js # Performance and FPS tests ├── fixtures/ │ ├── game-test.js # Custom test fixture with game helpers │ └── screenshot.css # CSS to mask dynamic elements for visual tests ├── helpers/ │ └── seed-random.js # Seeded PRNG for deterministic game behavior scripts/ ├── cdp.mjs # Chrome over the DevTools protocol (copied from the plugin) └── browser-test.mjs # test/expect on node --test (copied from the plugin) browser.config.mjs
`browser-test.mjs` reads `timeout`, `expect`, `use`, `projects` and `webServer` (retries, workers, reporters and traces are not supported).
export default {
testDir: './tests',
timeout: 30000,
use: {
baseURL: 'http://localhost:3000',
screenshot: 'only-on-failure',
},
expect: {
toHaveScreenshot: {
maxDiffPixels: 200,
threshold: 0.3,
},
},
projects: [
{ name: 'chromium', use: { viewport: { width: 1280, height: 720 } } },
{ name: 'mobile-chrome', use: { viewport: { width: 393, height: 851 }, deviceScaleFactor: 2.75, isMobile: true, hasTouch: true } },
],
webServer: {
command: 'npm run dev',
url: 'http://localhost:3000',
reuseExistingServer: true,
},
};Key points:
For browser tests to inspect game state, the game MUST expose these globals on `window` in `main.js`:
// Expose for browser QA window.__GAME__ = game; window.__GAME_STATE__ = gameState; window.__EVENT_BUS__ = eventBus; window.__EVENTS__ = Events;
Returns a concise JSON string of the current game state for AI agents to reason about the game without interpreting pixels. Must include coordinate system, game mode, score, and player state.
window.render_game_to_text = () => {
if (!game || !gameState) return JSON.stringify({ error: 'not_ready' });
const activeScenes = game.scene.getScenes(true).map(s => s.scene.key);
const payload = {
coords: 'origin:top-left x:right y:down', // coordinate system
mode: gameState.gameOver ? 'game_over' : 'playing',
scene: activeScenes[0] || null,
score: gameState.score,
bestScore: gameState.bestScore,
};
// Add player info when in gameplay
const gameScene = game.scene.getScene('GameScene');
if (gameState.started && gameScene?.player?.sprite) {
const s = gameScene.player.sprite;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.…