Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

native-game

БесплатноБез исполняемых скриптовНе проверен

Build or revise a playable 2D or 3D game in NodeTool's built-in engine: create and edit the document, generate and install art and audio, playtest and…

nodetool-aiот nodetool-ai★ 674 звезды на GitHub

Об этом скилле

Build a native game

Create and edit a versioned built-in game document. The engine owns simulation, rendering, and web export. The default is a playable 2D top-down room. Use dimension: "3d" for an exploration blockout with a capsule controller, follow camera, ramps, a moving platform, a crate and scripted interactions.

Load game-direction before the first edit of a new game, an art overhaul, or a game that plays but feels flat. Lock its style string, layer plan, feel parameters, and pacing sheet, then keep later edits and asset prompts consistent with that spec. Load native-game-reference when an edit needs script hooks, events, lighting, effects, particles, 3D rendering, the audio mix, animation graphs, input bindings, the HUD tree or performance fields. Load native-game-performance before building a 3D game and before reporting any game as done. Load api-games before calling nodetool.games from a code action.

Build and revise

  1. create_native_game {project_id, name, dimension?} creates a playable draft and returns its full id and current immutable revision. Resource ids may be full ids or exact 12-character prefixes.
  2. get_native_game {game_id, view: "outline"} reads the compact draft outline. Use view: "entity" with entity_id for one entity or view: "full" for the whole document. source: "revision" reads an immutable revision.
  3. edit_native_game {game_id, base_updated_at?, ops} applies ordered ops to the draft and validates the result atomically. Use the draft_updated_at from a read for compare-and-swap when an edit depends on that exact state. Invalid edits return an op index and field path. A generated level can replace the whole draft with ops: [{op: "set_document", document}]. The replacement preserves the stored game id and revision and supports undo.
  4. Prove it plays. playtest_native_game {game_id, inputs?, assertions?, capture_ticks?} runs the draft for up to 18,000 ticks, subject to the wall time budget. An input can repeat with ticks. justPressed fires on the first repeated tick. autoplay_native_game {game_id, target_prefix? | win?, player_id?, seed?, max_ticks?} steers a supported 2D player and returns an executed route, observed win tick, target contacts, and authored level stats. It needs a player with a movement behavior, or a script player with left and right actions, and takes jump from a jump, space or up action. A prefix selects every matching authored collider, whose IDs must be unique across scenes. Win steering targets collectibles or an authored win or victory trigger. Other scripted goals need target_prefix. A failed steering search or exhausted budget does not prove the game impossible. Replay route as playtest inputs with the same seed, and check route_complete before accepting the replay. A target contact alone does not prove completion.
  5. Assert what the replay proves. 2D playtests accept three forms, and any other returns Unsupported assertion:
    • {event: "win", before_tick?} requires an engine win or a scripted win or victory trigger. {event: "<name>"} requires that emitted event.
    • {entity_id, near: {x, y, tolerance}, at_tick?} checks a position.
    • {no_script_errors: true} fails on the first script error. 3D playtests add region, grounded and replay_matches (see 3D authoring).
  6. Look at it. capture_native_game_frame {game_id, ticks?, sheet?} renders up to eight frames and returns image refs (asset_id, uri), not pixels. Call view_image on each ref you judge, as a direct tool call, before reporting visual changes or polish. Inside a code action the pixels cannot arrive. sheet: true returns one contact sheet. Captures report cancelled, wall_time_limited, and route_complete. An interrupted capture returns only frames rendered before interruption.
  7. Pass the performance gate before you report the game as done, and again at each milestone: blockout, art pass, effects pass. With a shell, run nodetool game bench, nodetool game capture --fail-on-budget and nodetool game perf --fail-on-budget on a route through the busiest part of the game, as native-game-performance describes. The game passes when all three exit 0. Report the measured tick p95, frame p95, draw calls and triangles. Without a shell, apply that skill's budgets and authoring rules and give the user the nodetool game perf command.
  8. Generate assets (see Assets). Confirm scope before spending.
  9. publish_native_game {game_id, base_revision} publishes the current draft only when the user asks. For an explicit document, pass the paired draft_updated_at returned by get_native_game as base_updated_at. On a conflict, read the draft and reconcile edits.
  10. build_native_game {game_id, revision?, target?} writes a standalone web player for an owned revis
Полный SKILL.md на GitHub

Установить native-game в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл native-game?

Build or revise a playable 2D or 3D game in NodeTool's built-in engine: create and edit the document, generate and install art and audio, playtest and autoplay a route, capture frames, publish, and prepare a standalone web build. Also the entry point for making a game look or feel better. For a glTF model use nodetool-3d-scene. For nodetool.games calls inside a code action use api-games.

Как установить скилл native-game?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл native-game запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить native-game с