diagram
Installation
SKILL.md
Diagram
Renders interactive, draggable diagrams in the browser using Cytoscape.js from context-supplied nodes and edges.
Workflow
- Extract nodes and edges — read labels, connections, and any grouping/color hints from the user's request or conversation context.
- Assign colors and positions — choose a color scheme and set x/y coordinates for a readable layout. See TEMPLATE.md for layout patterns.
- Write the HTML file — write a complete self-contained file to
/tmp/diagram.htmlusing the Cytoscape.js template. See TEMPLATE.md for the full template. - Render in browser — follow
_shared/chrome-devtools-render.mdto open/tmp/diagram.html, wait for render, screenshot, and fix-and-reload if needed.wait_fora string from the legend or a node label. See TROUBLESHOOTING.md for diagram-specific fixes.
Self-review checklist
Before delivering, verify ALL: