Pixel snap
Skill DreamC0der-AI/pixel-snap
Claude Code plugin: Convert upscaled pixel art images back to clean, sharp pixel art
npx -y skills add DreamC0der-AI/pixel-snapAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 6 stars6 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Convert upscaled pixel art images back to clean, sharp pixel art. Detects grid size, extracts true pixel colors, and outputs crisp results. Supports icon mode (remove background, crop, center) and scene mode (preserve full image).
SKILL.md
1.8 KB, 411 tokens by cl100k_base, as published. Nobody here has run it
Pixel Art Snap
Convert upscaled/blurry pixel art images back to clean, sharp pixel art.
Script Location
The script is at: ${CLAUDE_SKILL_DIR}/pixel-art-snap.js
It requires the sharp npm package. If not installed, run:
cd ${CLAUDE_SKILL_DIR} && npm install sharp
Usage
Run the script with:
node ${CLAUDE_SKILL_DIR}/pixel-art-snap.js [input] [output] [options]
Arguments from user
The user's arguments: $ARGUMENTS
Options
--mode=auto|icon|scene— Post-processing mode (default: auto-detect)icon: remove white background, crop, center on square, scalescene: keep full image, scale with nearest-neighbor
--size=1024— Target output size in pixels (default: 1024)--grid=N— Force grid size in pixels (skip auto-detection)--threshold=240— White background threshold (default: 240)
Workflow
- Parse the user's arguments to determine input file and options
- If no input file is specified, ask the user for one
- Run the script with the appropriate arguments
- Report the results (grid size detected, mode used, output path)
- If the user wants to preview the result, read the output image file
Examples
# Basic usage
node ${CLAUDE_SKILL_DIR}/pixel-art-snap.js ~/images/sprite.png
# Specify output and size
node ${CLAUDE_SKILL_DIR}/pixel-art-snap.js input.png output.png --size=512
# Force icon mode with custom grid
node ${CLAUDE_SKILL_DIR}/pixel-art-snap.js sprite.png --mode=icon --grid=16
What ships with it: 3 files
15.1 KB alongside SKILL.md, 1 of them executable
- package.json303 B
- pixel-art-snap.jsruns13.4 KB
- README.md1.4 KB