Quick Answer: The pixel art agent skill pixelcore is an installable Agent Skill that lets an AI agent build pixel art games, animations and seamless loops from a text brief, a photo or a sketch. It ships a zero-dependency WebGL2 engine that computes light rather than painting it in, plus Node scripts for planning, capturing and checking the work. Install it with
npx skills add xikhar/pixelcore.
Most pixel art gets its shading by hand, one frame at a time. That works for a single still, but it breaks the moment something moves or a lamp switches on. The pixelcore project, as described in its GitHub repository, takes a different route: the agent composes each frame from primitives and a light engine works out the result. Here's what that means in practice, and where it stops being useful.
What the pixel art agent skill actually is
The skill is a folder, not an app. Its entry point, SKILL.md, teaches the agent what a frame is made of: depth planes, surfaces with a shape, form and material, light operators, and motion operators. The references/ folder holds the detail, one topic per file, so the agent loads only what a given scene needs.
The folder also contains an engine under assets/engine/. It is about 145 plain ES modules that use WebGL2 and Web Audio, with no npm packages, bundlers or CDNs. Your browser runs it, and you can view the result in any WebGL2-capable browser. Nothing gets drawn from sprite sheets. Every frame is composed at render time.
You install it with npx skills add xikhar/pixelcore for the current project, add -g for every project, or add -a claude-code to target Claude Code. A manual install copies skills/pixelcore/ into your agent's skills folder. The subject, palette, layout and frame size always come from your prompt, not from the skill.
Why lighting is computed, not painted
Here's the part most guides skip. The common advice for pixel art is to paint your highlights and cast shadows directly into the sprite, then keep the palette tight. That advice is sound for a static asset. It's incomplete for anything that moves.
When light is painted in, it's fixed to one pose and one time of day. If a character walks past a lamp, the painted rim light stays where the artist put it, so the scene looks pasted together. When light is computed, the same lamp, cast shadow and haze respond to where the object actually sits in the frame. The engine does this with a deferred 2D light pass, a key light set by two angles, lamps, bounce, cast and baked contact shadow, haze, and a final palette snap that holds the frame to a deliberate set of colours.
The result is cause and effect you can see. When the key light moves, the shadow moves with it. When a lamp turns on, the spill falls on the nearby surfaces and not on the far wall. That consistency is what makes a seamless loop read as a real place rather than a painted slideshow.
This doesn't mean painting is wrong. Hand-painted sprites still win for a tight, idiosyncratic style, and you can't always spare the compute. The trade is between authored control and consistency under motion.
How the method runs from brief to plan
The agent doesn't start by drawing. It starts a budget clock, then turns your input into a plan with one row per visible thing. Each row names the plane, shape, form, material, light and motion, expressed as fractions of the frame. That plan is the artifact you can check before any pixels exist.
The workflow runs in a fixed order:
- Read the input: words alone are enough, but a photo, painting, pixel art reference, sketch, screenshot or clip each steers a different part of the result.
- Write the plan with
scripts/refkit.mjs, producing one row per visible element. - Load the plan as a first lit blockout, so the composition and light exist before detail.
- Prove one surface through every light operator on a test strip.
- Build the surfaces, then add lights one operator at a time, then add motion.
Time is set by you or by default. Without a stated budget, the guidance plans about 45 minutes for a still or UI screen and 90 minutes for a loop, a film or a small game, and it tells you that choice. The agent is supposed to capture and hand over at about 80% of the budget, and say what it checked and what it didn't. In the source's own example, the default assumes 90 minutes for a 6-second seamless loop.
Here's where most people underestimate the work: the look rounds, not the first render. The source says most of the time goes to these rounds, where the frame is compared against your target.
The scripts that check the work
The skill ships Node tools that do the checking. None needs a package install, but you need Node.js 22 or newer, because the headless driver uses Node's built-in WebSocket. You also need Chrome or Chromium, which the tools find automatically unless you set CHROME=/path/to/chrome.
The tools that matter most in daily use are:
round: one look round. It puts the frame beside its target, shows close-up crops, prints the time left, and gives a short next step.refkit: plans from a picture or brief, creates blockouts, runs region-by-material and repeated-object checks, and builds palette and comparison sheets.shot: captures settled PNGs, one debug view per light operator, and light sweeps.record: writes frame-stepped MP4 or GIF with scripted input and sound, and gives a seam and boil verdict for loops.selftest: checks that a machine is set up correctly.
The record tool deserves a closer look. Loops fail in a specific way: the last frame doesn't match the first, or the pixels shimmer frame to frame. A seam verdict and a boil verdict catch both before you ship. That's a check most hand-drawn workflows only do by eye.
Where the skill falls short
No tool fits every project, and the README is clear about several limits.
First, you need a WebGL2 browser to see the work, and you need Node 22 or newer to run the scripts. An older machine or a locked-down environment will stop the workflow at the setup step. Run selftest first.
Second, MP4 and GIF output depend on ffmpeg. It's optional. Without it, record writes PNG frames, and you assemble them yourself. Plan for that step if you need a finished file on a tight deadline.
Third, the gallery is labelled for a reason. The engine renders and the two loops were made with the engine. The "generated" images were made with an image model using engine renders as style-only inputs, then snapped to a pixel grid. The source states plainly that no light was computed for them. Don't read them as proof of the engine's output.
Finally, the skill is large. With about 145 modules, a reference set and a clocked process, the first project will feel slow. The guidance expects that, which is why it begins with a plan and a blockout.
Comparing approaches
Here's how the three common routes compare, based on what the source describes and how each approach works in general.
| Approach | Where the light comes from | Setup needed | Planned time (from source or typical) |
|---|---|---|---|
| pixelcore skill + engine | Computed per frame in a WebGL2 pass | npx skills add, Node.js 22+, Chrome | 45 min still or UI; 90 min loop or small game |
| Hand-painted sprite sheet | Painted into each frame by the artist | Pixel editor such as Aseprite | Set by the artist, not by a shipped budget |
| Plain text prompt to an image model | Drawn by the model, not computed | An image model account | Minutes, but no fixed light or loop check |
The first row is the only one where light is consistent under motion by construction. The other two are faster to start but leave the consistency to the person or the model.
Frequently Asked Questions
What is a pixel art agent skill?
A pixel art agent skill is a set of instructions, reference files and tools that an AI coding agent loads to make pixel art. The pixelcore version includes a WebGL2 engine, a plan-and-check method, and Node scripts for capturing and verifying frames. You install it into an agent's skills folder, and the agent uses it when you ask for pixel art, 2D games or pixel animation.
How do I install pixelcore for Claude Code?
Run npx skills add xikhar/pixelcore -a claude-code in your project to install it for that project. Add -g to make it available for every project on your user account. A manual install copies the skills/pixelcore/ folder into ~/.claude/skills/pixelcore/. Then run node skills/pixelcore/scripts/selftest.mjs to confirm your machine has what it needs.
Why does pixel art lighting look flat?
Lighting looks flat when shading is painted once and never responds to the scene. The fix is to make light a property of the scene, so shadows and spills change with the objects and lamps. This is the reason pixelcore computes light in its engine. Painting is still fine for a fixed still, but it struggles once characters or lamps move.
Can I start from a photo or a sketch instead of a text prompt?
Yes. The source says a photo, painting, pixel art, a rough sketch, a screenshot of your own game or a clip each steers a different part of the result. refkit turns a reference picture into a plan, with one row per visible element. You still set the subject, palette, layout and size in your prompt, because the skill takes those from you.
Pixel art agent skills are useful when you need consistent light and a checkable loop, not just a nice still. Start with one short brief, such as a 6-second loop at 480×270, and run round after your first capture. Note how many look rounds it took to match your target, then pass this to someone wrestling with lighting that won't stay put when their sprites move.