Skip to content
Back to skills

pixel-snap

ASecurity

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).

  • 6 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added May 26, 2026
toolsbashnode

Security analysis

A96/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 3 files and shows the line behind each finding

Scanned May 27, 2026

npx -y skills add DreamC0der-AI/pixel-snap --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of pixel-snap?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for pixel-snap
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/dreamc0der-ai-pixel-snap/badge)](https://www.skillsdirectory.com/skills/dreamc0der-ai-pixel-snap)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: pixel-snap
description: "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)."
disable-model-invocation: true
argument-hint: "[input-file] [options]"
---

# 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, scale
  - `scene`: 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

1. Parse the user's arguments to determine input file and options
2. If no input file is specified, ask the user for one
3. Run the script with the appropriate arguments
4. Report the results (grid size detected, mode used, output path)
5. If the user wants to preview the result, read the output image file

### Examples

```bash
# 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
```

Files in this skill

  • SKILL.md1.8 KB
  • package.json303 B
  • pixel-art-snap.js13.4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.