Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

inline-visualization

БесплатноБез исполняемых скриптовНе проверен

Create Studio inline diagrams, charts, maps and adjustable explanations with show_widget, in any mode where it is attached, when a visual helps the user's…

KunlunMeta-devот KunlunMeta-dev★ 32 звезды на GitHub

Об этом скилле

Inline visualization in Studio

Use this workflow only when show_widget is attached to the current request. It is a Studio presentation capability, not a CLI/TUI file preview. Its presence does not install office dependencies, authorize a service, or grant desktop/network access.

Managed artifacts may be created when the current client only supports text. Keep the accessible explanation and conclusions in ordinary reply text; do not stop the task or recreate an artifact solely because its view is unavailable. Isolated scripts and MCP App interactions still require the current host's actual authorization.

Use a visual when it makes relationships, comparisons, trends or adjustable scenarios easier to understand. Keep simple answers simple. Respect the user's requested format: a downloadable report, image, presentation or website still needs the corresponding real artifact workflow, with whatever tools and dependencies are actually available.

Choose a supported form

  • Diagram or illustration: SVG with a meaningful title/desc, readable labels and sufficient contrast. Use shapes or line patterns as well as color. CSS animation must respect reduced motion.
  • Chart: a managed Chart.js 4.5.1 JSON declaration, with libraries: ["chart_js"]. Exact core types are bar, line, pie, doughnut, scatter, radar, bubble, polarArea. Label axes and units, explain missing values, and distinguish samples from measured data. Mixed and stacked charts are configurations of these types, not extra type names.
  • Map: a JSON map declaration with libraries: ["d3", "topojson"]. The host supplies real Natural Earth topology. Country IDs are ISO numeric codes present in that topology: prefer three-digit string keys, including Brazil "076" and Australia "036"; compact "76"/"36" are padded by the host. Values must be finite JSON numbers, with one key per country; duplicate padded/compact aliases and alpha codes are rejected. Follow /values/<key> errors and preserve valid country data. Alpha codes ("BR"/"AU"), arbitrary IDs and countries absent from the bundled 110m topology are rejected with the offending /values/<key> pointer; omit missing data instead of removing valid countries. Optional markers contain at most 100 {label, longitude, latitude} objects: a nonempty label of at most 80 characters, finite longitude in [-180, 180] and latitude in [-90, 90]. Use supplied or verified coordinates; do not invent borders or positions. The host provides a value/missing-data legend, keyboard/button zoom and reset. At most two map declarations and four registered recipes fit in one widget.
  • Adjustable explanation: use the registered compound-interest recipe where it fits. It calculates locally and does not send another model request for every slider change.
  • Prototype: inert HTML/CSS for the layout, or supported managed declarations for interaction. Managed mode cannot run arbitrary model JavaScript (new Chart(...), executable <script>), event-handler attributes, frames, forms, external CSS/resources or network fetches; interactive form controls come only from registered recipes. Use data-kcoder-prompt for a visible follow-up action; the host appends it to the user's draft and never sends automatically.

Every managed chart, recipe-config and map declaration is a <script type="application/json"> carrying the exact marker data-kcoder-chart, data-kcoder-config or data-kcoder-map. libraries accepts only chart_js, d3 and topojson (at most three entries): chart_js for charts, both d3 and topojson for maps, and none for plain SVG, static HTML or the compound-interest recipe. No arbitrary plugin, controller, CDN or date-adapter library can be loaded.

For text-heavy diagrams, use HTML cards with wrapping and a layout that stacks columns on narrow screens. Give connector arrows and their labels their own space between cards. Keep SVG labels short and specify their font size and offsets to match the viewBox geometry. Put detailed notes in the reply. Check that labels and card borders stay apart at both wide and narrow conversation widths when render verification is available.

Use the current tool contract for any additional supported recipe. Arbitrary HTML/JS requires an explicitly available isolated host and its permission path; do not silently downgrade an executable design or describe a static mockup as functional. CDN scripts and direct external fetches are not part of the managed host.

Render and reference

Call show_widget with action: "render" (the default), an accurate short title, a plain-text summary, complete widget_code, and the appropriate format (html or svg). Add only the local library IDs needed by the declaration. Pass markup as the widget_code JSON string; do not write an extra project file for an inline view.

widget_code is original markup: serialize it once as a string in the outer argument object. Do not first JSO

Полный SKILL.md на GitHub

Установить inline-visualization в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

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

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

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

Вложенные файлы

LICENSE

FAQ

Что делает скилл inline-visualization?

Create Studio inline diagrams, charts, maps and adjustable explanations with show_widget, in any mode where it is attached, when a visual helps the user's task. 在挂载 show_widget 的 Studio 会话中制作内嵌图示、图表、地图与交互演示。

Как установить скилл inline-visualization?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл inline-visualization запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

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

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