Skip to content
Back to skills

Pixelsmith

ASecurity

Make clean, palette-limited pixel art sprites and smooth, consistent pixel animations for Aseprite and Unity 2D. Use this whenever the user wants to create, fix, clean up, or animate a sprite or pixel art; turn an AI-generated image into real pixel art (too many colors, noisy or stray pixels, blurry edges); pick or limit a color palette; make new animation frames (idle, walk, run, attack, hurt, death, or any custom motion described in a prompt); make an animation smoother; build a sprite shee...

  • 4 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 2, 2026
ai-agentsgoaws

Works with

  • mcp

Security analysis

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

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

Scanned December 2, 2026

npx -y skills add lightvu25/pixelsmith --skill pixelsmith --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Pixelsmith?

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

Security grade badge for Pixelsmith
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/lightvu25-pixelsmith/badge)](https://www.skillsdirectory.com/skills/lightvu25-pixelsmith)

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: pixelsmith
description: Make clean, palette-limited pixel art sprites and smooth, consistent pixel animations for Aseprite and Unity 2D. Use this whenever the user wants to create, fix, clean up, or animate a sprite or pixel art; turn an AI-generated image into real pixel art (too many colors, noisy or stray pixels, blurry edges); pick or limit a color palette; make new animation frames (idle, walk, run, attack, hurt, death, or any custom motion described in a prompt); make an animation smoother; build a sprite sheet; or prepare sprites for Unity. Use it even if the user only says "draw me a sprite", "animate this character", or "my AI sprite looks messy". Do not draw pixels one by one through an Aseprite MCP; use this skill instead.
---

# pixelsmith

LLM agents are bad at placing pixels by coordinate and good at deciding what should change.
So scripts do the mechanical work, and you make the art decisions on a small text grid.

**Rules that make this work**
1. Work on `.pgrid` text grids (one character per pixel, `.` = transparent). A pixel can never be off-palette.
2. Derive frames by **patching** a base frame. Never redraw a frame from scratch; that causes drift.
3. After every step, run a lint command and fix only what it flags.
4. Never invent colors or settings. They come from the user, `brief.json`, or `style.json`.
5. **Visually inspect, test, and rework before showing the user.** Read every rendered PNG (`from-grid`, `*_contact.png`, `frames/*.png`) and check every pose yourself: verify silhouettes, proportions, and joint/attachment points stay consistent across rotation and motion (e.g., a hammer stays a symmetric hammer at every angle and never morphs into a hatchet). Rework flawed sprites or poses before publishing or asking for review.

## 0. Settings: ask, don't guess

Run `pixelsmith --version` (if missing, `pip install .` in this repo). Then look for `brief.json`.

1. No brief yet: `pixelsmith brief init`.
2. `pixelsmith brief ask` lists every unset field with its options and default. **Put these to the user in one batch**, offering the defaults. Required: description, size, palette. Everything else has a default the user can accept.
3. Record answers with `pixelsmith brief set key=value ...` (for example `size=32x32 palette=sweetie16 outline=selective style=smooth`), then `pixelsmith brief check`.
4. `pixelsmith brief show` prints the effective settings. Details: `references/brief.md`.

Palette advice to offer: `sweetie16` (16 colors, versatile), `pico8`, `gameboy` (4), or `extract:8` (colors taken from a reference). Fewer colors read as cleaner pixel art.

For a whole project, `pixelsmith init <dir> --palette ... --size ... --ppu ...` writes `style.json`; the brief fills unset values from it.

## 1. Master sprite

- **User gave an image:** `pixelsmith clean IMG -o sprites/name.pgrid --brief brief.json` (if `init=PATH` is already set in `brief.json`, `IMG` may be omitted; add `--size WxH` if grid detection fails; pass `--no-remove-bg` to keep a background). Avoid `--despeckle`: it also erases intentional 1px details such as pupils and glints.
- **Only a description, and you can generate images:** `pixelsmith brief prompt` composes the image prompt (more in `references/reference-prompts.md`); generate, then `clean`.
- **Small sprite (up to about 32px), no image tool:** write the `.pgrid` directly, then check it.

Verify: `pixelsmith from-grid GRID -o /tmp/view.png --scale 8` (view the image and check silhouette, proportions, shading, and outline), `pixelsmith lint GRID` (it lists isolated pixels with coordinates: keep details like pupils, remove real noise with `set X,Y C`). Read coordinates with `pixelsmith show GRID --region X,Y,W,H`. Debug and rework any visual flaws before showing the user.

Get the user's approval of the master before animating. Every frame inherits its flaws.

## 2. Animation

The brief's `animation.style` decides how it is built: **sketch** (rough key poses, relaxed checks), **limited** (few frames, retro), **smooth** (in-betweens, eased timing; the default), **snappy** (fast, long hit-stop, anticipation).

1. `pixelsmith anim new NAME --brief brief.json --master sprites/name.pgrid --out anims/NAME` (add `--style-file style.json` to inherit project `ppu`). This writes `spec.json` and one patch stub per frame, each with its intent in a comment. Keys are `f0, f1...`; in-betweens are `f1_1...`.
2. **Sketch pass first.** Fill the *key* patches only, then `pixelsmith anim build anims/NAME/spec.json --keys-only`. View `keys/*_contact.png` and inspect **every key pose** side-by-side: check that rotating/moving parts keep identical shape, volume, and attachment points across frames. Rework inconsistent poses before showing the user `keys/*_contact.png` or the GIF, and before spending effort on in-betweens.
3. Fill the in-between patches (`references/animation-principles.md` has the techniques: overlap, easing, holds).
4. `pixelsmith anim build anims/NAME/spec.json`. View `*_contact.png`, `*_diff.png` (magenta = new pixels, cyan = removed), and individual `frames/*.png`, and read the lint lines. Verify every frame's anatomy and arc before delivering.
5. Fix warnings by editing patches or timing, then rebuild. Stop after 3 rounds and show the user what remains.

Timing fixes are automatic: `pixelsmith anim retime SPEC --hold-extremes 1.6` holds the frames where motion reverses; `--curve ease-in-out --from fA --to fB` eases a segment; `--fps 12` sets a constant rate.

What makes it smooth (the linter checks these): enough frames for the style, motion that slows into its extremes, timing that varies, parts that lead or lag by a frame, feet that stay planted, a loop that closes without a snap.

## 3. Deliver

`anim build` writes to `anims/NAME/out/`: `NAME.gif` (preview), `NAME.png` + `NAME.json` (sprite sheet with timings, tags, events), `frames/`. Tell the user which files to use:
- **Aseprite:** open the `.gif` (frames and timings import), or import the sheet. If an Aseprite MCP is connected, use it only to open, save, or export; do not draw through it. The brief's `output` (`new_file`, `new_frame`, `new_layer`) says where the user wants the result handed off.
- **Unity:** copy `NAME.png` and `NAME.json` into the project; see `references/unity-export.md`.

## Be honest about limits

Lint proves *consistency and basic smoothness heuristics*, not that shapes or motion look right—only visual inspection catches broken anatomy or inconsistent rotated poses. Always view the rendered PNGs (`from-grid`, `*_contact.png`, `*_diff.png`, `frames/*.png`) and rework flawed poses before showing the user. Since static sheets still cannot fully replace live playback, say what you checked, show the preview, and let the user judge the `.gif`. If the reference is poor, say so rather than polishing a bad base.

## References (read only when needed)
- `references/brief.md`: the settings file and the ask protocol
- `references/patch-format.md`: every patch command with examples
- `references/animation-principles.md`: styles, smoothness techniques, timings, lint codes
- `references/reference-prompts.md`: getting a usable reference image
- `references/unity-export.md`: importing into Unity, pivots, events

Files in this skill

  • SKILL.md7.1 KB
  • references/animation-principles.md6.5 KB
  • references/brief.md2.6 KB
  • references/patch-format.md2.7 KB
  • references/reference-prompts.md2.1 KB
  • references/unity-export.md1.7 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.

View all in ai-agents →

Comments

Loading comments…

Newsletter

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