Skip to main content

Studio Sprite Sheet Export

v1.0.0New

Install this skill

No account required. Pick your tool, then copy.

Run in your terminal. It detects your AI tool.

npx @skills-hub-ai/cli install studio-sprite-sheet-export

What this does: Pack animation frames into engine-ready sprite sheets with Aseprite CLI, TexturePacker or Python, including JSON metadata, padding and extrusion against bleeding, and Godot, Unity and Phaser import settings. Triggers: "make a sprite sheet", "pack these frames", "export Aseprite animation", "texture atlas for Phaser".

Or get the file:
Browse all CLI commands →
Manual setup by platform

Claude Code

~/.claude/skills/studio-sprite-sheet-export/SKILL.md

Setup guide →

Cursor

~/.cursor/skills/studio-sprite-sheet-export/SKILL.md

Setup guide →

Codex CLI

~/.codex/skills/studio-sprite-sheet-export/SKILL.md, or reference via codex.md instructions file

Setup guide →

Signing

SignedSLSA L2
Signed by
skills-hub.ai distributor
Method
Distributor-signed by skills-hub.aiSigned with the skills-hub.ai Ed25519 distributor key over this exact slug, version and content. Check it with `npx @skills-hub-ai/cli verify`.
Key
skills-hub-ed25519-2026-11
Signed
0Save

Instructions

Sprite sheet export

Goal: a single atlas image plus metadata that the engine imports with no bleeding, no jitter and correct timings.

Inputs to agree on

  • Source: Aseprite files with tags, a folder of PNG frames, or rendered frames from Blender or Spine.
  • Target engine and version: Godot 4, Unity (2D Sprite), Phaser 3, PixiJS, custom.
  • Art style: pixel art (nearest filtering, integer scale) or smooth (linear filtering, mipmaps).
  • Max atlas size: 2048x2048 is safe on all mobile GPUs; 4096 on desktop.
  • Animation list with frame durations, loop modes and pivot points.

Toolchain

  • Aseprite CLI (aseprite -b): best for pixel art with tags and per-frame durations.
  • TexturePacker CLI (paid, free basic mode): many engine exporters, trimming, polygon packing.
  • Free Texture Packer, or a Python script with Pillow for full control.
  • Engine-side: Godot SpriteFrames/AnimatedSprite2D, Unity Sprite Editor, Phaser load.atlas or load.aseprite.

Workflow

1. Normalize frames

  • Same canvas size per animation, consistent pivot (usually bottom center for characters).
  • Name frames name_tag_0000.png so sort order is stable.
  • Pixel art: no anti-aliased edges against transparency, no semi-transparent stray pixels (check with an alpha threshold).

2a. Aseprite CLI

aseprite -b hero.aseprite \
  --sheet hero.png --data hero.json \
  --format json-array \
  --sheet-type packed \
  --trim --shape-padding 2 --border-padding 2 --inner-padding 0 \
  --extrude \
  --list-tags --list-slices \
  --filename-format "{title}_{tag}_{tagframe00}"
  • --sheet-type packed uses a bin packer; rows, columns or horizontal give grids for engines that want a uniform grid (then omit --trim).
  • --extrude duplicates edge pixels by 1 px to stop bleeding under filtering.
  • --list-tags writes meta.frameTags with from, to and direction; frame duration (ms) is per frame.
  • Export a single tag: add --tag run. Scale pixel art for previews with --scale 2, never for engine use.

2b. TexturePacker CLI

TexturePacker --format phaser --data hero.json --sheet hero.png \
  --max-size 2048 --size-constraints POT \
  --trim-mode Trim --extrude 1 --shape-padding 2 --border-padding 2 \
  --algorithm MaxRects --pack-mode Best \
  --disable-rotation \
  frames/

Swap --format for godot4-spritesheet, unity-texture2d, pixijs4, json-array as needed. Disable rotation unless the engine importer supports rotated frames.

2c. Python grid packer (no dependencies beyond Pillow)

from PIL import Image
import json, glob, math, os

frames = sorted(glob.glob("frames/*.png"))
imgs = [Image.open(f).convert("RGBA") for f in frames]
fw, fh = imgs[0].size
pad, ext = 2, 1                      # spacing between cells, edge extrusion
cols = math.ceil(math.sqrt(len(imgs)))
rows = math.ceil(len(imgs) / cols)
cell_w, cell_h = fw + 2 * ext + pad, fh + 2 * ext + pad
sheet = Image.new("RGBA", (cols * cell_w + pad, rows * cell_h + pad), (0, 0, 0, 0))
meta = {"frames": [], "meta": {"image": "sheet.png", "size": {"w": sheet.width, "h": sheet.height}}}

for i, im in enumerate(imgs):
    cx, cy = pad + (i % cols) * cell_w, pad + (i // cols) * cell_h
    # extrude: paste stretched edges first, then the frame
    big = im.resize((fw + 2 * ext, fh + 2 * ext), Image.NEAREST)
    sheet.paste(big, (cx, cy))
    sheet.paste(im, (cx + ext, cy + ext))
    meta["frames"].append({"filename": os.path.basename(frames[i]),
                           "frame": {"x": cx + ext, "y": cy + ext, "w": fw, "h": fh},
                           "duration": 100})
sheet.save("sheet.png", optimize=True)
json.dump(meta, open("sheet.json", "w"), indent=2)

The resize trick only approximates extrusion; for exact edge copies, paste 1 px strips from each border. It is fine for most pixel art.

3. Engine import

Godot 4:

  • Import the PNG with Filter = Nearest for pixel art (Project Settings > Rendering > Textures > Default Texture Filter, or per node texture_filter), Mipmaps off, Compress Mode Lossless.
  • Uniform grid: AnimatedSprite2D > SpriteFrames > "Add frames from sprite sheet", set H/V frames and separation/offset matching your padding.
  • Packed atlas: use an importer plugin (for example "Aseprite Wizard" or the TexturePacker Godot importer) or build AtlasTextures from the JSON in a tool script.

Unity:

  • Texture Type Sprite (2D and UI), Sprite Mode Multiple, Pixels Per Unit matching your art grid, Filter Mode Point for pixel art, Compression None (or high-quality), Generate Mip Maps off, Wrap Mode Clamp.
  • Slice in the Sprite Editor (Grid By Cell Size with padding), or import the Aseprite file directly with the Aseprite Importer package.
  • Set the pivot per sprite (Bottom for characters).

Phaser 3:

this.load.aseprite("hero", "hero.png", "hero.json"); // reads frameTags
// in create():
this.anims.createFromAseprite("hero");
this.add.sprite(100, 100, "hero").play({ key: "run", repeat: -1 });
// or for TexturePacker/json-array: this.load.atlas("hero", "hero.png", "hero.json");

Game config for pixel art: pixelArt: true (sets nearest filtering and rounds pixels).

Variants

  • Normal maps for 2D lighting: pack a second sheet with identical layout (same frame order, no trimming differences).
  • Multiple resolutions: export @1x and @2x with the same JSON structure; scale padding too.
  • Fonts and UI: same packer, separate atlas so UI does not evict gameplay textures.
  • Huge animations: split per character or per animation to stay under 2048.

Quality checks

  • Atlas dimensions within the max; power of two if the target compresses (ETC/PVRTC).
  • Packing efficiency (used area over total) above about 70 percent for packed sheets.
  • Zoom the game at 3x and move the camera at sub-pixel speeds: no colored lines at frame edges.
  • Every animation plays at the intended duration (compare the JSON durations to the brief).
  • Frames do not jitter between each other: pivots consistent after trimming (packers store spriteSourceSize so offsets are restored).
  • PNG optimized (oxipng -o 4 sheet.png) without changing pixels.

Pitfalls and fixes

  • Bleeding lines: add extrusion and padding, disable mipmaps for 2D, use nearest filtering, keep camera at integer positions for pixel art.
  • Jitter after trimming: engine ignores trim offsets; either disable trim or use an importer that reads spriteSourceSize.
  • Premultiplied alpha mismatch causes dark halos: match the packer's premultiply setting to the engine.
  • Rotated frames appear sideways: disable rotation in the packer.
  • Blurry pixel art in Unity: Filter Mode Point and Compression None; check Pixels Per Unit.

Deliverables

  • *.png atlas (or atlases) within size limits
  • *.json metadata with tags and durations
  • Engine import notes or preset (Unity preset, Godot .import settings)
  • The exact pack command or script
  • A small test scene or GIF showing each animation playing
This skill doesn’t include stateful context yet, instructions only. Learn about stateful skills.

Security

Loading security scan...

Reviews (0)

Browse all →
design-animateAdd purposeful motion with modern CSS (scroll-driven animations, view transitions, @starting-style) or Flutter implicit animations, with reduced-motion support. Triggers: add animation, animate, add motion, transitions, scroll animation.86 installsdesign-auditRead-only design quality audit (WCAG 2.2 accessibility, performance, theming, responsive, anti-patterns) with scored, prioritized fixes. Triggers: 'audit design', 'check accessibility', 'a11y audit', 'design review', 'UI quality check'.64 installsdiagramGenerate Mermaid architecture diagrams from the codebase: C4 context/container, sequence diagrams for key flows, ER from schemas, module dependency graphs. Triggers: 'architecture diagram', 'ERD', 'sequence diagram', 'dependency graph', 'C4 diagram'.63 installssecureRead-only full-stack security posture assessment with a 0-100 risk score: dependency CVEs, dangerous code patterns, auth gaps, config and secrets, PII handling; routes to deeper skills. Triggers: 'security posture', 'how secure is this', 'security scan', 'risk score'.62 installsdesign-polishFinal quality pass before shipping: fixes alignment, spacing, type hierarchy, color consistency, interactive states and motion timing to match the existing design language. Triggers: 'polish the UI', 'make it pixel perfect', 'final design pass'.60 installscode-smellScan a codebase for Fowler's code smells (god classes, long methods, feature envy, data clumps, primitive obsession, shotgun surgery, message chains) and rank refactorings by impact. Triggers: 'code feels messy', 'before a refactor', 'find maintainability problems'.53 installs

More from Skills Hub

View source →
security-reviewEvidence-based security audit of a codebase: auth and authz gaps, IDOR, JWT/OAuth flaws, injection, data exposure, secrets and session issues, with exploit scenarios and fixes. Triggers: security review, audit auth, find vulnerabilities.208 installsunit-testFind untested code, write unit tests covering edge cases, error paths and boundaries in the project's own style, run them and fix failures. Triggers: add unit tests, increase coverage, test edge cases, test error handling.179 installsweb-gameScaffold a production-ready browser game (Phaser, PixiJS or Three.js) with Vite, TypeScript, input, audio, saves, responsive canvas and itch.io/PWA deploy. Triggers: web game, browser game, html5 game, phaser game, pixi game, three.js game.148 installshumanizerRewrite AI-drafted content so it reads human: cut filler and hedging, vary sentence length, curb em dashes, add specifics and voice. Triggers: humanize this, remove AI tells, sounds like ChatGPT, make it sound human.146 installsdesign-to-codeTurn a design into production frontend code in four phases: design-system tokens and components, responsive layout, dark mode, then a UX audit that fixes what it finds. Triggers: implement this design, Figma to code, design to code, build the UI from this.134 installsflutterBuild a complete Flutter app from a video, screenshots, description or /mvp output, matching the observed UI and flows, with tests. Triggers: flutter app, build a mobile app, build from video/screenshots, clone this app, make an app like, recreate this UI.131 installs

More Game Dev skills

Browse category →
godotDevelop, test, build, and deploy Godot 4.x games. Includes GdUnit4 for GDScript unit tests and PlayGodot for game automation and E2E testing. Supports web/desktop exports, CI/CD pipelines, and deployment to Vercel/GitHub Pages/itch.io.12 installsscenario-godot-2dUse when building a 2D game in Godot 4.7: make a platformer or top-down controller that feels right (coyote time, jump buffer, jump height), TileMapLayer and TileSet in code, terrains and autotiles that pick wrong tiles, a dual grid, a camera that jitters or stutters, pixel art that looks blurry or uneven, stretch and integer scaling, 2D lights and shadows, y-sort order wrong, parallax gaps, or importing AI-generated sprites and tilesets from Scenario.3 installsscenario-godot-3d-worldUse when building 3D levels and worlds in Godot 4.7: third-person or FPS controller, player stuck on stairs, spring arm camera clipping, blockout with CSG, GridMap and MeshLibrary, terrain (heightmap, HeightMapShape3D, Terrain3D regions, textures, painting), scattering trees with MultiMesh, streaming a big world, procedural meshes with SurfaceTool, Jolt physics settings, importing GLB or glTF from Blender or AI generators (Scenario, Tripo, Meshy, Hitem3D), import scripts, name suffixes, model facing, collision generation, LODs.2 installsscenario-godot-animationUse when animating characters or scenes in Godot 4.7: AnimationPlayer clips and RESET, AnimationTree state machines and blend spaces built in code, Mixamo or glTF import, loop settings, BoneMap retargeting and shared animation libraries, root motion, foot sliding, foot IK with TwoBoneIK3D or custom SkeletonModifier3D, tweens, SpringArm3D cameras, cutscenes; or when a character T-poses, slides, floats, freezes mid-blend or a transition never fires.1 installsscenario-godot-vfxUse when making or fixing particle effects and game feel in Godot 4.7: GPUParticles3D or GPUParticles2D explosion, fireball projectile with trail, impact, sparks, smoke, shockwave, ribbon trails, sub-emitters, particle collision, color curve does nothing, particles pop out or vanish, effect too heavy on mobile, CPUParticles fallback for Compatibility or web, overdraw, hit-stop, freeze frame, screen shake, juice.1 installsscenario-godot-gameplayUse when building gameplay systems in Godot 4.7: enemy AI that patrols, chases and attacks, state machines, behavior trees (LimboAI), NavigationAgent3D pathfinding and avoidance for 100 to 1000 enemies, 'agents stack up' or 'path is empty', hitbox and hurtbox combat, fast bullets going through walls, save and load, inventory, quests, dialogue (Dialogue Manager), input remapping, procedural dungeons, or measuring agent counts and frame time headless.1 installs

Frequently asked questions about studio-sprite-sheet-export

What does the studio-sprite-sheet-export skill do?

Pack animation frames into engine-ready sprite sheets with Aseprite CLI, TexturePacker or Python, including JSON metadata, padding and extrusion against bleeding, and Godot, Unity and Phaser import settings. Triggers: "make a sprite sheet", "pack these frames", "export Aseprite animation", "texture atlas for Phaser". It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.

How do I install the studio-sprite-sheet-export skill?

Run `npx @skills-hub-ai/cli install studio-sprite-sheet-export` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/studio-sprite-sheet-export/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.

Which AI tools does studio-sprite-sheet-export work with?

studio-sprite-sheet-export runs in Claude Code, Cursor, Codex CLI. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.

Is the studio-sprite-sheet-export skill free?

Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.

How do I use studio-sprite-sheet-export after installing it?

In Claude Code, type `/studio-sprite-sheet-export` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.

Can I share the studio-sprite-sheet-export skill with my team?

Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.