Diagrams your agent can draw.
Install the skill and ask for a diagram. Your agent writes a few lines of text; drawing places the boxes, routes every arrow around them and hands back an SVG with zero crossings.
npx skills add dxos/dxos --skill drawing
Works with Claude Code, Cursor, Codex and any agent that reads SKILL.md. Without an agent:
npx -y @dxos/drawing render arch.dx
diagram aspect=16:9 group web "Web app" { node Browser "Browser" node Api "API server" right-of Browser } group data "Storage" compact { node Db "Postgres" node Cache "Redis" } node Queue "Queue" node Worker "Job worker" edge Browser -> Api "HTTPS" edge Api -> Db "reads, writes" edge Api -> Cache edge Api -> Queue "enqueue" edge Queue -> Worker edge Worker -> Db
8 nodes, 6 connectors
0 crossings, 1 bend
wrote arch.dx.svg
From a question to a picture in one turn
Agents describe systems well and draw them badly. drawing splits the job: the agent says what connects to what, and a layout engine decides where everything goes.
-
Install the skill
One command teaches your agent the diagram language and the
drawingcommand. -
Ask for a diagram
“Draw how a request moves through our services.” The agent reads the code and writes the .dx file.
-
Get an SVG
drawing lays it out in about a second. Put the SVG in a README, a pull request or a design doc.
Say what's related, not where it goes
Name the relationship and the right arrowhead follows. There are no coordinates to get wrong; add a placement hint only when you want one.
edge Dog extends Animala subtype, with a hollow triangle
edge Store implements Readablea contract, dashed
edge Car composes Enginea part that lives and dies with the whole
edge Team owns Playera part that can outlive the whole
edge App depends-on Loggera dependency, dashed with an open arrow
edge Customer one-to-many Ordercardinality, with a crow's foot
The SVG is the drawing
A .dx.svg is an ordinary image, and it also carries everything needed to edit it again. Nothing is locked in a service you have to log in to.
Try Composer- Shows up anywhereGitHub, browsers and docs render it like any other SVG.
- Re-renders from textThe source rides inside the file, so the next edit is a diff, not a redraw.
-
Opens as a live canvasImport it into a Composer space with
dx drawing importand keep editing it with your team and your agents.