Skip to content
Back to skills

Openmotion Game

ASecurity

Build, remix, validate and locally publish playable single-player browser games through the OpenMotion game tools, including a consistent art direction and real generated image, music and voice assets when media models are available.

  • 7 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 25, 2026
ai-agentsgoshellnodeapi

Works with

  • cli
  • api
  • mcp

Security analysis

A100/100

Pro scans all 20 files and shows the line behind each finding

Scanned November 25, 2026

npx -y skills add OpenDesignHQ/opengame --skill openmotion-game --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Openmotion Game?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Openmotion Game
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/opendesignhq-openmotion-game/badge)](https://www.skillsdirectory.com/skills/opendesignhq-openmotion-game)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: openmotion-game
description: Build, remix, validate and locally publish playable single-player browser games through the OpenMotion game tools, including a consistent art direction and real generated image, music and voice assets when media models are available.
---

# OpenMotion Game Studio

Turn a one-line brief into a verified local single-player browser game. Resume an explicitly supplied game id, or call `openmotion_game_create` (**pass `style: "3d"` on any 3D brief** so vendored Three.js is scaffolded) and read `openmotion_game_get` before editing. Use Remix on a read-only template to create an owned draft. If the user asks for multiplayer, explain that authoring is single-player and ask before adapting (existing multiplayer games remain playable/inspectable). Starter drafts (`plan.md`/`verification.md`) are inputs to revise, never evidence.

## 1. Route First — Read Only What Applies

Ask **at most two short questions** only when missing: local-market publication consent and (when paid multimodal assets are planned) one batched asset/spend confirmation. Choose your route before writing code, and **load only the matching references** (never pull 3D docs into 2D runs, multiplayer room docs into solo runs, or `game-playable-ad.md` into normal games):

| Decision | Options & Rule | Read Only When Matched |
|---|---|---|
| **3C & Space** | Pick 1: `discrete-ui` / `realtime-2d` / `realtime-3d` | [game-3c-modules.md](references/game-3c-modules.md) + [game-feel-craft.md](references/game-feel-craft.md) |
| **Core Loop** | Pick 1 primary (+ ≤ 1 secondary): `puzzle-pressure` / `strategy-combo` / `skill-flow` / `progression-rng` / `sandbox-explore` | [game-genres.md](references/game-genres.md) |
| **Runtime Architecture** | **Rule/score/turn-heavy or balance-sensitive** → keep deterministic `logic.js` + `openmotion_game_simulate`. **High-density realtime 3D / sandbox / free exploration** → modular local ESM (`src/*.js`) verified via `window.__omGame.runSelfTests()` + multi-shot `openmotion_game_playtest`. Hybrid (macro rules in `logic.js`, physics in client) is also valid. | [game-flow.md](references/game-flow.md) |
| **Track** | **`Full Track`** for `realtime-3d`, `puzzle-pressure`, `strategy-combo`, multi-level/playable-ad, or generated multimodal assets; **`Fast Track`** otherwise | [game-gates.md](references/game-gates.md) |
| **Specialty Assets** | Load strictly on demand: 2D sprites / PBR textures / 3D models / procedural rigs / audio | [sprites](references/game-2d-animation.md), [textures](references/game-textures.md), [3D](references/game-3d-animation.md), [procedural](references/game-procedural-animation.md), [audio](references/game-audio.md) |
| **Playable Ad** | Only when brief says **Format: playable ad** (overrides entry, storage, single-file inline HTML, QA) | [game-playable-ad.md](references/game-playable-ad.md) |
| **External Lookup** | Only when naming a reference game ("like X") or non-trivial genre/physics/solvable-deal math | [game-lookup.md](references/game-lookup.md) |

**Priority order:** `1. Safety / IP / runtime / spend boundaries` > `2. Explicit user intent ([locked] reference game, style, layout, rules)` > `3. Genre authenticity, 3C readability & invariants` > `4. Open creative exploration` (when style is unlocked, reject the genre's first cliché and starter-kit graybox shell).

## 2. Core Workflow (Concurrent Overlap → Single Integration)

1. **Plan & Genre Authenticity Anchor** ([brief standard](references/game-brief.md), [style](references/game-stylization.md)). Before coding, answer three questions in `design/plan.md`:
   - *First-glance identity*: What camera, spatial layout and UI language make the player recognize this exact genre within 2 seconds?
   - *Native fun engine*: What core verb/interplay delivers this genre's authentic feeling (never collapsing into a generic dodge-or-collect starter reskin)?
   - *Native progression/outcome*: Does this game belong to win/loss, score-chaser, branching narrative, or open sandbox exploration?
   Record **1 Signature Twist + 1 Peak Moment**, 3–5 concrete game-specific invariants (Hard Fails), top `config` tuning levers, `design/style.md` (concise cohesive English style direction), and `design/assets.csv`.
2. **Multimodal-First Asset Routing (Single Source of Truth).** Do not default to primitive code-drawn people, illustrations, or silent scenes when fitting models are connected:
   - **Pure-code & Playable Ad boundary**: playable ads keep all assets inline in HTML, and pure code-driven gameplay-first games without an explicit request for generated art, voice, music, or video stay outside media setup, sign-in, and upgrade prompts (matching Motion's pure-native boundary — build and deliver directly, marking assets `authored code` in `design/assets.csv`, without calling `openmotion_open_preview` or suggesting media upgrades).
   - **Discover live capabilities**: call `openmotion_capability_discover` (`list`/`providers`/`models`) when exposed, otherwise `openmotion_media_use` (`action:"inspect"` passing `modality` — `"image"`, `"video"`, or `"audio"` — when checking a specific asset type so an image-only provider does not hide a missing audio/video handoff, then `models` with `refresh:true` and `reference`). Prefer usable signed-in OpenDesign (`account` → `opendesign`, `mediaEntitlement` `included` or signed-in `unknown`, not `not-included`), then other configured providers. Use only live-returned capability/model IDs.
   - **Unavailable, plan-gated, or low-balance recovery**: if the user explicitly asks for generated multimodal assets (character art, portraits, anime visuals, voice acting, custom music, or video) and no fitting model is usable for that modality, call `openmotion_open_preview` with the modality-scoped `settingsHandoff` from `openmotion_media_use(action:"inspect", modality=...)` (`entry:"agent_media_signed_out"`, `"agent_media_upgrade_free"`, `"agent_media_upgrade_go"`, or `"agent_media_key_rejected"`) and pause in one turn with two clear choices: (1) sign in / upgrade to OpenDesign Plus (or save an API key) and reply to continue with AI assets, or (2) build a playable code-placeholder prototype first; re-inspect after the user confirms setup. Do not pre-block Plus+ accounts on cached `hasBalance`; if a real generation request fails with low balance (`balance is too low` / `insufficient_balance`), stop without retrying, call `openmotion_open_preview(target:"providers", entry:"agent_media_balance_low")`, and ask the user to top up and reply to resume.
   - **Route by visual dominance**: prioritize highest-fidelity generation on focal anchors (key art/cover, characters, cards/tiles, seamless 3D textures, BGM, voice; synthesize short SFX in Web Audio). For 3D assets, check live 3D capability first; local/supplied `.glb` models can be imported via `openmotion_asset_manage` / `openmotion_assets_use` (`action:"import"`, `modality:"3d"`) and inspected with `node scripts/game-glb-inspect.mjs`.
   - **One consent → launch concurrently → inspect once**: ask spend consent once for the whole planned batch (skip if already granted or enforced by a host tool-approval gate; stop after planning if waiting for consent rather than building a throwaway fallback first). Once approved, submit independent assets concurrently with unique `requestId`s via `openmotion_capability_run` (prefer live atomic capabilities like `remove-background`, `relight`, `image-blend`, `music`, `speech`) or `openmotion_assets_use action:"generate"`. **Build the core logic and 3C chassis while jobs run**, poll `openmotion_job_manage` / `action:"status"`, inspect images together via batch contact-sheet `read` (`items:[{assetId,versionId},...]`), and embed each completed asset by its literal `/motion-api/assets/<assetId>/versions/<versionId>/media` URL (never base64 or dynamic URL concatenation). Fall back to procedural/CC0 art only when unavailable or declined, and record why in `design/assets.csv`.
3. **Build (`set_status("building")`, `write_files`)** ([game-gates.md](references/game-gates.md), [game-flow.md](references/game-flow.md)). Batch cohesive multi-file edits into single `openmotion_game_write_files` calls. Wire completed generated media directly into active gameplay/character scenes (not title-only) with graceful loading/fallback states. Expose `window.__omGame = { getState, getStats, sendAction, runSelfTests }` so the harness can read state and run project-specific invariant checks.
4. **Verify (Match the Harness to the Game).**
   - Run `openmotion_game_validate` (validates `logic.js` VM when used, or local ESM import graph + CSP/hosts for modular solo games).
   - For win/loss, puzzle, strategy or progression games using `logic.js`, run 3-tier `openmotion_game_simulate` (`reference` win, explicit weak route struggling/losing, `idle` loss `< 2500` ticks; use fast local Node sweeps when tuning math).
   - For all games — and as primary verification for `realtime-3d` / `sandbox-explore` — run consolidated `openmotion_game_playtest` with explicit per-client `scripts` including `{ type: "action", action }` (calling `window.__omGame.sendAction` to jump to key states) and `{ type: "screenshot", label }` (automatically tiled into `contactSheetPath` when ≥2 captures exist), `waitForReadyMs` for async-loading builds, and `window.__omGame.runSelfTests()` checking your 3–5 core physical/spatial/lifecycle invariants. Inspect screenshots/contact sheet against [review-rubric.md](references/review-rubric.md) and log real measurements + `Known gaps (P2)` in `design/verification.md`.
5. **Deliver (`capture_cover` → `verification.md` → `validate` → `update_meta` → `ready` → authorized `publish`).** Always use `openmotion_game_capture_cover` (never the user's visible browser or desktop), inspect diagnostics and cover image, then set concise title, description, controls and `zh-CN` metadata via `openmotion_game_update_meta`. Remember `write_files` demotes `ready` to `building`.
6. **Sharing, WeChat Mini Game & Offline Export.** `openmotion_game_publish` is workspace-local only. For a public link (when explicitly requested and signed in), run `openmotion_assets_use` (`action:"web_publish"`, `targetKind:"game"`, `command:"publish"|"status"|"unpublish"|"list"`). If `web_publish` fails because OpenDesign is signed out (`OPENDESIGN_SIGN_IN_REQUIRED` / `AUTH_REQUIRED`), do not retry in a loop — explain that online publishing requires signing in with OpenDesign and direct the user to click the inline "Sign in & publish" action card (or Publish button), then reply to retry. Inside Studio / Super Agent, do **not** also call `openmotion_open_preview(target:"providers")` or present `/settings/providers` as a web artifact (the inline publish sign-in card already handles sign-in in place); only external MCP-only hosts without Studio's inline card should call `openmotion_open_preview` with `target:"providers", entry:"agent_media_signed_out"`. Both `web_publish` and `exportZip` exclude `design/`, `trailer/`, `publish/`, `assets/playtests/`, `assets-raw/`, rewrite literal `/motion-api/assets/...` URLs, and auto-transcode large PNG/JPEG and embedded GLB textures to WebP while preserving geometry. When the user wants the game on WeChat, follow [the WeChat Mini Game guide](references/wechat-minigame-port.md): guide them in this conversation one step at a time with `openmotion_game_wechat` (read `status` first; the right-side panel only shows progress), and port the game into `wechat-minigame/` with its smoke test.
7. **Final message** (plain language, user's language, no tool names/ids/JSON): bold playable summary; play link (and public link if requested); controls + 3–5 `config` tuning levers verified against final code; verified vs unverified (human fun, real GPU/touch, audio); spend note and cover path; up to 5 numbered P2 items per [game-gates.md](references/game-gates.md#reporting-p2-to-the-user).

## MCP Resources & Optional Post-Publish Trailer

MCP-only hosts read `openmotion://workflow/game/<section>` (`start`, `brief`, `gates`, `controls`, `craft`, `lookup`, `design`, `style`, `genres`, `playable`, `flow`, `sprites`, `animation`, `procedural`, `textures`, `audio`, `review`, `provenance`, `wechat`) and `openmotion://workflow/media/*`.

After publishing, optionally offer `openmotion_game_trailer` (`{ id, action: "start" | "status" }`). Wait for `status: "ready"`, inspect the silent 1280×720 MP4/clips, and report `projectId` and `videoUrl` honestly.

## Mandatory Multiplayer Entry Acceptance

For diagnosing or verifying existing multiplayer projects only: clients must auto-join from `?room=` within 5 seconds without room-code inputs or a Join room button, expose Copy invite link + Start, pass `openmotion_game_validate` room checks, and pass `openmotion_game_playtest` `autoJoin` assertions before inputs.

See [PROVENANCE.md](PROVENANCE.md) and [LICENSE-HIGGSFIELD](LICENSE-HIGGSFIELD).

Files in this skill

  • LICENSE-HIGGSFIELD1 KB
  • PROVENANCE.md1.2 KB
  • SKILL.md12.7 KB
  • references/game-2d-animation.md18.1 KB
  • references/game-3c-modules.md5.4 KB
  • references/game-3d-animation.md7 KB
  • references/game-audio.md7.3 KB
  • references/game-brief.md4.5 KB
  • references/game-design-system.md2.5 KB
  • references/game-feel-craft.md5.1 KB
  • references/game-flow.md7.5 KB
  • references/game-gates.md6.2 KB
  • references/game-genres.md8.5 KB
  • references/game-lookup.md4.9 KB
  • references/game-meshy-input-rules.md2.1 KB
  • references/game-playable-ad.md42.3 KB
  • references/game-procedural-animation.md5.4 KB
  • references/game-stylization.md5.3 KB
  • references/game-textures.md10 KB
  • references/review-rubric.md4.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.