Turn a branch, a ticket, or a free-form codebase question into a rich, interactive HTML artifact a teammate can actually understand. Use when the user wants to visualize or explain a change, a PR, a ticket's scope, or how part of a codebase works - plain English first, with concrete data examples carrying every idea.
Ships in visualize. 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.
None: SKILL.md is the whole skill.
Turn a branch, a ticket, or a free-form codebase question into a rich, interactive HTML artifact that a teammate can actually understand - plain English first, with concrete data examples, structures, and contracts carrying every idea.
$ARGUMENTS - one of:
PROJ-123, a Jira/Linear URL, a GitHub issue link)feature/PROJ-123-service-versions, a GitHub PR link)If no argument is given, ask which of the three the user wants to visualize.
Classify the input and gather the raw material. Use parallel Explore subagents for anything that means sweeping multiple files or repos.
grep -rl "<KEY>" across docs/plans directories). Find associated PRs (gh pr list --search "<KEY>" --state all across the relevant repos). The visualization covers: the problem, the design, what shipped vs what remains.git diff <base>...<branch> --stat first, then the meaningful hunks). Read the PR body and review threads if a PR exists. The visualization covers: what changed, why, and how the data flows differently before vs after.While researching, collect the raw material the artifact will be built FROM:
If the subject touches anything a user sees (a new screen, a changed component, a before/after behavior), capture REAL screenshots with a browser MCP tool and embed them - a screenshot of the actual feature beats any mockup or description.
Tool selection (use what is available and fits the target):
mcp__playwright__* / mcp__chrome-devtools__* - isolated browsers. Best for local dev servers (npm run dev), public pages, and anything needing viewport emulation (browser_resize / emulate).What to capture:
Embedding (CSP forbids remote images): inline every capture as a data: URI (<img src="data:image/png;base64,...">). Mind the 16MB artifact cap: scale captures down (sips -Z 1200 shot.png) and prefer JPEG (sips -s format jpeg -s formatOptions 70) for photographic content; budget roughly 200-400KB per image and drop redundant shots before dropping quality. Base64 via base64 -i shot.jpg.
Load the artifact-design skill BEFORE writing any HTML (required by the Artifact tool). Write the file to the session scratchpad directory with a short, distinctive basename derived from the subject (e.g. proj-123-atlas.html); re-using the same path on a later run redeploys to the same URL. If the user wants an artifact from an EARLIER session updated, find its URL via Artifact action: "list" and pass it as url.
Hard constraints (CSP): fully self-contained - no CDN scripts, external fonts, or remote images; inline all CSS/JS. Mermaid diagrams render natively via <pre class="mermaid"> blocks. Both light and dark themes via tokenized custom properties (prefers-color-scheme + :root[data-theme=...] overrides). Wide content scrolls inside its own overflow-x: auto container. Pick a favicon emoji that fits the subject and keep it stable across redeploys.
path/to/file.ext:123 so an engineer can jump in.Every code sample in the artifact - JSON payloads, HTTP request/response lines, code blocks - must be syntax-colored. A monochrome <pre> block is a bug, not a style choice. CSP forbids CDN highlighter libraries, so inline a small tokenizer (a few dozen lines of JS) and run it over every code block:
/("(?:[^"\\]|\\.)*")(\s*:)?|\b(true|false|null)\b|-?\b\d+(?:\.\d+)?\b/g with a replace callback - a string followed by a colon -> key span, a string alone -> string span, true/false/null -> literal span, anything else -> number span.GET|POST|PUT|PATCH|DELETE <path>) get a verb-colored method span (GET green, POST blue, DELETE red) and a bold path; HTTP/... status lines bold; Header-Name: lines muted.prefers-color-scheme + :root[data-theme=...] mechanism as the rest of the page.Give every endpoint its own card with side-by-side REQUEST and RESPONSE blocks (a two-column grid that stacks on narrow screens). Cover not just the happy path but the meaningful variants: empty/None states, validation failures with the 422 body verbatim, throttling (429 with Retry-After), and auth (401). Under each card, a short annotations list calls out the load-bearing fields - what the reader must notice, not a re-description of every key. Payloads are pretty-printed multi-line JSON, syntax-colored per the rules above, and each payload is defined exactly ONCE - walkthrough sections reference the cards rather than repeating payloads.
<details> or JS toggles): plain-English summary visible, deep detail expandablePublish with the Artifact tool (concise <title> in the HTML, one-sentence description, stable favicon). Then report back:
Before publishing, self-check: could someone who has never seen this code follow the story using only the plain-English paragraphs and the examples? Does every concept have at least one concrete data example? Does the worked example use the same protagonist throughout? Are both themes legible? Is every code sample syntax-colored (in both themes), with no monochrome <pre> blocks left? If the subject exposes API endpoints, does each one have a card covering the meaningful request/response variants, with each payload defined exactly once? If the subject has a UI, are there real screenshots (with desktop/mobile and before/after switchers where applicable), and is the total page under the 16MB cap? Do screenshots show only seed/fixture data? If any answer is no, fix it first.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
/visualize:visualizefrom visualize
npx claudepluginhub snakeo/claude-visualize --plugin visualize