Command Palette

Search for a command to run...

Назад к скиллам
скилл № 95555

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от 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:

  • source is optional and must be workspace or thread-storage.
  • file is 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 .markdown files are accepted.
  • height is 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-storage for 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-vis fenced 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
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

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), без исполняемых скриптов.

Похожие скиллы

Сравнить inline-vis с