diagram

Installation
SKILL.md

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.

Installs
3
GitHub Stars
16.0K
First Seen
1 day ago