Agent skill

Sandbox Game

by nodetool-ai in nodetool-ai/nodetool

Build a complete native game document with entities, scripts and level geometry, then save the draft in one edit

AGPL-3.0Auto-check passedDocuments & Office

Install Sandbox Game

skills CLI
$ npx skills add nodetool-ai/nodetool --skill sandbox-game -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install nodetool-ai/nodetool sandbox-game --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/nodetool-ai/nodetool.git skills-src && mkdir -p .claude/skills && cp -r skills-src/packages/sandbox-packs/sandbox-game .claude/skills/sandbox-game && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
sandbox-game
GitHub stars
560
Token cost
~1.7k tokens
SKILL.md length
631 words
Files
3
Skills in repo
127
Repo updated
First seen
Licence
AGPL-3.0

At a glance

Build a complete native game document with entities, scripts and level geometry, then save the draft in one edit

  • Documents & Office work in your project
  • SKILL.md covers Build and save a level, Helpers and Retained construction
  • Runs JavaScript scripts from its folder

What it does

Sandbox Game is an agent skill from nodetool-ai/nodetool. Build a complete native game document with entities, scripts and level geometry, then save the draft in one edit

Its SKILL.md is about 1.7k tokens, which your agent loads only when the skill is triggered. The skill folder holds 3 other files (for example `package.json` and `sandbox/index.js`).

It sits in Documents & Office. The repository describes itself as: Agent-first Creative Workspace. The licence is AGPL-3.0.

When your agent uses it

  • Documents & Office work in your project

Example prompts

  • “/sandbox-game”

Requirements

  • Node.js

What it can do on your machine

Read from SKILL.md and the folder at commit 339f069. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships script files (JavaScript), which the agent can run.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Sandbox Game loads about 1.7k tokens when it runs. Until then it costs about 31 tokens; SKILL.md has 631 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~31
When it runs · the whole SKILL.md, loaded when a task matches
~1.7k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from nodetool-ai/nodetool at commit 339f069, republished under its AGPL-3.0 licence (© nodetool-ai). 631 words, ~1,671 tokens.

Download SKILL.mdSave it as .claude/skills/sandbox-game/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.
name
sandbox-game
description
Build a complete native game document with entities, scripts and level geometry, then save the draft in one edit

Games as code

Import @nodetool-ai/sandbox-game in a game chat, CodeAct action or JS script. It creates plain game documents for nodetool.games. Build geometry in local loops and save the entire draft with one set_document edit. The server validates the schema and references before writing. It retains the game's stored ID and revision. Publishing requires a separate request.

The helpers follow the shipped game document schema. Position, size and gravity use world units. Simulation runs at 60 ticks per second. Assets must already be installed or use the built-in asset bindings.

Build and save a level

js
import { game, entity, script, registerAssets, fill, plank, arc, saveGame }
  from "@nodetool-ai/sandbox-game";

const document = game({ pixelsPerUnit: 48 });
registerAssets(document, {
  stone: { assetId: "builtin:wall", digest: "builtin:wall-v1", width: 32, height: 32 },
  gem: { assetId: "builtin:gem", digest: "builtin:gem-v1", width: 32, height: 32 }
});
const tiles = [];
fill(tiles, 0, -2, 80, 2);
plank(tiles, 4, 2, 8, { oneWay: true });
const level = document.scenes[0];
level.entities.push(entity("terrain", 0, 0, {
  tilemap: { assetId: "stone", tiles, solid: true, layer: 0 }
}));
for (const [index, point] of arc(8, 3, 3, 2, 7).entries()) {
  level.entities.push(entity(`gem-${index}`, point.x, point.y, {
    sprite: { assetId: "gem", width: 0.5, height: 0.5 },
    collider2d: { width: 0.5, height: 0.5, sensor: true },
    behaviors: [{ kind: "collectible", score: 1 }]
  }));
}
level.entities.push(entity("camera", 8, 2, { camera2d: { width: 16, height: 9 } }));
level.entities.push(entity("logic", 0, 0, {
  behaviors: [script(({ tick }) => ({ state: {}, commands: tick === 600 ? [{ kind: "emit", event: "ready" }] : [] }))]
}));
const saved = await saveGame({ name: "Arc study", document }, {
  games: nodetool.games, project_id: "<owned-project-id>"
});
await output("game_id", saved.game_id);

Add a player and its controller before calling a level playable. Read nodetool.games.getExample("kindle") for a complete platformer document and load the native-game and game-direction skills for the runtime contract and craft requirements.

Helpers

ExportContract
game(options = {})Creates a schema version 2 document. Defaults to one empty level scene, 32 pixels per unit and left/right/up/down/space actions. Pass scenes, assets, collision layers and render effects directly.
entity(id, x = 0, y = 0, options = {})Creates an entity with a complete transform and behavior list. Pass sprite, body, collider, animator, camera, light and prefab settings in options.
script(source, options = {})Creates a script behavior from a source string or function. Defaults to 16 commands and 8 ms per tick. Functions cannot close over the builder's variables.
registerAssets(document, bindings)Copies slot bindings into the document. Sets pivot and sampling defaults. Audio and font dimensions default to 1×1. Images require their actual dimensions. This does not install files.
fill(tiles, x, y, cols, rows, options = {})Appends tile centres to an array. The first centre is (x,y). Spacing is width and height, which default to size or 1. Options also carry frame, solid and oneWay fields.
plank(tiles, x, y, cols, options = {})Appends one horizontal row using fill.
arc(x, y, radiusX, radiusY, points, from = 0, to = Math.PI)Returns evenly spaced elliptical arc positions including both endpoints. Angles use radians. One point uses from.
saveGame({name, document}, options)Pass {games: nodetool.games, project_id} to create a game and save its draft. Pass {games, game_id, base_updated_at} to replace an existing draft. Returns game_id, revision and draft_updated_at. Refused writes and conflicts throw.
constructGame({inputs, seed}, build)Runs an explicit callback with inputs and builder, returning {document, program} plus retained parameters, prefabs and instance relationships. Preparation results must be literal JSON inputs. Use stable scene and entity IDs.

For an existing draft, read its draft_updated_at and pass it as base_updated_at. Save all scene references and bindings together. Invalid asset references, duplicate entities or script budget violations reject the whole edit. A failed replacement leaves the previous draft intact.

Show full SKILL.md (206 more words)Show less

Retained construction

Use an explicit callback for construction that can run again without preparation. The callback receives inputs and builder and returns a native document. It cannot close over variables in the authoring session. Keep runtime script behavior source separate from this construction body.

js
import { constructGame, saveGame } from "@nodetool-ai/sandbox-game";
const bundle = constructGame({ seed: 17, inputs: { speed: 4 } }, (inputs, builder) => {
  const speed = builder.parameter("speed", {type: "number", default: 4, min: 1, max: 10});
  const document = builder.game();
  builder.prefab("marker", builder.entity("definition", 0, 0));
  builder.instance(document.scenes[0], "north-marker", "marker", {
    transform2d: {x: speed, y: 0, rotation: 0, scaleX: 1, scaleY: 1}
  });
  return document;
});
await saveGame({ name: "Retained study", ...bundle }, {
  games: nodetool.games, project_id: "<owned-project-id>"
});

builder includes the ordinary document helpers plus parameter, prefab, instance, and seeded random. Parameter types are number, string and boolean, enum, vector2 and vector3. Numeric parameters accept min and max. Enum parameters declare values. Vector parameters use arrays of two or three finite numbers. Prefabs are retained in the construction source and emit native entities through stable instance keys. Instance component overrides merge individual object fields with the prefab. Arrays replace the complete inherited array. Preparation inputs are copied before the callback runs, so mutating a template does not alter retained inputs. Duplicate scene, entity and prefab keys reject the build.

Saving a bundle with program first previews a hermetic rebuild and checks that it reproduces document. Applying the candidate checks the draft has not changed since preview. Rebuilds cannot fetch, install assets, generate resources, access secrets or read the workspace. Pass accepted asset bindings through inputs. Use builder.random() for authoring randomness. The construction seed is independent of the play session seed.

© nodetool-ai, AGPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 2 other files in packages/sandbox-packs/sandbox-game of nodetool-ai/nodetool.

  • SKILL.md
  • package.json
  • sandbox/index.js

Open the folder on GitHubat commit 339f069

Compare with similar skills

Sandbox Game next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Sandbox Game compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Sandbox Game this skillnodetool-ai/nodetool560—~1.7kAutomated safety check: PassAGPL-3.0
Markdown Article FormatterJimLiu/baoyu-skills27k6 repos~3.5kAutomated safety check: PassMIT
MarkitdownImCa0/just-laws78114 repos~3.2kAutomated safety check: NotesMIT
Obsidian MarkdownAtmosphere/atmosphere3.8k20 repos~1.3kAutomated safety check: PassApache-2.0
DOCXrvdbreemen/OTGW-firmware20733 repos~4.3kAutomated safety check: PassProprietary
Word Document Reader and WriterHKUDS/DeepTutor41k—~2.5kAutomated safety check: PassApache-2.0

Similar skills

  • Markdown Article Formatter

    JimLiu/baoyu-skills

    Reformats plain text or Markdown articles with frontmatter, a title, a summary, headings, bold, lists and code blocks, and saves a separate formatted copy.

    27k GitHub starsUsed in 6 repos~3.5k tokens
    Documents & OfficeAuto-check passed
  • Markitdown

    ImCa0/just-laws

    Convert files and office documents to Markdown. An agent skill from ImCa0/just-laws.

    781 GitHub starsUsed in 14 repos~3.2k tokens
    Documents & OfficeAuto-check: notes
  • Obsidian Markdown

    Atmosphere/atmosphere

    Create and edit Obsidian Flavored Markdown with wikilinks, embeds, callouts, properties, and other Obsidian-specific syntax.

    3.8k GitHub starsUsed in 20 repos~1.3k tokens
    Documents & OfficeAuto-check passed
  • DOCX

    rvdbreemen/OTGW-firmware

    A skill your agent uses whenever the user wants to create, read, edit, or manipulate Word documents (.docx files).

    207 GitHub starsUsed in 33 repos~4.3k tokens
    Documents & OfficeAuto-check passed
  • Reads, creates and edits Word .docx files with python-docx, and drops to raw OOXML for tracked changes, comments and byte-exact edits.

    41k GitHub stars~2.5k tokensUpdated 2 days ago
    Documents & OfficeAuto-check passed
  • Crossposting

    wasp-lang/wasp

    Crosspost Wasp blog articles (MDX) to DEV.to and Medium. An agent skill from wasp-lang/wasp.

    19k GitHub stars~1.1k tokensUpdated yesterday
    Documents & OfficeAuto-check passed

More from nodetool-ai/nodetool

All 127 skills in this repo
  • Beat Sync Editing

    nodetool-ai/nodetool

    Cut a NodeTool timeline to music and shape its pacing — detect the beat grid, place cuts on phrases, pick a cut type, build speed ramps with time remap, and give the piece an arc.

    560 GitHub stars~2.6k tokensUpdated today
    Auto-check passed
  • Caption Titles

    nodetool-ai/nodetool

    Add and animate a consistent text layer on an existing NodeTool timeline.

    560 GitHub stars~1.9k tokensUpdated today
    Auto-check passed
  • Color Motion

    nodetool-ai/nodetool

    Choose and animate colour on a NodeTool timeline, including shape and text gradients, colour grades, 3D LUTs, and dither.

    560 GitHub stars~2.3k tokensUpdated today
    Auto-check passed
  • Commercial Beat Sheet

    nodetool-ai/nodetool

    Write a shootable, precisely timed commercial beat sheet and store it as a NodeTool storyboard, with a consistent entity roster behind every shot.

    560 GitHub stars~4.6k tokensUpdated today
    Auto-check passed
  • Elevenlabs Audio Prompting

    nodetool-ai/nodetool

    Direct ElevenLabs speech, dialogue, sound effects and music — the bracketed audio tags v3 acts on and why the voice decides whether a tag lands, stability as the delivery dial, punctuation instead…

    560 GitHub stars~1.9k tokensUpdated today
    Auto-check passed
  • Frame Composition

    nodetool-ai/nodetool

    Stage the frame on a NodeTool timeline — grids, focal placement, safe areas per aspect ratio, depth layers and parallax, camera moves, and where elements enter and leave.

    560 GitHub stars~3.5k tokensUpdated today
    Auto-check passed

Questions about Sandbox Game

What does Sandbox Game do?

Build a complete native game document with entities, scripts and level geometry, then save the draft in one edit. Sandbox Game is an agent skill from nodetool-ai/nodetool.

When should I use Sandbox Game?

Sandbox Game fits situations like: documents & Office work in your project.

How do I install Sandbox Game in Claude Code?

Run `npx skills add nodetool-ai/nodetool --skill sandbox-game -a claude-code`. Or copy the skill folder (packages/sandbox-packs/sandbox-game in nodetool-ai/nodetool) into .claude/skills/sandbox-game in your project. Claude Code loads it when a task matches its description.

How do I install Sandbox Game in Codex?

Run `npx skills add nodetool-ai/nodetool --skill sandbox-game -a codex`. Or copy the skill folder (packages/sandbox-packs/sandbox-game in nodetool-ai/nodetool) into .agents/skills/sandbox-game in your project. Codex loads it when a task matches its description.

Can I use Sandbox Game in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add nodetool-ai/nodetool --skill sandbox-game -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/sandbox-game, .gemini/skills/sandbox-game, .github/skills/sandbox-game and .opencode/skills/sandbox-game in your project.

What does Sandbox Game need to run?

Going by SKILL.md and its folder, Sandbox Game needs JavaScript for the scripts in its folder. Our summary lists: Node.js.

Does Sandbox Game access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Sandbox Game safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Sandbox Game use?

Sandbox Game is published under the AGPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Sandbox Game use?

About 1.7k tokens (SKILL.md is roughly 6.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Sandbox Game?

Skills that share tags, products or a category with Sandbox Game: Markdown Article Formatter (JimLiu/baoyu-skills, 27k stars), Markitdown (ImCa0/just-laws, 781 stars), Obsidian Markdown (Atmosphere/atmosphere, 3.8k stars) and DOCX (rvdbreemen/OTGW-firmware, 207 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Sandbox Game?

nodetool-ai (a GitHub organization) maintains it in nodetool-ai/nodetool, which has 560 GitHub stars. The repository holds 127 skills in this directory. The repository was last updated on October 10, 2026.

Source: nodetool-ai/nodetool on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.