Catalog
fairoosansar-coder/game-animation-frames

fairoosansar-coder

game-animation-frames

Deep guide for game ANIMATION assets: motion cycles, action keyframes, effect sequences, and animation sprite sheets — built around a video-first pipeline. In this app-builder sandbox, execute via the video2dsprite / generate2dsprite skills (magenta + scripts), not ad-hoc ffmpeg. Use whenever generating anything that moves: walk/run cycles, attacks, idles, FX, flags, fire, animation sheets. Complements game-asset-core.

v1.0LATEST
NewUpdated Oct 29, 2026

Animation Frames — video-first

The image generator draws poses; the VIDEO generator understands motion — leg alternation, arc continuity, cloth and fire dynamics come free because video must animate them. So don't ask the image model to imagine mid-motion poses: animate the base and harvest real frames.

App-builder execution (read first)

This skill is doctrine (motion laws, loop QC, when to use video). In the app-builder sandbox, do not run a freeform ffmpeg harvest or invent a random keyable #hex background.

Step Do this
Production sprites / fixed grids generate2dsprite — solid #FF00FF magenta sheets + chroma scripts
Denser locomotion from video video2dsprite — base still on #FF00FF → image_to_video → skill scripts (ffmpeg + chroma)
Keyable background Always #FF00FF when using either pipeline (required for chroma)
This skill Loop / flip-test / motion laws below — apply after the pipeline runs

Open .grok/skills/video2dsprite/SKILL.md or .grok/skills/generate2dsprite/SKILL.md and follow their workflows for generation and postprocess. Then apply the laws and flip test here before shipping frames into the game.

Default pipeline (intent)

  1. Base frame. Subject in neutral/starting pose, full style words, side / game-appropriate view, solid #FF00FF background (app-builder chroma key). game-asset-core defaults apply.
  2. Animate. image_to_video from the base: one clear motion, in place, static camera ("the knight walks in place, side view, camera locked", 6s). Keep the shot simple — one subject, one motion. Prefer running this through video2dsprite so harvest + chroma are consistent.
  3. Harvest + clean. Use video2dsprite scripts (not ad-hoc ffmpeg -i … fps=12 alone). Magenta flood-fill / despill lives there; do not re-key with a different flat #hex unless you leave the magenta pipeline entirely.
  4. Select. Pick frames that (a) capture the motion's distinct phases and (b) LOOP — the sequence's end must flow back into its start. Don't force a count: if the motion reads best with 8, 10, or 12 frames, deliver that many (more frames = smoother in-engine). For a cycle, select one full period using motion landmarks (foot contacts, wing extremes, flame peaks).
  5. Package. Deliver frames in play order (zero-padded names) and/or a sheet per game-asset-core rules (uniform cells, no dividers) — or the transparent strips/grids emitted by video2dsprite / generate2dsprite. State the intended fps.

Fall back to keyframe-by-keyframe image_edit (still on #FF00FF when postprocessing with the sprite scripts) only when video fails the motion (rare: very stylized poses, single dramatic keyframes) — and then plan phases yourself and obey the laws below. Prefer generate2dsprite for crisp production multi-frame grids.

Motion laws (verify against these, whatever the pipeline)

  • Cycles loop; alternating gaits spend half the period mirrored.
  • Continuity: limbs, props, anatomy, effects move on continuous paths — nothing teleports, vanishes, or duplicates between adjacent frames.
  • Physics reads in stills: airborne shows air, anticipation compresses, follow-through overshoots; effects stay anchored to their origin unless the request moves them.
  • Energy matches the ask: idle/subtle means barely-different frames.

Verify — the flip test

View the final frames strictly in order and narrate the motion; check loop closure explicitly (last→first). A hedge in your narration is a failed frame. The video pipeline usually passes this on the first try — that's why it's the default.

Overall Score

82/100

Grade

B

Good

Grades are signals, not a certification. Always review a skill yourself before use.

Safety

92

Quality

78

Clarity

80

Completeness

75

Summary

This skill provides doctrinal guidance for generating game animation assets using a video-first pipeline. It teaches the principles of motion cycles, loop closure, and frame selection—and crucially directs agents to use specialized sister skills (video2dsprite, generate2dsprite) rather than ad-hoc ffmpeg commands. The skill is read-only, offering motion laws, verification tests, and pipeline orchestration rules.

Detected Capabilities

read SKILL.md filesprovide doctrinal guidance on animation principlesdirect to external skill execution (video2dsprite, generate2dsprite)reference external image_to_video and image_edit APIs

Trigger Keywords

Phrases that agents use to match this skill to user intent.

walk cycle animationgame sprite animationloop closure testmotion frame harvestattack animation sequencecharacter locomotion framessprite sheet validation

Use Cases

  • Generate walk/run locomotion cycles for game characters
  • Create attack or action animation sequences with proper loop closure
  • Harvest and clean animation frames from video using the magenta chroma pipeline
  • Validate animation sequences against physics and continuity laws before shipping to game engine
  • Understand when to use video-first generation vs. keyframe-by-keyframe image editing for animation

Quality Notes

  • Clear architectural separation: this skill is purely doctrinal/informational and explicitly forbids ad-hoc ffmpeg execution—instead routing users to controlled sister skills
  • Strong scope boundary: all actual file operations, video processing, and frame harvesting are delegated to video2dsprite/generate2dsprite, not performed here
  • Practical motion laws are well-articulated and verifiable (loop closure, continuity, physics, energy)
  • The 'flip test' is a concrete, actionable quality check that an agent can execute
  • Magenta (#FF00FF) background requirement is clearly documented and justified (chroma keying consistency)
  • Good defensive design: by forbidding freeform ffmpeg and cross-tool background colors, the skill prevents common pipeline failures
  • Minor clarity gap: the skill references `.grok/skills/video2dsprite/SKILL.md` by relative path, which assumes a specific directory structure—could be clearer for portability
Model: claude-haiku-4-5-20251001Analyzed: Oct 29, 2026

Reviews

Add this skill to your library to leave a review.

No reviews yet

Be the first to share your experience.

Use fairoosansar-coder/game-animation-frames in your dev environment

Command Palette

Search for a command to run...