← ScenarioCONTENT HISTORY
WHAT CHANGED
Update to Scenario
Snapshot Nov 25, 2026 · 18:15 UTC · version 0.2.2
Collection source: downloaded plugin package.
First saved snapshot
No earlier snapshot is available to establish a change.
Save Scenario and check future changes in Following.
Up to 3 plugins free · no card required.
Compare saved observations
Download comparison JSONFull technical diff · 0 changed fields
Full snapshot data
{
"description": "Use when animating 2D game art with Scenario: walk, idle or attack cycles in 4 or 8 directions, isometric sprite sheets, animated GIFs, frame-by-frame pixel art animation, VFX loops such as fire or smoke, looping a sprite seamlessly, animating an existing character image, a full animation sheet from one prompt, extracting animation frames from a generated video, or slicing a sprite sheet into engine-ready frames for Unity, Godot, or Unreal. Keywords: spritesheet, keyframes, frame grid, GIF.",
"included_files": [
{
"relative_path": "grid-templates.json",
"size_in_bytes": 7915
},
{
"relative_path": "grid-templates.md",
"size_in_bytes": 1834
},
{
"relative_path": "references/directional-cycles.md",
"size_in_bytes": 12797
},
{
"relative_path": "references/lane-schemas.md",
"size_in_bytes": 14556
},
{
"relative_path": "scripts/build_grid_templates.py",
"size_in_bytes": 2595
},
{
"relative_path": "scripts/cycle_frames.py",
"size_in_bytes": 10735
},
{
"relative_path": "scripts/cycle_prompts.py",
"size_in_bytes": 15621
},
{
"relative_path": "scripts/cycle_sheets.py",
"size_in_bytes": 18840
}
],
"name": "scenario-sprite-animation",
"skill_md_contents": "---\nname: scenario-sprite-animation\ndescription: \"Use when animating 2D game art with Scenario: walk, idle or attack cycles in 4 or 8 directions, isometric sprite sheets, animated GIFs, frame-by-frame pixel art animation, VFX loops such as fire or smoke, looping a sprite seamlessly, animating an existing character image, a full animation sheet from one prompt, extracting animation frames from a generated video, or slicing a sprite sheet into engine-ready frames for Unity, Godot, or Unreal. Keywords: spritesheet, keyframes, frame grid, GIF.\"\nlicense: MIT\n---\n\n# Scenario Sprite Animation\n\n## Overview\n\nA bare prompt to a generic image model for \"a sprite sheet, walk cycle, 8 frames\" returns a picture\nof one; a written grid spec on a high-adherence image model returns the sheet (the single-sheet row\nbelow). Frame sequences come from routes picked by the control the task needs, not sprite size\nalone. This skill routes between lanes and carries the frame math; depth lives with siblings:\n`scenario-video` (video model families), `scenario-consistency` and `scenario-model-training` (one\ncharacter across an action set), `scenario-game-assets` (statics, pixel cleanup, upscaling; a sheet\nwhose cells are one character's frames stays here), `scenario-refine-loop` (iterate to brief).\nConnection and the core loop: the `scenario` skill. If a sibling skill named here is missing from\nyour available skills, load it with `skill_get` (Scenario MCP) or ask the user to install it\n(https://github.com/scenario-labs/skills#install); unattended, proceed from tool schemas and flag\nthe gap.\n\n## Quick reference\n\n| You need | Route |\n| ------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| Pixel cycles or VFX, style-locked canvas | Purpose-trained animation model (`recommend` with the sprite-animation need in the user's own words, non-deprecated pick): GIF preview, same-seed spritesheet re-run, slice |\n| An exact grid, chosen frame count, scripted beats | High-adherence general image model (`recommend` with the grid spec in the user's own words; expect `ask_user` against the purpose-trained pick): one `model_run`, slice, snap per tile, assemble |\n| A seamless loop from a still | First+last-frame video model (`recommend` with the loop requirement): the same flattened still at both ends plus explicit motion language, extract, seam-check |\n| Poses at chosen moments | Keyframe video model (`recommend` with the keyframe-pinning need): pin pose stills to frame indices or timestamps, extract |\n| Animate this sprite, larger or styled | Image-to-video on the flattened still, prompt anchored in a sprite-animation style with scripted motion beats; model per `scenario-video` |\n| One character across an action set | Turnaround plus reference-to-video per `scenario-consistency`; reuse references and settings for every action |\n| One character, several facings, a cycle set, one sheet | Pose sheet or turnarounds from the user's art, then one first-and-last-frame image-to-video clip per facing and cycle, finished locally by the shipped cycle scripts ([directional cycles](references/directional-cycles.md)) |\n| Frames to sheet, sheet to frames | Tool models via `model_run`: `model_scenario-video-to-image-seq`, `model_scenario-grid-maker`, `model_scenario-image-slicer`, `model_scenario-image-seq-to-video` (fixed first-party ids: each is Scenario's single deterministic tool for its step) |\n\nThe schema is the contract, read with `model_schema_get` on the pick: re-discover the generative\nmembers each session rather than hardcode them (the tool ids above are fixed). Per-lane schema\nnotes, covering the Retro Diffusion canvas lock and `returnSpritesheet` seed pairing on the pixel\nlane, the single-sheet schema shape and prices, the video-lane control surfaces, the alpha routes,\nand how to read a deprecation tag: [references/lane-schemas.md](references/lane-schemas.md).\n\nThe single-sheet lane trades the pixel lane's native pixels, locked canvas and seed pairing for a\ngrid honored as written; the pixel look is emulated, so the snapping pass is part of the lane.\nUnattended, the task decides between the table's first two rows: an exact grid, frame count or\nscripted beats in the brief takes the top-ranked general model over `specialty.model_id`, whose\n`when_general_better` names exactly those needs. Write the spec for the pipeline that will read it:\nrows and columns within the slicer's 6x6 (16 frames as 4x4, never 2 by 8, which is a local cut), a\ncanvas the grid divides evenly, one scale, camera, facing and ground baseline, the beats per frame\nrange with the last frame matching the first, generous margins, no labels. Leave GIF production\nlines out: an image model returns stills, and a hold is the same pose across extra frames. A\n`background` enum names no color, so a solid field is prompt wording; an existing character goes\nthrough the reference-image field; with no `seed` a re-run is a new character, so candidates come\nfrom the sample-count parameter and one sheet is approved before slicing. Read the delivered sheet\nbefore slicing: count the cells, read the cell edges, and count distinct poses, since a beat range\nnaming a single end state can come back as one held pose. Then slice, seam-check the tiles per step\n5, align the body across tiles, snap every kept tile with the same color count and seed, check that\nthe snapped tiles share one size, and assemble. Alignment is a post step, not a prompt: the body\ndrifts between rows (in one run the grounded feet sat 87 px higher in the last row than in the\nfirst, and neither anchoring language nor a layout template passed as reference image moved that),\nso measure each tile's body box, shift it onto one baseline and one horizontal center on a wider\ncanvas so nothing clips, then `upload_asset` the re-laid sheet and slice it, since frames edited\nlocally never become assets.\n\nFor reusable layouts, read the [grid manifest](grid-templates.json) and\n[template usage guide](grid-templates.md). Resolve uploaded assets and publish new versions through\nthe `scenario` skill's [shared asset lifecycle](../scenario/references/shared-assets.md). When none\nis accessible, the [grid builder](scripts/build_grid_templates.py), run by a maintainer or an agent\nneeding local geometry, creates the selected preset for MCP upload; it does not generate animation.\nPreserve the user's frame count and canvas over any preset. Templates do not replace the alignment,\nedge, and loop checks above.\n\nFor a character in several facings (isometric diagonals, side or top-down) with walk, run, idle and\nattack rows, follow the [directional cycles lane](references/directional-cycles.md): it covers the\nuser's own art, the key-color check, mirroring and weapon hands, and engine import. Its three\nscripts, run by the agent, keep the MCP steps in the lane and do only the local geometry:\n[cycle_prompts.py](scripts/cycle_prompts.py) writes model-agnostic requests to map onto a discovered\nschema, [cycle_frames.py](scripts/cycle_frames.py) makes first frames from any art, and\n[cycle_sheets.py](scripts/cycle_sheets.py) keys, loop-searches, registers and pixelates a\ncharacter's clips into sheets, which are then uploaded with `upload_asset`.\n\nThe frames pipeline is tool models run with `model_run`, not separate MCP tools: a\nvideo-to-image-sequence extractor (`extractAllFrames`, or every Nth frame via `frameInterval`; the\norder of its frames is verified, never assumed, see below), a grid maker (`images`, up to 100, kept\nin input order; `columns`, default 3, and `rows`, computed from the count when unset, so a delivered\n2 by 8 is the finished frames at `columns: 8`; `backgroundColor` takes a hex string, `transparent`,\n`black` or `white`), a grid slicer (`image` plus `xSubdivisions` and `ySubdivisions`, 1 to 6 each\nand defaulting to 2 when omitted, so 6x6 is the cap; no output-size parameter; tiles return in\nrow-major order but not always at cell size, so check one with `asset_get`, and a resized tile or a\nsheet past 6x6 means cutting the sheet locally on the grid you counted), a sequence-to-video\nassembler (`model_scenario-image-seq-to-video`, a first-party id stable enough to name; fps 1 to\n120, `loopCount`, `pingpong`, `outputFormat` `gif` or `mp4`), and a pixel snapper (re-detects the\nart's grid and quantizes to the requested color count, the one palette control in the cleanup chain;\npriced per tile, so probe one before the set). GIF frame delays quantize to 10 ms, so ask the\nassembler for an fps that divides 100 (10, 20 or 25; 8 lands at 125 ms and 12 at 83 ms, neither on\nthe grid), or it re-times and duplicates frames to hold the duration. Fps is the only timing lever\nafter generation, so plan frame counts up front and count what came back. Analysis is fine locally:\ndifferencing, seam math, edge reads, and window searches need pixels on disk.\n\nFrame order is verified, never assumed. Extracted frames share one `createdAt` and carry no index in\n`metadata`, so their order exists only in the job row's `assetIds`, and that list has come back out\nof time order (a confirmed defect at authoring time). Before any stride math, slice, or assembly,\npass the ids to the grid maker in returned order and read the contact sheet against the clip's free\n`firstFrame` and `lastFrame` (`asset_get`) and its motion: a frame that breaks continuity is out of\nplace, and the corrected order is carried as your own id list from then on. Never rebuild order from\nlistings, timestamps, or `search`.\n\n## Worked example: a seamless idle loop from a still\n\n1. Create a dedicated collection first (`collection_create`, tool catalog) and\n `collection_add_assets` (`collection_id`, `asset_ids`) every kept output as it lands. With no\n still to hand, generate and approve one first: it anchors every later step, so check\n subject-critical detail against the brief before animating, and budget it apart from the loop\n ([references/lane-schemas.md](references/lane-schemas.md)). Flatten the character onto a plain\n field (a local edit is fine; assume video inputs drop transparency as reference inputs do) and\n `upload_asset` it. Confirm lane and budget with the user; unattended, take them from the task\n instructions, else the cheapest lane that fits, and `dry_run` before every paid run.\n2. `recommend` with the loop requirement in the user's own words, prefer a non-deprecated pick, then\n `model_schema_get`. The schema decides the levers: duration and fps enums, a camera lock such as\n `static`, an audio toggle, and a native loop flag where present, replacing the end-frame anchor:\n never send both (`dry_run` accepts combinations that still fail at run time).\n3. `model_run` with the same still as first and last frame and a prompt that names the motion\n explicitly (\"weight shifts, cloak sways; the character stays in place\"). `jobs_wait` re-called\n with `pending_job_ids` while the job runs.\n4. If the sprite needs alpha, expect no video lane to emit it, so budget a removal pass; verify\n alpha survived on one downloaded frame before batching: inline display composites it away, and a\n transparent request can come back in a container without alpha\n ([references/lane-schemas.md](references/lane-schemas.md)). Extract with the\n video-to-image-sequence tool and verify the frame order first (above). Confirm what was delivered\n before computing any stride (requests are not always honored): `asset_get` reports\n `properties.duration`, `frameRate`, `nbFrames`, `width`, and `height`; `nbFrames` is the\n delivered frame count the math needs, so read those and leave the rest of the record alone. At\n authoring time the extractor exposed only `extractAllFrames` and `frameInterval`, so confirm with\n `model_schema_get`: no start offset, end, or range. Any non-uniform selection (trimmed window,\n stride off an offset, hand-picked subset) means `extractAllFrames: true` then subsetting by asset\n id; a `frameInterval` that cannot express the window is never a reason to leave the platform.\n Frame math: extracted count = delivered frames / `frameInterval`, endpoint-inclusive; where the\n schema exposes fps, generating at sprite cadence (8 to 12 fps: a cycle typically needs 8 to 16\n frames) beats decimating after.\n5. Seam-check against the sequence's own motion, not by eye: a seam reads as a loop only relative to\n how much the frames already move. Compute the mean absolute pixel delta between consecutive\n frames (the motion baseline) and the delta across the seam; the loop closes when the seam sits at\n or below the baseline of the window being looped, not the whole sequence's, since per-step delta\n swings by orders of magnitude across a scene loop. On a near-static idle, `asset_display` of\n first and last frame is enough; on locomotion (hop, walk, attack) eyeballing passes visibly\n broken loops. If the seam is wide, do not re-run first: image-to-video models re-render off the\n input still, so frame 0 often diverges from every later frame (a large 0 to 1 delta is the tell)\n and no re-run fixes a loop anchored to it. Search start and end pairs inside the model's own\n rendering, excluding frame 0, and take the tightest closing window that still carries real\n motion. Trim to where the motion is: a duration longer than the action leaves a static tail, and\n the stride comes from the active window, not the delivered length. Only after a window search\n fails is a re-run (new `seed` where the schema has one, else reworded motion) worth the credits.\n Unattended, allow one re-run, then flag and stop.\n6. Finish and package: a pixel-art target needs a snapping pass, which has traps of its own and is\n sometimes the wrong move ([references/lane-schemas.md](references/lane-schemas.md)). Sheet via\n the grid maker, `transparent` background or a color when the brief is opaque; preview via\n sequence-to-video as GIF; the assembler has no background parameter, so a deliverable GIF takes\n opaque frames already on its field. `asset_download` frames with `format=\"png\"` and the preview\n with `format=\"gif\"`, and omit `format` on a video asset, which rejects `mp4`.\n\n## Common mistakes\n\n- Identical first and last frames with a bare prompt: that asks for a freeze, not a loop; the motion\n must be named.\n- Treating margin or wording as containment for a traveling effect: what crosses the cell edge is\n gone, margin gets filled and crossed anyway, and containment wording cancels the throw. Keep the\n frames whose delivered edge band reads empty; the detached projectile is its own sprite.\n- Assuming every model has a `seed`: many video schemas and several high-adherence image schemas\n have none, so reproducibility there is per-asset, not per-run.\n- Counting on an interpolation filter: none exists in the catalog, and fps is the timing lever.\n Pixelating a non-pixel image is a different job from cleaning pixel art: the catalog carries a\n pixelate tool (grid size, palette) for the first and the snapper for the second, both found with\n `search` (`target: \"models\"`, `public: true`, `filters` `tags: [\"tool\"]`, `query: \"pixel\"` returns\n both; the descriptions tell them apart).\n- Photo upscalers on pixel frames: they invent texture; use the pixel-preserving routes in\n `scenario-game-assets`.\n- Shipping a sheet unstepped: per-frame steps return new ids and order lives only in the lists you\n pass, so carry the frame-to-output mapping (never rebuild it from listings or timestamps), then\n compare sheet to preview before delivery.\n- Assembling deliverables locally because the frames are already on disk: analysis pulls the clip\n down, local assembly then looks free, and the frames never become assets, leaving the collection\n holding a sheet nobody else can reach.\n- Ping-pong or loop flags set blind: watch the downloaded GIF and match the assembler to it.\n- Launching every frame, direction, or clip at once: past the team's concurrency ceiling (the\n `parallel-custom-jobs` row in the `scenario` skill) a launch is refused with that 429 and creates\n no job, and on some video lanes the burst is accepted and comes back as failed, refunded jobs\n instead ([directional cycles](references/directional-cycles.md)). Either way, launch in waves and\n relaunch every refused or failed item in the next one rather than dropping it.\n- Softening an attack brief after a moderation block: the filter is the provider's, so try another\n general image model first per `scenario-moderation`, grid spec unchanged; rewording the beats\n loses what the lane exists to honor.\n"
}SHA-256 of public snapshot: 687b4dfbcd644562fabc4b277f00aac4890f46895850611c56d0b05782692267