Inline Vis
Embed HTML visualizations directly in chat messages without opening panels.
Installation
- Make sure Claude is on your device and in your terminal.
Skills load from
~/.claude/skills/when Claude Code starts up — so you need it on your machine first. If you don't have it yet, install it once with the command below, then runclaudein any terminal to verify.One-time setupnpm i -g @anthropic-ai/claude-codeAlready have it? Skip ahead.
- Paste into Claude Code or into your terminal.
This copies the whole skill folder into
~/.claude/skills/inline-vis-get-bb/— the SKILL.md plus any scripts, reference docs, or templates the skill ships with. Safe default: works for every skill.Faster alternative (instruction-only skills)
Skips the clone and grabs only the SKILL.md file. Don't use this if the skill ships Python scripts, reference markdowns, or asset templates — they won't be downloaded and the skill will fail when it tries to load them.
Quick install (SKILL.md only)Sign up to copy - Restart Claude Code.
Quit and reopen Claude Code (or any other agent that loads from
~/.claude/skills/). New skills are picked up on startup. - Just ask Claude.
Skills auto-activate when your request matches the skill's description — no slash command needed. Trigger phrases live in the skill's own frontmatter; you can read them in the “What this skill does” section above.
Prefer to read the source first? Open on GitHub.
When Claude uses it
Emit a sandboxed inline HTML visualization in an assistant message when a workspace .html file should render in-thread. Use after writing or updating a demo/chart/report HTML file the user should see without opening a panel.
What this skill does
Inline HTML visualizations
When the user should see a small HTML demo, chart, or report inline in the
assistant message, write (or update) a workspace-relative .html file, then
emit this message directive as its own block (not inside a fenced code
block):
::inline-vis{file="demo.html"}
Rules
fileis workspace-relative (e.g.demo.html,charts/out.html). Never use absolute paths.heightis optional and sets the iframe viewport height in pixels. It must be a whole number from 120 through 1200; omit it for the 224px default.- Only
.html/.htmfiles are accepted. - Inline and external CSS/JavaScript are supported. Remote images, fonts, media, fetches, and WebSockets are also allowed subject to normal browser CORS, mixed-content, and remote-server policies. Scripts execute in an opaque-origin iframe and cannot access the bb page, cookies, or storage.
- Keep files small (under the sidebar preview's 5 MiB document limit).
- Emit the directive only after the file exists on disk in the current thread workspace.
- Do not put the directive inside backticks or a markdown code fence, or it stays literal text.
- Incomplete streaming syntax stays literal until the closing
}arrives — emit a complete directive in one piece when possible.
Example turn
- Write
demo.htmlwith a simple visualization (inline styles, no remote JS). - Reply with a short caption and the directive:
Here is the chart:
::inline-vis{file="demo.html"}
For a taller visualization, emit for example:
::inline-vis{file="demo.html" height="640"}
The bb app replaces the directive with a sandboxed preview. If the plugin is disabled or the path is invalid, users see the original directive source or an inline error from the plugin.
Related skills
Skill Builder & Optimizer
anthropics
Create, edit, and optimize Claude skills with performance testing and benchmarking.
Org Change Management
alirezarezvani
Guide teams through organizational changes using the ADKAR model and communication strategies.
Audio/Video Transcription
daymade
Transcribe audio and video files to text with fast local or remote processing.
Claude Export Conversation Fixer
daymade
Repair broken line wrapping in Claude Code exported conversation files.