Command Palette

Search for a command to run...

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

api-games

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

Call nodetool.games from a code action: create or install a built-in game, read and edit its draft, write a whole generated level, generate and install art…

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

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

nodetool.games

A built-in game runs in NodeTool's native 2D or 3D engine. It has a mutable draft and immutable revisions. Play is deterministic, so a playtest with the same seed and inputs gives the same result. How to build one is native-game, and feel, pacing and art direction are game-direction. This is the call reference.

Every id is the full game id or its exact 12-character prefix.

Call Does
list({project_id, limit}) Lists your games, newest first, with each one's project, current revision and draft_updated_at. Omit project_id to list games in every project you own.
create(name, {project_id, dimension, template}) Creates a game in a project. dimension is 2d (default, a playable top-down room) or 3d (an exploration blockout). template is topdown or exploration. Answers the full id and the revision.
get(id, {source, revision, view, entity_id}) Reads the draft (default) or a revision. view is outline (default), entity or full.
edit(id, ops, {base_updated_at}) Applies ordered edits to the draft atomically. Issues come back with the op index and path. It does not publish.
setDocument(id, document, {base_updated_at}) Writes a whole document as one set_document edit, validated atomically.
previewAuthoring(id, {program, base_updated_at, expected_document}) Rebakes retained construction without writing. Returns a candidate, entity/dependency changes, conflicts and restart policy. Omit program to rebuild the saved construction.
applyAuthoring(id, candidate) Recomputes and applies the preview against its exact draft. Rejects stale or changed candidates and unresolved conflicts.
generateAsset(id, slot, kind, prompt, opts) Makes or imports an asset and binds it to the draft.
installAsset(id, slot, binding, {base_revision, base_updated_at, candidate_workspace_id}) Installs one staged asset. The staged bytes must match binding.digest.
playtest(id, {source, revision, seed, inputs, assertions, capture_ticks}) Runs up to 18,000 ticks with run-length inputs and assertions, and captures up to 8 frames.
autoplay(id, {win, target_prefix, seed, player_id, max_ticks, source, revision}) Searches for a route to a win or to an entity prefix. Answers replayable inputs, the win tick and level statistics. An exhausted budget is inconclusive.
capture(id, {ticks, inputs, seed, camera, overlays, scale, sheet, source, revision}) Renders up to 8 frames for a visual review.
publish(id, {base_revision, message}) Saves the draft as an immutable revision, only when the user asks. base_revision is required, and a stale one is a conflict.
build(id, {revision}) Builds a standalone web player of a revision under game-builds/<game-id>/<revision> in the project workspace.
listExamples({query, limit}), getExample(slug, {view, entity_id}) Lists and reads the shipped benchmark games, such as kindle.
installExample(slug, {project_id, name}) Copies an example with its media into a project as a new game you own.

generateAsset

kind is image, audio (speech), music, sfx, font, model or collider. Each generation is billed, so confirm the slot list with the user before you generate assets for many slots.

  • Images can be prepared as aligned sprite sheets, edge tilesets or grade LUTs through preparation.
  • sfx needs a registered sound-effect node_type and its params.
  • font imports a TTF or OTF input_file.
  • model needs a provider node_type with params, or an owned glTF or GLB input_file. dependency_files maps a glTF buffer or image URI to an owned asset or workspace path. collider takes preparation.shape. 3D results are candidates that installAsset must install.
  • install: false stages a 2D candidate and answers its binding without binding it.
  • reference_slot keeps a new image in the style of an existing slot.
  • provider and model pick the model. background: true starts it and answers a generation_id; call again with generation_id and the same preparation to finish.

Build a level in code

Author the whole document with @nodetool-ai/sandbox-game and save it with saveGame({name, document}, {games: nodetool.games, project_id}). Read nodetool.packs.docs("@nodetool-ai/sandbox-game") first.

For retained construction, use constructGame({inputs, seed}, (inputs, builder) => { return document; }) and save the returned bundle with saveGame. Put accepted preparation results and pinned asset bindings in inputs. The callback cannot depend on outer variables. Rebuilds run without external capabilities. Ordinary setDocument cannot attach or replace retained source or its baseline.

Manual property edits become overrides. Removing a generated entity suppresses its key on later rebuilds. edit supports reset_override with entity_id, optional scene_id and optional field

Полный SKILL.md на GitHub

Установить api-games в Claude Code и Claude Desktop

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

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

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

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

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

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

FAQ

Что делает скилл api-games?

Call nodetool.games from a code action: create or install a built-in game, read and edit its draft, write a whole generated level, generate and install art and audio into asset slots, playtest and autoplay routes, capture frames, publish a revision and build a web player. Load before the first call into nodetool.games.

Как установить скилл api-games?

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

Скилл api-games запускает скрипты?

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

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

Сравнить api-games с