[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77MZ640KZG0JEAGK2CY31H7":3,"skill-same:01M77MZ640KZG0JEAGK2CY31H7":65},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":29,"commitSha":30,"skillDirectory":31,"forksCount":32,"repositoryHtmlUrl":33,"repositoryHomepageUrl":6,"ownerHtmlUrl":34,"ownerBlogUrl":35,"ownerDescription":36,"updatedAt":37,"install":38,"resources":50},"01M77MZ640KZG0JEAGK2CY31H7","visualize",null,"When the built-in ClaudeDesign tool resolves in this session and the person names, links, or asks for work in an existing claude.ai\u002Fdesign project, prefer it for that project; this skill for rendering its own output. Decide the best visual form and medium for what is in the conversation right now, then render it. Use when asked to visualize, diagram, chart, draw, sketch, or render something, or which visual form fits it best. Infers the target, picks a form (a mermaid diagram, a markdown table, a hand-authored SVG\u002FCSS chart, ASCII\u002FUnicode art, code-shape sketches, or a rich rendered page) and a medium through the shared medium resolver, and asks only when the target is ambiguous and no form was named. Routes chart craft and artifact-design fundamentals to those capabilities when installed. Not for polishing a specific chart's colors\u002Faxes (a chart-craft\u002Fdataviz capability owns that) or restating dense text in plainer words (a comprehension\u002Fdigest concern).","melodic-software\u002Fclaude-code-plugins","melodic-software","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F58273638?v=4","01M77JVQTXNGKCE4MDFY2BC936","Melodic Software","01M77JVQVN9QDWKAH6W03ANP76",30,"MIT","https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fvisualization\u002Fskills\u002Fvisualize\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\ndescription: \"When the built-in ClaudeDesign tool resolves in this session and the person names, links, or asks for work in an existing claude.ai\u002Fdesign project, prefer it for that project; this skill for rendering its own output. Decide the best visual form and medium for what is in the conversation right now, then render it. Use when asked to visualize, diagram, chart, draw, sketch, or render something, or which visual form fits it best. Infers the target, picks a form (a mermaid diagram, a markdown table, a hand-authored SVG\u002FCSS chart, ASCII\u002FUnicode art, code-shape sketches, or a rich rendered page) and a medium through the shared medium resolver, and asks only when the target is ambiguous and no form was named. Routes chart craft and artifact-design fundamentals to those capabilities when installed. Not for polishing a specific chart's colors\u002Faxes (a chart-craft\u002Fdataviz capability owns that) or restating dense text in plainer words (a comprehension\u002Fdigest concern).\"\nargument-hint: \"[\u003Cmedium>] [--unattended]\"\nuser-invocable: true\ndisable-model-invocation: false\nmetadata:\n  workflow-stage: anytime\n  summary: Pick the best visual form for what is in the conversation and render it\n---\n\n# Visualize\n\n## Purpose\n\nOn demand, at any point in a conversation, decide **what** is most worth showing\nvisually and **how** to show it, then render it. This skill is a **form + medium\nrouter**: it makes two decisions, the form and the medium, and produces the\noutput.\n\n## When this fires, and when it does not\n\n- **Fires** when the user asks to see something visually: \"visualize this\",\n  \"diagram this\", \"chart this\", \"render this as …\", \"show me …\", or a bare\n  `\u002Fvisualization:visualize`.\n- **Not chart craft.** Making a specific chart read well, including palette, marks,\n  axes, legend, and dark-mode contrast, is a chart-craft\u002Fdataviz capability's job. This\n  skill decides *that a chart is the right form* and routes the craft out.\n- **Not comprehension digest.** Restating a wall of dense text in plainer words,\n  or restructuring it for understanding, is a different concern. This skill is\n  form-driven (render the content as a visual), not comprehension-driven.\n\n## What you produce\n\nTwo decisions, then the rendered output:\n\n1. **Form**. The kind of visual the content wants (Step 2).\n2. **Medium**. Where it is delivered (Step 3).\n\n## Step 1: Infer the target\n\nRead where the conversation stands and identify the single thing most worth\nshowing: a process just described, a set of options compared, a trend in some\nnumbers, a structure being designed. Usually one target dominates. If two or more\nare equally plausible and the user named no form, that is genuine ambiguity.\nCarry it to Step 4. Otherwise proceed with the dominant target. Read the chat\nhistory first: the thing just discussed, pasted, or changed is usually the\ntarget, and a shape already shown earlier in the conversation is usually what a\nfollow-up question is about.\n\n## Step 2: Pick the form\n\nMatch the *shape* of the content to a form. The full catalog lives in\n[`context\u002Fdecision-matrix.md`](context\u002Fdecision-matrix.md): every mermaid\ndiagram family and when each fits, the zero-dependency chart primitives, and the\nrendering-surface facts these rest on. The summary:\n\n| Content shape | Form |\n|---|---|\n| Flow, process, hierarchy, sequence, state, relationships, timeline | a **mermaid diagram** (pick the family per the catalog) |\n| Attributes or options compared across items | a **markdown table** |\n| Quantities: trend, distribution, proportion, ranking | a **chart**. Route the craft to a chart-craft\u002Fdataviz capability |\n| Small structural sketch, box layout, a directory tree as structure | **ASCII \u002F Unicode art** |\n| Logic described in prose, or an algorithm before it is written | **pseudocode** (a code-shape sketch) |\n| A call path through named functions: orchestration, control flow, a backend-shaped problem | a **call tree** (a code-shape sketch) |\n| A UI's component tree, with the state hooks and module boundaries that matter | a **component tree** with file paths (a code-shape sketch) |\n| Where things live, or the scope of a refactor | a **shallow file tree**, one line of responsibility per entry (a code-shape sketch) |\n| The shape of code before any of it exists | **types and signatures** (a code-shape sketch) |\n| What changes, when the surrounding shape is already in the conversation | a **diff-shaped delta** over any of the shapes above (a code-shape sketch) |\n| Mostly new code, or a copyable target shape, when no sketch is smaller than the code | **the whole block**, the fallback among the code-shape sketches |\n| A composite, interactive, or large multi-part view; an infographic | a **rich rendered page** |\n| A slide deck | hand off to `\u002Fvisualization:present`, which builds it from the account's Slides Artifact type |\n| A visual layout the user would rather tweak by hand: a UI mockup, screen flow, poster, banner, one-pager | a **rich rendered page**, with the **design canvas** (`\u002Fdesign`, the bundled `design` skill, which the person runs) offered alongside it |\n\n**Code-shape sketches** are fenced text: they render in any GFM surface and need\nno page. Tie-break against the mermaid row: when the content is code (named\nfunctions, files, components, types), prefer a code-shape row; when it is a\nprocess, sequence, or state in the domain, prefer a mermaid family. Pseudocode\nnever paraphrases pasted code when a structural form answers the question. Pick\nthe smallest view that makes the key point clear, place it beside the short\ntext it supports, keep only the calls, files, props, states, and boundaries the\nquestion needs, and use one form, sometimes several, rarely all. One example per\nform lives in [`context\u002Fcode-shapes.md`](context\u002Fcode-shapes.md); its paths and\nidentifiers are placeholders.\n\nA diagram that will be committed to the repository (a doc, ADR or README) is Mermaid source, over\nany canvas or page, so it diffs and reviews as text.\n\nWhen the form is a chart and a chart-craft\u002Fdataviz capability is installed, invoke\nit for the craft (form heuristic, palette, mark specs); when it is not installed,\nfall back to a simple, honest default (a labeled bar\u002Fline as inline SVG on a\npage, or a Unicode bar\u002Fsparkline in the terminal) and say the craft capability was\nunavailable.\n\nWhen the form hand-authors CSS or SVG styling outside the page chrome (Step 3) and `\u002Fuser-interface:write-css` is installed, use it to write that CSS, since it applies the project's design system and conventions first; without it, write the CSS here. The page chrome stays governed by the bundled chrome reference either way.\n\nWhen the form is a hand-tweakable visual layout, render this skill's rich page\n(or the form Step 3's resolved medium calls for) and offer the person the\ndesign canvas. The canvas is the bundled `design` skill, which is reserved for the\nperson to run: the model never invokes it. It exists only on the published-Artifact\ntier, so the offer is also gated on Step 3's medium selection: when the resolved\nmedium keeps delivery on the machine (its `publishes` is false), do not offer it.\nWhere the medium permits publishing, offer it as an explicit alternative, never a\nsilent default: the canvas is a published, persistent Artifact the person edits\nand shares (how, per the pointer in\n[the catalog's design canvas section](context\u002Fdecision-matrix.md#design-canvas-bundled-design-skill-presence-gated-preview)), where\nthis skill's page paths are throwaway or plain-static. The Boundary section below carries the sentence to offer and its gate\nbasis; the canvas surface facts and their verified-on\u002Frecheck record live in the\ncatalog spoke.\n\n## Step 3: Pick the medium\n\nThe media are the medium registry's fallback chain (`lib\u002Fview-registry.mjs`), richest\nfirst; the resolver steps a medium down that chain until this session can reach it. Selection\nlayers, first hit wins:\n\n1. **Explicit argument**. A medium named as the argument forces it. With no argument, the layers\n   below decide. The argument picks only the medium; name a form in the request itself.\n   `--unattended`, anywhere in the arguments, is neither a medium nor part of the target: it is the\n   caller declaring that nobody is present. Take it out first, then read the rest.\n2. **Resolved preference**. Run the shared medium resolver, adding `--argument \u003Cmedium>`,\n   `\u003Cmedium>` being the argument's word, when there is one. `\u003Coption>` is this plugin's `medium`\n   option, `${user_config.medium}`; pass `\"\"` when that reads empty or as an unsubstituted\n   placeholder. Read each option value from this text; never put a `${user_config.*}` string in a\n   shell command.\n\n   ```bash\n   node \"${CLAUDE_PLUGIN_ROOT}\u002Flib\u002Fview-settings.mjs\" resolve --lane visualization:visualize --option \"\u003Coption>\" [--argument \u003Cmedium>]\n   ```\n\n   It prints one JSON line, then the report line naming the medium and what decided it, then any\n   notice; print those lines as they stand. It weighs the argument, this plugin's `medium` option\n   and the repository's rendered-views convention files, and never publishes on a team file's\n   say-so; do not read or weigh those files yourself. Exit 2 means the argument named no medium:\n   say so in one line and run it again without `--argument`. With a `medium` set, deliver by the\n   JSON's `page` and `publishes`: `page` false renders in the terminal; `publishes` true publishes\n   the page, under the surface gate below; otherwise the page is a local HTML file. A `medium` of\n   `null` means no setting decided, so layer 3 resolves. When `node` is missing, say so in one line\n   and let layer 3 decide.\n3. **Auto**. Decide by the form and its weight: no page for small, static,\n   text-representable output (tables, ASCII, short code, a `mermaid` source fence);\n   a rich page for a composite, interactive, large, or truly graphical result\n   (rendered diagrams, real charts, dashboards).\n\nWhichever layer decides, name it in the output: the resolver's report line, or \"shipped\ndefault\" for auto.\n\n**Surface gate: the rich page is a capability that can be absent.** A published\nArtifact is gated;\n[the catalog's availability entry](context\u002Fdecision-matrix.md#availability-gating-why-the-surface-is-often-absent)\npoints at the live conditions. So when a page is warranted:\npublish an Artifact only if that surface is available; otherwise write a\nself-contained local HTML file and open it; if neither page surface is available,\ndegrade **visibly** to the best terminal form with a one-line notice. Never assume\nthe Artifact surface exists. A medium that does not publish keeps the page on the\nmachine; a publishing one prefers publishing but degrades the same way.\n\n**Canvas server.** A canvas server is an MCP server whose tools draw a diagram in an interactive\nview, such as an Excalidraw or tldraw server; detect one by the session's MCP tool names. In the\nClaude Code terminal, never draw there: use the forms above, a Mermaid or ASCII fence inline or a\nlocal page. On a surface that renders MCP Apps, with a canvas server connected, you may draw there\ninstead of a page, except for a diagram that will be committed (Step 2). A canvas stands in only\nfor a page, so a resolved medium with no page (`page` false) draws none, and one that keeps delivery\non the machine (`publishes` false) uses a local server only, as under `deny` below. The surface facts behind\nthis rule, and the optional servers a person can install, are in\n[the catalog's canvas section](context\u002Fdecision-matrix.md#mcp-app-canvas-connected-canvas-server).\n\nBefore drawing on a canvas, resolve `hosted_canvas` (`allow` or `deny`) from three layers: the\noption `${user_config.hosted_canvas}` (empty, or still an unsubstituted placeholder, is unset);\nthe `hosted_canvas` key of the repository's `docs\u002Fconventions\u002Fvisualization.yaml`; and the same key\nof the personal override `docs\u002Fconventions\u002Fvisualization.local.yaml`. Read the two files only when\nthe repository root (`CLAUDE_PROJECT_DIR`, else `git rev-parse --show-toplevel`) is inside a git\nworking tree and is neither `$HOME` nor an ancestor of it; a missing file or key leaves that layer\nunset. Read the team file twice, from the working tree and from the default branch's committed copy,\nso a branch cannot drop the team's `deny`. For the second read, take the branch name from\n`git -C \u003Croot> ls-remote --symref origin HEAD`, fetch it with\n`git -C \u003Croot> fetch --quiet origin +refs\u002Fheads\u002F\u003Cbranch>:refs\u002Fremotes\u002Forigin\u002F\u003Cbranch>` (a failed\nfetch falls back to the last fetched copy), resolve\n`git -C \u003Croot> rev-parse --verify --quiet refs\u002Fremotes\u002Forigin\u002F\u003Cbranch>^{commit}`, then\n`git -C \u003Croot> show \u003Csha>:docs\u002Fconventions\u002Fvisualization.yaml`. A file absent at that commit leaves\nthe layer unset. When the read cannot run (no origin answers, it names no default branch, or the\nref never resolves), say so in one line naming the step that failed and count the team layer as\n`deny` for this run. A value other than `allow` or `deny` is named with its option or file, the key and\nthe value, and that layer is dropped. `deny` from any layer wins, so a tracked file can never undo\none person's `deny`; otherwise the value is `allow`, the default. Print one line with the value and the layer\nthat set it, for example `hosted_canvas: deny (docs\u002Fconventions\u002Fvisualization.yaml)`,\n`hosted_canvas: deny (default-branch read failed: origin names no default branch)` or\n`hosted_canvas: allow (plugin default)`.\n\nWith `deny`, send no diagram content to a hosted canvas server, one reached over the network; a\nlocal server, one that draws on this machine without sending the content on, stays allowed. Neither\ntool names nor an MCP configuration prove that (a process started locally can forward to a remote\nservice), so count a server as local only when the person says in this session that it is;\notherwise treat it as hosted and render locally.\n\n**Diagram target.** When the form is a diagram, resolve `diagram_target` (`auto`, `terminal`,\n`local-page`, `excalidraw` or `tldraw`) from the option `${user_config.diagram_target}` (empty, or an\nunsubstituted placeholder, is unset), then the `diagram_target` key of\n`docs\u002Fconventions\u002Fvisualization.yaml`, then the same key of `visualization.local.yaml`, each later\nlayer winning, else `auto`. Read the two files from the working tree only, under the same root rule\nas `hosted_canvas`; a value outside the five is named with its option or file, key and value, and\nthat layer is dropped. Print one line with the value and its layer, such as\n`diagram_target: excalidraw (docs\u002Fconventions\u002Fvisualization.local.yaml)`. `auto` is the behavior\nabove. Run layer 2 first: a medium it resolves (the person's own setting) wins over any other value,\nwhich then decides where the diagram goes only when layer 2 resolves none, in place of layer 3. A\nlayer 2 that cannot run resolves none. When\na resolved medium overrides it, say so in one line, such as\n`diagram_target: local-page overridden by medium terminal`. An explicit\nmedium argument still wins, and the committed-diagram rule (Step 2), the pull-request diff exception below\nand the mermaid gate still apply. `terminal` draws an inline fence, `local-page` a local HTML file,\nand `excalidraw` or `tldraw` that canvas server, only where the canvas rule above would draw on it.\nWhen the chosen target is unavailable (no such server connected, a surface that does not render\nit, or `hosted_canvas` forbids it), use `auto` and print this exact one-line form, never only a\nprose explanation:\n`diagram_target: excalidraw unavailable (no excalidraw server connected); using auto`.\n\n**Code-shape sketches take these same layers** (under auto they build no page, per\nlayer 3; an argument or resolved medium is honored for them as for any form), with\none exception: a pull-request diff, fetched content, or another repository's files\nare never rendered to HTML until this lane is wired through the rendered-views escape helper. That exception overrides layer 1 and the\npreference; when a page was asked for, say in one line why it was not produced.\n\n**Page chrome.** When authoring a rich page, take the palette, type stacks,\nradii, and accessibility floor (link\u002Ffocus contrast tokens, color-scheme and\nreduced-motion behavior) from this plugin's bundled chrome reference,\n`${CLAUDE_PLUGIN_ROOT}\u002Freference\u002Fhtml-chrome.html`, rather than inventing a\nlook per page. The chrome does not settle layout habits, so name the ones to leave\nout: italic accent words in headings, numbered \"01 \u002F 02 \u002F 03\" section labels,\npill-shaped buttons or badges, and a hero banner above the content, plus any style\nthe user names. When the user dislikes a choice in the rendered page, add it to\nthat list for the rest of the session and render again. A general \"avoid a generic\nlook\" only swaps one default for another.\n\n**Local-file placement.** Write the local HTML file via the platform's temp\nprimitive, never into the consumer's repository tree. On Unix\u002FLinux\u002FGit Bash,\ncreate a private run directory and echo it in the same call,\n`d=$(mktemp -d \"${TMPDIR:-\u002Ftmp}\u002Fvisualize-XXXXXX\"); echo \"$d\"`, then write the\npage to `\u003Cechoed dir>\u002Fvisualize.html`. Echo it in that call: the directory name\nis random, so an unechoed path is unrecoverable in the call that writes the file\n(what carries between Bash calls:\n[Tools reference, \"What persists between commands\"](https:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Ftools-reference#what-persists-between-commands)).\nCarry the temp root in the positional template, the one form GNU and BSD `mktemp` accept identically, since `-p`\u002F`--tmpdir`\u002F`-t` differ between the dialects and a bare relative template silently creates the file in the **current directory**, the consumer's repository. Keep the `XXXXXX` placeholders **trailing**. BSD `mktemp` (macOS) substitutes only trailing Xs, so an extension after them is not portable.\nThat is why the page takes a fixed name inside the generated directory rather\nthan a `visualize-XXXXXX.html` template, which macOS cannot create at all. On Windows,\na user-scoped temp under\n`%LOCALAPPDATA%\\Temp`. One file per run. The path is handed back to the user, so\ndo not delete it. It must still be readable when they open it. Open it for the\nuser (`start \u003Cpath>` on Windows, `open \u003Cpath>` on macOS, `xdg-open \u003Cpath>` on\nLinux) and report the absolute path.\n\nA **mermaid diagram** is the sharp case. A local HTML file renders it only if the\npage **embeds** a mermaid renderer inline. What a published Artifact page may load\nis in [Artifacts: Page constraints](https:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fartifacts#page-constraints).\nKeep the file self-contained; never load a renderer from the network, which breaks offline use and, for output kept local or otherwise sensitive,\nwould expose the page to a third party. A plain file with a bare `mermaid` block\ndoes not render. So if no mermaid-capable surface is reachable and no trusted\nrenderer can be embedded, deliver the mermaid **source** fence in the terminal and\nsay it is unrendered. Never open a page that shows source instead of the promised\npicture.\n\nParse every mermaid block before it is emitted, whatever the medium. Write each diagram to a\n`.mmd` file (or use the markdown file holding the ` ```mermaid ` fence) and run:\n\n```bash\nnode \"${CLAUDE_PLUGIN_ROOT}\u002Flib\u002Fmermaid-gate.mjs\" [--svg-dir \"\u003Cdir>\"] \u003Cfile>...\n```\n\nStdout is one JSON report; each block has `file`, `line`, `status` (`ok` or `error`) and `render`\n(`svg` or `source`). Exit 1 means a block failed to parse. For a local file, pass `--svg-dir` and\nembed the SVG a block names in place of the fence. For an Artifact, omit `--svg-dir` and run the parse\nonly (why: [the catalog's Published Artifact entry](context\u002Fdecision-matrix.md#published-artifact)).\n\n- `status: error`: do not write the page. Report the block's `file`, `line` and `error`, fix the\n  diagram, run the gate again.\n- `render: source`: keep the mermaid source and print the block's `reason` beside it. Never call\n  such a page rendered.\n- Without `mmdc` the parse is a structural check (unknown diagram type, unterminated quote,\n  unbalanced flowchart brackets), so say an `ok` does not prove every syntax error is absent.\n- The gate uses `mmdc` only at the minimum version in `prerequisites.json` or newer, found on PATH\n  or at `node_modules\u002F.bin\u002Fmmdc` under the working directory. An older one is treated as absent.\n  A failure that is not a parse error (no Chrome) falls back to source with the failure as the\n  reason. Pointer: \u003Chttps:\u002F\u002Fgithub.com\u002Fmermaid-js\u002Fmermaid-cli\u002Freleases>. Recheck when the\n  Artifact runtime's Mermaid version (see `context\u002Fdecision-matrix.md`) moves to a different major.\n- Check the prerequisites with\n  `node \"${CLAUDE_PLUGIN_ROOT}\u002Flib\u002Fprerequisites.mjs\" check \"${CLAUDE_PLUGIN_ROOT}\" --data-dir \"${CLAUDE_PLUGIN_DATA}\"`.\n\nHonor a preference without overproducing: a publishing medium still renders a trivial\nthree-row table inline, and a medium with no page degrades a rich form to its best\nterminal approximation with a visible note rather than dropping detail silently.\n\n## Step 4: Ask only on genuine ambiguity\n\nTwo things can be ambiguous independently: **what** to show (the target) and\n**which form**. Ask the user **one** question, with a RECOMMENDED default listed\nfirst, when either is genuinely ambiguous:\n\n- **Target ambiguity**. Several equally plausible things to show. Ask which, *even\n  if a form was named*: naming \"diagram this\" fixes the *how*, not the *what*.\n- **Form ambiguity**. The target is clear, no form was named, and two forms fit it\n  about equally. Ask which form. The common case is pasted code with little\n  conversational context: when two or more code-shape forms fit it about equally,\n  ask one question listing those two to four forms, the recommended one first,\n  and render nothing until the answer. When one form clearly dominates (a\n  comparison is a table, a series is a chart, a where-does-this-live question is\n  a file tree), render it without asking.\n\nThe pasted-code case honors `${user_config.thin_context_prompt}`. Read an empty\nvalue, or one that still reads as an unsubstituted `${user_config…}` placeholder,\nas unset, and apply `auto` (how a saved option reaches skill content:\n[Reference a saved value](https:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fplugins\u002Fmanifest-reference#reference-a-saved-value)).\n`auto` is the behavior above; `always` offers the\nranked menu on any bare code paste; `never` renders the recommended form without\nasking. Any other value is reported and treated as `auto`.\n\nWhen neither is ambiguous, meaning a dominant target and a clear best form, proceed with\nthe matrix's pick: good defaults, no nagging. A specified form or medium is honored\nand simply removes that axis from any question, with one carve-out: Step 3's\nterminal-only exception for a pull-request diff, fetched content, or another\nrepository's files overrides a requested medium that shows a page. Never\ninterrogate form by form; one question, then render.\n\n## Step 5: Render\n\n- **Terminal**: use markdown tables, fenced code, blockquotes, and ASCII\u002FUnicode.\n  Emit a ` ```mermaid ` block as portable source the user can render elsewhere,\n  and prefer a page when the *rendered* diagram is the point.\n- **A rich page** follows the Artifact tool's own contract and, when an\n  artifact-design capability is installed, its guidance. The page-contract facts\n  live once in [`context\u002Fdecision-matrix.md`](context\u002Fdecision-matrix.md). When the subject is a\n  product UI, match that product's own colors, type, spacing, and components rather than the\n  plugin chrome; use real labels and data; support desktop and mobile.\n- Report what you produced and, for a page, its path or link.\n\n## Next\n\n\u002Fvisualization:present\n\nIt turns the material into a slide deck when the request is for slides rather than one visual.\n\n## Gotchas\n\n- **Terminal mermaid is source, not a picture.** If the user wants to *see* the\n  rendered diagram and no page surface is available, say so. Do not imply the\n  fence renders inline.\n- **Do not overproduce a page.** A three-row comparison is a table; forcing it into\n  an Artifact is worse, not richer. Match richness to the content.\n- **The Artifact surface is often unavailable.** Gate on it; never let a missing\n  surface become a silent failure. Degrade visibly down the fallback chain.\n- **Canvas tools in the tool list are not a reason to use them.** In the Claude Code terminal,\n  render locally even when an Excalidraw or tldraw server is connected (Step 3).\n- **Craft is not this skill's job.** If you find yourself writing palette or axis\n  guidance, stop and route to the chart-craft capability instead.\n- **Prefer a mermaid family known to render** on an Artifact page, or verify a\n  newer one before relying on it. The catalog's\n  [Mermaid diagram families](context\u002Fdecision-matrix.md#mermaid-diagram-families)\n  records which families were checked, and Step 3's Page constraints pointer\n  says what a page may load.\n\n## Boundary\n\nAn **interactive parameter explorer whose output returns as a prompt** (controls\nbeside a live preview with a copy-out prompt, the \"playground\" shape) is not a form\nthis skill renders. When the first-party `playground` plugin is installed, route the\nrequest to its `playground` skill, or to the `playgrounds` wrapper's `\u002Fplaygrounds:use`\nwhen that wrapper is enabled, which also owns the install uplift and cloud delivery\nguidance. When neither is enabled, say the capability exists as an installable\nplugin and continue with this skill's closest static form (a rich page without the\nround-trip controls), never a hand-built imitation of the explorer.\n\nThe **design canvas** is the bundled `design` skill, a native surface this skill overlaps on\nhand-tweakable layouts, so a request for a mockup or a one-pager can mean either:\n\n- **`design` (bundled skill)**: drafts artboards on one canvas the person keeps and edits\n  (what it publishes and where it is edited:\n  [Artifacts: Draft a design canvas](https:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fartifacts#draft-a-design-canvas)).\n  It is reserved for the person to run; the model does not invoke it.\n- **This skill (marketplace plugin)**: picks the form and medium and renders a throwaway or\n  plain-static page.\n\n**Routing:** when the form is a hand-tweakable layout and Step 3's medium permits publishing,\nrender this skill's page and tell the person: If \u002Fdesign is available in your session (gate\nbasis: the verification record below), you can run it instead of or alongside this skill for a\nhand-editable design canvas. Treat a `design` entry in your skill listing as a local skill\nshadowing the bundled command (how same-name skills resolve:\n[Skills, \"Resolve skills that share a name\"](https:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fskills#resolve-skills-that-share-a-name)):\ndo not make the offer, and tell the person a local\n`design` skill shadows the bundled canvas command. A local `design` skill that disables model\ninvocation shadows it too and is hidden from you, so every offer adds that `\u002Fdesign`'s description\nshould read \"Make a new Design artifact from a brief\"; anything else is a local skill, not the\ncanvas, and not to be run for it. When the caller passes `--unattended`,\nrecord the `\u002Fdesign` suggestion in the run's output and do not ask the person; without that\nflag, tell the person as above.\n\n**Mutation gate:** the canvas publishes a persistent Artifact under the person's account, so it is\nnever a silent default and nothing tracked in a repository references it. This skill never runs it.\n\n**Verification record, `design`.** Our binary extraction of Claude Code 2.1.285 reads the\nbundled `design` registration as model-invocation-disabled, user-invocable and gated, which is\nwhy this skill only ever offers it. Settings can remove it; which settings, and how, are read from\nthe pointers in the catalog spoke's design canvas section\n([context\u002Fdecision-matrix.md](context\u002Fdecision-matrix.md#design-canvas-bundled-design-skill-presence-gated-preview)),\nwhich owns the remaining surface facts.\n\n- **Pointer**: probe: the `design` records in `docs\u002Fnative-surfaces\u002Frecords.json`.\n- **As of**: 2026-09-29\n- **Recheck trigger**: a release makes the `design` registration model-invocable, changes its\n  description (the identity string the offer quotes), changes its gating, or splits or merges its\n  registrations.\n\nA request to draw a layout or a deck can name a Claude Design project the person already has, and\nthen it means that project, not a new render:\n\n- **`ClaudeDesign` (built-in tool)**: the editor for a claude.ai\u002Fdesign project the person\n  already has; the model calls it by name. A new Design artifact comes from the bundled `design`\n  skill above, which the person runs\n  ([Artifacts: Draft a design canvas](https:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fartifacts#draft-a-design-canvas)).\n- **This skill (marketplace plugin)**: picks the form and medium and renders its own output.\n\n**Routing:** when the person names or links an existing claude.ai\u002Fdesign project, or asks for the\nwork to go into one, and the `ClaudeDesign` tool resolves in this session, use that tool for the\nproject's files. Otherwise this skill renders its own output as today. The tool is the project's\neditor; this skill is the form and medium router.\n\n**Mutation gate:** a `ClaudeDesign` write changes a project the person's team shares. Write only\nto the project the person named, and only after they asked for the change. When the tool asks for\nan approval or refuses a write, report it and never retry around it. The approval and refusal\ncases are probed behavior recorded in\n[context\u002Fclaude-design-tool.md](context\u002Fclaude-design-tool.md#the-built-in-claudedesign-tool-verification-record).\n\n## What this skill does NOT do\n\n- **Does not teach chart craft**. Palette, axes, marks route to a chart-craft\u002Fdataviz capability.\n- **Does not teach artifact-design fundamentals**. Those route to an artifact-design capability and the Artifact tool's contract.\n- **Does not restate rendering-surface facts**. They live once in the catalog spoke.\n- **Does not digest or re-explain dense text**. That is a comprehension concern, not a form concern.\n- **Does not explain a topic from scratch**. A one-idea-per-diagram picture explainer of a concept or codebase topic, ELI5 included, is `education:illustrate` (if enabled). This skill picks a form for what is already in the conversation.\n- **Does not render a pull-request diff, fetched content, or another repository's files to HTML** until this lane is wired through the rendered-views escape helper. Those stay terminal fences.\n- **Does not publish an Artifact when that surface is absent or the resolved medium does not publish**. It steps down the fallback chain.\n- **Does not ship or install a canvas server**. It uses one the person connected, under Step 3's canvas rule.\n","# Visualize\n\n## Purpose\n\nOn demand, at any point in a conversation, decide **what** is most worth showing\nvisually and **how** to show it, then render it. This skill is a **form + medium\nrouter**: it makes two decisions, the form and the medium, and produces the\noutput.\n\n## When this fires, and when it does not\n\n- **Fires** when the user asks to see something visually: \"visualize this\",\n  \"diagram this\", \"chart this\", \"render this as …\", \"show me …\", or a bare\n  `\u002Fvisualization:visualize`.\n- **Not chart craft.** Making a specific chart read well, including palette, marks,\n  axes, legend, and dark-mode contrast, is a chart-craft\u002Fdataviz capability's job. This\n  skill decides *that a chart is the right form* and routes the craft out.\n- **Not comprehension digest.** Restating a wall of dense text in plainer words,\n  or restructuring it for understanding, is a different concern. This skill is\n  form-driven (render the content as a visual), not comprehension-driven.\n\n## What you produce\n\nTwo decisions, then the rendered output:\n\n1. **Form**. The kind of visual the content wants (Step 2).\n2. **Medium**. Where it is delivered (Step 3).\n\n## Step 1: Infer the target\n\nRead where the conversation stands and identify the single thing most worth\nshowing: a process just described, a set of options compared, a trend in some\nnumbers, a structure being designed. Usually one target dominates. If two or more\nare equally plausible and the user named no form, that is genuine ambiguity.\nCarry it to Step 4. Otherwise proceed with the dominant target. Read the chat\nhistory first: the thing just discussed, pasted, or changed is usually the\ntarget, and a shape already shown earlier in the conversation is usually what a\nfollow-up question is about.\n\n## Step 2: Pick the form\n\nMatch the *shape* of the content to a form. The full catalog lives in\n[`context\u002Fdecision-matrix.md`](context\u002Fdecision-matrix.md): every mermaid\ndiagram family and when each fits, the zero-dependency chart primitives, and the\nrendering-surface facts these rest on. The summary:\n\n| Content shape | Form |\n|---|---|\n| Flow, process, hierarchy, sequence, state, relationships, timeline | a **mermaid diagram** (pick the family per the catalog) |\n| Attributes or options compared across items | a **markdown table** |\n| Quantities: trend, distribution, proportion, ranking | a **chart**. Route the craft to a chart-craft\u002Fdataviz capability |\n| Small structural sketch, box layout, a directory tree as structure | **ASCII \u002F Unicode art** |\n| Logic described in prose, or an algorithm before it is written | **pseudocode** (a code-shape sketch) |\n| A call path through named functions: orchestration, control flow, a backend-shaped problem | a **call tree** (a code-shape sketch) |\n| A UI's component tree, with the state hooks and module boundaries that matter | a **component tree** with file paths (a code-shape sketch) |\n| Where things live, or the scope of a refactor | a **shallow file tree**, one line of responsibility per entry (a code-shape sketch) |\n| The shape of code before any of it exists | **types and signatures** (a code-shape sketch) |\n| What changes, when the surrounding shape is already in the conversation | a **diff-shaped delta** over any of the shapes above (a code-shape sketch) |\n| Mostly new code, or a copyable target shape, when no sketch is smaller than the code | **the whole block**, the fallback among the code-shape sketches |\n| A composite, interactive, or large multi-part view; an infographic | a **rich rendered page** |\n| A slide deck | hand off to `\u002Fvisualization:present`, which builds it from the account's Slides Artifact type |\n| A visual layout the user would rather tweak by hand: a UI mockup, screen flow, poster, banner, one-pager | a **rich rendered page**, with the **design canvas** (`\u002Fdesign`, the bundled `design` skill, which the person runs) offered alongside it |\n\n**Code-shape sketches** are fenced text: they render in any GFM surface and need\nno page. Tie-break against the mermaid row: when the content is code (named\nfunctions, files, components, types), prefer a code-shape row; when it is a\nprocess, sequence, or state in the domain, prefer a mermaid family. Pseudocode\nnever paraphrases pasted code when a structural form answers the question. Pick\nthe smallest view that makes the key point clear, place it beside the short\ntext it supports, keep only the calls, files, props, states, and boundaries the\nquestion needs, and use one form, sometimes several, rarely all. One example per\nform lives in [`context\u002Fcode-shapes.md`](context\u002Fcode-shapes.md); its paths and\nidentifiers are placeholders.\n\nA diagram that will be committed to the repository (a doc, ADR or README) is Mermaid source, over\nany canvas or page, so it diffs and reviews as text.\n\nWhen the form is a chart and a chart-craft\u002Fdataviz capability is installed, invoke\nit for the craft (form heuristic, palette, mark specs); when it is not installed,\nfall back to a simple, honest default (a labeled bar\u002Fline as inline SVG on a\npage, or a Unicode bar\u002Fsparkline in the terminal) and say the craft capability was\nunavailable.\n\nWhen the form hand-authors CSS or SVG styling outside the page chrome (Step 3) and `\u002Fuser-interface:write-css` is installed, use it to write that CSS, since it applies the project's design system and conventions first; without it, write the CSS here. The page chrome stays governed by the bundled chrome reference either way.\n\nWhen the form is a hand-tweakable visual layout, render this skill's rich page\n(or the form Step 3's resolved medium calls for) and offer the person the\ndesign canvas. The canvas is the bundled `design` skill, which is reserved for the\nperson to run: the model never invokes it. It exists only on the published-Artifact\ntier, so the offer is also gated on Step 3's medium selection: when the resolved\nmedium keeps delivery on the machine (its `publishes` is false), do not offer it.\nWhere the medium permits publishing, offer it as an explicit alternative, never a\nsilent default: the canvas is a published, persistent Artifact the person edits\nand shares (how, per the pointer in\n[the catalog's design canvas section](context\u002Fdecision-matrix.md#design-canvas-bundled-design-skill-presence-gated-preview)), where\nthis skill's page paths are throwaway or plain-static. The Boundary section below carries the sentence to offer and its gate\nbasis; the canvas surface facts and their verified-on\u002Frecheck record live in the\ncatalog spoke.\n\n## Step 3: Pick the medium\n\nThe media are the medium registry's fallback chain (`lib\u002Fview-registry.mjs`), richest\nfirst; the resolver steps a medium down that chain until this session can reach it. Selection\nlayers, first hit wins:\n\n1. **Explicit argument**. A medium named as the argument forces it. With no argument, the layers\n   below decide. The argument picks only the medium; name a form in the request itself.\n   `--unattended`, anywhere in the arguments, is neither a medium nor part of the target: it is the\n   caller declaring that nobody is present. Take it out first, then read the rest.\n2. **Resolved preference**. Run the shared medium resolver, adding `--argument \u003Cmedium>`,\n   `\u003Cmedium>` being the argument's word, when there is one. `\u003Coption>` is this plugin's `medium`\n   option, `${user_config.medium}`; pass `\"\"` when that reads empty or as an unsubstituted\n   placeholder. Read each option value from this text; never put a `${user_config.*}` string in a\n   shell command.\n\n   ```bash\n   node \"${CLAUDE_PLUGIN_ROOT}\u002Flib\u002Fview-settings.mjs\" resolve --lane visualization:visualize --option \"\u003Coption>\" [--argument \u003Cmedium>]\n   ```\n\n   It prints one JSON line, then the report line naming the medium and what decided it, then any\n   notice; print those lines as they stand. It weighs the argument, this plugin's `medium` option\n   and the repository's rendered-views convention files, and never publishes on a team file's\n   say-so; do not read or weigh those files yourself. Exit 2 means the argument named no medium:\n   say so in one line and run it again without `--argument`. With a `medium` set, deliver by the\n   JSON's `page` and `publishes`: `page` false renders in the terminal; `publishes` true publishes\n   the page, under the surface gate below; otherwise the page is a local HTML file. A `medium` of\n   `null` means no setting decided, so layer 3 resolves. When `node` is missing, say so in one line\n   and let layer 3 decide.\n3. **Auto**. Decide by the form and its weight: no page for small, static,\n   text-representable output (tables, ASCII, short code, a `mermaid` source fence);\n   a rich page for a composite, interactive, large, or truly graphical result\n   (rendered diagrams, real charts, dashboards).\n\nWhichever layer decides, name it in the output: the resolver's report line, or \"shipped\ndefault\" for auto.\n\n**Surface gate: the rich page is a capability that can be absent.** A published\nArtifact is gated;\n[the catalog's availability entry](context\u002Fdecision-matrix.md#availability-gating-why-the-surface-is-often-absent)\npoints at the live conditions. So when a page is warranted:\npublish an Artifact only if that surface is available; otherwise write a\nself-contained local HTML file and open it; if neither page surface is available,\ndegrade **visibly** to the best terminal form with a one-line notice. Never assume\nthe Artifact surface exists. A medium that does not publish keeps the page on the\nmachine; a publishing one prefers publishing but degrades the same way.\n\n**Canvas server.** A canvas server is an MCP server whose tools draw a diagram in an interactive\nview, such as an Excalidraw or tldraw server; detect one by the session's MCP tool names. In the\nClaude Code terminal, never draw there: use the forms above, a Mermaid or ASCII fence inline or a\nlocal page. On a surface that renders MCP Apps, with a canvas server connected, you may draw there\ninstead of a page, except for a diagram that will be committed (Step 2). A canvas stands in only\nfor a page, so a resolved medium with no page (`page` false) draws none, and one that keeps delivery\non the machine (`publishes` false) uses a local server only, as under `deny` below. The surface facts behind\nthis rule, and the optional servers a person can install, are in\n[the catalog's canvas section](context\u002Fdecision-matrix.md#mcp-app-canvas-connected-canvas-server).\n\nBefore drawing on a canvas, resolve `hosted_canvas` (`allow` or `deny`) from three layers: the\noption `${user_config.hosted_canvas}` (empty, or still an unsubstituted placeholder, is unset);\nthe `hosted_canvas` key of the repository's `docs\u002Fconventions\u002Fvisualization.yaml`; and the same key\nof the personal override `docs\u002Fconventions\u002Fvisualization.local.yaml`. Read the two files only when\nthe repository root (`CLAUDE_PROJECT_DIR`, else `git rev-parse --show-toplevel`) is inside a git\nworking tree and is neither `$HOME` nor an ancestor of it; a missing file or key leaves that layer\nunset. Read the team file twice, from the working tree and from the default branch's committed copy,\nso a branch cannot drop the team's `deny`. For the second read, take the branch name from\n`git -C \u003Croot> ls-remote --symref origin HEAD`, fetch it with\n`git -C \u003Croot> fetch --quiet origin +refs\u002Fheads\u002F\u003Cbranch>:refs\u002Fremotes\u002Forigin\u002F\u003Cbranch>` (a failed\nfetch falls back to the last fetched copy), resolve\n`git -C \u003Croot> rev-parse --verify --quiet refs\u002Fremotes\u002Forigin\u002F\u003Cbranch>^{commit}`, then\n`git -C \u003Croot> show \u003Csha>:docs\u002Fconventions\u002Fvisualization.yaml`. A file absent at that commit leaves\nthe layer unset. When the read cannot run (no origin answers, it names no default branch, or the\nref never resolves), say so in one line naming the step that failed and count the team layer as\n`deny` for this run. A value other than `allow` or `deny` is named with its option or file, the key and\nthe value, and that layer is dropped. `deny` from any layer wins, so a tracked file can never undo\none person's `deny`; otherwise the value is `allow`, the default. Print one line with the value and the layer\nthat set it, for example `hosted_canvas: deny (docs\u002Fconventions\u002Fvisualization.yaml)`,\n`hosted_canvas: deny (default-branch read failed: origin names no default branch)` or\n`hosted_canvas: allow (plugin default)`.\n\nWith `deny`, send no diagram content to a hosted canvas server, one reached over the network; a\nlocal server, one that draws on this machine without sending the content on, stays allowed. Neither\ntool names nor an MCP configuration prove that (a process started locally can forward to a remote\nservice), so count a server as local only when the person says in this session that it is;\notherwise treat it as hosted and render locally.\n\n**Diagram target.** When the form is a diagram, resolve `diagram_target` (`auto`, `terminal`,\n`local-page`, `excalidraw` or `tldraw`) from the option `${user_config.diagram_target}` (empty, or an\nunsubstituted placeholder, is unset), then the `diagram_target` key of\n`docs\u002Fconventions\u002Fvisualization.yaml`, then the same key of `visualization.local.yaml`, each later\nlayer winning, else `auto`. Read the two files from the working tree only, under the same root rule\nas `hosted_canvas`; a value outside the five is named with its option or file, key and value, and\nthat layer is dropped. Print one line with the value and its layer, such as\n`diagram_target: excalidraw (docs\u002Fconventions\u002Fvisualization.local.yaml)`. `auto` is the behavior\nabove. Run layer 2 first: a medium it resolves (the person's own setting) wins over any other value,\nwhich then decides where the diagram goes only when layer 2 resolves none, in place of layer 3. A\nlayer 2 that cannot run resolves none. When\na resolved medium overrides it, say so in one line, such as\n`diagram_target: local-page overridden by medium terminal`. An explicit\nmedium argument still wins, and the committed-diagram rule (Step 2), the pull-request diff exception below\nand the mermaid gate still apply. `terminal` draws an inline fence, `local-page` a local HTML file,\nand `excalidraw` or `tldraw` that canvas server, only where the canvas rule above would draw on it.\nWhen the chosen target is unavailable (no such server connected, a surface that does not render\nit, or `hosted_canvas` forbids it), use `auto` and print this exact one-line form, never only a\nprose explanation:\n`diagram_target: excalidraw unavailable (no excalidraw server connected); using auto`.\n\n**Code-shape sketches take these same layers** (under auto they build no page, per\nlayer 3; an argument or resolved medium is honored for them as for any form), with\none exception: a pull-request diff, fetched content, or another repository's files\nare never rendered to HTML until this lane is wired through the rendered-views escape helper. That exception overrides layer 1 and the\npreference; when a page was asked for, say in one line why it was not produced.\n\n**Page chrome.** When authoring a rich page, take the palette, type stacks,\nradii, and accessibility floor (link\u002Ffocus contrast tokens, color-scheme and\nreduced-motion behavior) from this plugin's bundled chrome reference,\n`${CLAUDE_PLUGIN_ROOT}\u002Freference\u002Fhtml-chrome.html`, rather than inventing a\nlook per page. The chrome does not settle layout habits, so name the ones to leave\nout: italic accent words in headings, numbered \"01 \u002F 02 \u002F 03\" section labels,\npill-shaped buttons or badges, and a hero banner above the content, plus any style\nthe user names. When the user dislikes a choice in the rendered page, add it to\nthat list for the rest of the session and render again. A general \"avoid a generic\nlook\" only swaps one default for another.\n\n**Local-file placement.** Write the local HTML file via the platform's temp\nprimitive, never into the consumer's repository tree. On Unix\u002FLinux\u002FGit Bash,\ncreate a private run directory and echo it in the same call,\n`d=$(mktemp -d \"${TMPDIR:-\u002Ftmp}\u002Fvisualize-XXXXXX\"); echo \"$d\"`, then write the\npage to `\u003Cechoed dir>\u002Fvisualize.html`. Echo it in that call: the directory name\nis random, so an unechoed path is unrecoverable in the call that writes the file\n(what carries between Bash calls:\n[Tools reference, \"What persists between commands\"](https:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Ftools-reference#what-persists-between-commands)).\nCarry the temp root in the positional template, the one form GNU and BSD `mktemp` accept identically, since `-p`\u002F`--tmpdir`\u002F`-t` differ between the dialects and a bare relative template silently creates the file in the **current directory**, the consumer's repository. Keep the `XXXXXX` placeholders **trailing**. BSD `mktemp` (macOS) substitutes only trailing Xs, so an extension after them is not portable.\nThat is why the page takes a fixed name inside the generated directory rather\nthan a `visualize-XXXXXX.html` template, which macOS cannot create at all. On Windows,\na user-scoped temp under\n`%LOCALAPPDATA%\\Temp`. One file per run. The path is handed back to the user, so\ndo not delete it. It must still be readable when they open it. Open it for the\nuser (`start \u003Cpath>` on Windows, `open \u003Cpath>` on macOS, `xdg-open \u003Cpath>` on\nLinux) and report the absolute path.\n\nA **mermaid diagram** is the sharp case. A local HTML file renders it only if the\npage **embeds** a mermaid renderer inline. What a published Artifact page may load\nis in [Artifacts: Page constraints](https:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fartifacts#page-constraints).\nKeep the file self-contained; never load a renderer from the network, which breaks offline use and, for output kept local or otherwise sensitive,\nwould expose the page to a third party. A plain file with a bare `mermaid` block\ndoes not render. So if no mermaid-capable surface is reachable and no trusted\nrenderer can be embedded, deliver the mermaid **source** fence in the terminal and\nsay it is unrendered. Never open a page that shows source instead of the promised\npicture.\n\nParse every mermaid block before it is emitted, whatever the medium. Write each diagram to a\n`.mmd` file (or use the markdown file holding the ` ```mermaid ` fence) and run:\n\n```bash\nnode \"${CLAUDE_PLUGIN_ROOT}\u002Flib\u002Fmermaid-gate.mjs\" [--svg-dir \"\u003Cdir>\"] \u003Cfile>...\n```\n\nStdout is one JSON report; each block has `file`, `line`, `status` (`ok` or `error`) and `render`\n(`svg` or `source`). Exit 1 means a block failed to parse. For a local file, pass `--svg-dir` and\nembed the SVG a block names in place of the fence. For an Artifact, omit `--svg-dir` and run the parse\nonly (why: [the catalog's Published Artifact entry](context\u002Fdecision-matrix.md#published-artifact)).\n\n- `status: error`: do not write the page. Report the block's `file`, `line` and `error`, fix the\n  diagram, run the gate again.\n- `render: source`: keep the mermaid source and print the block's `reason` beside it. Never call\n  such a page rendered.\n- Without `mmdc` the parse is a structural check (unknown diagram type, unterminated quote,\n  unbalanced flowchart brackets), so say an `ok` does not prove every syntax error is absent.\n- The gate uses `mmdc` only at the minimum version in `prerequisites.json` or newer, found on PATH\n  or at `node_modules\u002F.bin\u002Fmmdc` under the working directory. An older one is treated as absent.\n  A failure that is not a parse error (no Chrome) falls back to source with the failure as the\n  reason. Pointer: \u003Chttps:\u002F\u002Fgithub.com\u002Fmermaid-js\u002Fmermaid-cli\u002Freleases>. Recheck when the\n  Artifact runtime's Mermaid version (see `context\u002Fdecision-matrix.md`) moves to a different major.\n- Check the prerequisites with\n  `node \"${CLAUDE_PLUGIN_ROOT}\u002Flib\u002Fprerequisites.mjs\" check \"${CLAUDE_PLUGIN_ROOT}\" --data-dir \"${CLAUDE_PLUGIN_DATA}\"`.\n\nHonor a preference without overproducing: a publishing medium still renders a trivial\nthree-row table inline, and a medium with no page degrades a rich form to its best\nterminal approximation with a visible note rather than dropping detail silently.\n\n## Step 4: Ask only on genuine ambiguity\n\nTwo things can be ambiguous independently: **what** to show (the target) and\n**which form**. Ask the user **one** question, with a RECOMMENDED default listed\nfirst, when either is genuinely ambiguous:\n\n- **Target ambiguity**. Several equally plausible things to show. Ask which, *even\n  if a form was named*: naming \"diagram this\" fixes the *how*, not the *what*.\n- **Form ambiguity**. The target is clear, no form was named, and two forms fit it\n  about equally. Ask which form. The common case is pasted code with little\n  conversational context: when two or more code-shape forms fit it about equally,\n  ask one question listing those two to four forms, the recommended one first,\n  and render nothing until the answer. When one form clearly dominates (a\n  comparison is a table, a series is a chart, a where-does-this-live question is\n  a file tree), render it without asking.\n\nThe pasted-code case honors `${user_config.thin_context_prompt}`. Read an empty\nvalue, or one that still reads as an unsubstituted `${user_config…}` placeholder,\nas unset, and apply `auto` (how a saved option reaches skill content:\n[Reference a saved value](https:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fplugins\u002Fmanifest-reference#reference-a-saved-value)).\n`auto` is the behavior above; `always` offers the\nranked menu on any bare code paste; `never` renders the recommended form without\nasking. Any other value is reported and treated as `auto`.\n\nWhen neither is ambiguous, meaning a dominant target and a clear best form, proceed with\nthe matrix's pick: good defaults, no nagging. A specified form or medium is honored\nand simply removes that axis from any question, with one carve-out: Step 3's\nterminal-only exception for a pull-request diff, fetched content, or another\nrepository's files overrides a requested medium that shows a page. Never\ninterrogate form by form; one question, then render.\n\n## Step 5: Render\n\n- **Terminal**: use markdown tables, fenced code, blockquotes, and ASCII\u002FUnicode.\n  Emit a ` ```mermaid ` block as portable source the user can render elsewhere,\n  and prefer a page when the *rendered* diagram is the point.\n- **A rich page** follows the Artifact tool's own contract and, when an\n  artifact-design capability is installed, its guidance. The page-contract facts\n  live once in [`context\u002Fdecision-matrix.md`](context\u002Fdecision-matrix.md). When the subject is a\n  product UI, match that product's own colors, type, spacing, and components rather than the\n  plugin chrome; use real labels and data; support desktop and mobile.\n- Report what you produced and, for a page, its path or link.\n\n## Next\n\n\u002Fvisualization:present\n\nIt turns the material into a slide deck when the request is for slides rather than one visual.\n\n## Gotchas\n\n- **Terminal mermaid is source, not a picture.** If the user wants to *see* the\n  rendered diagram and no page surface is available, say so. Do not imply the\n  fence renders inline.\n- **Do not overproduce a page.** A three-row comparison is a table; forcing it into\n  an Artifact is worse, not richer. Match richness to the content.\n- **The Artifact surface is often unavailable.** Gate on it; never let a missing\n  surface become a silent failure. Degrade visibly down the fallback chain.\n- **Canvas tools in the tool list are not a reason to use them.** In the Claude Code terminal,\n  render locally even when an Excalidraw or tldraw server is connected (Step 3).\n- **Craft is not this skill's job.** If you find yourself writing palette or axis\n  guidance, stop and route to the chart-craft capability instead.\n- **Prefer a mermaid family known to render** on an Artifact page, or verify a\n  newer one before relying on it. The catalog's\n  [Mermaid diagram families](context\u002Fdecision-matrix.md#mermaid-diagram-families)\n  records which families were checked, and Step 3's Page constraints pointer\n  says what a page may load.\n\n## Boundary\n\nAn **interactive parameter explorer whose output returns as a prompt** (controls\nbeside a live preview with a copy-out prompt, the \"playground\" shape) is not a form\nthis skill renders. When the first-party `playground` plugin is installed, route the\nrequest to its `playground` skill, or to the `playgrounds` wrapper's `\u002Fplaygrounds:use`\nwhen that wrapper is enabled, which also owns the install uplift and cloud delivery\nguidance. When neither is enabled, say the capability exists as an installable\nplugin and continue with this skill's closest static form (a rich page without the\nround-trip controls), never a hand-built imitation of the explorer.\n\nThe **design canvas** is the bundled `design` skill, a native surface this skill overlaps on\nhand-tweakable layouts, so a request for a mockup or a one-pager can mean either:\n\n- **`design` (bundled skill)**: drafts artboards on one canvas the person keeps and edits\n  (what it publishes and where it is edited:\n  [Artifacts: Draft a design canvas](https:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fartifacts#draft-a-design-canvas)).\n  It is reserved for the person to run; the model does not invoke it.\n- **This skill (marketplace plugin)**: picks the form and medium and renders a throwaway or\n  plain-static page.\n\n**Routing:** when the form is a hand-tweakable layout and Step 3's medium permits publishing,\nrender this skill's page and tell the person: If \u002Fdesign is available in your session (gate\nbasis: the verification record below), you can run it instead of or alongside this skill for a\nhand-editable design canvas. Treat a `design` entry in your skill listing as a local skill\nshadowing the bundled command (how same-name skills resolve:\n[Skills, \"Resolve skills that share a name\"](https:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fskills#resolve-skills-that-share-a-name)):\ndo not make the offer, and tell the person a local\n`design` skill shadows the bundled canvas command. A local `design` skill that disables model\ninvocation shadows it too and is hidden from you, so every offer adds that `\u002Fdesign`'s description\nshould read \"Make a new Design artifact from a brief\"; anything else is a local skill, not the\ncanvas, and not to be run for it. When the caller passes `--unattended`,\nrecord the `\u002Fdesign` suggestion in the run's output and do not ask the person; without that\nflag, tell the person as above.\n\n**Mutation gate:** the canvas publishes a persistent Artifact under the person's account, so it is\nnever a silent default and nothing tracked in a repository references it. This skill never runs it.\n\n**Verification record, `design`.** Our binary extraction of Claude Code 2.1.285 reads the\nbundled `design` registration as model-invocation-disabled, user-invocable and gated, which is\nwhy this skill only ever offers it. Settings can remove it; which settings, and how, are read from\nthe pointers in the catalog spoke's design canvas section\n([context\u002Fdecision-matrix.md](context\u002Fdecision-matrix.md#design-canvas-bundled-design-skill-presence-gated-preview)),\nwhich owns the remaining surface facts.\n\n- **Pointer**: probe: the `design` records in `docs\u002Fnative-surfaces\u002Frecords.json`.\n- **As of**: 2026-09-29\n- **Recheck trigger**: a release makes the `design` registration model-invocable, changes its\n  description (the identity string the offer quotes), changes its gating, or splits or merges its\n  registrations.\n\nA request to draw a layout or a deck can name a Claude Design project the person already has, and\nthen it means that project, not a new render:\n\n- **`ClaudeDesign` (built-in tool)**: the editor for a claude.ai\u002Fdesign project the person\n  already has; the model calls it by name. A new Design artifact comes from the bundled `design`\n  skill above, which the person runs\n  ([Artifacts: Draft a design canvas](https:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fartifacts#draft-a-design-canvas)).\n- **This skill (marketplace plugin)**: picks the form and medium and renders its own output.\n\n**Routing:** when the person names or links an existing claude.ai\u002Fdesign project, or asks for the\nwork to go into one, and the `ClaudeDesign` tool resolves in this session, use that tool for the\nproject's files. Otherwise this skill renders its own output as today. The tool is the project's\neditor; this skill is the form and medium router.\n\n**Mutation gate:** a `ClaudeDesign` write changes a project the person's team shares. Write only\nto the project the person named, and only after they asked for the change. When the tool asks for\nan approval or refuses a write, report it and never retry around it. The approval and refusal\ncases are probed behavior recorded in\n[context\u002Fclaude-design-tool.md](context\u002Fclaude-design-tool.md#the-built-in-claudedesign-tool-verification-record).\n\n## What this skill does NOT do\n\n- **Does not teach chart craft**. Palette, axes, marks route to a chart-craft\u002Fdataviz capability.\n- **Does not teach artifact-design fundamentals**. Those route to an artifact-design capability and the Artifact tool's contract.\n- **Does not restate rendering-surface facts**. They live once in the catalog spoke.\n- **Does not digest or re-explain dense text**. That is a comprehension concern, not a form concern.\n- **Does not explain a topic from scratch**. A one-idea-per-diagram picture explainer of a concept or codebase topic, ELI5 included, is `education:illustrate` (if enabled). This skill picks a form for what is already in the conversation.\n- **Does not render a pull-request diff, fetched content, or another repository's files to HTML** until this lane is wired through the rendered-views escape helper. Those stay terminal fences.\n- **Does not publish an Artifact when that surface is absent or the resolved medium does not publish**. It steps down the fallback chain.\n- **Does not ship or install a canvas server**. It uses one the person connected, under Step 3's canvas rule.\n",{"metadata":24,"description":7,"argument-hint":27,"user-invocable":28,"disable-model-invocation":20},{"summary":25,"workflow-stage":26},"Pick the best visual form for what is in the conversation and render it","anytime","[\u003Cmedium>] [--unattended]",true,"main","d0e68c3f36b92a1d6381f0ba0060d7a0b8b886c5","plugins\u002Fvisualization\u002Fskills\u002Fvisualize",7,"https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins","https:\u002F\u002Fgithub.com\u002Fmelodic-software","https:\u002F\u002Fmelodicsoftware.com","Independent software studio building developer tools, automation, and application services, with roots in music.","2026-11-15 05:15:06",{"source":8,"skillName":5,"commands":39,"prompt":49,"zipAvailable":28},[40,43,46],{"tool":41,"command":42},"npx","npx skills add melodic-software\u002Fclaude-code-plugins --skill visualize",{"tool":44,"command":45},"bunx","bunx skills add melodic-software\u002Fclaude-code-plugins --skill visualize",{"tool":47,"command":48},"pnpm","pnpm dlx skills add melodic-software\u002Fclaude-code-plugins --skill visualize","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fvisualization\u002Fskills\u002Fvisualize\u002FSKILL.md",[51,57,61],{"path":52,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":55,"sourceHtmlUrl":56},"context\u002Fclaude-design-tool.md","REFERENCE","参考文档",2505,"https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fvisualization\u002Fskills\u002Fvisualize\u002Fcontext\u002Fclaude-design-tool.md",{"path":58,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":59,"sourceHtmlUrl":60},"context\u002Fcode-shapes.md",3391,"https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fvisualization\u002Fskills\u002Fvisualize\u002Fcontext\u002Fcode-shapes.md",{"path":62,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":63,"sourceHtmlUrl":64},"context\u002Fdecision-matrix.md",17856,"https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fvisualization\u002Fskills\u002Fvisualize\u002Fcontext\u002Fdecision-matrix.md",[66,73,80,87,92,99],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"01M7DYYDG31B9YX7N9MB9QW2GW","track","Backlog reads through the bound tracker: search open and closed items, view one item with its comments and state history. Use when another skill searches or reads tracker items.","https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fsession-flow\u002Fevals\u002Frecall-still-reports-reopened-bug\u002Fwork-items-stub\u002Fskills\u002Ftrack\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M7DYXVBAVG3NV30PA7GKW9Q6","reviewer-media","Reviewer media for one pull request: decides whether it needs a narrated walkthrough, builds the storyboard from \u002Freview:explain-change's digest, has \u002Fexplainer-video:produce render it and hands the manifest to \u002Fsource-control:pull-request media. Use when asked for 'reviewer media', 'a walkthrough video for this PR', 'a produced video of this change', or when pull-request ready or monitor hands a PR over.","https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Freview\u002Fskills\u002Freviewer-media\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M7DYRZ5YD44AMYH26YR25GZ8","route","Model and effort per agent role (orchestrator, worker, verifier, retrieval) for a multi-agent run, resolved through the bundled defaults and the user, team and personal override config layers into fenced JSON with single-agent and fan-out variants and the layer behind each value. Use when asked 'which model for the subagents', 'route the roles' or 'model routing', or before a skill passes a role's model on a spawn.","https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fdiscovery\u002Fevals\u002Fex-model-pin-without-override\u002Fmulti-agent-stub\u002Fskills\u002Froute\u002FSKILL.md",[],[],{"skillNo":88,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":19},"01M7DYRTVT4FWTGDJY0HCCFJMZ","https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fdiscovery\u002Fevals\u002Fex-model-override-from-route\u002Fmulti-agent-stub\u002Fskills\u002Froute\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":19},"01M7DYNZC8PNW3T27V2ADKECKJ","principles","Module-design vocabulary for architecture findings, and the checks built on it. Use when: 'what is a deep module', 'what is a seam', 'deep vs shallow module', 'what is the deletion test', 'leverage and locality', 'module design vocabulary', 'which word do we use for X in architecture findings'. Scanning a codebase for friction is \u002Farchitecture:improve.","https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Farchitecture\u002Fskills\u002Fprinciples\u002FSKILL.md",[],[],{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":19},"01M7DYNMCZNEWBFHV9KTSS6H60","write","Structured five-field bug report (title, steps to reproduce, expected vs actual, justified severity, suggested fix location) from an informal description, read-only. Use when the user names a defect they observed, or asks for one written up ('report a bug', 'file a bug', 'write this up as a bug').","https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Farchitecture\u002Fevals\u002Fdeepening-defect-goes-to-bugs-write\u002Fbugs-stub\u002Fskills\u002Fwrite\u002FSKILL.md",[],[]]