--- name: complex-animation description: Full path of the illustration animator - turn a folder of static SVG illustrations of one style into looped animations (Lottie JSON, GIF and MOV without background, MP4 on macOS). Each illustration gets a short story, is cut into moving parts with joints and masks, built, checked by scripts and a visual judge, and fixed. Use when illustration-animator sends a person, an animal or a fused outline here, or when the user asks to fix such an animation (" - bad"). --- # Complex animation Talk to the user in their language. ## Paths `${CLAUDE_SKILL_DIR}` is the folder that holds this SKILL.md. Clients that do not fill the variable in: replace it with that folder's absolute path, here and in every document of the skill. The engine is shared with the router and sits one level up, in `../engine`. Every engine command names the script by that path, `node "${CLAUDE_SKILL_DIR}/../engine/bin/.js" …`, so it works from any working folder; give it the user's style folder as an absolute path. A subagent gets the absolute path of this folder in its prompt, in place of `${CLAUDE_SKILL_DIR}`. The step documents are in `references/`; the paths they cite (`styles/…`, `SCENE-FORMAT.md`, `JUDGE.md`) are relative to `references/`. ## Setup Needs [Node.js](https://nodejs.org) 22.12 or newer. Once per machine: ``` node "${CLAUDE_SKILL_DIR}/../engine/bin/setup.js" ``` It installs nothing by itself: - exit code 0, "Setup done" - nothing is missing; - exit code 2 - it changed nothing and printed a plan: the pinned npm dependencies (`npm ci` from `engine/deps/package-lock.json`, install scripts off) into `~/.animator/deps`, Chrome for Testing (a pinned build, checked by SHA-256) into `~/.animator/chrome` if no Chrome, Chromium or Edge is installed. Show the plan to the user and, only after they agree, run the same command with `--yes`; - exit code 3 - there is no ffmpeg with the needed encoders. Setup never installs it: give the user the command it printed (`brew install ffmpeg`, `winget install --id Gyan.FFmpeg -e`, `sudo apt install ffmpeg`) to run themselves, then run setup again. An ffmpeg in a non-standard place: `--ffmpeg `. Setup writes only into `~/.animator/`, never into the agents' skill folders. The engine then writes scenes, animations, rules and samples into the user's style folder and rendered frames into the system temporary folder. Safe to re-run. ## Input and output A style folder in the user's project with the illustrations of one style in `svg/` (e.g. `styles/little/svg/*.svg`; the file name starts with the style name: `little-…`, `rough-sketch-…`). If the user points at a folder that directly holds SVGs, that is `svg/` and the style folder is one level up. The result goes to `