mcpbeat Sign in

Pixel Grid Draw Agent Skill

Draw 2D shapes (filled rectangles, outlined frames, ASCII bitmaps) on the 32×32 MCP pixel grid. Use this skill whenever the user asks to draw a square, rectangle, box, frame, outline, border, sprite, or other 2D shape on the pixel grid, or when the task involves placing a block or bitmap at specific grid coordinates. The pixel-grid MCP server only exposes a 1D `write(offset, bits)` primitive; this skill compiles a 2D drawing into the sequence of `write` calls that implements it.

2k tokens
context cost
the whole folder, loaded on every use
2
files
ships runnable scripts
0
copies elsewhere
how many repositories repackaged it
2
stars on the repo
on the repository, not the skill itself

Install

one command, takes just this skill from the repository
npx skills add https://github.com/PostHog/mcp-skill-demo --skill pixel-grid-draw

What comes with it

4 083 bytes besides the instruction
scripts/plan.py

What it tells the agent to use

found in the instruction text
Write writes files

The instruction itself

9 sections, as written by the author

pixel-grid-draw

The pixel-grid MCP server exposes a linear write primitive:

write(offset: int, bits: str)

where offset ∈ [0, 1024) and bits is a string of '0' (white), '1'

(black), or '.' (skip, leave cell unchanged). The grid is 32×32,

row-major: offset = y * 32 + x.

Drawing 2D shapes in terms of write is mechanical but tedious: row

offsets must be computed, and cells that should remain untouched need

. in the right places. This skill does the mechanical part so you

can focus on the shape.

How to use

  • Decide the 2D operation (rect / frame / bitmap) and its position.
  • Run scripts/plan.py with those args. It emits JSON of the form:
   { "ops": [ { "offset": <int>, "bits": "<string>" }, ... ] }
  • For each op in the list, call the pixel-grid write MCP tool with

those exact args.

Each command emits one op per row of the shape. This is

deliberate: packing a multi-row shape into a single long bits

string requires 2D-through-1D padding (. runs spanning the cells

between row ends and the next row's start), which balloons a dense

shape into a highly repetitive multi-kilobyte string — exactly the

input an LLM is most likely to miscopy. Per-row keeps every bits

value at most 64 chars with a distinct offset, and the ops are

independent so you can fire them in parallel.

The script never touches the network; it's a pure translator. You are

still the one making the MCP call, which means the write is visible

in the tool-call trace.

Commands

Filled rectangle

scripts/plan.py rect X Y W H

Fills a W × H block with black starting at (X, Y). Any previous

content underneath is overwritten (cells set to 1).

Outlined frame

scripts/plan.py frame X Y W H

1-pixel outline of a W × H rectangle at (X, Y). Interior cells use

. (skip), so the frame draws *around* existing content without

clobbering it.

Arbitrary bitmap

scripts/plan.py bitmap X Y

Reads the bitmap from stdin: one row per line, each character 0

(white), 1 (black), or . (skip). Top-left of the bitmap is placed

at (X, Y).

Example — a 5×4 hollow oval at (10, 10):

printf '01110\n10001\n10001\n01110\n' | \

scripts/plan.py bitmap 10 10

Clipping

Coordinates and dimensions may fall outside the grid; the plan is

clipped to 0..63 on both axes. Rows/columns that fall off the edge

are dropped silently. No op references pixels outside the grid.

Example session

User asks: *"Draw a 10×10 square at position (5, 5) and put a frame

around it at (3, 3)."*

  • python3 scripts/plan.py rect 5 5 10 10 → 10 ops (one per row).
  • python3 scripts/plan.py frame 3 3 14 14 → 14 ops. Middle rows

use . for the interior cells so the frame draws cleanly around

the rectangle without erasing any part of it.

  • Call write(offset, bits) on the pixel-grid MCP server for each

op. The 24 calls are independent; fire them in parallel.

Notes

  • If you want a blank canvas first, call the pixel-grid clear tool.
  • For very small shapes, it may be quicker to compose the bits

string yourself and call write directly. Use this skill when the

shape spans multiple rows or when an ASCII-art bitmap is more

natural than hand-computed offsets.

Other skills for the same job

different authors, same section of the catalogue
Skill Creator
by anthropics
vendor ×10

Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.

56k tokens scripts
Skill Creator
by vercel-labs
vendor ×10

Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.

12k tokens scripts
Skill Creator
by JayZeeDesign
×9

Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.

10k tokens scripts
Template Skill
by JayZeeDesign
×7

Replace with description of the skill and when Claude should use it.

35 tokens
Dispatching Parallel Agents
by ZhanlinCui
×5

Use when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies

2k tokens
Skill Development
by anthropics
vendor ×4

This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill content", or needs guidance on skill structure, progressive disclosure, or skill development best practices for Claude Code plugins.

9k tokens
Find Skills
by sanity-io
vendor ×4

Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.

1k tokens
Writing Skills
by ZhanlinCui
×4

Use when creating new skills, editing existing skills, or verifying skills work before deployment

26k tokens scripts

How to use it

Copy the folder

Take posthog/pixel-grid-draw from the repository into ~/.claude/skills for personal use, or into .claude/skills inside a project.

Check the name does not clash

The agent identifies a skill by the name field in its header. Two skills with the same name cannot sit side by side — one of them will be ignored.