Command Palette

Search for a command to run...

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

diagram

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

Design, create, or revise structured diagrams (.diagram.json) rendered to SVG with @plannotator/diagrams—choosing layouts, visual hierarchy, embedded media…

backnotpropот 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/diagrams ships 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. Adjust theme relief, typography, or custom tones only 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:
    plannotator diagram new my-diagram
    # or an explicit path ending in .diagram.json:
    plannotator diagram new docs/my-diagram.diagram.json
    
    Writes a starter file with a freshly generated UUID top-level id and 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.json path when a specific location was requested. Keep the generated UUID as the diagram's "id". Never run plannotator diagram new on 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.json file in the requested or working directory and generate a fresh UUID for its top-level "id" (for example with crypto.randomUUID()).
  • Revising an existing diagram: Edit the existing .diagram.json file 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, default 72), row_gap (vertical spacing inside a stack, default 28), valign ("top" | "center" | "bottom", default "center"—vertical alignment of shorter columns against the tallest).
    • Shape: { "columns": [panelA, [panelB1, panelB2], panelC] }
  • ring — Places ≥2 panels around an ellipse whose radius expands automatically to satisfy gap, starting at start_angle degrees for ring[0] (default -90, top) and stepping clockwise around 360°. Optional center (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 }
  • panels — Places ≥1 panels at explicit 2D coordinates; **eve
Полный SKILL.md на GitHub

Установить diagram в Claude Code и Claude Desktop

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

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

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

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

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

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

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

.plannotator-installedagents/openai.yaml

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

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

Сравнить diagram с