/lemo-animi:lemo-animifrom lemo-animi
Creates stop-motion animated shorts using lemo-animi with fixed material styles. Generates assets as transparent PNGs, composites shots in Python, and adds sound from a sound sheet. Activates when user requests stop-motion, claymation, or cartoon animation in Chinese or English.
Ships in lemo-animi. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Image generation makes it look right; code makes it move. Every style has fixed prompt templates; you only fill the slots (character, action, scene). Assets are transparent PNGs, sliced and composited shot by shot in Python (on twos, anchors, camera, transitions, grading, subtitles). Sound comes from one sound sheet: score, foley, optional narration, mix.
Read files whole. A tool output may be cut short: read instruction files over ~120 lines in chunks (sed -n '1,120p' <file>, then the rest); never act on a truncated read. Raw logs, long cue lists and review notes: pull out the relevant lines locally (grep, tail) or read them page by page until every entry is covered; never print encoded data.
Language. The skill is in English. Talk to the user in the language they write in, whatever it is (questions, options, every progress note between tool calls, review-page replies, report). If nothing shows it (no words from the user and no language set by your own instructions), ask that alone first (item L), then everything else in the chosen language.
init_film.py --lang zh|en (it goes into sound.json "lang", references/sound.md).review.py add … --lang <the user's language code> (zh, en, ja, …): Chinese gets the Chinese page, every other language the English page.animi.py styles --lang zh|en; for other languages use en and translate the one-liners.| Item | Default and handling |
|---|---|
| Story | May be just a title. Write the full story yourself in the story skeleton for its length (directing §1: setup, tries, low point, turn, payoff; beats, side characters, narration); don't ask back. A given plot: follow it, fill the skeleton's missing parts with beats and shots. A character image (their original character, a pet): generate the character sheet from it in this style's material and match every sheet to it. No real faces or franchise characters: steer to an original. |
| Style | Fixed styles only (animi.py styles; Chinese name, English name or id). Off the list: say it's experimental; if they insist, references/new-style.md. Photorealism: references/realism.md. |
| Length | 40 s; options 20 / 40 / 60 s, or any length the user types from 20 s to 2 min. The final film's length, title and end cards included. Over 60 s: before starting, tell the user roughly how many images and how long it takes (§3 table). |
| Size | landscape 1920×1080 / portrait 1080×1920 / square 1080×1080. |
| Narration | Off (score + foley, no subtitles). On: lively female or child voice, subtitles in the film's language; bilingual subtitles on request. Needs network (edge-tts sends the narration text to Microsoft): if sound.py vo can't connect, request access with the justification it prints; if refused, make the film without narration and say so. Never a local offline voice. |
| Preview | Off: work straight through. On (or the user sent a character image): show character sheets and main backgrounds once on the review page, continue after approval. |
| Title and end cards | Off. On: title and credit come in the same question. No title given: title it from the story and say so in a progress note. Never invent a credit. Each card is 3 s, so the story runs the length minus 6 s. |
Prepare the environment before asking anything. Run sh "$S/setup.sh" check in the current directory. If anything is missing, immediately run sh "$S/setup.sh" to install missing dependencies and samples or wait for an existing install. Tell the user a first install takes about 1.7 GB. It needs the network and writes ~/lemo-animi-env (Codex: request escalated permission; never point LEMO_ANIMI_* at a temp folder to get around it). Wait for the process to finish (§2), then run check again. If setup fails or a prerequisite still needs user action, report the specific blocker and resume here after it is resolved (workflow §0): ffmpeg missing → the user installs it (macOS brew install ffmpeg, Linux the package manager); in Claude Code, check also reports the image tool: neither Codex CLI nor an adapter → the user installs and logs in to Codex (npm i -g @openai/codex, then codex login); no zsh (some Linux) → the user installs zsh. In Plan mode, if setup requires writes the mode disallows, ask the user to switch to default mode before continuing.
Collect the missing film choices together. Use the checklist below in order, in the user's language. Include only items the user has neither answered nor explicitly delegated. Until all items are settled, keep progress notes to setup and intake. Defer choosing the story, title or style, naming or creating the film folder, reading the style package and drafting the plan.
request_user_input_async call with one entry per missing item in its questions array. Each style gets its own option, formatted as “Style name|One-line description”. Use catalog order. If the user already supplied a story, move the best match to the front and mark only that option “Recommended” in their language. Without a story, leave all styles unranked. Omit options for the story to show just the input box. Put the applicable default first for other choices. End the turn immediately after dispatch and wait for the user's reply.request_user_input call if all missing items fit its limits (up to three questions, two or three options each). Otherwise use the numbered text questionnaire below so the user can answer everything together.AskUserQuestion calls in checklist order, up to four missing items per call and two to four options per item. Collect each batch's response before sending the next, with no production work between calls. When the style menu exceeds four options, put the complete catalog with descriptions in the style question itself. Offer up to three representative styles and “You decide” as buttons. The built-in free-text field accepts any listed style by name or number. For the story, invite the user's own words there. Where buttons are required, offer “You decide” and “Leave open for now” without suggesting plots or titles. Mention once that auto mode (Shift+Tab or claude --permission-mode auto) can reduce approval prompts during production; never suggest skipping permissions.codex exec, unknown client or no suitable question tool). Put all missing questions in a single final reply, numbered 1, 2, 3… with each question's options numbered or lettered under it, so the user can answer "1: 4, 2: a story…", including the full style menu with descriptions whenever style is open. Invite the user to answer by question number and end the turn. In codex exec, the caller can reply with codex exec resume.Check the answers before starting. Match submitted answers to the checklist, including any choices supplied earlier. If a submission is partial, ask again for just the unresolved items together. If replies arrive in installments for an open panel, keep the answers already received and let the user finish it. Dispatch acknowledgments, preselection, silence and skipped items supply no answer. Apply a default or choose for the user only when their reply authorizes it.
L. Language, only if unknown: ask which language to use after setup, before the film questions.
1. Style: run "$PY" "$S/animi.py" styles --lang zh (or en). Show every style with its one-line description in the user's language. Ask which they want.
2. Story: "What story do you want to tell?" Accept a title or one line in the user's own words. Offer no examples, suggested titles or placeholder options.
3. Length including cards: 40 s (default), 20 s, 60 s, or a typed duration from 20 s to 2 min.
4. Size: landscape (default), portrait or square.
5. Narration: none (default), lively female or child voice. Accept bilingual subtitle requests.
6. Title and end cards: off (default) or on. Invite an optional title and credit in the same answer.
7. Preview characters and backgrounds: off or on (default off, on for a supplied character image).
8. Anything else? Accept wishes, a character image or "none" (default).
Once all items are answered, apply any choices the user delegated, read the selected style package and carry the answers into the director's plan. In Plan mode, have the user switch to default mode to make the film with those answers. Work through to delivery with short progress notes and the requested preview.
styles/<id>/STYLE.md, references/directing.md, references/quality.md, references/pitfalls.md. Other docs at the step that needs them.setup.sh (first run), gen.sh (up to 10 min per image), full renders and review.py wait (30 min) outlast a default tool timeout. Codex: keep polling the running command. Claude Code: its Bash tool stops a command at 10 min, so run setup.sh, full renders and wait with run_in_background: true and carry on when it reports back; give each gen.sh call a 600000 ms timeout or run it in the background.quality.md (--allow-edge, --clean, --group grid pass after you check the image). Regenerate only real defects (max 3 times per image, one change each time), or split / recompose.selfcheck.py sheets and consecutive frames at every cut and contact. Clear the sound.py check warnings and the render's liveness warnings (fix, or list each with its reason in review.py add --known). You do not listen yourself (hard rule 14): write "not listened" and check what can be measured (sound.py check; each landing or impact sound on the drawing where it lands, sound.py times beside the contact frames; stems in audio/). Write a verdict with timecodes for each must-pass item in quality.md, fix, review again. What you didn't watch or hear is "not checked", never "pass".tools/film.py one change at a time with the edit tool (Codex: apply_patch); batch string replacement silently hits other places."$PY" -c "import socket; socket.socket().bind(('127.0.0.1', 0))" for the port, and, with narration, a request to the voice service. If either is refused and can't be escalated, ask the user to allow them, naming both in one message. If it is only refused later, never drop the choice quietly: stop, tell the user what is blocked and how to allow it (in Codex, a permission mode that allows network access or approval requests; then say "continue"), and wait. Go on without it only if the user says so, and say so in the report.Commands and folders: references/workflow.md (also the tools list and the review page). Functions: references/api.md.
| Step | What | Read |
|---|---|---|
| 0 | $S = absolute path of the adjacent scripts/ folder. Check the environment, install missing components, wait and verify (§1). Set $PY from sh "$S/setup.sh" python. Collect all missing choices together (§1). Proceed only when every item is answered or explicitly delegated. | workflow §0 |
| 1 | Style package: STYLE.md, style.json, ref/ and poster.jpg where present | |
| 2 | Director's plan in production-log.md: logline, story skeleton with seconds per part, beat sheet, narration, shot list, layered action table, image list | directing |
| 3 | Timing: with narration, write it in sound.json, sound.py vo gives line lengths, shots follow; without, seconds per beat (a beat is 2–4 s and holds several events) | sound |
| 3′ | `"$PY" "$S/init_film.py" --style --dur --size <landscape | portrait |
| 4 | Images: slot file → animi.py prompt → generate. Character sheets and 1–2 key backgrounds first; check palette and character. Codex: built-in image_gen, references in referenced_image_paths, transparent_background: true for transparent assets, copy from the returned path | prompts, workflow §4 |
| ⏸ | Preview (only if on): register, wait for approval | workflow, review page |
| 4′ | Other backgrounds → load() → film.py board (open the board_p*.jpg pages); shots connect | |
| 4″ | Action sheets, close-up sheets, props, fx; set layers and textures if needed | |
| 5 | animi.py check → slice → anchors | workflow §4 |
| 6 | Real assets into load() / render(); put() applies the style's light; transition assets load from style.json | compositing |
| 7 | Sound: score, hits, foley (times per shot, "shot+0.4"; per-cell sounds via foley_rules) → sound.py lint → build | sound |
| 8 | lint → stills → full film → contact sheet → consecutive frames → selfcheck.py → must-pass items → fix → again; then bookends if on | quality |
| ⏸ | Review page: register, the user writes notes, fix, register again until approved | workflow, review page |
| 9 | Deliver (§5) |
Asset minimums (short of them, the plan is underthought: split the beats again):
Columns are the film length; for other lengths take the nearest column, scaled.
| 20 s | 40 s | 60 s | 90 s | 2 min | |
|---|---|---|---|---|---|
| Shots (typical, never padded) | 2–4 | 5–8 | 6–12 | 9–16 | 12–22 |
| Backgrounds, each a different view, not the same composition enlarged | ≥ 2 | ≥ 4 | ≥ 6 | ≥ 8 | ≥ 10 |
| 8-cell action sheets, one per action | ≥ 3 | ≥ 5 | ≥ 7 | ≥ 10 | ≥ 13 |
| 2×2 close-up sheets (key reaction, payoff) | ≥ 1 | ≥ 2 | ≥ 3 | ≥ 4 | ≥ 5 |
| Prop / fx sheets | as needed; at least one fx sheet for landings and impacts | same | same | same | same |
| Total images | ~10–14 | ~20–26 | ~30–38 | ~42–52 | ~55–68 |
| Rough time | under an hour | about an hour | 1.5–2 h | 2–2.5 h | 2.5–3 h |
A prop acting alone (a lamp lights itself, a boat drifts) is prop images + fx sheets, not an action sheet.
animi.py prompt, no style text of your own; compositing parameters from animi.style_preset / animi.finish; no hand grading.place and view; one place, one set (other views generated from its main background). shots_lint must pass.char_light, warm_glow, darken, light_flood, self_glow).A.scale_ref), placed by anchor; poses, facing and held objects connect across sheet changes and cuts.subtitle.size, always at the bottom.foley; key actions hit the music; silence before the twist (references/sound.md)."$PY" "$S/selfcheck.py" out/<name>.mp4 --style <style> in the film folder, against quality.md §2; fix and run again.input_audio, a media viewer, a data URL). This covers short clips, single stems and transcoded copies too, in tool results and in child-agent inputs. Many models have no audio input: the request fails with "Audio input is not available", and the item can stay in the history so that later text-only messages fail as well. Never probe whether audio works by sending a sample. Run media tools on the files locally and bring back only numbers, paths or extracted stills: check sound with sound.py check and sound.py times, look at video as extracted frames and selfcheck.py sheets. Playback is the user's: on the review page, or a local path you give them.out/<name>.mp4, or with cards out/<name>-bookends.mp4 + .srt (that one is the film: register and deliver it); <name>.srt if narrated without cards; out/contact.jpg; production-log.md. Run sound.py check on exactly the file you deliver, after any cards are added, and quote its numbers and length. <name> = NAME in film.py = name in sound.json.production-log.md never replaces a part; item 3 lists every must-pass item on its own line.
quality.md §3): one line each, pass / fixed / known issue / not checked. For sound, two separate lines: what was measured (loudness, true peak, dead air, cue times against contact frames) and "Listening: not listened by the agent".agents/openai.yaml (opens in a new tab)fonts/LICENSE-SourceHanSans.txt (opens in a new tab)references/api.md (opens in a new tab)references/compositing.md (opens in a new tab)references/directing.md (opens in a new tab)references/new-style.md (opens in a new tab)references/pitfalls.md (opens in a new tab)references/prompts.md (opens in a new tab)references/quality.md (opens in a new tab)references/realism.md (opens in a new tab)references/sound.md (opens in a new tab)references/workflow.md (opens in a new tab)scripts/animi.py (opens in a new tab)scripts/audio/__init__.py (opens in a new tab)scripts/audio/compose.py (opens in a new tab)scripts/audio/fetch_instruments.py (opens in a new tab)scripts/audio/foley.py (opens in a new tab)scripts/audio/instruments.json (opens in a new tab)scripts/audio/sampler.py (opens in a new tab)scripts/audio/sfx.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub lemomo-ai/lemo-animi --plugin lemo-animiOther plugins' skills for the same job