Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Openmotion Game?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/nexu-io-openmotion-game-opengame)
---
name: openmotion-game
description: Find/preview game assets and build, remix, validate, and publish single-player browser games via OpenMotion tools and multimodal media.
---
# OpenMotion Game Studio
For **2D/3D sourcing** see [sourcing](references/game-model-sourcing.md) (`openmotion://workflow/game/sourcing`); for **asset previews** call `openmotion_asset_manage(action:"present_asset", conversationId, path|assetId+versionId)` (exact GLB `animation`; BVH skeleton only).
For local 3D, [generate on your device](references/game-local-generation.md) or [rebuild a mesh part from reference views](references/game-local-parts.md). For lighting and web export, use [cinematic scene rendering](cinematic-scene-rendering/SKILL.md).
## 0. Built-in Template Remix Path
When `remixOf` points to a ready built-in template, infer whether custom edits were requested:
- **Commercial/IP remake**: keep Q&A read-only; on template copies break fast path, read [remake](references/game-original-remake.md) (`openmotion://workflow/game/remake`), and create a fresh project; casual remixes stay fast.
- **No edits asked** (empty/unchanged brief, no overrides/attachments): skip `write_files`/`validate`/`playtest`/`simulate`/`capture_cover`; call `set_status(id, "ready")` + `present_artifact(kind="game-project", projectId=id)` (`game_get` only if controls missing).
- **Edits asked**: keep preview playable (no `set_status("building")`/full rewrite). Inspect touched files via `game_get` + `game_read_file` -> in-place `game_write_files`, keep working audio/engine, skip `design/*.md`, verify once (<= 2 passes), update cover/meta if changed, then `set_status(id, "ready")` + `present_artifact` after the final playable write.
- **Reply voice**: open in user's language as builder (`"《<title>》已为你制作完成……"` / `"I've built <title> for you — ..."`), summarize highlights + controls; never mention templates, copying, internal skills/tools or skipped checks.
## 1. Intent Precedence & Strict Read Budget
- **User intent first (single-player only):** Multiplayer: explain single-player scope, ask first. Treat composer selections (tab, genre, style, orientation, `playableAd`) as `non-binding`, never hard overrides. Answer read-only Q&A without creating or editing games. Commercial/ad-monetized mini-games (saves, progression, rewards) are regular games, NOT **30–60 s buy-side playable ads**; clear mismatched flags via `openmotion_game_update_meta(playableAd=false, ...)`.
- **Consent:** Do **not** ask upfront for local-market publication consent — call `openmotion_game_publish` only when the user explicitly asks to publish. For paid media, skip inside Studio or any host that manages generation consent; in external MCP hosts without built-in controls, ask one batched spend confirmation.
- **Pick ONE track (never bulk-read unrelated refs via `openmotion://workflow/game/<section>`):**
- **`Fast Track` (default for 2D games & custom remixes, including 3–4 visuals + BGM/SFX; BGM-only generation does not upgrade a `Fast Track` game):** Read **`start` only** (plus `minigame` on portrait casual/IAA); skip `design/*.md` and deep dives.
- **`Full Track` (`realtime-3d`, multi-level `strategy-combo`/`sandbox-explore`, explicit buy-side `playable-ad`, or >= 5 generated visual/3D assets):** Read `<= 2` optional matched refs (plus mandatory `animation`/`playable`/`lookup` when triggered); `<= 1` brief `design/plan.md` (+ `design/assets.csv` for multi-asset batches).
| Trigger | Load Strictly On Demand |
|---|---|
| **`realtime-3d` (mandatory before assets)** | [3D & vendored kits](references/game-3d-animation.md) (`animation`) |
| **9:16 portrait casual / one-hand / IAA mini-game** | [portrait mini-game](references/game-portrait-minigame.md) (`minigame`) |
| **Explicit buy-side playable ad** | [game-playable-ad.md](references/game-playable-ad.md) (`playable`) |
| **Commercial remake** | [remake](references/game-original-remake.md) |
| **Named reference ("like X"), idea hunt or solver math** | [game-lookup.md](references/game-lookup.md) (`lookup`) |
| **Optional deep dives** | [**Audio & BGM**](references/game-audio.md), [genres](references/game-genres.md), [gates](references/game-gates.md), [review](references/review-rubric.md), [flow](references/game-flow.md), [style](references/game-stylization.md), [sprites](references/game-2d-animation.md), [textures](references/game-textures.md), [procedural](references/game-procedural-animation.md), [controls](references/game-3c-modules.md), [craft](references/game-feel-craft.md), [brief](references/game-brief.md), [design](references/game-design-system.md) |
Re-read `start` if `openmotion_game_create` returns `runtimeUpdate.skillChanged`; mention restart only on `mcpSchemaChanged`/`restartDeferred`.
## 2. Zero-Friction Build & Verify Loop
**Priority:** `1. Safety/IP/runtime/spend` > `2. User intent` > `3. Genre authenticity & craft` > `4. Speed`.
1. **Direct Start & Never-Ask Defaults:** Skip shell probes and starter reads you replace. Self-decide unspecified defaults (palette, difficulty curve, sound mix, language, controls) and deliver a playable build without preference questionnaires; pause only for multiplayer scope, missing multimodal access, or required spend confirmation. Call `openmotion_game_create` (`style:"3d"` on 3D briefs; `orientation:"portrait"` on vertical; `playableAd:true` ONLY for explicit buy-side playable ads) -> `set_status(id, "building")`. New 2D/portrait drafts ship pure-JS kits in `./kits/` (`OneHandInput.js`, `SafeAudioKit.js`, `PlayableShell.js`); import those instead of re-coding touch/audio/ad boilerplate.
2. **Craft, Art Cohesion & Onboarding Floor:**
- **Cohesive illustrated art:** Pin one concise English style prefix (medium, lighting, muted backdrop < medium playfield < high-contrast hero + signal hue) across all prompts and HUD. Composite sprites cleanly (cutouts, contact shadows, idle motion) — **never ship flat dashboards or crude primitives for focal heroes/structures** unless minimalist/text-only is asked. Keep canvas proportional (center portrait on full-bleed backdrop) with zero HUD overflow at `1280×720`/`720×1280`/`390×844`.
- **First-second clarity & audio:** Playable within 1–2 s after `#start` (first-frame play on `playable-ad`) with pulsing first-action cues, fair 5–8 s opening, escalating risk/reward, keyboard + mouse/touch, hit-stop/shake/popups, **dual-layer audio (looping BGM + crisp SFX)** unless silence asked, reachable win + loss + restart.
3. **Multimodal-First Asset Routing** (skip only on explicit pure-code / no-AI-generation requests — `"original/local art"` still uses multimodal generation):
- **Discover live capabilities first (1 parallel turn):** Call `openmotion_media_use(action:"inspect", modality:"image")` + `"audio"` (and on 3D briefs `openmotion_capability_discover(action:"list", modality:"3d")`; never pass `modality:"3d"` to `openmotion_media_use`). If `paidGenerationPolicy` is `"forbid"`, skip paid generation and use procedural/CC0 + WebAudio. Call `models(refresh:true)`/`describe` only when needed. Prefer signed-in OpenDesign (`included`, `unknown`, or live `entitledModelIds`), then BYOK.
- **Default parallel packs** (reuse pinned style prefix in 1 burst; adjust only if minimalist/pure-code asked):
- *2D multimodal*: **3–4 cohesive visuals** (`1` backdrop + `2–3` focal hero/entity sprites with transparent/isolated ground) **+ 2 audio** (`1` looping BGM + `1` action SFX).
- *3D / Playable ads*: On 3D briefs read `animation` first (1–2 P0 actors via isolated concepts or orthographic 3-view turnaround -> Image-to-3D + 1–2 surface visuals + BGM/SFX; for stylized hard-surface vehicles/turrets/towers/weapons/gates/chests/mechanisms or offline fallback, search built-in `opengame-kits` white-box GLBs (`search_models` query `opengame-kits`), acquire the ID for a publish-safe `mediaUrl`, restyle via `applySemanticPalette` ([3D kits](references/game-3d-animation.md)); no live 3D model -> fall back to 3D meshes only, keeping image/audio active). Playable ads follow `playable` pack rules.
- **Unavailable, plan-gated, or low-balance recovery (mandatory onboarding):**
- *Usable Plus+ or BYOK*: generate normally; never prompt sign-in/upgrades.
- *Missing access / plan gate*: when `inspect` returns `settingsHandoff` with `agent_media_signed_out` (signed out), `agent_media_upgrade_free`/`agent_media_upgrade_go` (no multimodal plan/entitled models — share `upgrade.url`; OpenDesign Plus or API key is required), or `agent_media_key_rejected`, you **must** call `openmotion_open_preview` with it and pause until the user replies (then re-run `inspect`). Do **not** proactively offer or fall back to code-placeholder assets to bypass official multimodal generation — use procedural/CC0 + WebAudio only when `paidGenerationPolicy` is `"forbid"` or the user declines or asks pure-code.
- *Low balance*: never pre-block Plus+ on cached `hasBalance`; on real `balance is too low`/`insufficient_balance`, stop, call `openmotion_open_preview(target:"providers", entry:"agent_media_balance_low")`, then ask to top up.
- **Overlap build & publish-safe media:** Submit `generate` jobs in 1 parallel burst (`requestId`/job), **write code while jobs run**, await in ONE `wait_all` (`jobIds:[...]`; resume timed-out 3D with same `requestId`+inputs; fall back after 1 `GENERATION_TIMED_OUT` on secondary assets), skip `manage` renames, batch-`read` images `<= 1x` (never audio), embed whole literal `/motion-api/assets/<assetId>/versions/<versionId>/media` URLs. **Publish-safe media:** never concat `/motion-api/...`; gate with `if (url)` (never `startsWith('/')`); load sprites progressively via offscreen `new Image()` (never hidden `<img>`, never drop late `onload` on timeout, retry `onerror` 1–2x); wire `<button type="button">` + `click` (never `<form>` `submit`); never block first frame.
4. **Author in ONE Cohesive `openmotion_game_write_files` Batch:**
- **`logic.js` boundary:** Starter `logic.js` is ignored if unimported (`hasLogicModule: false`). Use pure deterministic `logic.js` + `simulate` (`ctx.random()`, `ctx.now`, `ctx.tick`, no `import`/`Math.random`/`Date.now`) for discrete/turn/grid/card/board/fixed-tick rules; for continuous real-time 2D physics/action and ALL 3D, write client ESM directly and skip `simulate`.
- **Mandatory `window.__omGame` hook:** expose `{ getState, getStats, sendAction, runSelfTests }` returning `{ selfId: 'player-1', players: { 'player-1': { connected: true, x, y, z } }, phase, result }` and `{ fps, drawCalls, triangles, entities, tick }`; update coordinates on move (`movementThreshold: 0` for stationary UIs). For action/arcade/pacing games, also emit a compact `tuning.json` (4–8 core feel parameters + 2–3 optional presets), load via non-blocking `fetch('./tuning.json')`, and expose `window.__omGame.tuning = { get, set }` so later feel/difficulty requests use `openmotion_game_tune` (live zero-reload tuning card) instead of rewriting JS.
5. **Verify, Fix Hard Defects & Capped 1-Pass Visual Polish:**
- Run `openmotion_game_validate` once runnable (fix every diagnostic/portability warning; skip `design/*.md` on Fast Track/Remix), and `openmotion_game_simulate` **only when `hasLogicModule` is true** (`reference` wins; `idle` loses `< 2500` ticks).
- Run **1 consolidated `openmotion_game_playtest`** (`<= 8` captures; 3D: `burst` 4 + `<= 4` screenshots) proving real gameplay with real inputs (valid `key`: `a`-`z`/`0`-`9`/`Arrow*`/`Space`/`Enter`/`Escape` — never `KeyA`-`KeyZ`), then `{ type: "action", action }` for win/loss/restart + `runSelfTests()`. On portrait mini-games and playable ads, enable `audioAudit: true` and `personaAudit: true` (plus `containerAudit: true` and URL `query` overrides on playable ads) to verify anti-clip audio, background freeze and 4-persona stability deterministically.
- **Inspect `contactSheetPath` & Revision Freeze:** Fix all hard defects before `ready`, allow **at most 1 focused visual/cohesion/onboarding polish pass** (`write_files` + 1 `playtest` confirmation), then stop. On follow-up revision turns against an already-playable game, preserve working controls, feel, user art and top-level `config` knobs (optionally frozen in `design/contract.json`), triaging changes into **Must-Fix P0**, **Safe Surgical Polish** or **Suggest-Only**. Never use shell on OpenGame internals.
6. **Deliver (`capture_cover` -> `update_meta` -> `ready` -> `present_artifact`):** Finish playable `write_files` first (playable edits reset to `building`, aux dirs keep status; **never finish in `draft`/`building`**). `capture_cover` once (`1280x720`/`720x1280` `assets/cover.png`, never `assets/playtests/...`), `update_meta` (+ `zh-CN` `i18n`), `set_status(id, "ready")`, `present_artifact(kind="game-project", projectId=id)`. Call `openmotion_game_publish` (local), `openmotion_assets_use(action:"web_publish", webPublish:{command:"publish", targetKind:"game", targetId})` (public HTTPS share link on any team/friend share request after `validate`; on `OPENDESIGN_SIGN_IN_REQUIRED` surface `settingsHandoff`, **never local servers/tunnels**; re-publish after follow-up edits), or `opendesign_studio_action(studio="game", action="export")` (channel packages) **only when asked**. Channels: [wechat](references/wechat-minigame-port.md), [taptap](references/taptap-h5-publish.md).
7. **Final Reply** (user's language, no tool names/ids/JSON): bold summary, play link, real controls, 2–3 tweak ideas (note you can generate a public share link for teammates on request), verified vs unverified note (feel/GPU/audio/touch) & caveats, plus spend note if paid generation ran.
## Mandatory Multiplayer Entry Acceptance
Authoring is single-player only. For existing multiplayer games: verify `?room=` auto-join, deterministic `logic.js`, and `openmotion_game_playtest(clients: 2)`.