world-visualiser
Skill7 starsChanged 4 days agoApache-2.0View on GitHub
Build an interactive single-file HTML viewer of a worldbuilding project with a 3D causal graph, timeline, map, trade, life and artwork gallery views. Use when the user asks to visualise, view, explore or map their world, browse entity artwork, see the timeline or cause and effect chains, or look at climate zones, species ranges, resources and trade routes.
In this repository21 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- handoffSkill
- next-allSkill
- nextSkill
- retroSkill
- specSkill
- economy-and-tradeSkill
- folklore-and-traditionsSkill
- geography-and-climateSkill
- history-and-eventsSkill
- magic-systemsSkill
- peoplesSkill
- prose-checkSkill
- world-artSkill
- worldbuildingSkill
- world-compileSkill
- world-reviewSkill
- world-validateSkill
- world-wizardSkill
- writingSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 12
Run scripts/build_viewer.py (resolved relative to this skill's directory):
- Very specific: line 38
If three.js cannot load (no internet) a banner says so.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
World visualiser
Turns the project's files into one self-contained page, output/world-viewer.html, that opens in a browser. It reads the same graph as the validator, so what you see is what the files say. Nothing is invented: data that is not in the files shows as empty.
Build it
Run scripts/build_viewer.py (resolved relative to this skill's directory):
python3 <this-skill-dir>/scripts/build_viewer.py <project-dir>
# Or serve locally on 127.0.0.1 with auto-rebuild on refresh and HTTP audio/image streaming:
python3 <this-skill-dir>/scripts/build_viewer.py <project-dir> --serve [--port 8765]Options: --serve [--port N] to run a zero-dependency localhost server (127.0.0.1) that auto-rebuilds on refresh and streams output/images/ and output/audio/ without base64 bloat, --out FILE to write elsewhere, --embed-media (alias --embed-images) to base64-encode discovered entity artwork and audio as data URIs for a 100% portable single file, --json-only to write viz.json, --template PATH to use another shell. The script exits with an error if the folder has no project.yaml. It prints any data warnings.
Then tell the user the path of world-viewer.html and ask them to open it in a browser. The page loads three.js from a CDN, so it needs an internet connection the first time it is opened.
Views
Tabs run in this order. Every view shares one selection: click anything and the right-hand panel shows its hero artwork (click to expand in a lightbox), summary, date and linked items (caused by, leads to, traces, participants, locations, related), each clickable.
- Causal graph (3D): events as nodes, causal edges as arrows, memory edges (event to tradition) dashed. Selecting a node colours its upstream causes blue and downstream effects orange and dims the rest. Drag rotates, shift-drag or right-drag pans, wheel zooms. Toggles: causal chain or all entities, causal edges only or all kinds, traditions on or off, pin time axis (x follows date), reset layout. The layout is seeded, so it is the same on every build.
- Timeline: era bands, events on lanes by type or by location, marker size by significance, causal arcs from cause to effect, traditions (diamonds) at first attestation with dashed links to their origin events, and the present date line when set. Ctrl+wheel zooms. Keys: left and right move by date, up goes to a cause, down to an effect. A screen reader table lists the events in order.
- Map, Trade and Life: interactive cartographic map with procedural Topographic and Parchment terrain (anchored to location coordinates, elevation and climate), optional painted/custom backdrop (
output/images/world-map.pngor per-worldoutput/images/maps/<scope-slug>.png), trade routes and resources, and climate zones with flora and fauna. When a project defines two or more top-level world scopes (world,planet,realm,plane, orsystem), the Map toolbar shows aWorld / Realmswitcher offering anOverview (All Worlds)galaxy/planar canvas (with distinct dashed, glowing cross-world portal or warp-lane arcs) plus individual per-world surface maps; double-click any world node or clickView Surface Mapin the side card to drill into that world's surface map, terrain cache, and optional per-world backdrop. Single-world projects hide the switcher and open their surface map directly. - Gallery: responsive grid of entity artwork cards respecting search, type and era filters. Clicking a card selects the entity in the detail panel.
- Content: two-pane reader for generated short stories, D&D 5e campaigns, and chapters discovered in
stories/,story/chapters/,output/stories/, andoutput/campaigns/, with clickable inline entity links that open the right-hand detail panel.
Controls
Search box (press /) filters by name; type chips and the era menu filter every view. The Entity list button opens a keyboard-friendly list of everything that passes the filters. The theme button cycles system, light and dark modes. The footer shows the warning count; click it for the list. Motion is disabled when the system asks for reduced motion.
If three.js cannot load (no internet) a banner says so; the entity list, detail panel, timeline and gallery still work.
Missing data
Climate, flora, fauna, terrain, resources, economy and artwork are optional in the schema, so a young world shows those views mostly empty. The warnings list says what is thin. To fill them in:
- Climate, terrain, elevation, flora, fauna: use the
geography-and-climateskill. - Resources, production, trade routes, currencies, shocks: use the
economy-and-tradeskill. - Dates and causes for the timeline: use
history-and-events; traditions:folklore-and-traditions. - Entity portraits, landscapes, emblems and items: use the
world-artskill.
Rebuild after any change; the page is a snapshot of the files at build time.
Data format
The payload shape is documented in references/data-format.md. The scripts are standard library only (PyYAML is vendored with the validator).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

