home / skills / chen19007 / my_skills / aseprite-frame-extract
This skill exports per-tag frames from Aseprite files into organized folders for engines like Godot, accelerating asset management.
npx playbooks add skill chen19007/my_skills --skill aseprite-frame-extractReview the files below or copy the command above to add this skill to your agents.
---
name: aseprite-frame-extract
description: Batch-export per-tag animation frames from .aseprite files into categorized folders; use when asked to extract frames, split tags, or organize Aseprite animations into folders for engines like Godot.
---
# Aseprite Frame Extraction
## Quick start
- Run `python scripts/extract_aseprite_frames.py <file-or-folder-or-glob> [...]`.
- Outputs to `assets/<sprite-name>/<tag>/<frame>.png` by default.
## Workflow
1. Point to `.aseprite` files or a folder.
2. Provide `--aseprite` if Aseprite is not on PATH.
3. Check results in the output folder.
## Notes
- Uses Aseprite CLI `--split-tags` and `{tag}/{frame}.png` to classify frames.
- Tag names and frames are exported as-is; tag names become folder names.
- If a sprite has no tags, no frames are exported.
## Examples
```bash
python scripts/extract_aseprite_frames.py d:\project\godot\blockking\aseprite_assets --aseprite "D:\tools\Aseprite-v1.3.15.3-Windows\aseprite.exe" --output d:\project\godot\blockking\assets
python scripts/extract_aseprite_frames.py "d:\project\godot\blockking\aseprite_assets\*.aseprite" --preview
```
## scripts/
- `scripts/extract_aseprite_frames.py`: Calls Aseprite CLI to export per-tag frames into folders.
This skill batch-exports per-tag animation frames from .aseprite files into organized folders, making it easy to integrate Aseprite animations with game engines like Godot. It runs the Aseprite CLI to split tags and write each frame into assets/<sprite-name>/<tag>/<frame>.png by default. Use it to quickly convert whole folders or globs of .aseprite files into a folder structure ready for engine import.
The script calls the Aseprite command-line tool with the --split-tags option and an export pattern that places frames into tag-named subfolders. You point the tool at a file, folder, or glob and it processes each .aseprite source, creating per-sprite and per-tag folders and saving frames as PNGs. If Aseprite is not on PATH, you supply the --aseprite path; a preview mode can show what would be exported without writing files.
What if Aseprite is not installed or not on PATH?
Pass the --aseprite argument with the full path to the Aseprite executable so the script can invoke the CLI.
What happens to sprites that have no tags?
Sprites without tags are skipped and no frames are exported; add tags in Aseprite to enable frame export.