Use the skill: satisfying-mini-game. Run `npx -y @neta-art/neta-search-cli@latest skills use @siosan/satisfying-mini-game --via site` and follow what it prints. Read its complete output, redirecting it to a temporary file first if necessary, and resolve relative paths from the skill directory it prints.
Turn your world into a small, playable game in about a minute, judged by one of your characters.
Goal, props, success and failure all come from your world: brew a potion that blows if overheated, seal a cursed finger, stack gym badges.
Pick a satisfying touch loop: 24 polished ready-made games (cheese pull, pet the cat, popcorn), five simple mechanics, or a new one made for your idea.
One of your characters judges the round. You can name the judge, or let it pick one whose life fits.
Opens in Chinese, English, Japanese, Korean, Spanish or German. Play by touch on a phone or with the mouse on a computer.
Works best with a world that has a known activity or a character with a clear look. Harry Potter, Jujutsu Kaisen and Pokémon work, and so do original worlds.
SKILL.md
# IP world mini-games
The game grows out of the world, not out of a fixed menu. One command picks an activity the
world is known for and the loop with the same shape — one of 24 polished templates, one of the
engine's five mechanics, or, when the creator's idea is a gesture none of them has, a loop you
write for this game (*Steps* 1b) — and tells the whole game in the world's terms: the goal,
props, meter and units, success moment, every failure, variants named after real things in the
world (13 on a template, 5 on the engine), and a judge from the world's characters. It then
draws the stage and props, builds, publishes, places the Work on the board and checks all six
languages in a headless phone. Measured on the template route: 55–80 s, about $0.10–0.17 per
game (two images ≈ $0.05–0.07, the models ≈ $0.07–0.10). The engine route draws the same two
images and makes fewer model calls; it has not been timed or priced on a live run yet.
`$S` below is this skill's folder (the one holding this file).
## Language
- Reply in the user's language — every message of the run, above all the final handover.
The scripts print English: translate what they print, don't paste it.
- Never call this skill, the kind of game or a result “脑洞小游戏”, “脑洞” or “brainhole” —
not in a progress line, the handover, a Work title or a board label. Name a game by its own
title (「孵个龙蛋」); the kind is “IP 世界小游戏” / “IP world mini-game”.
- Text the user sees in the deliverable follows the user's language: every game ships in
six languages (zh-CN en ja ko es de) and opens in the language of the link (`?lang=`), else
the first of the viewer's browser languages it ships (`zh*` → zh-CN, `ja*` → ja…), else the
world's `language`, else English. A small language switch (top left, home and result screens,
hidden while a round is on) reloads the page with `?lang=`. Cost, measured on six published
games: the 24 templates ship ready ja/ko/es/de dictionaries, so a game only translates its own
remixed lines, $0.005–0.012 per language, $0.02–0.04 per game for the four extra languages,
about 17 s for the largest because the languages run side by side. Work titles are
English by default, whatever the world's language: the published page's browser tab shows the
Work title to every viewer. Pass `--lang zh` only when the creator asks for a Chinese title.
## When to use / when not
Use when the creator wants a small tactile / 解压 game made from a world — an IP world or their
own — or from one of its characters, with any one-gesture loop (a template's, an engine
mechanic's, or one written for it), or wants one of the 24 templates retold in their world.
Do not use for: a game with levels, maps, enemies or a long rule set (platformer, shooter,
puzzle campaign — a full game build, not a one-gesture round); a branching story or visual
novel; a roleplay chat. Say in one sentence that this makes a short one-gesture game in the
world's terms, and stop.
## Inputs
| Item | Required | Counts as given when |
|---|---|---|
| The world | yes | The creator is in a world with characters, or names an IP / world they own elsewhere (find its space with `neta spaces ls`). Naming the IP counts; "a game" in an empty world with no IP named does not. |
| Idea | no | Any spark they give ("Hagrid hatching a dragon egg") — pass it as `--idea`. Otherwise the script chooses. |
| Template | no | They name one of the 24 (`node $S/scripts/remix.mjs list`) — pass `--template`. |
| Loop | no | They name a gesture: an engine mechanic (`charge timing orbit trace throw`) — pass `--mechanic <name>`; a gesture none of the templates or mechanics has — write its `mechanic.js` (*Steps* 1b) and pass `--mechanic <file>`. Otherwise the script picks (`--route auto`). |
| Judge | no | They name a character — pass `--judge`. Otherwise the script picks one whose life fits. |
## Steps
1. **Run the one command** from the world root, as your first step — do not read the world
or write a design yourself first; the script does that, faster:
```bash
cd /workspace
node $S/scripts/make.mjs [--world <space-id>] [--idea "<the creator's spark>"] [--template <id> | --mechanic <name|file>] [--judge "<name>"] [--lang zh|en]
```
By default (`--route auto`) the model picks the loop: a template when one has the gesture
(richest look), an engine mechanic when the world's activity has that shape, `custom` when
the creator's idea is a gesture none of them has. `--route template` keeps to the 24.
`--world` reads an IP world in another space, read-only (default: this world). Two games in
one ask: run two commands at once. Do not rerun a run that published — a new run is a new
slug and new pictures.
1b. **`"step": "mechanic"`** — the model chose `custom`: nothing was drawn or charged beyond one
short call, and the creator is not asked anything. The result gives `loop` (the gesture in one
line), `nearest` and `next` (the command to run). Write `works/webs/<slug>/mechanic.js` for that
loop (`references/engine.md` → *Your own mechanic*; start from
`engine/examples/scrub.mechanic.js`), check it registers, then run `next` — it keeps the first
run's title, judge and pictures plan. That run self-plays your loop (`check.selfPlay`); a loop
that does not reach the result both ways is yours to fix in `mechanic.js` and rebuild
(`node $S/scripts/engine.mjs build works/webs/<slug>`), no new pictures.
2. **Read the result.** The last line is JSON: `ok`, `seconds`, `route` (`template` or `engine`),
`template` / `mechanic` (`ownMechanic` when it was yours), `title`, `judge`, `workId`,
`workTitle` (the published Work's title, never empty), `url`, `board`, `check`
(`languages` the page ships, and per language: page errors, leftover template words, text
in the wrong script (untranslated Chinese, Japanese in Korean…), text cut off, a number
glued to a word or two wordings in one label (`glued`), text below 4.5:1 contrast
(`lowContrast`), a prize named differently in its pill, title, button or description
(`prize`), broken images; `page` — the static `<title>` is the Work title and `<html lang>` its
language; on the engine route `selfPlay` — a win and a loss played to the result card, and
`untranslated`), `cutout` (every transparent picture checked pixel by pixel: `clean`,
`fixed` — a painted checkerboard cut away — or `templateKept` / `dropped` — still not
transparent, so the template's own picture stays / the engine draws a plain shape) and `spend` (`llmUsd`, `imagesUsd`, `totalUsd`, `imageTasks`,
and `fellBackFrom` lines in the log when a busy image model was replaced).
`"ok": false` names the step that failed; see *When to stop*. Note `seconds`,
`spend.totalUsd`, `check.languages` and `cutout` now — they go into the handover (*Deliver*).
3. **Look at the screenshots** `/tmp/make-<slug>-<lang>-home.png` and
`-<lang>-play.png` for each of zh-CN en ja ko es de: the title reads, the stage is the world, nothing is cut off, no text over
the stage. `make.mjs` already ran the release check; after any hand edit, run it again —
it passes when it prints `"ok":true` (no page errors, no leftover template words, no text in the
wrong script for its language, nothing cut off that the Chinese page does not cut, no number
glued to a word, nothing below 4.5:1 contrast — 3:1 for large text — on the home screen or in
the gift sheet, one prize name everywhere, no broken images, the static `<title>` = the Work
title with `<html lang>` in its language) and writes its screenshots to
`/tmp/make-<slug>-*` (`-gift.png` is the first-open gift sheet):
```bash
node $S/scripts/smoke.cjs works/webs/<slug>/dist /tmp/make-<slug> # release check
```
A miss you can fix without generating (a word, a colour, a prize name) is fixed by editing
`works/webs/<slug>/remix.json` or `i18n/<lang>.json` and rebuilding
(`references/template-route.md` → *By hand*). Every page carries `contrast.js`, which darkens
or lightens any text the new palette left below 4.5:1, so `lowContrast` should be empty; a
finding there is a theme colour to fix.
4. **Comparison page — only when the world already has one** (`works/webs/remix-compare`):
add the game to it (`references/template-route.md` → *Comparison page*). Never create one
unasked.
## Deliver
A published web Work (registered by `neta work init web` + `neta work publish web` inside
`make.mjs`) — nothing else; no zip or package for outside Studio. The run is not delivered
until step 3 below is done.
The turn that publishes ends with a written handover — never an empty reply, never only a
card. It says only what the result shows, and names what it does not show:
1. Say in one line what the game is (the world activity, the judge), then give **both
numbers from the result, together in one sentence**: the time the run actually took
(`seconds`, e.g. "70 s") and what it cost (`spend.totalUsd`; name the model if an image
fell back to another). Cost alone is not enough, and a promise made before the run
("about a minute") does not count as the time.
2. One line on what was verified, from the result only:
- **Languages**: the number in `check.languages` (six is zh-CN en ja ko es de). Fewer than
promised, or a language with findings, is said plainly with which ones — never "six
languages" when the check shows fewer.
- **Phone**: "checked on a phone-size screen" only from `check` (it runs at 390×844);
nothing about tablets or desktop beyond "playable with a mouse" unless you ran
`mouseplay.cjs`.
- **Cut-outs**: "background removed" only for pictures in `cutout.clean` / `cutout.fixed`;
each one in `cutout.templateKept` is named as keeping the template's picture, in
`cutout.dropped` as drawn as a plain shape.
- **Engine route**: say it is the engine's simpler 2D look, and — from `check.selfPlay` — that
a win and a loss were played through; on computers it is played with the mouse pressed, not
the cursor alone.
- **Anything `check` still reports** (`ok: false`, `lowContrast`, `prize`, `glued`,
`overflow`, `page`, `selfPlay`, `untranslated`): name it and say whether you fixed it; never call the game finished over it.
3. Hand over the game with an `interaction-components` card whose target is the Work, id
from `workId` in the result (fallback: `cohubWorkId` in `works/webs/<slug>/meta.json`) —
on its own line, never only a URL or a file path.
## Changing a game afterwards
The creator wants a line, a picture, a colour, or an extra moment (a hatching dragon):
edit `works/webs/<slug>/remix.json`, `node $S/scripts/remix.mjs build works/webs/<slug>`,
`node $S/scripts/translate.mjs works/webs/<slug>` when Chinese lines changed, publish again
(`neta work publish web works/webs/<slug> --from works/webs/<slug>/dist`; the Work keeps its
title), run `scripts/smoke.cjs` again and report from it as in *Deliver* 2. Show changed
words as text first; render only when the creator agrees. Full guide:
`references/template-route.md`. An engine game (`game.json` in its folder): edit `game.json` or
`mechanic.js`, `node $S/scripts/engine.mjs build works/webs/<slug>`, publish the same way —
`references/engine.md`.
## Files
| Path | What |
|---|---|
| `scripts/make.mjs` | the one command; `scripts/llm.mjs` its model client (the world's own Cohub token, charged as model usage) |
| `scripts/make-engine.mjs` | the engine route of the one command: game.json, ja ko es de, stage + subject, build, check, self-play, publish |
| `scripts/mechanic.cjs` · `engine/examples/scrub.mechanic.js` | reads a game's own `mechanic.js`; a complete worked example of one |
| `scripts/prize.cjs` | one prize name: lines that named the gift's core (「星河」) get the gift's name |
| `scripts/gen.mjs` | every image: the creator's image model first, then fallbacks; never pays twice |
| `scripts/smoke.cjs` · `langcheck.cjs` | the release check (all six languages, headless phone): wrong-script text, overflow, glued numbers, contrast, one prize name |
| `scripts/cutout.cjs` | is a transparent picture really transparent (no painted checkerboard); `--fix` cuts a painted one away once |
| `scripts/contrast.js` | shipped in every game: keeps text at 4.5:1 (3:1 large) against the recoloured cards, pills and buttons |
| `kits/<template>.json` | per-template checklist: themed lines, words that must vanish, picture framing, `locked` for the 10 whose core object is drawn by code; `scripts/kit.mjs <id\|all>` rebuilds one (~$0.03) |
| `scripts/remix.mjs` · `translate.mjs` · `check.mjs` · `studio-shim.js` · `i18n.mjs` | the template route by hand — `references/template-route.md` |
| `scripts/coach.js` · `coach/<template>.json` | the coach layer: gesture ghost, cursor-as-finger on computers, live speed chip — `references/template-route.md` → *Coach* |
| `scripts/mouseplay.cjs` · `keyplay.cjs` · `first-look.cjs` · `peek.cjs` · `drive.cjs` | playtests with cursor only, keyboard only, first second, chosen flavour, real gestures |
| `scripts/keyfill.cjs` | turns a painted light-grey checkerboard or black background transparent (whole sheets) |
| `catalog.json` · `templates/` · `thumbs/` · `i18n/` | the 24 templates, covers and ready translations (en ja ko es de) |
| `references/remix-guide.md` · `world-native-design.md` | remix.json format and image briefs; mechanic ↔ world activity |
| `scripts/engine.mjs` · `engine/` · `references/engine.md` · `scripts/play.cjs` | the engine: five mechanics and any game's own `mechanic.js` (simpler 2D look — say so when used); `play.cjs` self-plays a win or a loss |
## Gotchas
- The templates name their gift twice — the flavour 「晓晓的星河」 (pill, unlock line) and the
thing 「星河松饼」 (title, button, description) — and those lines are rewritten before the gift
has its new name. `make.mjs` puts the gift's name into every line that held 「星河」
(`scripts/prize.cjs`); `smoke.cjs` → `prize` reports any line still naming another.
- Ten templates draw their core object in code (pancake, cotton candy, noodles…): the shape
stays, only colours and words change — badges stacked as pancakes. `make.mjs` prefers the
fourteen it can redraw; say so when a locked one is used.
- The image service refuses named copyrighted characters and some creatures even described
by look; `make.mjs` describes subjects by look and keeps people off the stage.
- Text in `remix.json` `replace` / `variants` cannot hold ASCII quotes, backslashes or
newlines (use 「」“”); the build refuses them.
- A remote world is read by copying folders four at a time; opening dozens of reads at once
exhausted the sandbox.
- A model that dropped colour fields left every variant the template's colours; variants and
their colours now come from one call and are checked field by field.
- An image queued for minutes once pushed a run to 143 s. Images go through `gen.mjs`, which
falls back on a busy model but never submits twice; a queued (not busy) model still waits.
- Headless Chrome runs ~20 fps; speed-judged games read slow under parallel load — run
`mouseplay.cjs` playtests one at a time.
- `neta spaces files cp -r` into a folder that does not exist yet fails as a whole; create the
folder first or copy file by file.
## Out of scope
- Changing world settings, materials or another world (an IP world in another space is read
only); deleting files that existed before the run.
- Editing memory, character cards, installed scripts or other Works; the comparison page only
when it already exists.
- New game rules in the template route (a new loop goes the engine route); changing the
skill's own `engine/engine.js` — a game's loop lives in its own `mechanic.js`; a zip or any
other package for another platform; more games, takes or variants than asked.
## When to stop
- No world to draw from (empty world, no IP named): ask once which world or IP, then stop.
- Asked for a different kind of game (see *When not*): say what this skill makes and stop.
- `"step": "mechanic"` is not a stop: write the loop and run `next` (*Steps* 1b).
- `ok: false` — image `blocked` (credits or permission): tell the creator plainly and stop;
image `busy` on every model: nothing was charged, offer one more run later; build or check
failure: report the lines it printed, fix the cause in `remix.json`, rebuild — no new
generation. After two misses on the same picture, stop and say what is in the way.