squishy-dessert-studio

Community@u252119f2fa58/squishy-dessert-studio
Community skill — not reviewed. It was shared by 秋雨微澜 and has not been checked by Neta. Read SKILL.md below before letting an agent use it.
Installation
npx -y @neta-art/neta-search-cli@latest skills add @u252119f2fa58/squishy-dessert-studio
Summary

Turn your characters into a squishy 3D swiss roll you can press, decorate and photograph.

  • Get a web page with a short, chubby swiss roll on a plate that dents under your finger and springs back.
  • Swap sponge, cream and tablecloth flavours. Each character brings its own themed set, three signature toppings and up to six poses.
  • Drop 3D toppings, then stand paper-cutout figures of up to three characters and up to four logos on the roll. Move and scale each piece.
  • Visitors can upload their own picture and it becomes a paper pick, with no credits needed. Save the finished cake as a photo.
  • Works best with 1 to 3 characters that have a clear portrait and a recognizable look, plus any logos you attach.
SKILL.md
# Squishy Dessert Studio

The user ends up with a web Work: a short, chubby swiss roll on a gold-rimmed plate. Pressing and holding dents it and it springs back; the visitor swaps sponge, cream and tablecloth, drops 3D toppings, stands paper picks of the characters and logos on toothpicks, and saves a PNG photo. Each character brings a themed set: flavours, three signature toppings and up to six pick poses.

Read this file fully before writing files or generating images. Resolve relative paths from this skill's directory.

## Language

Reply in the user's language, whatever language this file is in, for every message including the final handover. Translate what scripts print instead of pasting it. The page UI follows `--lang` (built in: `en`, `zh-CN`; another language needs `strings.json`, see Step 5). Labels, names and the Work title follow the user's language; names the user typed stay as written.

## When to use / when not

Use when the user wants a pressable 3D dessert toy with decorations and character picks. Not for a single dessert image, a layered parfait, or a game with a score: say this skill builds a squishy dessert studio page and stop.

## Inputs

| Item | Required | Counts as given when |
|---|---|---|
| Characters | yes, 1 to 3 | each is named and has a card or portrait in the world, or the user attached its picture; 'my characters' alone does not count |
| Logos | no, up to 4 | the user attached logo pictures; never generate a logo |
| Poses per character | no, default 3 | the user names poses |
| Page language | no, default the user's language | the user writes in a language |
| Title | no, default 'Squishy Dessert Studio' translated | the user names the Work |

If no character is given, ask once, in one message, then stop. If they are given, do not ask and do not wait for a go-ahead: say the defaults you took in one line and build through to delivery. This skill generates images, so tell the user in one line how many it will make (one sheet per character) before you start.

## Steps

`$RUN` = `_runs/squishy-dessert-studio/<timestamp>/` under the workspace root. Never move, rename or delete it afterwards.

1. **Read each character.** `node /mods/neta/neta atom get <path>` (or the material under `world/`). Take the name, hair, eyes, outfit, signature accessories, 3 signature poses or expressions, and 3 palette colours. Pick 3 motif ids from `references/spec.md` that echo the character. Write it all to `$RUN/brief.json`. The portrait is the first image in the material's `media`, or the user's attachment.
2. **Generate one sheet per character**, three chibi figures side by side, using the prompt in `references/spec.md`:
   `node scripts/gen.mjs --kind image --state $RUN/gen-<n>.json --prompt "<prompt>" --work-title "<title>" --param aspect_ratio=16:9 --image <portrait file>`
   Rerun the same command while it prints `generating` or `busy`; never submit by hand. If another model made it, say which in the handover.
3. **Remove the background.** `cohub generate "remove background" -m birefnet-general --image <sheet file> -o $RUN/<n>-cut.webp` (about one cent). Open the cutout and check the thin parts (a halo, ears, a tail) survived; if one is lost, regenerate that sheet once with the part named in the Appearance line. Do not loop.
4. **Cut each sheet into three pictures.** `node scripts/slice-sheet.mjs --in $RUN/<n>-cut.webp --out $RUN/pics --prefix c<n>- --count 3`. It splits on empty columns, so a halo stays with its figure. If it reports a different count, regenerate the sheet with wider gaps.
5. **Write the spec and build.** Write `$RUN/spec.json` (format in `references/spec.md`), then:
   ```bash
   node /mods/neta/neta work init web works/webs/<slug> --title "<title in the user's language>"
   node scripts/setup.mjs --dir works/webs/<slug> --spec $RUN/spec.json --lang <en|zh-CN|...> --title "<title>" [--subtitle "<line>"]
   ```
   `<slug>` is new lowercase kebab-case (`ls works/webs/` first). For a UI language other than `en` or `zh-CN`, copy every key of the `en` block in `template/js/i18n.js` into `works/webs/<slug>/strings.json` as `{ "<lang>": { ... } }` and rerun setup.
6. **Check it.** `node scripts/verify.mjs works/webs/<slug>`. It checks files, the four model parts and the config, then runs headless Chrome at 390x844 and 1440x900: no console errors, the 3D canvas has size, a topping can be added, the snapshot is a PNG. Look at `.verify/shot-phone.png` yourself. Fix every FAIL and rerun; do not deliver while it fails.
7. **Publish.** See Deliver.

Read `references/spec.md` only when changing a default or fixing a sheet prompt.

## Deliver

A **web Work**: `node /mods/neta/neta work publish web works/webs/<slug> --title "<title in the user's language>"`

Then, as the last step; the run is not delivered until it is done:

8. **Hand over with a card.** One `interaction-components` card on its own line, target `{ "type": "work", "workId": "<id>" }`, the id from the publish output (fallback: `cohubWorkId` in `works/webs/<slug>/meta.json`). Never a made-up id, a folder or a `world-file` link to `index.html`. Then two lines in the user's language: what the studio does, how many images were generated, and that the first in-browser cutout downloads about 44 MB.

## Out of scope

- Do not change world settings or delete files that existed before the run.
- Do not modify memory, character cards, installed scripts, existing Works or roleplays.
- Make only the studio Work; no score, shop or sharing feed.
- Do not edit `template/` inside the skill; per-Work changes go through the spec and `strings.json`.
- Build in this chat, on whatever model it runs; never hand the request to another chat.
- No server: the Work is a static page; never start a backend or publish a `--port` app.
- Do not generate more than one sheet per character unless one fails a check.

## When to stop

- No character named: ask once, then stop.
- A character has no portrait and no description: ask for one picture or a short description; do not invent a face.
- The user wants a dessert picture, a parfait or a game with scoring: say this skill builds a squishy dessert studio page and stop.

## Gotchas

- **The model is four files on purpose.** Publishing allows 20 MB per file and the model is 44 MB. Never merge or edit the parts; `verify.mjs` checks the sizes add up to the total the worker expects.
- **Pale parts disappear in the cutout.** A light halo or thin ears can vanish against the grey; name them in the prompt and check after Step 3.
- **Do not copy the reference pose.** The prompt says so for a reason: without it the three figures repeat the reference.
- **Pick art must be transparent.** The page adds the white die-cut edge itself; a picture with a background becomes a plain card.
- **Normals must be welded.** A custom roll mesh without welded normals shows a seam on the cut face.
- **Third languages need every key.** A partial dictionary mixes languages; `verify.mjs` lists the missing keys.
- **Saving uses the visitor's browser storage.** It stays on their device; say so if asked where progress goes.