Skip to content
Back to skills

Iso Explainer

ASecurity

Animated step-by-step isometric diagrams (JSON to one offline HTML file). Use to explain an architecture, teach system design, give a repo architecture tour, tell the story of design decisions (ADRs), or visualize a request flow or pipeline: queues, caching, scaling, incidents, before/after refactors.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 1, 2026
ai-agentsgoshellnodeawsgitdatabaseci/cddocumentation

Works with

  • claude code
  • cli

Security analysis

A100/100

Pro scans all 20 files and shows the line behind each finding

Scanned December 4, 2026

npx -y skills add actus7/iso-explainer --skill iso-explainer --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Iso Explainer?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Iso Explainer
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/actus7-iso-explainer/badge)](https://www.skillsdirectory.com/skills/actus7-iso-explainer)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: iso-explainer
description: "Animated step-by-step isometric diagrams (JSON to one offline HTML file). Use to explain an architecture, teach system design, give a repo architecture tour, tell the story of design decisions (ADRs), or visualize a request flow or pipeline: queues, caching, scaling, incidents, before/after refactors."
---

# iso-explainer

Português (pt-BR): https://github.com/actus7/iso-explainer/tree/main/i18n/pt-BR/skill

Turns a system, an architecture or a workflow into an **interactive lesson**: each idea is an animated isometric diagram that the reader walks through step by step. Every box is an **object that does its job**: the gateway barrier rises on each request, the queue belt moves, the worker press comes down on each job. Links draw themselves, packets travel, servers heat up and fall over, HUD metrics count up to the new value, and a side panel narrates why each thing changed.

The agent writes **one typed JSON file** (the course). A deterministic compiler produces **a single self-contained `index.html`** (fonts, icons and engine embedded, ~420–530 KB), ready to open offline, publish as an artifact or deploy to Vercel/Netlify/GitHub Pages.

Use it when asked to: explain an architecture, "show how the flow works", demonstrate a pipeline (webhook → queue → worker, CI/CD, an agent with tools, ETL), compare before/after of a refactor, teach system design, walk through an incident step by step, or "make something like archify / designed-to-scale".

## Three modes

- **Course** (default): teaches a concept. Arc: problem → technique → solution → trade-off → recap. Progress, completed lessons, "You will learn".
- **Docs** (`"meta": { "mode": "docs" }`): **shows how an existing system works**, for a manager, team, client, onboarding or architecture review. Same look; the vocabulary becomes System / Views / In this flow / Key points, course-only parts disappear, and you get architecture chapters (overview, component, flow, data, integration, failure, decision, risk, proposal) and the **focus** pattern (`dim`) to highlight one part per step. Read `references/architecture-mode.md`.
- **Story** (`"meta": { "mode": "story" }`): **tells how the system got here**. Each step is a dated moment (incident, motivation, decision, consequence) with the decision record (context, rejected alternatives, consequences) and cited **sources**; the architecture on stage is the one from that time. Material comes from `scripts/harvest.mjs` (ADRs, RFCs, git, Claude Code/Codex sessions, exports). Read `references/story-mode.md`.

In all three modes, any box can have **`inside`**: a magnifier appears on it and, on click, the camera dives in and opens the internal view: a mini-diagram with its own steps, or an interactive figure that builds the mechanism as a real object (token bucket, LSM tree, circuit breaker…), made with the [anatomy](https://github.com/wheresryan22/anatomy) kit bundled here. Read `references/inside.md`.

Choose by the request: "explain/teach X" → course; "show/document/present our system / how the architecture looks now" → docs; "tell the story / why we decided / evolution / onboarding with context" → story.

## What the result already includes (do not reimplement)

- SVG isometric stage with 8 entities: `block` (service), `device` (laptop/phone), `db` (database), `crowd` (crowd), `queue` (queue of balls), `zone` (dashed region), `ghost` (planned), `panel` (information card anchored to a corner).
- **24 looks** for `block`/`db`, chosen by `glyph` or by `look` and animated by traffic and `cpu` (`references/looks.md`): infrastructure (gateway, queue, server, balancer, worker, database, cache, external, dlq, scheduler, llm, webhook, storage, search, auth, monitor, stream, config) and code layers (controller, service, repository, validator, middleware, adapter). A course can bring **its own looks** (`"looks": ["./looks/x.mjs"]`), which `validate` draws and checks before the build.
- Automatic transitions between steps: what leaves disappears, what changes is interpolated, what enters drops in with a bounce and stagger, links draw themselves, the camera reframes by itself and highlights what is new.
- Animated packets on link routes: request/response (`bounce`), waiting (`hold`), probabilistic failure (`fail`), round-robin or weights between routes, fan-out, 14 visual kinds.
- Entity states: `cpu` (meter), `heat` (pulsing overload), `dead` (gray with an X), `dim`, `tags` (pills), `lift`.
- Complete shell: module/lesson tree with progress, header, HUD of metrics with good/warn/bad levels and animated counting, legend, step timeline, step panel (colored chapter, text, callout, "what changed"), goals that get checked off, ⌘K search, light/dark theme (automatic color remapping), read-aloud, shortcuts (← → R Space 0), `#/lesson/step` routes, zoom/pan/pinch, swipe on mobile, fullscreen, desktop/tablet/phone layouts, i18n pt-BR/en/es.

## Workflow

`SKILL_DIR` = the folder of this file. The scripts need Node ≥ 18.17 (the Chrome/Edge fallback of the audit, Node ≥ 22).

0. **Collect first.**
   - **Docs mode on a repository:** `node SKILL_DIR/scripts/harvest.mjs <repo> --mode docs --out .iso-explainer/<id>/structure`, then read `structure.md`. It lists the candidate components, links and looks, with a course skeleton in `structure.course.json`. Confirm every candidate in the code (`references/architecture-mode.md`).
   - **Story mode:** `node SKILL_DIR/scripts/harvest.mjs <repo> --out .iso-explainer/<id>/dossier`, then read `dossier.md` (`references/story-mode.md`). Agent sessions are read only with `--sessions auto`: ask the user first.
   - Exit code 3 means nothing was found.
1. **Understand the system and the goal of the lesson.** A lesson answers *one* question ("why do we need a queue?"). If the material is a repository, read the code before drawing. Never invent components.
2. **Write the script before the JSON.** Course: 6–12 steps in the arc *problem → technique(s) → solution → trade-off → recap* (`references/storytelling.md`). Docs: complete overview → one focus step per flow/component → decisions (`references/architecture-mode.md`). Each step changes **one** visible thing.
3. **Objects and depth.** Give **every** piece that has a role, including those inside an `inside` such as controller, service and repository, the `look` that tells the truth about it (or the `glyph` that selects it). If none of the 24 fits, **write a look for the course** instead of leaving the cube; A third party best told by its brand (payment provider, cloud vendor) can wear its **logo as `art`** instead: an SVG declared in `"art"` and painted on the block's face (a PNG/JPG is vectorized by `make`, or with `scripts/vectorize.mjs`). `"look": "box"` is only for states and abstract concepts (`references/looks.md`). In docs/story, **every main box** gets an `inside`; in a course, the pieces whose mechanism is the subject. Internal system → native view; mechanism/algorithm → a figure built with `assets/figure/figure.mjs` (`references/inside.md`, `references/figure-craft.md`).
4. **Layout: omit `x`/`y`.** Entities without a position are placed by the automatic layout (except `queue`, which needs `x`/`y`, and `zone`/`crowd`/`panel`, which have their own geometry): columns in `links` flow order, leaves beside their component, room for labels. This is the default and the safest path. Declare all of the lesson's entities in `defs` (the *final* scene) and derive the steps by showing/hiding pieces, so nothing changes place. Pin coordinates only when the position *is* the explanation (zones, regions, before/after), using the recipes in `references/layout.md`. Steps that dim the rest (`dim`) make the camera zoom in on what stayed in focus.
5. **Write the course** in `.iso-explainer/<id>/course.json` at the project root, with `meta.id` = `<id>` (lowercase and hyphens). Each explainer has its own folder: source, `index.html` and `shots/` stay together and nothing collides. Start from `assets/templates/starter.course.json` (or from `examples/engineering-in-practice.course.json`, which shows everything). Use `defs` + inheritance between steps to keep the JSON short. Full schema in `references/schema.md`; entities in `references/entities.md`. Follow the **Language** rule below.
6. **Make it clean:** `node SKILL_DIR/scripts/make.mjs .iso-explainer/<id>/course.json` validates, fixes presentation on its own, builds `.iso-explainer/<id>/index.html` and audits it (fast, then every viewport × both themes × the insides) in a loop until clean. Its fixes touch only presentation: they drop `x`/`y` so the layout places overlapping entities, put pills below, move link labels along the line (`labelAt`), open room between pinned entities when a label has no line to sit on, wrap a long name written on a block face in two lines, list a lesson missing from its module, and vectorize PNG/JPG art. A fix that does not clear its finding is put back. They never touch your text, entities, links or steps. The original is kept as `course.before-make.json`; every change is listed in `make-report.json`.
7. **Read `.iso-explainer/<id>/make-report.json`** and act on `status`:
   - `ok`: deliver. Also open a few PNGs in `shots/`: the audit checks layout, not whether the scene *explains*.
   - `needs-content`: only you can resolve each item in `needsContent` (`path`, `msg`, `hint`). Typical items: a plain cube that needs its `look`, a docs/story component without `inside`, an error in the course. Fix them, then run `make` again.
   - `blocked`: a build error, console error or capture failure, with the evidence in `needsContent`. Fix the cause and run again.
   - `advice` lists optional improvements, such as a `short` over 14 characters; `--strict` turns them into blockers.
   - **Git:** when `git.decision` is `ask`, the `.iso-explainer/` folder is neither ignored nor versioned. **Ask the user once** whether to version it, then rerun with `--git ignore` (the default answer: `.iso-explainer/` goes into `.gitignore`) or `--git version` (only `.iso-explainer/*/shots/` is ignored; leave the commit to them). Ask the user only about git, publishing and third-party brands.
   - **Browser:** the audit uses, in order, local Playwright, `PLAYWRIGHT_PATH`, a global Playwright, then an installed Chrome/Edge over DevTools (Node ≥ 22, or `CHROME_PATH`). If none is available it runs a static audit without screenshots, `audit.method` is `static`, and the report says so in `caveat`. In that case tell the user, and walk through the steps by hand.
   - The steps also run on their own while you write: `validate.mjs`; `build.mjs`; `snapshot.mjs --fast --step N` for a quick look, `--viewport all --theme both --insides` for the full audit. `validate.mjs --json` and the snapshot's `report.json` carry the same codes `make` uses (`overlap`, `label-gap`, `covers`, `clipped`, `hud`, `blocked`, …).
8. **Deliver** `.iso-explainer/<id>/index.html` (tell the user the path) (or publish it) only when `make` says `ok`. Deploy: `references/engine.md#deploy`.

## Quality rules (what separates a good lesson from any diagram)

- **Language.** Write every user-facing text of the explainer (titles, bodies, labels, tags, metric labels, glossary, panel lines) in the language the user is talking to you in. If the user asks for another language, or asks to match the project's documentation language, follow that. Set `meta.locale` to that language tag: `en`, `pt-BR` and `es` have the page UI built in; for any other language still set `meta.locale` and translate the UI words through `meta.strings` (see `references/schema.md`). Ids, file names and folder names stay ASCII kebab-case.
- **One concept per step.** If "what changed" has more than 3 lines, split the step.
- **The object is the explanation.** A box that is an object (barrier, belt, press) teaches before the text does; show traffic only where the object should work, and leave at rest whatever the step does not discuss.
- **Show, then explain.** The scene must make the problem *visible* (slow packets, `heat`, `dead`, `fail` failures, a growing queue) before the text gives the solution.
- **Numbers tell the story.** 3–5 HUD metrics that change in a meaningful way between steps (latency, throughput, errors, cost, queue depth). Use `good`/`warn` to color them.
- **Short text.** Title ≤ 48 characters; `body` = 1–2 paragraphs, ≤ 70 words; `short` ≤ 14 characters; link labels ≤ 28; at most one `callout`.
- **Up to ~12 entities per scene** and ≤ 8 pills in total. Detail goes in the text or in a `panel`.
- **Space:** with manual coordinates, ≥ 3 grid units between footprints; ≥ 6 when there are pills/labels between them. `tags`/`cpu` pills sit *above* the block: leave room above or use `"pills": "below"`. A link label over an object: move it along the line with `labelAt` (0–1).
- Course: **first step = problem**, last = **recap** (with a `panel`). Docs: **first = overview** with the complete scene, last = decisions/recap. Goals (`goals`) point to the steps where each idea appears.
- Docs: **fidelity**. Only components and names that exist in the code/infra; numbers only if measured (otherwise omit `metrics`).
- **Spatial consistency:** an entity keeps its id and position throughout the lesson; change state (`cpu`, `dead`, `tags`), not place, unless the movement *is* the explanation.
- **Never** copy third-party text, brands or logos into the course; brand and credits come from `meta`.

## References (load only what you need)

| File | When to read |
|---|---|
| `references/schema.md` | Always, when writing the JSON: course, modules, lessons, steps, scene, inheritance, `defs`, metrics, legend, glossary. |
| `references/entities.md` | When choosing/configuring entities, colors, glyphs (Lucide icons), states and sizes. |
| `references/layout.md` | When positioning: coordinate system, recipes (pipeline, fan-out, layers, zones), link and label routing, camera. |
| `references/storytelling.md` | When scripting a course: lesson arc, chapters, step patterns, how to write, how to choose metrics, anti-patterns. |
| `references/looks.md` | When choosing the object for each box: catalog of the 24 looks, inference from the glyph, what animates, layout, writing a look for the course, course art (SVG logos on block faces, vectorizing a PNG/JPG). |
| `references/inside.md` | When giving a box depth: native `inside` (internal steps) or figure (`figure.mjs`), host ↔ figure contract, direct route. |
| `references/figure-craft.md` | When building a figure or a look: "the object is the explanation", parts list, paint order, finishing, kit recipes. |
| `references/story-mode.md` | When telling a project's evolution/decisions: `mode: "story"`, `harvest.mjs` collector, decision record, sources, how to narrate. |
| `references/architecture-mode.md` | When documenting/presenting an existing system: `mode: "docs"`, recommended views, architecture chapters, focus pattern, fidelity to the code. |
| `references/flows.md` | When animating traffic: routes, packet kinds, `bounce`/`hold`/`fail`/weights/fan-out, link styles. |
| `references/design-system.md` | When changing brand/theme: tokens, components, typography, dark theme, responsive layouts. |
| `references/engine.md` | When extending the engine (new entity, new packet, new metric format), embedding, automating or deploying. |

## Files

```
SKILL.md
scripts/make.mjs         validate → fix presentation → build → audit until clean; writes make-report.json
scripts/validate.mjs     validates the course (errors with JSON path + geometry checks; --json adds coded findings)
scripts/build.mjs        course → single HTML  (--fonts inline|google|none, --force)
scripts/snapshot.mjs     per-step screenshots (+ --insides) and layout audit; always writes report.json
scripts/harvest.mjs      story: chronological dossier of ADRs/RFCs/git/agent sessions (secrets masked); --mode docs: structure + course skeleton (lib/structure.mjs)
scripts/vectorize.mjs    PNG/JPG → clean SVG for art: Unlimited-SVG endpoint → vtracer → potrace
scripts/lib/resolve.mjs  expansion of defs/inheritance/coordinates (used by validate and build)
scripts/lib/layout.mjs   automatic layout of entities without x/y
scripts/lib/geometry.mjs geometry checks (validate and build)
scripts/lib/custom-looks.mjs loads, checks and draws the course's looks
scripts/lib/art.mjs          cleans the course's SVG art (allow-list) for block faces
scripts/lib/browser.mjs  browser ladder: Playwright (local, PLAYWRIGHT_PATH, global) → Chrome/Edge over DevTools (lib/cdp.mjs) → static audit (lib/static-audit.mjs)
scripts/lib/autofix.mjs  fix ladders used by make; lib/findings.mjs: codes for validate findings
assets/runtime/          engine (engine.js), shell (app.js), looks (looks.js, looks-more.js, looks-core.js), anatomy kit (kit.js, MIT),
                         styles.css, icons.js, template.html
assets/figure/figure.mjs figure page for `inside` (compact card, host theme, loop, controls)
assets/fonts/            JetBrains Mono (OFL)
assets/templates/starter.course.json   minimal starting point
examples/engineering-in-practice.course.json   complete course with 2 lessons (system design + workflow)
examples/orders-architecture.docs.json         architecture tour in docs mode (focus, failures, decisions)
examples/orders-story.story.json               the story of the same system in story mode (ADRs, sources, dates)
examples/looks-catalog.course.json             the 24 looks with traffic + a course look (examples/looks/printer.mjs) + course art (examples/art/acme.svg)
examples/figures/token-bucket.build.mjs        mechanism figure (token tube) → token-bucket.html, used as `inside`
```

Files in this skill

  • SKILL.md15.4 KB
  • assets/figure/figure.mjs6.2 KB
  • assets/fonts/OFL.txt4.4 KB
  • assets/fonts/jetbrains-mono-latin-wght-normal.woff239.5 KB
  • assets/runtime/ANATOMY-LICENSE.txt1 KB
  • assets/runtime/LUCIDE-LICENSE.txt3.1 KB
  • assets/runtime/app.js57.1 KB
  • assets/runtime/engine.js82.7 KB
  • assets/runtime/icons.js46.9 KB
  • assets/runtime/kit.js34.5 KB
  • assets/runtime/looks-core.js10.4 KB
  • assets/runtime/looks-more.js31.4 KB
  • assets/runtime/looks.js33.9 KB
  • assets/runtime/styles.css45.9 KB
  • assets/runtime/template.html1.3 KB
  • assets/templates/starter.course.json6.9 KB
  • examples/engineering-in-practice.course.json52.2 KB
  • examples/figures/token-bucket.build.mjs8.7 KB
  • examples/figures/token-bucket.html92.2 KB
  • examples/looks-catalog.course.json25 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.