From phaser-assets
Visually inspect and map sprite sheet tiles to animations and layer compositions for Phaser JS games. Triggers when the user wants to map animations, inspect a sprite sheet, define frame sequences, identify tile indices, or compose layered characters from a sprite sheet.
How this skill is triggered — by the user, by Claude, or both
Slash command
/phaser-assets:sprite-inspectorThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Open a visual inspector for sprite sheets so the user can define animation frame sequences and layer compositions interactively.
Open a visual inspector for sprite sheets so the user can define animation frame sequences and layer compositions interactively.
Use this after a sprite sheet has been downloaded into the project (via the asset-finder skill or manually). The user wants to:
Before opening the inspector, determine:
assets/images/characters/knight.png)If the sprite sheet was downloaded by asset-finder, use the metadata from that session. If the user provides the sheet manually, ask for tile dimensions or inspect the image to determine them.
curl -s http://localhost:8483/health || python "$CLAUDE_PLUGIN_ROOT/scripts/server.py" --port 8483 --no-open &
project_path so the server can resolve the image):curl -s -X POST http://localhost:8483/api/inspector/load \
-H "Content-Type: application/json" \
-d '{"project_path": "<absolute_project_path>", "image_path": "<relative_path>", "tile_width": <W>, "tile_height": <H>, "margin": <M>, "spacing": <S>}'
Tell the user to open http://localhost:8483/inspector to use the visual inspector. Explain the two modes:
Wait for the user to finish and click "Send to Claude".
curl -s http://localhost:8483/api/inspector/results
Wait until status is "submitted".
Use the results to generate Phaser animation code. The results contain:
sprite_sheet: path to the imagetile_size: [width, height]animations: named animation sequences with frames, frameRate, and loopcompositions: named layer stacks with tile indicesFor each animation, generate:
this.anims.create({
key: '<animation_name>',
frames: this.anims.generateFrameNumbers('<sprite_key>', { frames: [<frame_indices>] }),
frameRate: <frameRate>,
repeat: <loop ? -1 : 0>
});
Read references/phaser-integration.md (in the asset-finder skill directory) for complete Phaser code patterns.
Shut down the server when done:
curl -s -X POST http://localhost:8483/shutdown
npx claudepluginhub ehartye/phaser-assets --plugin phaser-assetsGenerates animated 2D sprite sheets (walk cycles, attack frames, idle, death) and wires them into AnimatedSprite2D/SpriteFrames. Offers per-frame img2img, single-call sheet generation, or manual authoring paths.
Exports pixel art sprites from Aseprite to PNG, GIF, spritesheets, and JSON metadata for game engines like Unity, Godot, Phaser. Supports layouts, scaling, and frame exports.
Defines import, slicing, atlas packing, and naming rules for 2D sprites to enforce consistent asset conventions across the project.