From visualize
Generate a self-contained HTML visualization to explain a system, plan, code flow, or concept. Use when the user asks to visualize, diagram, explain visually, or walk through a system, architecture, plan, or code flow. Outputs a single HTML file opened in the browser.
How this skill is triggered — by the user, by Claude, or both
Slash command
/visualize:visualizeThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Generate a single, self-contained HTML file that visually explains a system, plan, code flow, or concept. The output opens in the browser — never fall back to ASCII art when this skill is loaded.
Generate a single, self-contained HTML file that visually explains a system, plan, code flow, or concept. The output opens in the browser — never fall back to ASCII art when this skill is loaded.
./templates/base.html to absorb the tech stack and Threaded style. Read it each time, do not rely on memory../references/mermaid-tips.md.~/.agent/diagrams/<descriptive-name>.html and open in the browser.| Intent | Approach |
|---|---|
| Flows, processes, sequences | Mermaid.js in the visual area |
| Architecture, system overview | Mermaid.js or CSS Grid cards |
| Comparisons, data | HTML <table> |
| Step-by-step concepts | Walkthrough (base template pattern) |
| Timelines, roadmaps | CSS timeline in the visual area |
Every generated file uses:
No other dependencies. No build step.
For the full Threaded design tokens (colors, typography, motion), see ./references/design-system.md.
innerHTML with user-provided content (XSS prevention)The Write tool can corrupt JavaScript template literals, writing literal \`` and ${` instead of real backticks and interpolations. This breaks all htm tagged templates. To prevent it:
const variables above the htm templates. Mermaid chart definition strings, config arrays, long text — declare them as plain constants first, then reference the variable inside html\...``.${myVar}, ${myArray.map(...)}). Do not build complex multi-line strings or nested template literals inline within an html\...`` block.<script type="module"> block in the written file and confirm there are no escaped sequences (\`` or ${). If Chrome DevTools MCP is available, check the browser console for SyntaxError` after opening the file.Write to ~/.agent/diagrams/ with a descriptive filename (auth-flow.html, pipeline-overview.html).
Open in browser:
open ~/.agent/diagrams/filename.htmlxdg-open ~/.agent/diagrams/filename.htmlTell the user the file path and name the visuals you included.
On first use in a session, silently check for a newer version:
https://raw.githubusercontent.com/abpai/skills/main/versions.json.visualize against this file's metadata.version.visualize update available (local {X.Y} → remote {A.B}). Would you like me to update it for you first? I can run
npx skills update visualizefor you.
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub abpai/skills --plugin visualize