/vibedgames:asepritefrom vibedgames
Parses Aseprite files (.ase/.aseprite) into JSON with layers, cels, tags, slices, palettes, tilesets, durations, and bounds. Useful for game engines and tooling that need sprite metadata.
Ships in vibedgames. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
An .ase/.aseprite file is a structured timeline of layered pixel (or tilemap) cels. Read and verify the file rather than hard-coding expectations; output what you know and what you assumed.
Before inferring, ask:
Core principles
chunk_size, don't crash.header.speed is deprecated; each frame has its own duration (fallback to speed only when a frame duration is 0).Turn a file into JSON — needs nothing but node:
# This skill's directory. Claude Code substitutes CLAUDE_SKILL_DIR (project, global
# or plugin install); other agents fall back to wherever `vg init` put it.
SKILL="${CLAUDE_SKILL_DIR}"
[ -d "$SKILL" ] || for d in .agents/skills .claude/skills ~/.agents/skills ~/.claude/skills; do
[ -d "$d/aseprite" ] && SKILL=$d/aseprite && break
done
node $SKILL/scripts/aseprite-inspect.mjs path/to/sprite.aseprite --json
Opt into pixel-derived inference (e.g. tight bounds):
node $SKILL/scripts/aseprite-inspect.mjs path/to/sprite.aseprite --json --decode-cels
Add --pretty to indent the JSON. Decoding is capped by --max-decompress-mib
(default 64), so a hostile file can't make it allocate.
Structure-only: frame count + per-frame durations + total timeline; layer hierarchy (child levels), blend modes, opacities, flags, optional UUIDs; per-frame/per-layer cel placement, linked cels, z-index, opacity; tags (ranges + direction/repeat); slices (frame-keyed rects, optional 9-slice + pivot); tilesets/tilemaps (tile dims, count, masks with ID + flips); palettes + transparency index; user data on layers/cels/tags/tilesets.
With --decode-cels: tight per-cel/frame bounds (non-transparent extents), empty-frame detection, sprite-sheet packing hints.
Inspect structure-only, add --decode-cels if you need tight bounds. Emit frames[], layers[], tags[], slices[], normalized frameMs[]. For deterministic render order use z-index rules (cel header) + layer ordering. For character grounding, emit authoring anchors (slice/pivot/user-data) but validate final foot placement against exported PNG alpha bounds (via asset-pipeline) before locking runtime offsets.
Check layer visibility + opacity; whether a cel is linked to another frame; for indexed sprites, the transparent index + background-layer semantics.
Use slice keys per frame for runtime hitboxes. Use pivot when present; otherwise infer (e.g. slice center) and record it as a fallback.
aseprite -b → spritesheet.png + spritesheet.json, then this.load.aseprite(key, png, json) + this.anims.createFromAseprite(key). The rules that keep it correct:
--ignore-layer — the CLI flag silently no-ops on some files. Match the usual suspects: bg, BG, Background, Text, Reflection, Layer 1. Recipe in references/inference-recipes.md §9.--decode-cels empty-frame detection and drop it from the tag range or the export, or every clip starts with a hole.--format json-array, --sheet-type packed or rows, NO --trim. createFromAseprite looks frames up by index (frames[i.toString()]), which only the array layout gives; trim moves the feet per frame, so bottom-anchored origins drift. Keep the canvas fixed.durations — createFromAseprite does this; hand-rolled anims must pass frames: [{ key, frame, duration }] with no frameRate.duration to play() — freezes on frame 1. Retime with sprite.anims.timeScale. Depth in the phaser skill, references/spritesheets-and-textures.md.scripts/aseprite-inspect.mjs — binary parser + JSON; optional cel/tile decodereferences/aseprite-format-cheatsheet.md — chunk map + gotchasreferences/inference-recipes.md — how to compute bounds/timing/order safelyWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
aseprite, sprite-parsing, game-dev, pixel-art, metadata-extraction
npx claudepluginhub kyh/vibedgames --plugin vibedgames35 skills in this plugin
/animated-spritesheetsGenerate a character's animation frames (idle, run, attack, death…) as one labeled pose board, then slice, key and pack them into an engine-ready spritesheet./animationMake 2D sprite animation read well: frame budgets per clip, timing and spacing, cancel windows, smears, secondary motion, wiring clips in Phaser. Generating frames is pixel-art / animated-spritesheets./ask-meInterview the user about a fuzzy game idea, one question at a time, until it is build-ready. Skip when they already know what to build.Other plugins' skills for the same job