A lot of Spine problems in game projects aren't animation problems. They're folder problems: an atlas that points at hero2.png when the file on disk is hero.png, a skeleton exported from a newer editor than the runtime in the game, or a JSON file that got cut off in a merge. The game then shows nothing or fails on load, and the error rarely says which file is at fault.
I built a small command-line tool to catch that before the files reach the game: @toolbuddyio/spine-bundle. It reads a Spine export folder and reports, for each skeleton:
- which
.atlasit pairs with, - the Spine version it was exported from (also for binary
.skelfiles), - how many animations and skins it has,
- texture pages the atlas references that are missing, and images in the folder nothing uses.
Try it
No install needed:
npx @toolbuddyio/spine-bundle ./path/to/export On a folder exported from Spine 4.2 (JSON and binary versions of the same skeleton):
✔ spineboy-ess.json + spineboy-pma.atlas — Spine 4.2.22 — 8 animations, 1 skin ✔ spineboy-ess.skel + spineboy-pma.atlas — Spine 4.2.22 — binary ✔ spineboy-pro.json + spineboy-pma.atlas — Spine 4.2.22 — 11 animations, 1 skin And after deleting the texture page from a 3.8 export:
✖ super_bucbuc_big.json + super_bucbuc_big.atlas — Spine 3.8.11-beta — 12 animations, 1 skin ✖ MISSING_IMAGE: Atlas "super_bucbuc_big.atlas" references missing image(s): super_bucbuc_big.png The exit code is 0 when everything pairs up and 1 when something is wrong, so it drops straight into a CI step or a pre-commit hook:
- name: Check Spine exports run: npx --yes @toolbuddyio/spine-bundle assets/spine --recursive --json prints the full report if you want to build on it.
Use it from code
import { inspectSpineBundle } from "@toolbuddyio/spine-bundle"; const report = await inspectSpineBundle("assets/spine/hero"); if (!report.ok) { for (const error of report.errors) console.error(error.code, error.message); } There is also inspectSpineFiles(), which takes { name, data } entries instead of a folder, so it works in a browser or a bundler, plus the two parsers it is built on: parseAtlas() (3.x and 4.x atlas formats) and parseSkeletonJson().
What it supports, and what it doesn't
- Spine 3.6 to 4.3 for inspection. I tested it on real exports from 3.7, 3.8, 4.0, 4.1, 4.2 and 4.3, including binary
.skelfiles from 3.8 and 4.x. - It checks structure: files, pairing, versions, animation and skin lists. It does not render anything, so it won't tell you an animation looks wrong.
- Binary skeletons: it reads the version from the file header only, so you get the version but not the animation list.
- Zero dependencies, MIT licensed, Node 18+.
It doesn't include or need the Spine Runtimes, so there's no runtime licence involved in using the package. (If you want to play the animations, the browser Spine viewer and the VS Code extension do that; those use Esoteric's official player, so each user needs their own Spine Editor licence.)
Why a separate package
The same checks already ran inside the Spine Viewer VS Code extension, but only as a step before opening the player. Pulling them out into a package means they can run where the problem actually shows up: in CI, in an asset pipeline, or in a build script that copies exports into the game.
The code is on GitHub at toolbuddy-io/code-extension. Issues and pull requests are welcome, especially real export folders it gets wrong.
What else would you want it to check? I'm considering warning when a skeleton's attachments reference regions that aren't in the atlas.
Not affiliated with Esoteric Software. Spine is a trademark of Esoteric Software LLC.

