← Open Source

An Agent Skill for making pixel art games and animations.

JavaScript
Momentum
+0stars in 24 hours0.0%
555
Stars
52
Forks
1
Contributors
Created 2026-12-04 · Updated 2026-12-06 · #22033 today
Top developers
xikhar
README

pixelcore

An Agent Skill for making lit, layered, living pixel art: games, films and seamless loops, stills, posters, UI screens and animated characters, for any subject, from whatever you bring (words alone, a photo, a painting, pixel art, a rough sketch, a screenshot of your own game, a clip), at any frame size and aspect. Nothing is drawn from sprite sheets. Every frame is composed from a small set of general primitives: depth planes; surfaces with a shape, a form and a material; light operators (key, fill, lamps, cast and contact shadow, haze, reflection, gloss, light through, bloom); and motion operators for any painted shape. A bundled zero-dependency WebGL2 engine computes the light, so it is never painted in, and snaps the lit frame to a deliberate palette. The skill teaches the method and ships the engine plus headless tools for planning from a reference, capturing, recording and checking the work. The subject, palette, layout and size always come from your prompt.

Made with the engine: each was made by one agent from a short brief, using only the shipped engine and scripts (6 s seamless loops).

Install

npx skills add xikhar/pixelcore            # into the current project
npx skills add xikhar/pixelcore -g         # for your user, every project
npx skills add xikhar/pixelcore -a claude-code

Manual install: copy the folder skills/pixelcore/ to ~/.claude/skills/pixelcore/ (Claude Code) or to your agent's skills folder (for example .agents/skills/pixelcore/).

Upgrading: install it again the same way, or replace that folder. A project made with an earlier version holds its own copy of the engine and keeps it until you replace the project's engine/ folder. What changed, what to check when upgrading and the known limits: CHANGELOG.md.

What you get

part where what
guidance SKILL.md, references/*.md what a frame is made of (planes, shapes, forms, materials, light operators, motion operators) and how to choose each by a thing's properties; one method from any input to a plan, a blockout and region checks; how to animate any shape; the look's laws with their reasons; a clocked process with look rounds; formats, figures, sound, measurable checks; worked examples, fenced as examples
engine assets/engine/ 146 plain ES modules, WebGL2 + Web Audio, no dependencies. Primitives: a layer stack with depth, parallax and haze per plane; one paintSurface(shape, form, material) for any surface on any plane (tilted planes with their own coordinates, round and relief forms, patterns that foreshorten and drop out when small); recipes and receding fields so nothing is stamped twice; material light props (receive, gloss, light through, reflect, unlit); deferred 2D light with a key set by two angles, lamps, bounce, cast and baked contact shadow, haze, shafts, spills from emitters, reflection about a line, bloom and a palette snap; fields, pivoted parts, warps, described and measured motions, cycles and states. Also: a figure kit with body plans and views, physics, cameras, an autopilot, a UI kit, audio with synth voices, an app framework with scripted input and a scriptable page contract. Every default length scales with the frame
first pages assets/pages/, assets/starter/ one first page per deliverable (still.js, loop.js, game.js, character.js, ui.js): the plan as a first lit frame, a loop with its movers, a level that plays, a model sheet, a UI over a backdrop; and a deliberately plain grey demo scene to take apart, every placeholder marked REPLACE ME
scripts scripts/ Node tools: new-project (--kind <still, loop, film, game, character, ui> for the first page, any --size WxH), ref (what one deliverable reads: --route <kind>, --route <kind> --step <step>; one section of a reference: <file> <§>), serve, refkit (a plan from a picture or a brief, a blockout, region-by-material and repeated-object checks, grid, palette, crop, sheet, compare), round (one look round: the budget clock and its verdict, the frame with crops, what is open, a look list, and a short NEXT block; --handover is the only way to hand over), shot (settled PNGs, one debug view per light operator, light sweeps, moments of one run, --strict for the error check), record (frame-stepped MP4 / GIF with scripted input and sound, a seam verdict and motion measures; --pix-fmt yuv444p for full colour per px), look (style metrics), rigid (background-light check), node-run (bake and step a page in Node; --hold right --trace <n> walks a game with one direction held), build-single (one HTML file), harness (headless Chrome driver), selftest
gallery assets/gallery/ engine renders, frames made with the engine, and generated images, each labelled; references/gallery.md says what each one teaches

Gallery

None of these is a default. They show range and quality; your brief decides what gets made.

Engine render: real frames from a game built on this engine, at the size they were captured (640×360; the engine runs at any size).

Engine render, debug views of one frame: the albedo is flat mid-tone material and the light view carries the structure.

Made with the engine: stills from the two loops above.

Generated: made with an image model using engine renders as style-only inputs, then snapped to their pixel grid. These are pictures, not engine output; no light was computed. They show the style on subjects far from the engine renders.

How to use

Ask your agent for the work in plain words. The skill triggers on pixel art, retro visuals, 2D games, platformers, pixel animation, parallax and 2D lighting. Bring what you have: words alone are enough, and a photo, a painting, pixel art, a sketch, a screenshot of your own game or a clip each steer a different part of the result. Say what matters to you (subject, mood, palette, size, length, how much time to spend) and leave the rest to the agent. Examples:

  • "A 480×270 side-scrolling platformer screen: a hillside lumber camp at noon with hard shadows, one controllable character, and a single HTML file I can share."
  • "A 6-second seamless pixel loop of a cable-car station at dusk, its cars moving and its lamps coming on. Give me an MP4 and a GIF."
  • "A 270×480 pixel-art poster of a quarry lift in fog at night, lit by its work lamps."
  • "Design a small fox-like wanderer in pixel art: a sheet with front, three-quarter, side and back views, plus idle and walk loops as GIFs."
  • "Here is a photo of my street. Build a still of it at dawn in pixel art." / "Here is my sketch of the layout."
  • "Here is a screenshot of my game (256×224, top-down). Add a boiler room in exactly this style."

The agent starts a budget clock, names the deliverable (still, loop, film, game, character or UI) and reads only what that deliverable needs (scripts/ref.mjs --route <kind>). It turns your input into a plan: one row per visible thing, naming its plane, shape, form, material, light and motion, in fractions of the frame. The deliverable's first page shows the plan as a first lit frame; from there the agent builds the surfaces, the light (one operator at a time) and the motion. Most of the time goes to look rounds: scripts/round.mjs shows the frame with close-up crops (beside your picture when you gave one), measures it, and prints the time left, what is still open and the next step; scripts/refkit.mjs regions checks each region for what it is made of, not only its tone. The agent never waits for the clock. At about 80 % of the budget the round says CAPTURE NOW: the agent captures once, runs the checks and hands over through round.mjs --handover, whose line opens its notes with the minutes used and what is still open; the notes then say what it checked and what it did not. Without a stated budget it plans about 45 minutes for a still or a UI screen and 90 for a loop, a film or a small game, and tells you so.

Requirements

  • To view the work: any browser with WebGL2.
  • To run the scripts: Node.js 22 or newer (the headless driver uses Node's built-in WebSocket) and Chrome or Chromium. They are found automatically; set CHROME=/path/to/chrome to override.
  • Optional: ffmpeg for MP4 and GIF output, found on PATH or in the usual install folders (PX_FFMPEG overrides; without it, record writes PNG frames).
  • Nothing to install: no npm packages, bundlers or CDNs. node skills/pixelcore/scripts/selftest.mjs checks a machine.

Repo layout

README.md                 this file
CHANGELOG.md              what changed in each version, upgrade notes, known limits
LICENSE                   MIT
skills/pixelcore/         THE SKILL: everything in it is installed
  SKILL.md                entry point: what a frame is made of, the laws, the method, which reference to read
  references/             detail, one topic per file
  assets/engine/          the engine (entry: pixelcore.js)
  assets/pages/           the first page of each deliverable (still, loop, game, character, ui)
  assets/starter/         index.html + main.js + DECISIONS.md, copied by scripts/new-project.mjs
  assets/gallery/         source/ (engine renders), made-with-engine/, generated/
  scripts/                Node tools (+ lib/, selftest/)

License

MIT. See LICENSE.

Nearby in the ranking

AI Rank for iPhone

Follow AI model rankings

Download on the App Store