asset-pipeline
What it does
This skill prepares sprites and textures so a game can use them, covering cutouts, resizing, sprite sheets and color masks. It is for modders who want new art to work in the game without manual fixes.
When to use it
- ✓When you have new art and need it in the exact frame size and format the game expects.
- ✓When you want to cut out a background or turn art into a sprite sheet.
- ✓When you need a player or team color version of a sprite.
Skill link
https://github.com/rehan-remade/universal-modder/blob/main/.agents/skills/asset-pipeline/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Turn this generated character picture into a sprite sheet that matches the frame size of the game.”
5 new skills a week. 1 minute to read.
How it works
The agent first checks the game's own files for size, orientation and file type, then converts your art to match using cutout, trimming, resizing and palette steps. It can also render 3D models into sprite frames.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Asset pipeline: from art to engine-ready files
The fal-assets skill makes pictures. This skill makes files the game accepts: the right size, frame
layout, orientation, alpha, palette and format. All commands are um sprite ... and um render3d ...; each
has --help with examples.
1. Learn the target format from the game itself
Before converting anything, open two or three of the game's own assets and write down in MODLOG.md:
- Dimensions: frame size, frames per sheet, and the layout (vertical strip / grid / one file per frame).
- Orientation: which way the art faces (Terraria: items point right, NPCs face left, the engine flips them), and where the pivot or hotspot sits (AoE2: the unit's ground point at the canvas centre).
- Alpha: hard 1-bit edges (BC1 punch-through, pixel art) or soft.
- Style: palette size and outline (dark 1-2 px outline in most pixel-art games).
- Format: PNG, DDS BC1/BC3/BC7, XNB, SLD, atlas + JSON...
The draw code is the final authority. In Terraria, NPC frame height = texture height / Main.npcFrameCount,
so any consistent frame size works.
2. 2D pipeline
um sprite info raw.png # size, alpha coverage, corner colour
um sprite cutout raw.png cut.png # flat bg → transparent (border flood fill keeps interior whites)
um sprite cutout raw.png cut.png --grey 150 --keep-top 0.8 # also remove a soft grey shadow / the floor under it
um sprite fit cut.png item.png --size 64x26 --hard-alpha # trim + ONE nearest-neighbour scale into the frame
um sprite fit cut.png npc.png --size 38x34 --anchor bottom # standing sprites sit on the frame's bottom edge
um sprite pixelate cut.png px.png --size 32x32 --colors 16 --outline # true pixel art from painterly art
um sprite palette px.png px2.png --from stock_sprite.png # snap to the game's own colours
um sprite frames npc.png frames/ --n 3 --kind bob # cheap idle animation (bob/squash/wobble/flash)
um sprite sheet sheet.png frames/*.png --vertical # Terraria-style strip (or --cols N grid)
um sprite slice sheet.png out/ --frame 32x32 # the other direction
um sprite team-mask unit.png unit_grey.png --hue blue # player-colour mask (+ desaturated sprite)
um sprite preview item.png look.png --scale 6 # checkerboard + zoom: LOOK at it before shipping
- Pixel art: scale once, with nearest neighbour, to the final size. Never scale pixel art twice.
- Painted / HD art: use
fit --smooth. - Real frames: for animation frames beyond bob/squash, generate each frame with the fal edit endpoint using the base sprite as reference ("same drone, rotors tilted, frame 2 of 4"), then cut out and fit each frame the same way. Or go 3D (below).
3. 3D → sprites (consistent angles and animations)
um fal model3d concept.png --name unit # textured GLB (Trellis 2 by default)
um render3d assets/gen/unit.glb frames/ --preset aoe2 --length 80 --forward-yaw -90 \
--anims idle:10:bob,walk:12:walk,attack:16:lunge,death:20:die --shadows --samples 40
um render3d assets/gen/unit.glb side/ --preset side --canvas 128 --length 110 --engine eevee # platformer facing R + L
Presets:
| Preset | Projection | Camera | Facings |
|---|---|---|---|
aoe2 |
ortho | 30° | 16 clockwise from east |
iso8 |
ortho | 30° | 8 |
trueiso |
ortho | 35.264° | 8 |
topdown |
ortho | — | 8 |
side |
ortho | — | 2 (right, left) |
turntable |
persp | — | 24 (promo/icon spins) |
--lengthsets the model's longest horizontal side in pixels at 1x, so match stock units.--forward-yawturns the model so its nose faces +X; check the first frame.--shadowsadds a shadow-only pass (*_s.png) for engines that keep shadows in their own layer.- Motions: bob, walk, lunge, die, wreck, spin.
- Then pack with
um sprite sheet, or with an engine writer (e.g.examples/aoe2-de-civ/sld.py). - Needs Blender (
blenderon PATH orBLENDER=...). Cycles uses the GPU when available. - Dark generated textures: raise
--sun/--ambient, or brighten in post. - For game-ready 3D (not sprites), remesh with
um fal run tripo3d/tripo/remesh mesh_url=@unit.glb face_limit:=8000, then convert in Blender (GLB → FBX/OBJ) with the engine's scale and axis convention: Unity Y-up metres, Unreal Z-up centimetres, Bethesda NIF via PyNifly.
4. Textures and materials
- Tiling:
um fal texturegenerates
FAQ
Does it need the game's own files?
It works best when you look at a few of the game's assets first, so the new art matches them.
Can it turn 3D models into sprites?
Yes. It can render a 3D model into sprite frames from the game's camera angles, using Blender.
Does it create the art itself?
No. It converts art you already have. Image generation is covered by a separate skill.
Details
Original description by the author
Turn generated or hand-made art into exactly what a game engine loads. Covers sprite cutout, trim and nearest-neighbour fitting to frame sizes, pixelation to a palette, sprite sheets and strips, player/team-colour masks, seamless textures, and rendering a 3D model into sprite frames from the game's own camera (isometric/RTS 8 or 16 headings, side view, top-down) with Blender. Use after generating assets, or when the user asks to make sprites, sprite sheets, animation frames, isometric unit sprites or icons for a game.
Popularity
- GitHub stars
- 9.3k
- Ranking position
- #12282
- License
- MIT
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
blitz3d-decomp
9.3kHelps your agent decompile a Blitz3D game into readable source and plan a port to another engine, keeping the original game as the reference.
fal-assets
9.3kHelps your agent generate game art, sound effects, music and 3D models with fal.ai, from sprites and textures to voice lines and video.
game-automation
9.3kHelps your agent launch a real game, take screenshots, click and type into menus and read logs, so it can test its own game mods.
game-recon
9.3kHelps your agent find an installed game and work out how it can be modded, including its engine, version, anti-cheat, saves and community modding route.
Similar skills
gifgrep
394kLets your agent search GIF libraries, preview results, download a GIF, and pull out a still frame or a contact sheet of frames.
meme-maker
394kLets your agent pick a meme template, add your own captions, and create the meme as an SVG or PNG image.
ios-icon-gen
280kLets your agent generate icons for iOS apps. It uses Apple symbols or icons from other sources to create the correct files.