Nov 8, 2026
pixelfx: Drop 244 Pixel Art Effects into Your Game, or Have Claude Code Make New Ones
A 6k-star library of 244 code-drawn pixel art effects with a Claude Code skill that finds, recolors, exports, and makes new ones through a draft, render, look, refine loop.
A pixel art game needs dozens of small effects — fire, hits, pickups, transitions — and each one is an animation someone has to make. pixelfx is a 6k-star library of 244 pixel art effects written as code, plus a Claude Code skill that uses them and makes new ones "the way a picky pixel artist would: draft, render, look, refine."
Why This Skill Matters
Every effect is one small JavaScript file under src/fx/<category>/<name>.js, spread across 21 categories from fire and ice to UI, pickups, transitions, and critters. Because effects are code rather than images, you can play them live, recolor and mirror them, drop them into a browser game, or export sprite sheets for any engine.
The skill matters because of how it makes new effects. Its SKILL.md is blunt about it: "One-shot prompts make mediocre effects. Drafts you render, look at and refine make good ones." The method credits Hugo Duprez's article on making pixel art effects with Claude, and the skill turns that loop into steps the agent follows.
Installation
Install the skill as a Claude Code plugin:
/plugin marketplace add patch-gg/pixelfx
/plugin install pixelfx@pixelfx
Or copy skills/pixelfx into ~/.claude/skills/. The skill works inside a pixelfx checkout; if your project has none, it clones the repo next to it. The tools use only Node (18 or newer), and ffmpeg is optional for GIF and MP4 previews.
Real Workflow: Add a Frost Nova to Your Mage's Ultimate
-
Ask Claude Code, using one of the README's example prompts:
Add a frost nova to my mage's ultimate. -
The skill looks for an existing effect first. It searches the library with
node tools/list.mjs frost, renders candidates, and opens each contact sheet (records/<id>/contact.png) to look before choosing. Per the SKILL.md, most requests are an existing effect with different options. -
For a canvas or WebGL game (Phaser, PixiJS, Kaplay, three.js, plain canvas), the agent wires the code in directly — the library has no dependencies. For Godot, Unity, GameMaker, Defold, LÖVE, or Bevy, it exports a sprite sheet instead:
node tools/render.mjs ice/frost-nova --sheetThat writes a transparent PNG with every frame in a grid, plus an Aseprite-style JSON with frame rects, durations, and
meta.pixelfx(fps, loop, columns, and the pivot). Phaser's atlas loader and the Aseprite importers for Godot and Unity read it. -
Recolor without touching code. Any effect takes a
palette, a dark-to-bright ramp of hex colors, so a fire can burn blue:node tools/render.mjs fire/torch --gif --opts '{"palette": ["#102","#215","#43a","#8cf","#cff","#fff"]}'
Real Workflow: Make a New Effect
When nothing in the library fits, ask for drafts:
Make five takes on a coin pickup sparkle and show me the best two.
The skill's loop for a new effect starts by describing it in one line with art direction and reading the two or three closest effects for techniques; then it drafts. When the direction is open it writes 3 to 5 genuinely different drafts, renders them all, and looks at every contact sheet before choosing. Then it judges, fixes the worst thing, and renders again — "Three rounds minimum; a showpiece takes more." It finishes with check.mjs, fixing until the check passes clean. The README shows the tools behind these steps:
node tools/new.mjs arcane/my-spell # a working starting point (add --loop for a loop)
node tools/render.mjs arcane/my-spell # records/arcane/my-spell/contact.png: look at it
node tools/check.mjs arcane/my-spell # spills, seams, unseeded randomness, slow frames
Tips
- If an effect involves a character, use its act. The 61 effects with a character, and the 12 moves, carry timing data: wind-up, a freeze on contact, and recovery.
createActplays the stock character and target; with your own character, readwindup,recovery, andhitsfromslash.actor the sprite sheet JSON'smeta.pixelfx.act. - "This hit effect feels floaty. Make it punchier." is one of the README's example prompts. The SKILL.md's fix table answers floaty effects with fast-in, slow-out easing, a 1 to 2 frame white hero frame, and a shorter total time.
- Judge motion from motion, not samples: the README notes
node tools/act.mjsshows an act as consecutive 12 fps steps, "because motion bugs don't show in samples." node tools/serve.mjsruns the gallery locally with your own effects in it.
When Not to Use This
The SKILL.md draws one hard line: generic motifs are fine, but never recreate a specific game's sprites, characters, or logos. Sprite sheets bake glow in as color with alpha, which reads as additive over dark scenes; for bright scenes, the SKILL.md suggests rendering a recolored version or keeping the effect on a dark layer. And the MIT license covers code and effects, but not the Patch Pixel font in gallery/fonts — the README points to NOTICE.md for details.
See the leaderboard for more skills.