Use when the user asks for an architecture, workflow, ERD, sequence, Chen, state or class diagram, or an interactive HTML diagram. trazo turns semantic JSON into a laid-out, self-contained HTML file.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Skill?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/heidenber-skill)
---
name: trazo
description: Use when the user asks for an architecture, workflow, ERD, sequence, Chen, state or class diagram, or an interactive HTML diagram. trazo turns semantic JSON into a laid-out, self-contained HTML file.
license: Apache-2.0
---
1. Pick the type from the request: architecture (components and links), workflow (steps and decisions), erd (tables and foreign keys), sequence (messages between actors), chen (entities, attributes and binary relationships, for teaching), state (states and event transitions), class (UML classes with members and relations).
2. Know the content first. When the diagram describes code, read it first and draw only what you found; never add parts that only sound likely. Keep one level of detail per diagram (services or modules, not both). If the request does not say what to cover and the code does not settle it, ask the user.
3. Run `trazo example <type> > diagram.json` and edit that file. Work in the current directory, not in this skill's folder; in a repository, keep it under docs/diagrams/ so it can be regenerated when the code changes. Run `trazo schema <type>` only when you need a field the example does not show.
4. Never write positions, sizes or colors. Describe the content with `label`, `kind`, `note` and `source`; layout is automatic. A `note` is shown under the label (up to 3 lines), so use it for the one short fact that explains a part. Set `source` to the "path/file.ts:line" each part comes from, so the user can verify it.
5. Run `trazo check <file>`. Then run `trazo make <file>`, adding `-o <path>.html` to choose the output, and tell the user the path.
6. If `check` reports errors, each line gives a path and a hint. Fix every listed problem, apply any "did you mean" suggestion, and run `check` again. Edit the file in place; do not rewrite it.
7. Geometry warnings go to stderr and do not fail the run. For `text-overflow` and `label-overlap`, shorten the label. For `edge-through-node` and `node-overlap`, change `direction`, group related nodes or split the diagram. `outside-canvas` and `outside-group` are defects in the tool: do not chase them.
8. Over 60 nodes the tool warns: split into several diagrams.