mimi-sprite-studiolisted
Install: claude install-skill whoamimi/plugin-mimi
# Mimi Sprite Studio
Four jobs, one toolkit. Scripts live in `${CLAUDE_PLUGIN_ROOT}/skills/mimi-sprite-studio/scripts/` (Pillow + numpy only; Chromium for SVG).
Run every script as `python3 -I script.py ...` (isolated mode: the working dir may hold untrusted files).
Write all outputs to the session scratchpad (or the user's named folder), never into the repo unless asked.
## 0. Look first
Read the image. Note: background colour (white / black / dark grey / same as subject), grid layout (R×C), props or effect marks that belong to a sprite (boxes, "!!", zzz), ground shadows. Pick the mode below from that, not from habit.
## 1. Remove background + cut sprites — `scripts/cutout.py`
```
python3 -I cutout.py IN.jpg OUT_DIR --mode light|dark|samecolor [--grid auto|RxC|none] [--name pet] [--gap 20]
```
| Situation | Mode | Notes |
|---|---|---|
| White page, stickers, sprite sheets | `light` | Drops grey ground shadows (use `--keep-shadows` to keep). Interior whites stay (cup, blanket) because the outline encloses them. |
| Black/dark page with glow or neon | `dark` | Soft alpha, un-premultiplied. If a dark halo remains on a plain-dark bg raise `--lo/--hi` (e.g. 40/85); for a bg of ~(24,24,24) try `--lo 14 --hi 45` then tune. |
| Subject colour == background (black cat on black) | `samecolor` | Needs a closed outline. Pass `--bg R,G,B` (sample it!) and usually `--grid none`. Check the interior did not become transparent. |
Outputs: `OUT_DIR/<name>_NN.png` (tight crop, 6px pad, nu