sprite-forge
Skill40 starsChanged 8 months agoMITView on GitHub
Generate game sprites, 8-direction turnarounds, walk-cycle sprite sheets, SVG characters, ASCII art and animated mascots from images or descriptions, with September 2026 providers: Retro Diffusion (pixel art, 8-dir rotation, frame animation, free palette tools), fal genmedia (GPT Image 2.5, Nano Banana 2, Kling 3, Seedance 2.5, Wan 3, Hailuo 03). Deterministic utilities: feet-line frame alignment, palette-preserving Scale2x/3x/4x pixel scaler, atlas manifest v2 with states/fps/loop/anchor, Aseprite JSON, pipeline profiles. Triggers on sprite, pixel art, sprite sheet, spritesheet, turnaround, 8-direction, walk cycle, atlas manifest, frame alignment, pixel scaler, Retro Diffusion, genmedia, SVG character, ASCII art, mascot, game asset, sprite pipeline profile.
- Pipes a download into a shell
- Reads credentials
1 other project uses a version of this.
Adopted by
Most recently taken up by
- isabellagreco1997/sprite-forgetheir own version, first seen Sep 5, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- isabellagreco1997/sprite-forge★ 3same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository99 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- agents-md-managerSkill
- architecture-md-builderSkill
- autoresearchSkill
- claude-agent-sdkSkill
- claude-md-managerSkill
- claude-usageSkill
- dag-typesafeSkill
- fableSkill
- glossarySkill
- openrouter-usageSkill
- react-best-practicesSkill
- skill-optimizerSkill
- stop-slopSkill
- tamarruSkill
- test-harness-auditorSkill
- user-model-builderSkill
- atmosphere-shaderSkill
- component-gallerySkill
- conductor-motionSkill
- design-auditSkill
- design-critiqueSkill
- design-mdSkill
- design-polishSkill
- gemini-claude-resonanceSkill
- gemini-forgeSkill
- gpt-atelierSkill
- grainientSkill
- image-forgeSkill
- image-wellSkill
- meshySkill
- mindnode-uiSkill
- minoan-frontend-designSkill
- nano-banana-proSkill
- overwatch-slidedeckSkill
- paper-designSkill
- particle-swarm-simSkill
- pellicolaSkill
- photo-to-slack-emojiSkill
- pretextSkill
- recordlySkill
- rocaille-shaderSkill
- scroll-cinemaSkill
- shadcnSkill
- shapeSkill
- smolvlmSkill
- speak-responseSkill
- threejs-particle-canvasSkill
- vellum-editorialSkill
- webgpu-threejs-tslSkill
- agent-browserSkill
- beautiful-mermaidSkill
- classical-887Skill
- claude-peersSkill
- cloudflareSkill
- codex-ctoSkill
- codex-orchestratorSkill
- disc-forgeSkill
- figma-mcpSkill
- linkedin-exportSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 0 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 11
Cost rule: every provider script is a free dry run until you pass --yes.
- Very specific: line 22
Not for: 3D generation (meshy skill), photoreal image editing (nano-banana-pro skill), generated sprites where original assets exist and …
- Very specific: line 91
genmedia: Use --async for anything over ~5 s (the video script does).
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Sprite Forge
Game-ready sprites from images or text, September 2026 edition. Five pipelines, two wired providers (Retro Diffusion, fal genmedia), and a profile runner so a project can declare its own pipeline.
Cost rule: every provider script is a free dry run until you pass --yes. Retro Diffusion runs check_cost; genmedia prints the exact command and price. Never add --yes on a user's behalf without stating the estimate.
When to use
- Pixel-art characters, 8-direction rotations, animated frames from a start image
- Walk/idle/attack sprite sheets from video (first+last-frame loops)
- HD painted turnarounds via GPT Image 2.5 edits
- Upscaling indexed sprites without new colours (faithful-HD rule)
- Atlas metadata with states, fps, loop, anchor (Phaser/Godot/Flame/Aseprite)
- SVG mascots with GSAP, ASCII art, lil-agents dock videos (unchanged niche)
Not for: 3D generation (meshy skill), photoreal image editing (nano-banana-pro skill), generated sprites where original assets exist and parity is required (see references/pipelines/open-rebellion.md).
Work sequentially inside a pipeline; parallel agents only for independent characters.
Quick start
S=~/.claude/skills/sprite-forge/scripts
# 8-direction pixel sprite (one Retro Diffusion call, $0.25)
python3 $S/turnaround.py --mode pixel --prompt "astromech droid" --ref droid.png --out ./turn # add --yes
# Walk cycle: Wan 3 clip on chroma -> key -> feet-align -> atlas v2 (+ Aseprite JSON)
python3 $S/video_to_spritesheet.py --provider genmedia --start-frame hero.png --end-frame hero.png \
--prompt "side-view walk cycle in place, flat #00FF00 background" --duration 4 --cell-size 128x128 \
--dedup 6 --state walk:12:loop --aseprite-json -o walk.png # add --yes
# Indexed sprite 4x with the same palette
python3 $S/pixel_scale.py --input sprite.png --output sprite_4x.png --mode scale4x
# Frames -> sheet with manifest v2
python3 $S/stitch_spritesheet.py --input-dir frames/ --atlas v2 --state idle:8:loop --cols 8 -o idle.png
# Profile
python3 $S/run_pipeline.py ~/.claude/skills/sprite-forge/pipelines/example.json --dry-runPipeline 1: Turnaround (turnaround.py)
--mode pixel:rd_animation__8_dir_rotation(80x80, <= 5 refs) -> split ->stitch --atlas v2 --directions 8. One paid call.--mode hd: anchor -> 4 cardinal edits -> 4 diagonal edits (anchor + two neighbours as refs) -> key if--chroma->align_frames-> stitch. Default modelopenai/gpt-image-2.5/sunburst/edit(true alpha);--model fal-ai/nano-banana-2/edit --chromafor typed refs.- Order in the sheet: S, SE, E, NE, N, NW, W, SW. See
references/turnaround.md.
Pipeline 2: Video -> sprite sheet (video_to_spritesheet.py)
[genmedia clip] -> ffmpeg -> chroma_key (once) -> align_frames (feet line, dedup, loop check) -> stitch v2. Default model alibaba/wan-3.0/image-to-video with --end-frame = start frame for a seamless loop; alternates Seedance 2.5, Kling 3 (@Element identity), Hailuo 03 (timecoded multi-state). Per-frame rembg on video is refused (matte flicker) unless --allow-rembg-video. Recipe and model table: references/video-to-spritesheet.md; jitter rules: references/frame-alignment.md.
Pipeline 3: Pixel scaling and palette (deterministic)
pixel_scale.py --mode nearest|scale2x|scale3x|scale4x, mode-P in, mode-P out, palette block and transparency kept, colour count never grows.--family dir/ --output-dir out/transforms a frame family and writesfamily.jsonwith a family sha256.- Retro Diffusion free tools for the generative side:
retro_diffusion.py tool k_centroid_downscale --input-image in.png --field width=64 --field height=64,tool palette_converter --palette pal.png,tool color_reducer --field color_count=16,tool pixel_correction;pixelate(rd_pro__pixelate, $0.18) turns any raster into native pixel art. pixel_art_generator.pysurvives only for the SVG<rect>mascot path (Pipeline 4).
Pipeline 4: SVG characters and GSAP mascots
Gemini SVG-as-code for clean vectors (references/gemini-svg-generation.md); pixel_art_generator.py --grid 16-24 --colors 4-6 --merge for rect-based pixel mascots (references/pixel-art-svgs.md); animation_builder.py --preset idle|bounce|lean|wave|walk|walk-and-bounce|walk-and-wave|typing for GSAP timelines (references/gsap-timeline-patterns.md, references/ayotomcs-deconstruction.md); generate_walk_video.py sheet.png --cols 6 --name robot for lil-agents HEVC-alpha dock videos (references/lil-agents-character-spec.md). Trim AI images first: magick in.png -fuzz 15% -trim +repage out.png.
Pipeline 5: ASCII
image_to_ascii.py img.png --mode gray|color|jp2a --width 80 for static art (references/ascii-art-techniques.md); frame-based React components and the asciistudio catalog in references/ascii-animation-components.md and references/animated-ascii-sprites.md; template assets/ascii-animation-template.tsx.
Profiles (pipelines/)
A profile (pipelines/schema.json) is an ordered list of stages over these scripts with ${var} substitution. run_pipeline.py profile.json [--dry-run] [--yes] [--stage name] [--from name] [--force] writes <output_root>/run/<id>/manifest.json with per-stage commands and input/output sha256 and skips unchanged stages. pipelines/example.json is the generic character profile; project profiles live in their repos (Open Rebellion: references/pipelines/open-rebellion.md).
Provider matrix (short)
| Need | Use | Alpha | |||||
| Pixel still / identity | RD rd_pro__default + --ref (<= 9), $0.18 | --remove-bg | |||||
| 8 directions, pixel | RD rotate8, $0.25 | yes | |||||
| Animate a start frame | RD `animate --action walking | idle | attack | jump | crouch | custom_action` | key on --matte |
| HD anchor / edits | openai/gpt-image-2.5/sunburst[/edit] via gen_image.py | yes | |||||
| Many typed refs | fal-ai/nano-banana-2/edit | no, chroma | |||||
| Loops | alibaba/wan-3.0/image-to-video first+last | no, chroma | |||||
| Identity-critical clip | fal-ai/kling-video/v3/pro/image-to-video @Element1 | no, chroma |
Full table, prices, setup commands and PixelLab notes: references/provider-matrix.md. Setup: genmedia CLI (curl https://genmedia.sh/install -fsS | bash, then genmedia setup --non-interactive --api-key "$FAL_KEY"), RETRODIFFUSION_API_KEY in ~/.config/env/secrets.env; optional RD MCP claude mcp add --transport http retro-diffusion https://mcp.retrodiffusion.ai/mcp --header "Authorization: Bearer rdpk-...".
Gotchas
- Feet line, not bbox. Halos and shadows move the bbox;
align_frames.pyscans for the lowest row with >= 5% solid width. Checkfeet_line_variance < 1. - One matte per clip. Chroma-key video frames with one setting; per-frame
rembgflickers (perimeter_cv > 0.15). - RD limits. Styles cap at 384 px, animations at 256 and must match the start frame;
input_imagemust be RGB without alpha (scripts composite onto--matte);negativeis ignored; never write "pixel art" in RD prompts; balance is charged before generation. - genmedia. Use
--asyncfor anything over ~5 s (the video script does); verify endpoint ids and field names withgenmedia models/genmedia schema; the GPT Image 2.5 endpoint spelling came from a third-party commit. - Nano Banana 2 still has no alpha; GPT Image 2.5 and RD do. Never key magenta on warm costumes.
- Manifest v2 pastes at cell origin; use
--fit scaleonly for legacy sheets that need centring. - Pixel art through the aligner:
--no-scale, and the scaler uses nearest below 256 px. - Turnarounds: cardinals, then diagonals; diagonals come out shorter, so never skip the align step.
Dependencies
Pillow (numpy optional, speeds pixel_scale.py), ffmpeg, ImageMagick 7, genmedia CLI (fal), rembg (stills only), jp2a (optional), GSAP 3 via CDN. Keys: FAL_KEY, RETRODIFFUSION_API_KEY (loaded by scripts/_secrets.py from env or ~/.config/env/secrets.env).
Reference
references/provider-matrix.md,references/landscape-2026-09.md— endpoints, prices, what changedreferences/turnaround.md,references/video-to-spritesheet.md,references/frame-alignment.md,references/chroma-key-transparency.md— pipeline detailsreferences/gemini-svg-generation.md,references/pixel-art-svgs.md,references/gsap-timeline-patterns.md,references/ayotomcs-deconstruction.md,references/lil-agents-character-spec.md— SVG and mascotreferences/ascii-art-techniques.md,references/ascii-animation-components.md,references/animated-ascii-sprites.md— ASCIIreferences/pipelines/open-rebellion.md— project profile pointertests/test_deterministic.py— runpython3 tests/test_deterministic.py
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

