pixel-path README

The project's README from github.com/jonwheatley/pixel-path. As one markdown file: README.md.

Pixel Path

A Claude Code skill that turns any two places into a pixel-art fly-through of the real road. Ask Claude for "a pixel path from Bath to Bristol" and it:

Flying through Bath, England, at the moderate level

Bath, England: real streets from OpenStreetMap, art generated with the moderate kit.

What it is for

A first-person, pixel-art view of any real road, built from the real map. Useful wherever you want a real place or route on screen:

What you get

A folder with an index.html. Open it through any static web server and you are moving down the real road:

Three levels of detail

Before anything slow happens, the first step prints an estimate for your route, and the skill asks you to choose. Only the art costs money: $0.18 a picture at RetroDiffusion's rd_pro__default (October 2026). Cost depends on the number of regions (distinct looks along the route), not on distance.

level pictures per region 1 region 2 regions what you get
placeholders 0 $0 $0 code-drawn stand-ins for every picture
sparse 4 $0.72 $1.44 three kinds of building and a tree. Every lot is still filled; mirrored and tinted copies stretch the pictures.
moderate about 14, + 4 landmarks $3.24 $5.76 about ten buildings across the main kinds, two trees, a shrub, a street prop, the four best-known landmarks
detailed about 26, + 10 landmarks $6.48 $11.16 up to six variants of each kind of building, three trees, two shrubs, three street props, ten landmarks

The levels are nested, so moving up a level only pays for the new pictures. The exact quote is free and comes after the bake. Allow about 25% on top for re-rolls: in testing, 10% (Bath) to 34% (Manhattan) of pictures came back cut off or on a background. The cleanup dropped them, and the self-check re-rolled them within the budget.

Examples

Bath to Bristol at moderate (two regions, Georgian Bath, then Victorian Keynsham and Bristol, 32 pictures, $5.76):

Bath to Bristol at moderate

Kyoto Station to Kinkaku-ji, Japan, at sparse (one region, four pictures, $0.72):

Kyoto at sparse

Both runs passed the full self-check, including the sweep: 627 and 345 moving frames, with no sky through or between buildings. The estimate printed after routing matched the exact quote in every test run.

Install

As a plugin. In Claude Code:

/plugin marketplace add jonwheatley/pixel-path
/plugin install pixel-path@pixel-path

By hand. Copy this folder into your skills folder, so that the skill is at ~/.claude/skills/pixel-path/SKILL.md. For a single project, use .claude/skills/pixel-path/ inside it.

Then ask Claude: "make me a pixel path from Paris to Versailles".

Requirements and setup

How it checks itself

The skill doesn't call a route done when the code runs. It calls it done when the pictures pass:

  1. Every building is a solid. Each building is laid along its real line and always gets a shaded end wall, so it never reads as a flat card. A neighbour that joins it paints over the part it covers.

    • Cracks under 3 m are closed.
    • In a dense street, a building mapped far back is pulled up to the sidewalk.
    • A backing building stands behind every gap in a built-up row.
    • A second row of real buildings shows across squares and car parks.
  2. Cleanup. Each picture is cleaned and its backdrop flood-filled away. Holes in facades are filled, including a roof-to-ground gap between two houses drawn in one picture. Pictures that still carry a background, painted sky, a cut-off edge or a sliver are dropped. A contact sheet of every picture is written for Claude to look at.

  3. Layout check. The whole route is laid out exactly as the page will draw it, checking for gaps in street walls and for a building with the same picture as its neighbour.

  4. The sweep. Every 75 m of built-up road, the camera moves and looks straight ahead and 30° to each side. The sky is painted magenta and every building is drawn into a mask, and it counts:

    • sky seen through a building
    • slits of sky between two parts of the same street wall that reach down to the ground

    The 20 worst frames are written side by side with the problem marked.

  5. Review. Claude is told to look at the worst frames and the samples and keep fixing until the sweep is clean.

Credits and licences

The page shows a credits line that must stay visible wherever a fly-through is shown.

Known limits

pixel-path (jonwheatley/pixel-path)

pixel-art
Searching Database…

What is this?Pixel Path is a Claude Code skill that turns a real route between two places into a first-person pixel-art fly-through, baking in real buildings, terrain, and landmarks from OpenStreetMap and elevation data.
Is this a standalone app or something that runs inside Claude Code?It is a Claude Code skill, not a standalone app: you install it into Claude's skills folder and ask Claude in plain language for a route, and the result is a plain index.html folder you open through any static web server.
How do I install and use it?Install it as a Claude Code plugin, or copy the folder by hand into your skills folder so the skill ends up at ~/.claude/skills/pixel-path/SKILL.md (or .claude/skills/pixel-path/ for a single project), then just ask Claude for a route like a pixel path from Bath to Bristol.
What do I need besides Claude Code?Node 18 or newer is enough to build a placeholder route; real generated art needs a RetroDiffusion account with credit and an API key set as an environment variable; the optional screenshot self-check needs Node 20+ with Playwright and Chromium.
What are the main limitations?It only generates driving routes with no traffic, people or weather; buildings missing from OpenStreetMap get plausible guessed shapes and heights; a region reuses the same art kit so long streets repeat; and Overpass, the map data source, is slow and can time out, so a long route can take up to an hour.
Does the skill ever see my RetroDiffusion API key?No, you set the key yourself as an environment variable or in macOS Keychain; the skill never asks for it in chat and never prints it anywhere.
How much does a route cost to generate?Only the art costs money, at $0.18 a picture from RetroDiffusion; a two-region route ranges from $0 for code-drawn placeholders up to about $11.16 for the detailed level with up to 26 pictures per region plus landmarks.
How does the skill check its own work before handing it over?It renders a contact sheet of every generated picture, lays the whole route out to catch gaps in street walls, then sweeps the camera every 75 meters looking for sky showing through buildings, and has Claude review the worst frames and re-roll bad art.
What can I actually use the generated fly-through for?Real-road levels for driving or endless-runner games, trip recaps and travel content, stream backgrounds and lo-fi loops, or as a commented pseudo-3D renderer and OpenStreetMap bake pipeline to learn from or extend.
Size
6.9 MB
Stars
332
Updated
CommitOct 12
Age
1mo
Commits · 90 Days