Pxl Pixel Art logo

Pxl Pixel Art

Community
ulises-jeremias
pxl-pixel-art

Create pixel art (game sprites, characters, items, tiles, tilesets, icons, scenes, sprite sheets) with pxl, a compact JavaScript DSL that renders PNGs and lets the user watch the painting live in a browser. Use when asked to draw, design or iterate on pixel art or game assets.

Overview

Publisherulises-jeremias
Repositoryagent-toolkit
Skill namepxl-pixel-art
Stars
20
Forks
5
Bundled files
46
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 46 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by ulises-jeremias on GitHub. Read the source before you install it.

Installation

Install the Pxl Pixel Art AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/ulises-jeremias/agent-toolkit/tree/main/plugins/agent-toolkit-complete/skills/pxl-pixel-art
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/ulises-jeremias/agent-toolkit.git /tmp/agent-toolkit
mkdir -p .claude/skills
cp -r /tmp/agent-toolkit/plugins/agent-toolkit-complete/skills/pxl-pixel-art .claude/skills/pxl-pixel-art
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Pxl Pixel Art in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Pxl Pixel Art on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Pxl Pixel Art is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

pxl: pixel art as code

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.

Workflow

  1. Write art.px.js (start from the template below; examples in examples/).
  2. Build only what you're working on: PXL build art.px.js --only slime,heart
  3. Look at it: read out/_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.
  4. Fix with small edits (a grid(x, y, ...) patch, one op) and rebuild. Repeat.
  5. If the user wants to watch: start 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.

Template

js
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 })

Essentials

  • Colors: one-char keys from pal, "#hex", "." skip, "_" erase. Default palette is pico8 (0-f); use("sweetie16" | "db16" | "endesga32" | "gray8") for others.
  • Items run in order: grid strings (drawn at 0,0), ops, (c) => { c.rect(...) } functions, layer(...)s. Then mirror → swap → flip → rot → outline (grows 1px each side) → crop.
  • Shapes: px rect box line(…, width) hline vline circ ring ellipse poly fill wire text.
  • Tone: 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).
  • Reuse: 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.
  • Brushes: scatter("_leaf*", x, y, w, h, 30, { on: "g", clip: true, rflip: "xy" }) paints texture with tiny part sprites, only on the given colors.
  • Animation: 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: 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.

Habits that save tokens and give better art

  • Write half of anything symmetric (mx) and let outline draw outlines. Never hand-draw either.
  • Recolors are base + swap; repeated details are _parts + stamp; families are a group or a loop: for (let i = 1; i <= 3; i++) sprite("tree_" + i, ...).
  • Large areas: primitives, grad, noise, pattern, tilemap. Never big hand grids.
  • Organic texture (leaves, grass, stones, rust): 2–3 tiny brush parts + scatter with on/clip.
  • No filler noise. Don't sprinkle 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:
    • built structure: siding/plank lines, brick or stone courses with offset joints, tile seams;
    • weathering: rain-stain streaks under ledges and sills, splash-back grime fading up from the ground, rust runs under metal brackets, paint flaking off boards (following the board lines);
    • clutter that tells the story: posters, pipes, vents, cracks from a corner. Flat color is fine; a clean wall beats a dotted one. 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.
  • Lighting: define 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.
  • Use mnemonic keys (g/G light/dark green). Keep 2–4 shades per material for a clean pixel-art look.
  • Build with --only while iterating; a full build also writes every preview.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Pxl Pixel Art AI skill do?

Create pixel art (game sprites, characters, items, tiles, tilesets, icons, scenes, sprite sheets) with pxl, a compact JavaScript DSL that renders PNGs and lets the user watch the painting live in a browser. Use when asked to draw, design or iterate on pixel art or game assets.

Why use Pxl Pixel Art on TypingMind?

Because you install it once and use it with any model. Pxl Pixel Art is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Pxl Pixel Art in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/ulises-jeremias/agent-toolkit/tree/main/plugins/agent-toolkit-complete/skills/pxl-pixel-art. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Pxl Pixel Art?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Pxl Pixel Art?

As many as you like. As long as a model supports skills, you can use Pxl Pixel Art with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Pxl Pixel Art AI skill free?

Yes. It is published on GitHub by ulises-jeremias under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇