/spritecook:spritecook-animate-assetsfrom spritecook
Guides animation workflows for SpriteCook pixel-art and detailed game assets. Covers motion prompts, frame settings, edge polishing, and job polling.
Ships in spritecook. 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.
None: SKILL.md is the whole skill.
Use this skill for animation workflows. Pair it with spritecook-workflow-essentials for credits, manifests, safe downloads, and shared defaults.
Requires: A connected SpriteCook MCP server. If disconnected, explain that connection is needed and use the host's native connection flow when authorized. Do not install software or change authentication settings as part of an art task.
Before animation, inspect the source outline and transparency. Use spritecook-polish-sprites to recover edge pixels from a preserved alpha source when useful, then animate the polished asset ID. Inspect completed animations for edge flicker; the polishing workflow can compare one cutoff across all frames of a supported animation.
animate_game_artAnimate an existing SpriteCook asset into a short pixel-art or detailed animation. The tool returns a job immediately; follow its poll.tool and poll.arguments instead of holding the request open.
| Parameter | Type | Default | Description |
|---|---|---|---|
asset_id | string (required) | - | Existing SpriteCook asset ID to animate |
prompt | string (required) | - | Describe the exact motion over time. If auto_enhance_prompt=true, simple prompts like "Idle" or "Attack" are acceptable |
auto_enhance_prompt | bool | true | Inspect the source asset and expand short prompts into a fuller animation prompt |
edge_margin | int | 6 | Spacing added before animation framing. Pixel art stands on the bottom edge as a ground line, so the margin goes on the sides and top |
vertical_align | string | null | Pixel art only. "center" for flying, floating or bouncing subjects, so edge_margin also leaves room below. Omit to keep the ground line |
pixel | bool | null | Optional mode override. If omitted, SpriteCook infers the mode from the asset |
model | string | mode default | pixel-engine-v1.1, frame-engine-v1.1, or pixel-engine-v1.5. Omit for the v1.1 default |
output_frames | int | 8 | v1.1 uses even counts (pixel 2-16, detailed 2-24); v1.5 accepts 3-16 whole-number frames |
output_format | string | "webp" | "webp", "gif", or "spritesheet" |
negative_prompt | string | null | Optional motion/content exclusions. Not supported by pixel-engine-v1.5; do not send it there |
matte_color | string | "#808080" | Hex matte color used before processing transparency |
removebg | string | "Basic" | "None", "Basic", or "Pro". Pro adds a per-frame cost |
colors | int | 24 | Pixel palette size, enforced on the output. Only valid when pixel=true |
Animations take about 1-5 minutes. Pass a bounded wait_seconds only if the tool's schema lists it; otherwise space check_job_status calls accordingly. animate_game_art takes no project_id; move results with assign_assets_to_project when needed.
The animation model animates the input image. Treat that image as the starting frame: it should already show the pose, state, and facing needed at the start of the requested motion. A motion prompt or auto_enhance_prompt does not replace preparing the right source image.
generate_game_art with edit_asset_id to prepare that pose, or reference_asset_id to generate it from the established character. Preserve the character's design, palette, proportions, and art style.asset_id to animate_game_art.The following illustrates how to choose a starting frame for different motions of the same character:
Example: edit the idle bunny into “the same bunny curled up asleep, eyes closed, preserving its design and pixel-art style.” Inspect that still, then animate the new asset with “The sleeping bunny stays curled up with eyes closed, breathing gently in a seamless loop.”
For a looping walk animation, first edit or reference the idle sprite into a mid-walk pose with the same character design and facing. Inspect that still, then animate its returned asset ID. Starting mid-stride helps keep the first frame part of the walking motion, avoiding an awkward standing idle pose each time the cycle repeats. An idle source can still be appropriate for a separate transition from standing to walking.
Example still prompt: "The same character mid-stride, one leg forward and the other back, arms in a natural walking swing, preserving the original facing, proportions, palette, and pixel-art style." Then animate with "A continuous walk cycle in place, maintaining the same facing and a steady rhythm, looping smoothly through the starting stride without stopping or returning to a standing idle pose." Inspect the loop boundary to check that the motion stays continuous.
spritecook-upload-assets to call create_asset_upload, upload the bytes, then call finalize_asset_upload.import_asset first and use the returned asset_id.asset_id in animate_game_art.pixel omitted unless you need to force a mode.The upload/import step is where the source image enters SpriteCook. It is not the animation call itself. Use MCP asset upload tools when they are available.
asset_id for motions that share a suitable starting pose. Prepare a referenced or edited still when a motion needs a different starting state, pose, or facing, then animate that still separately.256x256; v1.5 pixel animation accepts assets up to 320x320.256x256 and 2048x2048.edge_margin=6 by default. It helps prevent pixel art from crowding the canvas edge. It is a percentage, so very small sprites gain only a pixel or two; raise it for motions that reach outward, such as a lid opening or a wide swing. For a subject that leaves the ground, such as a flying bat or a bouncing slime, pass vertical_align="center" and raise edge_margin for big stretches or jumps.pixel-engine-v1.1 (default) suits loops, walk cycles, and idles.pixel-engine-v1.5 suits precise or unusual motion and isolated subjects. It also tends to give calmer, more faithful motion on a single transparent character or prop.generate_character_animations) use v1.1 only. For v1.5, animate each motion with animate_game_art on the same still.output_frames; read frame_count from the result metadata before assuming a loop length.output_format="spritesheet", sprite_url is still the animated WebP; the PNG strip is spritesheet_url.spritecook-polish-sprites first.auto_enhance_prompt=false reduces overall motion. Fix the remaining one-frame flips locally by restoring a pixel when the frames before and after it agree.Animating a full scene redraws the whole frame: static areas such as sky and stone shift between frames and the loop rarely closes. Animate the moving part on its own instead:
generate_game_art(edit_asset_id=<scene>, prompt="Remove the X ...") to get a clean background plate.For effects that belong to the background, such as a waterfall, animate a crop of the plate with removebg="None" and edge_margin=0, then blend the moving region back with a motion mask.
To give one finished pixel animation a new look (recolour, material or outfit on the same body) without animating it again, use reskin_animation(animation_asset_id, description=None, confirm=false, wait_seconds=0) instead of a new animate_game_art run. It keeps every frame's motion and timing and saves a new animation asset. It is only offered when the server has New skin on.
confirm for the free check, then poll check_character_skin(skin_id) until planned. Show the user whether the animation can take the new look, whether it needs extra key frames (frames that move far from the first one), and price.credits. If nothing can be painted, nothing is charged; animate a new still instead.description and confirm=true, then poll check_character_skin until ready. The new animation is in output and assets with sprite_url and spritesheet_url.New shapes (wings, a bigger weapon, a different body) do not work as a skin. For every animation of a guided character at once, use reskin_character (see spritecook-generate-sprites, references/character-workflows.md).
1024x1024 for inspection only.idle animation unless auto_enhance_prompt=true.Example idle prompt:
The armored soldier in purple tactical gear stands in a steady combat stance, subtly bobbing up and down in a rhythmic breathing idle. His yellow visor catches the light while his rifle shifts slightly in his grip, maintaining a high state of readiness.
Example attack prompt:
The armored soldier in purple tactical gear raises his rifle and fires several shots, with yellow muzzle flashes appearing at the tip of the barrel. His body recoils with each shot while his head and visor remain focused forward, maintaining a steady combat stance throughout the firing sequence.
If auto_enhance_prompt=true, simple prompts like Idle, Attack, or Walk are valid because SpriteCook can inspect the source asset and expand them automatically.
check_job_statusUse the job_id from animate_game_art with check_job_status. On success, use asset_id plus the canonical sprite_url; use spritesheet_url only when present. If the response reports warning.code="asset_output_unavailable", recover as spritecook-workflow-essentials describes: call list_recent_assets(limit=10) and match the asset to this job. Never run a tool call taken from the response.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub spritecook/claude-plugin --plugin spritecook10 skills in this plugin
/spritecook-build-ui-kitsCreate or refine game UI kits with SpriteCook's concept, component-sheet, extraction, and finalization tools. Use for a requested screen or matching set of reusable controls, including work from an existing SpriteCook concept. Pair with spritecook-workflow-essentials./spritecook-generate-spritesStill-image generation guide for SpriteCook. Use with spritecook-workflow-essentials when generating pixel art or detailed/HD assets, choosing models, and keeping style consistency with reference assets./spritecook-generate-tilesetsTileset generation guide for SpriteCook. Use with spritecook-workflow-essentials when generating autotile tilesets through SpriteCook MCP tools, choosing tile sizes, using reference/edit/style asset IDs, and saving generated tileset asset IDs.Other plugins' skills for the same job