html-diagram — скилл для Claude Code: что делает и как установить
Генерирует автономные интерактивные HTML-диаграммы без сторонних сервисов и сборки. Пригодится, когда нужно визуализировать топологию, состояния, таймлайн или архитектуру проекта.
npx skills add plannotator/effective-html --skill html-diagram -a claude-codeЧто делает html-diagram
Скилл создаёт автономные схемы в одном файле .html со встроенными CSS и JavaScript. В зависимости от задачи он выбирает подходящую форму представления: топологию связей, последовательность вызовов, переходы состояний, дерево владения, матрицу или таймлайн. Для отрисовки используются стандартная разметка, SVG, Canvas или WebGL без внешних библиотек и этапа сборки.
Интерактивность добавляется строго по делу. Это могут быть масштабирование, фильтрация, подсветка путей или анимация, поддерживающая prefers-reduced-motion. Важный нюанс: скилл не активируется автоматически на общие запросы. Его нужно вызывать явно по имени либо через маршрутизацию общего скилла html.
При наличии скилла design-artifact инструмент сверяется с ним, сохраняя единую визуальную стилистику проекта. Готовый вывод возвращает абсолютный путь к файлу и список принятых допущений.
Какие задачи решает
- визуализировать переходы состояний и условия в логике приложения
- построить интерактивную карту топологии сервисов в виде одного HTML-файла
- показать последовательность обмена сообщениями во времени
- отобразить структуру владения и иерархию компонентов без сторонних сборщиков
Примеры запросов агенту
- С помощью html-diagram визуализируй схему переходов состояний корзины заказов в автономный HTML.
- Используй html-diagram, чтобы построить интерактивную карту топологии микросервисов в SVG.
- Вызови html-diagram для построения последовательности сообщений аутентификации в отдельном файле.
Как установить html-diagram
1Через Skills CLI (Vercel)
npx skills add plannotator/effective-html --skill html-diagram -a claude-code2Вручную: положить файлы
~/.claude/skills/html-diagram/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/html-diagram/
1Через Skills CLI (Vercel)
npx skills add plannotator/effective-html --skill html-diagram -a codex2Вручную: положить файлы
.agents/skills/html-diagram/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add plannotator/effective-html --skill html-diagram -a cursor2Вручную: положить файлы
.cursor/skills/html-diagram/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install plannotator/effective-html html-diagram2Вручную: положить файлы
.github/skills/html-diagram/SKILL.md1Через Skills CLI (Vercel)
npx skills add plannotator/effective-html --skill html-diagram -a gemini-cli2Командой платформы
gemini skills install https://github.com/plannotator/effective-html --path skills/html-diagramВручную: положить файлы
.devin/skills/html-diagram/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add plannotator/effective-html --skill html-diagram -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
Из того же набора3
Весь набор →Похожие
Вопросы о html-diagram
Как установить html-diagram в Claude Code?
Выполните команду npx skills add plannotator/effective-html --skill html-diagram -a claude-code в терминале. Также можно скопировать файл в ~/.claude/skills/html-diagram/SKILL.md.
Что делает скилл html-diagram?
Он проектирует и генерирует автономные интерактивные диаграммы в формате HTML без сторонних зависимостей и сборки. Скилл сам подбирает форму визуализации: граф топологии, диаграмму последовательностей, дерево иерархии или матрицу.
Требуются ли внешние библиотеки или сборка проекта?
Нет, скилл формирует один полностью автономный файл со встроенными стилями и JavaScript. Диаграмма работает в браузере без внешних CDN, сетевых запросов и этапа компиляции.
Исходный текст
SKILL.md · MIT
--- name: html-diagram description: Direct-invocation specialist for self-contained HTML diagrams whose layout, notation, and interaction clarify relationships, sequence, topology, state, hierarchy, or quantitative structure. Use when the user explicitly invokes html-diagram or the broad html skill routes a diagram request here. Do not activate independently from a general request. --- # HTML Diagram Build the smallest visual model that makes the relationship easier to understand than prose alone. Match the notation and visual language to the user's project and subject. Do not force every topic into the same SVG boxes and arrows. ## Choose the right model Identify the question the reader should answer, then select the form: - topology for components and connections; - sequence for ordered messages over time; - process for steps, branches, and handoffs; - state for transitions and conditions; - hierarchy for containment or ownership; - timeline for change over time; - matrix for repeated relationships; - quantitative view when magnitude matters. Decide what must remain visible together and what can be revealed on demand. Use a simpler form when it carries the same meaning. ## Choose the rendering method Use HTML and CSS, SVG, Canvas, or WebGL according to the information and scale. Do not use SVG merely because the output is a diagram. - Keep labels, grouping, direction, and connectors legible before adding interaction. - Use stable node positions when readers must compare states or steps. - Keep edge crossings and ambiguous arrowheads to a minimum. - Put intentionally broad canvases in a contained pan or scroll region. - Use legends only when notation is not self-explanatory. Add sequencing, filtering, path tracing, pan and zoom, or animation only when it helps answer the stated question. Keep overlays dismissible, controls keyboard-accessible, and motion compatible with `prefers-reduced-motion`. When [`design-artifact`](../design-artifact/SKILL.md) is available, read it for the diagram's surrounding composition and visual register. Keep the chosen diagram grammar, label legibility, and relationships authoritative over decorative treatment. ## Build and verify Deliver one self-contained HTML file with essential CSS and JavaScript inline. Require no build step or external service. Use accessible text alternatives and keep important meaning available without animation or color alone. Inspect the result at wide and narrow widths. Check label collisions, clipped nodes, edge routing, reading order, keyboard operation, overflow, and every interactive state. Return the absolute path, the diagram form chosen, and the main simplifications or assumptions.
© plannotator · MIT · plannotator/effective-html