/agent-toolkit-complete:pxl-pixel-artfrom agent-toolkit-complete
Creates pixel art (sprites, tiles, icons, scenes, sprite sheets) via a compact JavaScript DSL that renders PNGs and provides live browser preview. Useful for game asset generation and iteration.
Ships in agent-toolkit-complete. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
You write a small .px.js file; pxl renders PNGs and upscaled previews you can look at. The DSL
is built to avoid writing pixels twice: mirroring, auto-outline, palette-swap variants, reusable
parts, primitives, brushes and tilemaps. Needs Node ≥ 22.18. No install step.
PXL below means node <this skill's directory>/bin/pxl.js.
art.px.js (start from the template below; examples in examples/).PXL build art.px.js --only slime,heartout/_preview/<name>.png (upscaled, checkerboard = transparent, grid every
pixel, darker every 8). For exact pixel fixes use PXL ascii art.px.js <name> (keys + x/y rulers);
it's cheaper than an image.grid(x, y, ...) patch, one op) and rebuild. Repeat.PXL serve art.px.js in the background and give them the URL.
It rebuilds on every save and replays the edited asset's painting steps; it also writes the same
out/ files, so keep reading previews as usual.Errors name the file:line:col, the asset/layer/op path, and suggest fixes ("did you mean 'r'?"). One broken asset doesn't stop the others from building.
pal({ k: "#1b1630", g: "#8ccf63", G: "#4c8a44", t: "#2a5560", w: "#fff6e0", r: "#e2585e", R: "#a63a4c" })
ramps("ktGg", "kRr") // dark -> light, drives shade()/light()
// Symmetric: write the left half, mirror it, outline it.
sprite("slime", { mx: true, outline: "k" }, `
....ggg
..ggGGg
.ggGwGg
gggkwgg
gggkkgg
tgggggg
.tttttt`)
sprite("slime_red", { base: "slime", swap: { g: "r", G: "R" } }) // variant: 1 line
sprite("_eye", "wk\nkk") // "_" = part, not exported
sprite("chest", { w: 16, h: 12, outline: "k" },
rect(0, 3, 16, 9, "R"), rect(0, 0, 16, 4, "r"), stamp("_eye", 7, 4), shade([0, 9, 16, 3]))
scene("meadow", { w: 160, h: 96, bg: "w" },
layer("ground", { y: 64 }, rect(0, 0, 160, 32, "G"), noise(0, 0, 160, 32, "g", 0.1, 3)),
layer("props", stamp("slime", 40, 54), stamp("slime_red", 70, 54, { flip: "x" })),
layer("shadow", { shade: true }, poly([38, 64, 88, 64, 92, 67, 34, 67], "k"))) // cast shadow
sheet("chars", ["slime*", "chest"], { pad: 1 })
pal, "#hex", "." skip, "_" erase. Default palette is pico8
(0-f); use("sweetie16" | "db16" | "endesga32" | "gray8") for others.(c) => { c.rect(...) } functions,
layer(...)s. Then mirror → swap → flip → rot → outline (grows 1px each side) → crop.px rect box line(…, width) hline vline circ ring ellipse poly fill wire text.dither grad noise, shade/light(region, steps, density), recolor, and
shade:/light: layers for cast shadows and glows. Regions: [cx,cy,r], [x,y,w,h],
polygon, or a function. clip(region, ...items) restricts any items (half shapes, slopes).stamp tile pattern tilemap scatter. Names can be groups or globs
(group("rocks", ["rock_a", "rock_a", "rock_b"]), "tree_*"). Each placement picks randomly but
reproducibly. Use rflip, rswap, seed, and reseed: true for per-copy variety.scatter("_leaf*", x, y, w, h, 30, { on: "g", clip: true, rflip: "xy" }) paints
texture with tiny part sprites, only on the given colors.anim("cat", { outline: "k", fps: 10 }, grid, frame(), frame(grid(23, 0, "_K"))):
frames are patches over shared items or a base; or frames: 6 + (c) => ... c.phase ... for
procedural loops. Stamping an anim animates the scene (rdelay: true desyncs copies, frame: n
freezes one). Check _preview/<name>.png (all frames side by side) or pxl ascii per frame.glow("zgQ", { r: 6, strength: 0.5 }) directly in a sprite/scene body gives every pixel
of those keys a halo (flames, potions, moons, neon); ramp: 2 instead stays in the palette.
Give glowing things their own keys so nothing else lights up, or limit it with where.Full API with every option: reference.md. Dynamic lighting (lamps, light blocked by solid layers, sky light, Terraria-style): read lighting.md only when a scene needs lights.
mx) and let outline draw outlines. Never hand-draw either.base + swap; repeated details are _parts + stamp; families are a group or a
loop: for (let i = 1; i <= 3; i++) sprite("tree_" + i, ...).grad, noise, pattern, tilemap. Never big hand grids.scatter with on/clip.noise speckle over walls, floors or plaster to make them
"less flat": it reads as random dots, not material. Every mark on a surface needs a cause you
could name, and it should sit where that cause would put it:
noise is OK only where the material itself
is granular (gravel, sand, asphalt, tar roofs, rough stone), and keep it sparse. On faces drawn
at an angle (3/4 views), make the marks follow the face's slant.ramps, then light/shade regions; stack a density: 0.5 pass for soft edges.
Use shade: true layers with a poly for cast shadows across many objects.g/G light/dark green). Keep 2–4 shades per material for a clean pixel-art look.--only while iterating; a full build also writes every preview.DOWNSTREAM.md (opens in a new tab)LICENSE (opens in a new tab)README.md (opens in a new tab)UPSTREAM.md (opens in a new tab)bin/pxl.js (opens in a new tab)examples/basics.px.js (opens in a new tab)examples/cave.px.js (opens in a new tab)examples/grotto.px.js (opens in a new tab)examples/lighting.px.js (opens in a new tab)examples/moon_bakery.px.js (opens in a new tab)examples/moon_bakery_3d.px.js (opens in a new tab)examples/moon_bakery_flat.px.js (opens in a new tab)examples/neon_noodle_3d.px.js (opens in a new tab)examples/no_magic.px.js (opens in a new tab)examples/normals.px.js (opens in a new tab)examples/outpost.px.js (opens in a new tab)examples/shop.px.js (opens in a new tab)examples/tackle.px.js (opens in a new tab)lighting.md (opens in a new tab)package.json (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
118 skills in this plugin
/adrWHAT — Create and maintain Architecture Decision Records (ADRs) per the process. Covers when to write an ADR, required sections, review, and linking to epics/PRs. English for cross-team artifacts unless the user asks otherwise./agreementWHAT - Capture explicit agreements, terms, parties involved, dates, validity, and linked work items using the Agreement Document structure./architecture-diagramWHAT — Create architecture diagrams of real systems as one self-contained HTML page. Default mode is an interactive, Lucidchart-style explainer built from a JSON model: nested containers (cloud, cluster, namespaces), service boxes with brand icons, numbered flows the reader selects one at a time (user access, operator access over a VPN or tailnet, CI/GitOps deploy, secrets, observability, data), hover cards, an inventory and a "not there yet" list, validated by a build script. Poster mode keeps the static dark HTML+SVG template with a PNG/PDF export toolbar. Also exports Mermaid, D2, draw.io, SVG or PNG. Use for system, infrastructure, cloud, deployment, network, access-flow or security topology diagrams delivered as a shareable visual artifact rather than in-repo text.npx claudepluginhub ulises-jeremias/agent-toolkit --plugin agent-toolkit-completeOther plugins' skills for the same job