pixel-snapper

pixel-snapper is a skill for Claude Code from kyh/vibedgames. It costs 34 tokens per session (1,664 once invoked), scanned A, original, MIT.

A cleanup tool for recovering a genuine low-resolution pixel grid from enlarged or AI-generated pixel-art PNGs.

In plain words
What is it for?
Use it to create native-resolution sprites, clean up fake pixel art, reduce colors, snap spritesheets to a shared grid, and prepare game-art assets.
Why use it?
Ordinary resizing can blur pixel art or create uneven edges. This tool detects the intended pixel boundaries and aligns the image to them, including across known-layout spritesheet frames.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the vibedgames plugin — 42 skills, 1 MCP server shipped together

Good fit Use it to create native-resolution sprites, clean up fake pixel art, reduce colors, snap spritesheets to a shared grid, and prepare game-art assets.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kyh/vibedgames/pixel-snapper
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 kyh/vibedgames --skill pixel-snapper
Clone the repo
git clone --depth 1 https://github.com/kyh/vibedgames

Made for: Claude Code.

Or install vibedgames, the plugin that ships this one along with the rest of its 42 skills, 1 MCP server.

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 pixel-snapper

README.md
[![agentmods](https://agentmods.dev/badge/skills/kyh/vibedgames/pixel-snapper/github.svg)](https://agentmods.dev/skills/kyh/vibedgames/pixel-snapper)
Your own site
<a href="https://agentmods.dev/skills/kyh/vibedgames/pixel-snapper"><img src="https://agentmods.dev/badge/skills/kyh/vibedgames/pixel-snapper/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 pixel-snapper

Your own site · 80×15
<a href="https://agentmods.dev/skills/kyh/vibedgames/pixel-snapper"><img src="https://agentmods.dev/badge/skills/kyh/vibedgames/pixel-snapper.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 1,664 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Agent Snooping · line 41
    Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.
    Fix: Remove all code or instructions that list or read other skills' files or directories. Skills should operate independently; cross-skill access is a privilege escalation.
How audits are shown
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.01664
Opus 5.5 $0.00014 $0.00666
Sonnet 5.5 $0.00007 $0.00333
Haiku 4.5 $0.00003 $0.00166

Measured today against content hash d44e459dce3c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

pixel-snapper 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 today.

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.

plugins/vibedgames/skills/pixel-snapper/SKILL.md · 93 lines

How it starts

The opening of the file, as written. The whole thing — 93 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Pixel Snapper

Recover the underlying low-resolution pixel grid from images that look like pixel art but are stored at high resolution with anti-aliased/smudged edges (e.g. a 1024×1024 AI-generated character that conceptually has ~100×100 chunky pixels).

vg asset pixel-snapper is a Node port of an MIT-licensed Rust implementation (see references/credits.md), dimensionally identical to upstream. vg asset pixel-snapper-sheet is a known-layout spritesheet helper: crops frames, snaps them together as one strip so every frame shares a single pixel grid, reassembles.

Discover, Don't Resize

Naive downscale (Lanczos/bilinear/nearest) averages neighbors → blur or aliasing. Snapping instead discovers where the conceptual pixel boundaries already exist and snaps to them. Output resolution is a property of the input, not a parameter.

Before running, ask:

  • Is this genuinely upscaled/AI-faked pixel art, or a photo / continuous-tone illustration? (Snapping only fits the former.)
  • Palette complexity? Bright cartoony art tolerates --k-colors 256; pre-quantized retro palettes may want a smaller k (16, 32, 64).
  • Native snapped output, or a nearest-neighbour upscale for inspection? Usually you want both.
  • Are the cells actually square? The snapper assumes one shared cell pitch for both axes.

Core principles: output resolution is discovered, not specified · k_colors is the only user-facing knob (other tunables live in DEFAULT_SNAP_CONFIG) · always inspect the output by eye — dimensions are a sanity check, not a quality check · keep the source PNG so you can re-snap with a different k_colors later · key the background out before snapping — a wide flat matte gives the walker nothing but its own edges to lock onto, and the recovered "grid" collapses to a handful of pixels · snapping needs resolution to find the grid — feed it a large source (≥~512px across the subject; a lone character ~1024²). Undersized inputs (256²) blur the grid away or trip the 64×64 fallback; the fix is to regenerate larger, not to upscale a small source first.

Read the full file on GitHub · 93 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. today Changed · -15 lines d44e459dce3c
  2. 1mo ago Changed beb95b7009b4
  3. 2mo ago Changed · -28 tokens per session 42f7efac0894
  4. 2mo ago Changed · +9 lines 2ca3236ea981
  5. 3mo ago First seen · 99 lines · 62 tokens per session scan A af7a0468a573

Subscribe to this mod's changes

pixel-snapper is a skill published in the GitHub repository kyh/vibedgames (62 stars, last pushed today), licensed MIT. It adds 34 tokens to every session and 1,664 once invoked, about $0.0001 per session on Opus 5.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-30.

Related

pixel-snapper compared with skills from other repositories

pixel-snapper next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pixel-snapperkyh/vibedgamesSkill62todayMITA34Claude Code
tanstack-formKiranism/next-shadcn-dashboard-starterSkill7.3k2d agoMITA34Claude Code, Codex
fast-typescript-checkinternet-development/www-sacredSkill1.6k13d agoMITA84Claude Code, Codex
port-sacred-terminal-ui-to-pythoninternet-development/www-sacredSkill1.6k13d agoMITA0Claude Code, Codex
port-sacred-terminal-ui-to-typescript-cliinternet-development/www-sacredSkill1.6k13d agoMITA0Claude Code, Codex
typescript-languageHoangNguyen0403/agent-skills-standardSkill598todayMITA35Claude Code, Codex
android-navigation-3HoangNguyen0403/agent-skills-standardSkill598todayMITA52Claude Code, Codex