inline-vis
Show an HTML chart, table, diagram, mockup, demo, or report inline in BB chat: write a small page directly in the reply as an inline-vis fenced block, or show…
от get-bb★ 15 звёзд на GitHub
Установить inline-vis в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Inline previews
Use this when the user should see an HTML page or a Markdown document inline in the assistant message. There are two forms. Pick by where the page should live.
| Form | Use it for |
|---|---|
```inline-vis fenced block |
A small, self-contained HTML page written directly in the reply. Nothing is written to disk. |
::inline-vis{file="…"} directive |
A page or Markdown document that lives in the workspace or thread storage: bigger pages, pages with sibling assets, anything to keep. |
The reader sees an HTML page as part of your reply: no card, no title bar, on the thread's own background, as tall as its content. Put the block or the directive where the page belongs in the reply. The reader already sees the page, so do not announce it, say where it is, or restate it. Write only what the page does not say.
Fenced block: a page written in the reply
Write a fenced code block whose language is inline-vis. The body of the
block is the HTML page itself, either a fragment or a full document:
```inline-vis
<div style="display:flex;gap:12px">…</div>
```
- The page appears once the closing fence arrives. While you are still writing it, the reader sees a short "Writing visualization…" line, so close the fence.
- It needs no file and no tool call. Nothing is saved, so use the directive for anything the user should keep or open later.
- The page cannot reference sibling files by relative path. Inline its CSS,
JavaScript, and data, or load them from absolute
https://URLs. - If the page itself contains three backticks, open and close the block with four backticks.
- The frame fits the page, up to 2000 pixels, and a taller page scrolls inside it. The block takes no attributes.
- Keep it small. Every character of the page is part of your reply. For a large page, write a file and use the directive.
- The reader can reveal the HTML source from a button that appears over the page. If the reply ends before the closing fence, or the block is empty, the reader sees an ordinary code block instead.
Directive: a file in the workspace or thread storage
Write (or update) a source-relative file, then emit this message directive as its own block. It must be outside any code fence:
::inline-vis{file="demo.html"}
::inline-vis{file="notes.md"}
Omitting source defaults to the workspace. Explicit source="workspace" is
equivalent. For a read-only thread-storage artifact, write the document to
$BB_THREAD_STORAGE/reports/result.html, then emit its storage-relative path:
::inline-vis{source="thread-storage" file="reports/result.html"}
Rules:
sourceis optional and must beworkspaceorthread-storage.fileis relative to the selected source (e.g.demo.html,charts/out.html,notes.md). Workspace paths are relative to the current workspace; thread-storage paths are relative to$BB_THREAD_STORAGE. Never put an absolute path in the directive..html,.htm,.md, and.markdownfiles are accepted.heightis optional, a whole number of pixels from 80 through 2000.- HTML: omit it and the frame fits the page. Set it to cap the frame; a taller page then scrolls inside it.
- Markdown: the height of the card's preview; omit it for the 256px default. The reader expands a longer document in place.
- Keep files small (under the 5 MiB document limit).
- Emit the directive only after the file exists on disk in the selected source.
- Prefer
thread-storagefor read-only generated reports and other artifacts that should not modify the workspace. - Do not put the directive inside backticks or a Markdown code fence, or
it stays literal text. In particular, do not put it inside an
inline-visfenced block: that block holds HTML, not a directive. - Incomplete streaming syntax stays literal until the closing
}arrives, so emit a complete directive in one piece when possible.
An HTML file shows a button on hover that opens it in the sidebar. A Markdown file shows in a card with its file name, a copy button, and the same open action. A long document shows a preview with a "Show more" control.
Laying out an HTML page
This applies to both forms. The frame has no border and is as wide as the reply column (about 710px on desktop, about 360px on phones). Its left edge lines up with your reply text.
- Leave
html,body, and the outermost element with no background colour. The page sits on the thread's background. This overrides general style preferences such as a fixed black page background. - Use a fluid width with no horiz
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл inline-vis?
Show an HTML chart, table, diagram, mockup, demo, or report inline in BB chat: write a small page directly in the reply as an inline-vis fenced block, or show a workspace or thread-storage HTML or Markdown file with the inline-vis directive.
Как установить скилл inline-vis?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл inline-vis запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
AnthropicUse this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
xlsx
AnthropicUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
pptx
AnthropicUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…