← all skills

dg-dungeon-map

An interactive hex-grid map of your garden, in the note header.

L2 · build step v1.0 MIT digital-garden eleventy svg
dg-dungeon-map example screenshot dg-dungeon-map example screenshot

Turns every published note into a hexagon on a spiral, rendered as a clickable map in your note header. The current page gets a “you are here” marker, and an optional overlay draws lines to that note's backlinks and mentions — all pulled from your Digital Garden's graph.json.

The path follows π. Notes are laid out oldest-first along an axial hex spiral; the digits of π decide how many content hexes then how many empty “ambient” hexes to place, so the rhythm of the walk is literally pi.
Inspirations. Conceptually inspired by brad.quest's Dungeon view and Hermitage's Forest (topobon). The install packages the Digital Garden Map tutorial linked from the DG docs tip Creating hex map; hex spiral math follows Red Blob Games.

How it works

A post-build script reads your notes (via the sitemap or the notes folder), sorts them by date, builds the π virtual-tile list, and places each on a spiral. It writes a static dungeon-map.svg plus a dungeon-data.json. At runtime, three autoloaded components render the SVG, mark the current hex from the page URL, and draw the graph overlays.

notes → eleventy build → postbuild (π spiral + SVG)
      → dungeon-map.svg + dungeon-data.json
      → header component renders it + marks "you are here"
      → footer script draws backlink / mention overlays

How to use it

Copy the skill folder into your agent's skills directory, then in your Digital Garden repo ask:

git clone https://github.com/palol/skills-zoo.git
cp -r skills-zoo/skills/dg-dungeon-map ~/.claude/skills/

(or ~/.agents/skills/)

Use the dg-dungeon-map skill to add the interactive dungeon map to my digital garden. Verify prerequisites first, install the components and build scripts into user-owned paths, wire the postbuild hook, then build and walk me through verification.

What it touches

Why L2, not L1. Unlike a pure component skill, this adds Node build scripts that execute at build time and read your notes and sitemap to generate the map. No secrets, no network calls — output is static files — but review assets/*.js before wiring the hook. Fully reversible via git.

What's in the box

Prerequisites

Scope is Digital Garden only — the autoloader, theme tokens, and graph.json shape are DG-specific.

Browse the full source on GitHub →