spritesheet-atlas-packing

spritesheet-atlas-packing is a skill for Claude Code, Codex from 0xheycat/isometric-game-skills. It costs 34 tokens per session (471 once invoked), scanned A, original, MIT.

A tool for combining many isometric game sprites into one image, with a JSON file that records each sprite’s location and anchor point.

In plain words
What is it for?
It packs sprite PNGs, adds spacing to prevent neighboring pixels from bleeding together, preserves anchors, and checks that each named frame renders correctly.
Why use it?
Using separate image files can increase loading work and the number of texture changes during drawing. An atlas lets the game find named sprites in one image while keeping their placement correct.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It packs sprite PNGs, adds spacing to prevent neighboring pixels from bleeding together, preserves anchors, and checks that each named frame renders correctly.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/0xheycat/isometric-game-skills/spritesheet-atlas-packing
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add 0xheycat/isometric-game-skills --skill spritesheet-atlas-packing
Clone the repo
git clone --depth 1 https://github.com/0xheycat/isometric-game-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for spritesheet-atlas-packing

README.md
[![agentmods](https://agentmods.dev/badge/skills/0xheycat/isometric-game-skills/spritesheet-atlas-packing/github.svg)](https://agentmods.dev/skills/0xheycat/isometric-game-skills/spritesheet-atlas-packing)
Your own site
<a href="https://agentmods.dev/skills/0xheycat/isometric-game-skills/spritesheet-atlas-packing"><img src="https://agentmods.dev/badge/skills/0xheycat/isometric-game-skills/spritesheet-atlas-packing/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for spritesheet-atlas-packing

Your own site · 80×15
<a href="https://agentmods.dev/skills/0xheycat/isometric-game-skills/spritesheet-atlas-packing"><img src="https://agentmods.dev/badge/skills/0xheycat/isometric-game-skills/spritesheet-atlas-packing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 34 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 471 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00034 $0.00471
Opus 5 $0.00017 $0.00235
Sonnet 5 $0.00007 $0.00094
Haiku 4.5 $0.00003 $0.00047

Measured 12d ago against content hash 759bd3c09d97, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

spritesheet-atlas-packing scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/spritesheet-atlas-packing/SKILL.md · 53 lines

What it actually says

Spritesheet & Atlas Packing

Overview

Drawing 200 separate images means 200 texture binds and slow load. An atlas packs sprites into one image plus a JSON of frame rects. This skill produces an atlas the renderer can index by name.

When to Use

  • You have many individual sprite PNGs to ship.
  • Load times or draw calls are high because of separate images.
  • The renderer needs named frame lookups.

Process

  1. Collect all cleaned, transparent sprites into one folder.
  2. Pad each frame by 1-2px to prevent texture bleeding between neighbors.
  3. Pack into a power-of-two atlas (e.g. 2048x2048) using a bin-packer.
  4. Emit a JSON map: name -> {x, y, w, h, anchorX, anchorY}.
  5. Keep anchors from the source sprites so placement stays correct.
  6. Verify every sprite is found by name and renders at the right anchor.
  7. Regenerate the atlas automatically in the build (see asset-pipeline-automation).
{ "tree_oak": { "x": 0, "y": 0, "w": 128, "h": 160, "anchorX": 64, "anchorY": 150 } }

Rationalizations (Stop Lying to Yourself)

Excuse Reality
"I will just load images individually" Hundreds of texture binds kill performance. Pack an atlas.
"Padding is unnecessary" Without padding, neighbors bleed at non-integer zoom. Always pad.

Red Flags - STOP if you catch yourself:

  • No padding between packed frames (texture bleeding).
  • Atlas not power-of-two.
  • Anchors lost during packing so placement breaks.

Verification

You are NOT done until every box is checked:

  • All sprites packed into a power-of-two atlas with padding.
  • JSON map resolves every sprite by name with correct anchor.
  • No texture bleeding at fractional zoom.
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 53 lines · 34 tokens per session scan A 759bd3c09d97

Subscribe to this mod's changes

spritesheet-atlas-packing is a skill published in the GitHub repository 0xheycat/isometric-game-skills (15 stars, last pushed 1mo ago), licensed MIT. It adds 34 tokens to every session and 471 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

threejs-geometry

Three.js geometry creation - built-in shapes, BufferGeometry, custom geometry, instancing. Use when creating 3D shapes, working with vertices, building custom meshes, or optimizing with instanced rendering.

calesthio/OpenMontage · 46 tokens

threejs-fundamentals

Three.js scene setup, cameras, renderer, Object3D hierarchy, coordinate systems. Use when setting up 3D scenes, creating cameras, configuring renderers, managing object hierarchies, or working with transforms.

calesthio/OpenMontage · 51 tokens

threejs-world-generation

Build deterministic, editable, free-viewpoint Three.js worlds from text or structured briefs. Use for cinematic 3D terrain, semantic regions, procedural biomes, explicit landmarks, environmental scattering, camera fly-throughs, world diagnostics, or requests for a real 3D environment rather than generated 2D footage.…

calesthio/OpenMontage · 100 tokens

sound-effects

Generate sound effects from text descriptions using ElevenLabs. Use when creating sound effects, generating audio textures, producing ambient sounds, cinematic impacts, UI sounds, or any audio that isn't speech. Supports looping, duration control, and prompt influence tuning.

calesthio/OpenMontage · 51 tokens

character-animation-qa

Review local character animation with schema checks, Playwright browser previews, frame sampling, and FFmpeg/ffprobe final output checks.

calesthio/OpenMontage · 31 tokens

pose-library-design

Design reusable 2D character pose libraries, action cycles, and expression states for data-driven animation.

calesthio/OpenMontage · 24 tokens