diagram
БесплатноБез исполняемых скриптовНе проверенDesign, create, or revise structured diagrams (.diagram.json) rendered to SVG with @plannotator/diagrams—choosing layouts, visual hierarchy, embedded media…
от backnotprop★ 16 029 звёзд на GitHubОб этом скилле
Diagram
Design and author a structured diagram as a .diagram.json specification and render it to SVG with @plannotator/diagrams. The renderer measures typography, sizes panels, routes connectors, and checks geometry—reporting overlaps, crossings, ports facing away, and label collisions so you can refine the drawing until it renders cleanly.
1. Ground the content, then choose your own form
Decide for yourself what viewpoint, composition, level of detail, emphasis, and omissions best answer the reader's request using the primitives below.
- Start from the library's visual language, and depart only with intent:
@plannotator/diagramsships with tactile architectural defaults—subtle 3D lids, beveled tiles, blueprint mini-graphs, structured cards, dashed boundary groups, and host-adaptive colors—that work well out of the box. Prefer structured visual blocks (tiles,card,graph,row,groups,footer,steps) that show components, boundaries, and concrete data at a glance instead of prose paragraphs. Adjustthemerelief, typography, or customtonesonly when that choice carries a real distinction or makes the finished drawing clearer to read. - Verify real references: When drawing from an existing codebase or repository, read the actual source, config, or doc files first and cite real symbols, project-relative paths, and 1-based line numbers—never invent them. When drawing from a brief with no repo files, omit file
refs(or include only real URLs).
2. Create or locate the .diagram.json file
A top-level "id" identifies one logical diagram across its revisions. Never copy a literal example ID across unrelated drawings.
- New diagram with Plannotator CLI:
Writes a starter file with a freshly generated UUID top-levelplannotator diagram new my-diagram # or an explicit path ending in .diagram.json: plannotator diagram new docs/my-diagram.diagram.jsonidand prints its absolute path. Pass a plain name (letters, digits, spaces,.,_,-) to store it in the project's Plannotator diagram folder, or pass an explicit*.diagram.jsonpath when a specific location was requested. Keep the generated UUID as the diagram's"id". Never runplannotator diagram newon an existing diagram—it fails if the file exists, and replacing"id"breaks revision history. - New diagram standalone (no Plannotator CLI, or an older Plannotator without
diagram): Create a UTF-8*.diagram.jsonfile in the requested or working directory and generate a fresh UUID for its top-level"id"(for example withcrypto.randomUUID()). - Revising an existing diagram:
Edit the existing
.diagram.jsonfile in place and keep its top-level"id"unchanged.
3. Renderer vocabulary and capabilities
Validation is strict: unknown keys anywhere throw a TypeError naming the exact JSON path. Use exact field names: sub (not description), status (not state), tone (not color), and columns/ring/panels + links (not nodes/edges).
Layouts (choose exactly one)
A diagram combines one outer layout of panels with optional groups (enclosing any subset of panels), links (connecting any pair of panels or a panel to itself), top-level framing chrome, and theme styling. Prefer automatic layouts (columns or ring) whenever they fit—they handle panel measurement, alignment, and spacing cleanly; use explicit panels when custom 2D coordinates are genuinely needed. When the reader needs to trace a directional flow, keep the primary path moving cleanly (typically left-to-right or top-to-bottom) rather than doubling back unnecessarily—reserving rings, deliberate folds, and return paths for subjects that genuinely call for them—and make supporting panels' relationship to the main path clear (through proximity, containment, or a labelled control link when warranted) instead of leaving them ambiguously adrift.
columns— Places entries left to right; each entry is a single panel or a vertical stack (Panel | Panel[]). Panels stacked in the same column expand to match the widest panel in that column.- Controls:
gap(horizontal spacing between columns, default72),row_gap(vertical spacing inside a stack, default28),valign("top" | "center" | "bottom", default"center"—vertical alignment of shorter columns against the tallest). - Shape:
{ "columns": [panelA, [panelB1, panelB2], panelC] }
- Controls:
ring— Places ≥2 panels around an ellipse whose radius expands automatically to satisfygap, starting atstart_angledegrees forring[0](default-90, top) and stepping clockwise around 360°. Optionalcenter(Panel[]) stacks one or more panels centered inside the ellipse.- Controls:
start_angle(degrees, default-90),gap,row_gap. - Shape:
{ "ring": [panelA, panelB, panelC], "center": [centerPanel], "start_angle": -90 }
- Controls:
panels— Places ≥1 panels at explicit 2D coordinates; **eve
Установить diagram в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл diagram?
Design, create, or revise structured diagrams (.diagram.json) rendered to SVG with @plannotator/diagrams—choosing layouts, visual hierarchy, embedded media, clickable parts, source references, and pinned-feedback revisions.
Как установить скилл diagram?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл diagram запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
от Anthropicwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
от Anthropicbrand-guidelines
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
от Anthropicweb-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…
от Anthropic