/explorer:artifact-studiofrom explorer
Builds single-page or multi-page artifact sites (design docs, proposals, roadmaps, reports) with dark theme, modern SVG diagrams, interactive tables, and navigation. Use when asked to create or publish an artifact or HTML page with diagrams.
Ships in explorer. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
One self-contained page, or a small multi-page site, that explains a decision, design or system with modern product-style diagrams and wide tables. It reuses the diagram kit, diagram catalog and renderer from codebase-explorer (sibling skill in the same repo), but for one subject, not a multi-topic field guide.
Use one page by default. Use site mode when the subject has more than about 6 sections or several audiences (for example a roadmap with an overview, one page per stream and a risks page): an index.html with a card per page, plus one HTML file per page, all in one folder.
| File | Load when |
|---|---|
references/choosing-diagrams.md | choosing any figure (step 2) |
references/highlighting.md | writing the body and tables (step 3) |
references/engineering.md | the page is about software: design, repo, migration, incident, review |
references/interactive.md | adding node focus or step-through to a figure |
references/detailed-figures.md | the user wants more detail, isometric, 3D or a "real object" figure (anatomy skill) |
references/style-guide.md | tokens, fonts, figure sizes |
references/excalidraw-and-db-tables.md | any engineering diagram (Excalidraw) or any database table or schema change (schema-designer cards) |
references/investigation.md | an RCA, an investigation, or a "how does this system work" page that ends in a decision: section order, table columns, wording |
references/checklist.md | before publishing (step 8) |
../../diagram-types/technical/repo-map/README.md | drawing a repo map with scripts/repo_map.py |
build.py keeps the template's theme-dark block, which redefines every token on :root with dark values; --theme light strips it for a white page when the user asks for light. Never hard-code a colour outside the token blocks, or the other theme breaks. Explicit body background. Do not zero the html padding.../codebase-explorer/references/diagram-kit.md, shown in the modern style (dotted canvas, outlined cards, monospace uppercase titles, chip edge labels). build.py --style clean switches the whole page to the flat FigJam look. No hand-drawn filter, no style toggle on the page. The modern rules in assets/page-template.html are generated from codebase-explorer/assets/style.css by scripts/sync-modern.py; edit them there.scripts/handdrawn.py): handwritten titles, numbered boxes listing the real fields in mono, red request text beside the arrows, stores as ellipses, pods as dashed zones (Hand-drawn diagrams below). Plain box maps with no payloads (component maps, state or decision flows, PR plans) may use the clean generator scripts/excalidraw.py (Excalidraw diagrams below); use it for flows too when the user asks for a clean or flat look. Both embed with figure type excalidraw and a Download for Excalidraw button; publish such a page with capabilities: {"downloads": true}. Details in references/excalidraw-and-db-tables.md.references/investigation.md: the report quoted, problem / solution / not-the-cause in one line each, a first-principles Q&A table, write and read paths hand-drawn with a payload card per hop, options with Before, After, Pros, Cons and Choice, what others proposed, what we tested, code to read in order, failure modes and what is not verified. examples/rca/ is a working page.scripts/er_diagram.py: dark cards, coloured header per domain, key marks, italic types, NN, crow's-foot lines, new columns tinted (references/excalidraw-and-db-tables.md).<image class="d-logo" data-logo="vercel.com" data-name="Vercel" x y width height/> in a figure (leave out href), and <img class="logo" data-logo="vercel.com" alt="Vercel"> before the name in text or a table cell. build.py inlines every slot as a data URI from the local logo library only (assets/logos/, gitignored), so a published page needs no network and carries no key; a brand not in the library becomes a monogram and the build prints the command that adds it. data-logo takes a domain or a library name or alias. Find a domain with python3 scripts/logo_library.py find NAME (or browse assets/logos/index.html, local only). Add a brand with python3 scripts/logo_library.py add DOMAIN --name NAME: it fetches through the Logo.dev API with the secret key in ~/.config/explorer/logo-dev.env (2 credits; account shows what is left of the 500 a month), then check it by eye with sheets before trusting it. Never fetch img.logo.dev from a script: Logo.dev's terms forbid building a stored copy from its CDN. Keep the page's "Logos provided by Logo.dev" credit.<pre class="http" data-title="Claude Code to the gateway" data-logo="claude.com" data-note="illustrative values">: the request or status line, one name: value header per line, a blank line, then the body. End any line with #! note to highlight it with that note (the header a rule picks, the field that matters). build.py lays it out as a request card in the mono font, with header names, values, <PLACEHOLDER> parts and JSON coloured. Put cards side by side in <div class="httpgrid">; give wide JSON its own full-width card. Never list headers as code chips in a sentence or table cell, and never use the hand-drawn font for code. Name real headers and routes; label made-up ids and values "illustrative values".references/choosing-diagrams.md; never default to boxes and arrows for numbers, comparisons, plans or causes.d-box boxes (card colour of the theme), a thin ink outline and a neutral d-band header with no g-colour; colour carries at most one meaning (for example new or changed fields) and the legend says which."size": "bleed" runs wider than the text column for repo maps and dense architecture, keeping about 40px of air on each side (references/style-guide.md).<mark> per section for the sentence that matters, b.k for key terms, .metric for numbers that matter, callouts for risks and decisions; every table marks its deciding column (th.key) or rows (tr.key) (references/highlighting.md).<g data-node> and each link in <g data-edge> so hover focuses a part and its neighbours, and wrap the beats of any ordered figure (a sequence, a flow, a timeline) in <g data-step>; build.py warns about a figure with neither. Figures also link badges and legends to the drawing and zoom and pan full screen. Tables with 6 or more rows get a filter box, sortable headers and column selects. The static page stays complete (references/interactive.md).--kind engineering (references/engineering.md).min(1480px, 100% - 40px), 16 to 20px side gutters, prose about 75ch. Each table sits in .tablewrap (scrolls sideways in its own box; sticky header when long). Columns sized by content.<div class="problem"> right after the header (before .tldr) that says who is hurt, what they see, how much (a real number and date), and why it happens. The .lede states the problem too, never the solution. A reader who stops after the first box must know what is broken. build.py warns when the box is missing or comes after the .tldr.All of this is already in assets/page-template.html.
Scope. One subject, one audience, one job for the page. Pick 3 to 6 sections per page; more than that, split into pages and use site mode. Ground facts in real code, tickets and runs, not memory.
Choose the figures with references/choosing-diagrams.md: write the questions the reader brings (2 to 5 for most pages, up to 8 for a full roadmap or design doc), take one figure per question from the row for this kind of page (design doc, proposal, roadmap, comparison, investigation, report, migration, explainer, runbook), pick a behaviour pattern first when waits, failures, enforcement or risk carry the point, and keep as a table anything a table says as well. No two figures answer the same question; numbers get a chart, not boxes and arrows.
Write body.html. Plain HTML using the template classes:
<header class="top"> with .kicker, h1, .lede, .note (status line), nav.toc (single page only; site mode generates the section list)<div class="problem"><p><b>Problem.</b> ...</p></div> straight after the header and before .tldr; the .lede names the problem, not the fix<section id="x"><p class="num">01</p><h2>...</h2>...</section><div class="tablewrap"><table>...</table></div><span class="pill ok|next|todo|ill">, callouts: .tldr, .note, .callout warn|risk|ok, cards: .cards > .card, two columns: .grid2<mark>, <b class="k">, <span class="metric">; table marks: th.key, th.num, th[data-filter], tr.key|good|bad|dim{{fig:KEY}}Draw diagrams as svg/KEY.svg (repo maps: write a spec and run scripts/repo_map.py spec.json > svg/KEY.svg; detailed or isometric objects: build with the anatomy skill per references/detailed-figures.md), starting from the chosen type's example.svg in the repo's diagram-types/ folder (anatomy in its README). Follow ../codebase-explorer/references/diagram-guide.md and the budgets and connector rules in references/choosing-diagrams.md: one idea per figure, at most 9 primary nodes, 3 bands and 12 connectors (over budget: split into an overview and a detail), at least 32 units of clear margin inside the viewBox on every side, fewer and larger labels, accent on 1 or 2 elements, orthogonal connectors, every action arrow labelled with a verb, 12px minimum text, ids prefixed with the key, numbered badges that match a legend, no hex colors, no style or script tags. Structure diagrams follow the neutral colour rule above.
Check each diagram by eye: ../codebase-explorer/scripts/render.sh svg/KEY.svg /tmp/KEY.png dark modern, Read the PNG, fix overlaps, clipped text and wrong arrows (up to 3 rounds).
Describe figures in figs.json: {"KEY": {"type": "<catalog slug>", "why": "<reader question>", "title": "...", "caption": "...", "badges": [...], "legend": [["--cl1-f", "label"], ["line dash", "vendored"]], "size": "bleed"}}. size is optional: wide fills the text column (timelines), bleed nearly the window (repo maps default to it). A badge can be a string or {"t": "name", "d": "what happens here", "file": "path"}, which renders a detailed walkthrough under the figure; engineering pages use the detailed form. An anatomy figure is {"type": "anatomy", "src": "anatomy/x-light.html", "height": 620, ...}.
Build one page: python3 scripts/build.py --title "Page Name" --body body.html --svg svg --figs figs.json --out page.html [--kind engineering] [--theme light]. It fails if a {{fig:KEY}} has no entry or a type is not in the catalog, warns when why is missing, every figure has the same type, nothing is highlighted, a wide table has no key column or row, or (engineering) the page lacks failure modes, verification, real paths or detailed badges, and replaces any stray em or en dash.
Or build a site: python3 scripts/build.py --site site.json --out site/, where site.json (paths relative to it) is
{"title": "Site title", "kicker": "roadmap", "lede": "One paragraph for the index.", "note": "Status line.",
"svg": "svg",
"pages": [{"slug": "overview", "title": "Overview", "summary": "One line for the index card.",
"body": "overview.html", "figs": "overview.figs.json"},
{"slug": "risks", "title": "Risks", "body": "risks.html"}]}
kicker, note, summary (defaults to the page's p.lede), group (consecutive pages with the same group share a heading on the index, for example "Decide" and "Reference"), figs, per-page svg, and intro / intro_figs (HTML shown on the index between the lede and the cards, for example the conclusion) are optional. The build writes index.html (title, lede, intro, one card per page) and <slug>.html per page. Every page gets the same top nav with the current page marked, an "On this page" list built from its <section id> and h2 (sticky on the left on wide screens, on top on narrow ones), and Previous / Next links. A page body without an h1 gets a generated header with the page title, and its p.lede moves into that header.
Run the checklist (references/checklist.md) and look once at the whole page (headless Chrome screenshot, or the Artifact preview) and fix what is visibly broken. For a site, look at index.html and at least one page: ../codebase-explorer/scripts/render.sh --page site/index.html /tmp/index.png.
Publish. page.html (or the site folder) is self-contained: open it locally or host it anywhere. If your agent has an Artifact tool, publish with it: <title> is a 2 to 4 word name, description one sentence, icon one generic word. Republish the same file path to keep the URL, and remind the user the page is private until shared.
examples/basic/ is a minimal working body, figs.json and diagram. examples/handdrawn/ is one hand-drawn figure. examples/rca/ is a full investigation page in the references/investigation.md shape.
Every engineering diagram goes through these steps. Skipping the look-and-fix loop is how text ends up outside its shapes.
spec/KEY.json: zones, nodes, edges, texts; format in the docstring of scripts/excalidraw.py). Colours carry meaning: red for failure or cost, green for new or changed parts, yellow for decisions, blue for the system that acts, grey for the unchanged rest; say which in the caption.python3 scripts/excalidraw.py spec/KEY.json exc/KEY.excalidraw. The generator uses Helvetica and clean lines (add "rough": true for the hand-drawn look), centres text in every shape, and warns when a box had to grow for its text or a label is longer than its arrow. Every warning is a layout bug: move the nodes and run it again until it prints none.{"type": "excalidraw", "src": "exc/KEY.excalidraw", "why", "title", "aria", "caption", "size": "wide"}. It follows the page theme.build.py draws the scene to SVG at build time in headless Chrome and inlines it, so the reader loads no React, CDN or font (in-browser drawing failed in claude.ai: the font did not load and text overflowed). It needs Chrome locally; without it the build warns and falls back to drawing in the browser.The default for every flow, request, architecture and before/after figure. It is built for readers who want every header and field on the drawing itself, the way an engineer sketches a request on a whiteboard: "show the headers and JSON in the diagram", "draw it like Excalidraw", "what goes where and where it is stored".
spec/KEY.json, format in the docstring of scripts/handdrawn.py): dashed zones for processes or pods, numbered boxes whose title is handwritten and whose lines are a left-aligned mono field list (a line can be ["text", "orange"]), ellipses for stores (DB (postgres)\ntable users), arrows with absolute points and a short handwritten label, and red mono notes beside the arrows for the request line, headers and collapsed bodies.python3 scripts/handdrawn.py spec/KEY.json exc/KEY.excalidraw (it warns when a box is too short for its lines) and describe it in figs.json as an excalidraw figure, usually "size": "bleed".build.py loads the Virgil (hand-drawn) and Cascadia (mono) faces before drawing the scene at build time and embeds both in the page as data URIs, so the reader loads no font CDN and text stays inside its boxes.This skill lives in a public repo. Never copy private work content (company code, tickets, page bodies) into it; keep each page's sources in the session scratchpad or your own project folder. The logo library (assets/logos/: logo files, manifest.json, index.html) and the logo.dev keys (~/.config/explorer/logo-dev.env) stay local too: the logos are third-party trademarks served under logo.dev's terms, and the manifest lists the tools one person uses.
assets/page-template.html (opens in a new tab)examples/basic/body.html (opens in a new tab)examples/basic/figs.json (opens in a new tab)examples/basic/svg/d1.svg (opens in a new tab)examples/handdrawn/body.html (opens in a new tab)examples/handdrawn/exc/flow.excalidraw (opens in a new tab)examples/handdrawn/figs.json (opens in a new tab)examples/handdrawn/spec/flow.json (opens in a new tab)examples/rca/body.html (opens in a new tab)examples/rca/exc/after.excalidraw (opens in a new tab)examples/rca/exc/before.excalidraw (opens in a new tab)examples/rca/exc/map.excalidraw (opens in a new tab)examples/rca/exc/write.excalidraw (opens in a new tab)examples/rca/figs.json (opens in a new tab)examples/rca/spec/after.json (opens in a new tab)examples/rca/spec/before.json (opens in a new tab)examples/rca/spec/map.json (opens in a new tab)examples/rca/spec/write.json (opens in a new tab)references/checklist.md (opens in a new tab)references/choosing-diagrams.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
HTML, CSS, JavaScript, D3.js
3 skills in this plugin
/artifact-studio-explainerDefault for explainer videos. Turns a topic, investigation, design or codebase question into a narrated 1920x1080 MP4 in the artifact-studio look (light theme, clean SVG kit diagrams that build step by step, repo maps, flows, wide tables, spoken-word captions), rendered locally with the bundled Manim engine (artifact figures full screen, zoomed, with a red highlighter on whatever the narration names). Optionally renders with daybook reel's Studio composition when the user has a daybook reel checkout. Use whenever the user says "create an explainer video about X", "make a video explaining X", "explainer video", "turn this artefact into a video", or wants a walkthrough video of an issue, design or system. Optionally also makes a Claude Motion film of the same storyboard for sharing./codebase-explorerTurn a codebase, system or subject into an interactive beginner field guide with SVG diagrams (modern, clean or hand-drawn style, 102 diagram types, real logos), step-by-step walkthroughs, interview questions, scrollable tables and a published artifact. Use when the user asks to explore, explain or onboard them onto a repo or technology "with diagrams", says "explorer", "field guide", "teach me this codebase", or wants an interview-style tour of how something works.Other plugins' skills for the same job
npx claudepluginhub yashs33244/explorer --plugin explorer