/vault-game-dev:cat-game-architecturefrom vault-game-dev
Applies the GDC 2026 "AI-Driven 3D Game Prototyping" C.A.T framework (Code Reuse, Adapter Design, Token-Friendly) to game codebases. Audits a project against the standard, refactors a game-engine monolith into a platform-agnostic core plus platform adapters, and adds a tokenized text representation of the 3D world so AI agents can edit game rules safely. Use when the user asks to test/apply that GDC 2026 paper's workflow on a codebase, make a game AI-editable or token-friendly, split a game into core/adapters, or audit a game engine for AI-driven development readiness.
Ships in vault-game-dev. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Distilled from Hao Yang (Tencent Photon Studio Group), AI-Driven 3D Game Prototyping, GDC 2026. The framework lets a language model build/edit playable 3D games by making the codebase AI-safe: pure game rules decoupled from platform code, and the 3D world exposed as text.
| Letter | Principle | Acceptance criterion |
|---|---|---|
| C | Code Reuse | Game logic ships as runtime-agnostic TypeScript. No logic file imports three/react/zustand/DOM/WebAudio. |
| A | Adapter Design | Hard core/adapters split: core/ = rules/state/AI (zero platform deps); engine/ = rendering/input/audio/UI binding. Side effects leave the core only as typed events. |
| T | Token-Friendly (most critical) | The 3D world is serialized to text: domain rules, arena bounds, collider table, named markers, entity state. "Game tools were built for humans. Stop expecting AI to see pixels." |
Audit the three letters against concrete evidence. Do not skip this; the report drives the refactor and becomes the doc trail.
wc -l / line count). Grep the candidate logic files for platform imports: rg "from '(three|react|zustand)'|window\.|document\.|HTMLCanvasElement".scene.createXMesh, audio.playX, store.setGame inside update loops). Identify already-pure modules (types, constants, data tables).Record the verdict as a C/A/T table with file:line evidence, e.g. the table in references/worked-example.md.
src/core/ (or equivalent): types.ts, constants.ts, math.ts, data/ tables (weapons/enemies/bosses/skills).tsc before proceeding.core/simulation/events.ts): SimEvent = sound | explosion | fx — the only way the core signals the outside world.Simulation class (rules, movement, AI, spawning, boss patterns, collisions). Replace every side effect with an event emission:
audioManager.playX(...) → { type: 'sound', sound: 'x' }scene.createExplosion(...) → { type: 'explosion', pos, color, size }store.triggerX(...) / camera shake → { type: 'fx', fx: '...', value }TickInput):
crosshairDir (world aim direction from camera+mouse)aimOrigin (camera world position, for ray tests)smartTargetId (screen-space smart-circle pick)lockStickPoint (normalized screen pos of the lock target, for aim stick)rawAim (raw normalized mouse)
The sim stays pure math; the adapter owns all matrices.GameEngine) as a thin adapter:
TickInput per step, run sim.update(dt, tick)time by the fixed stepcore/world/world.ts): single source of truth for arena bounds, collider table (per entity radius), named markers (player start, boss arena, camera home, spawn band), spawn bands, caps, pacing, lock parameters. The sim imports helpers from it (e.g. hitRadiusFor(type)).core/world/worldText.ts): pure functions producing prompt-ready text:
describeWorld() — manifest as textdescribeRules() — controls, win/lose, economy, weapon/enemy/boss tablesdescribeEntities(sim) — live state: player HP/EN/weapon/combo, per-enemy pos/hp/state/dist, projectile countsbuildPromptContext(sim) — combined full contextwindow.__gameManifest = () => buildPromptContext(sim) and window.__sim guarded by import.meta.env.DEV (production builds tree-shake the hook).tsc + full build green.__gameManifest() contains world manifest + rules + live state.core/ imports nothing platform-specific. Grep-verify after every batch.MAX_ENEMIES, MAX_PROJECTILES) stay in the sim — they are gameplay, not rendering.references/worked-example.md)time) are the classic silent regression.setPlayers with the same array reference does not re-render React (zustand Object.is); do not rely on it for change detection.references/cat-framework.md — the GDC 2026 talk summary (principles, Tencent stack, proof points).references/audit-checklist.md — concrete PASS/FAIL criteria with grep commands per letter.references/worked-example.md — full before/after of the Pure White Lancer refactor (audit findings, target structure, TickInput design, verification results).What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub yhyu13/agentskillsvault --plugin vault-game-dev31 skills in this plugin
/ai-3d-scene-pipeline用 AI 生产 3D 场景/关卡的完整链路:概念多视角参考图 → 资产拆解分流(Tripo 生成 vs Blender 代码搭建)→ Tripo 出高精度道具 → Opus 级模型驱动 Blender + Unity 组装 → 独立审查 Agent 多机位盲审迭代。Use when the user wants to build or replicate a 3D scene with AI(3D 场景搭建 / 关卡复刻 / Tripo 资产生成 / 参考图还原 / 多机位验收)。/animationGame-ready animation in Blender including walk/run/idle cycles, combat, mechanical animation, camera animation, constraints, Graph Editor, and NLA workflows via MCP./blender-directorUse when starting any Blender asset task, planning a production pipeline, coordinating multiple disciplines, or matching a reference photo/concept art. Invoke for game-ready assets, hard surface, environment, character, creature, export, or any multi-skill Blender workflow.