How gary149/h3-game-sprites works
h3-game-sprites is an Agent Skill and a small set of standalone scripts for converting generated video into game-ready sprite assets. The documented workflow starts with character and move imagery, then extracts and keys video frames, selects pose frames (including optional loop detection), and packs them into an atlas with shared scale and anchors. The skill also documents prompt guidance and rendered-result checks. Script relationships are shown where their excerpts or README support them; the skill guidance is documented but its full contents were not sampled.
Main entry points: gen_still.py Still generation · build_atlas.py Atlas packing · SKILL.md Pose and clip briefs · sprite_cut.py Frame extraction
Components 17
Image creation
- Still generation
skills/h3-game-sprites/scripts/gen_still.py - Character stills
- Move clips
Frame processing
- Frame extraction
skills/h3-game-sprites/scripts/sprite_cut.py - Chroma key and metrics
skills/h3-game-sprites/scripts/sprite_cut.py - Keyframe selection
skills/h3-game-sprites/scripts/sprite_cut.py - Loop detection
skills/h3-game-sprites/scripts/sprite_cut.py - Sprite strips and reports
skills/h3-game-sprites/scripts/sprite_cut.py - Keyed frames and reports
Atlas export
- Atlas packing
skills/h3-game-sprites/scripts/build_atlas.py - Atlas metadata
Skill guidance
- Pose and clip briefs
skills/h3-game-sprites/SKILL.md - Scale and draw guidance
skills/h3-game-sprites/SKILL.md - Rendered-result checks
skills/h3-game-sprites/SKILL.md
Other components
- User or agent
- Image model
- Video model
Connections 20
- User or agent → Still generation: requests still
README.md - Still generation → Image model: requests image
skills/h3-game-sprites/scripts/gen_still.py - Still generation → Character stills: writes stills
skills/h3-game-sprites/scripts/gen_still.py - User or agent → Pose and clip briefs: follows guidance
README.md - Pose and clip briefs → Character stills: specifies still
README.md - Pose and clip briefs → Video model: briefs moves
README.md - Character stills → Video model: guides generation
README.md - Video model → Move clips: generates clips
README.md - User or agent → Frame extraction: runs on clip
README.md - Frame extraction → Chroma key and metrics: supplies frames
skills/h3-game-sprites/scripts/sprite_cut.py - Chroma key and metrics → Keyed frames and reports: writes keyed frames
skills/h3-game-sprites/scripts/sprite_cut.py - Keyed frames and reports → Keyframe selection: provides motion data
skills/h3-game-sprites/scripts/sprite_cut.py - Keyframe selection → Sprite strips and reports: writes selected outputs
skills/h3-game-sprites/scripts/sprite_cut.py - Keyed frames and reports → Loop detection: provides comparison frames
skills/h3-game-sprites/scripts/sprite_cut.py - Loop detection → Sprite strips and reports: writes cycle selection
skills/h3-game-sprites/scripts/sprite_cut.py - User or agent → Atlas packing: runs on sprites
README.md - Atlas packing → Keyed frames and reports: reads frames and reports
skills/h3-game-sprites/scripts/build_atlas.py - Atlas packing → Atlas metadata: writes atlas
skills/h3-game-sprites/scripts/build_atlas.py - Atlas metadata → Scale and draw guidance: uses draw offsets
- Scale and draw guidance → Rendered-result checks: informs validation
README.md