Install the skill
One command teaches your agent the diagram language and gives it the drawing command.
npx skills add dxos/dxos --skill drawingWorks 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
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 gives it the drawing command.
Ask for a diagram
“Draw how a request moves through our services.” Your agent reads the code and writes .dx.
Get an SVG
drawing lays it out in about a second, ready for a README, a pull request or a doc.
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 Socket implements Streama 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 Author one-to-many Bookcardinality, with a crow's foot
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.
Shows up anywhere
GitHub, browsers and docs sites show it like any other SVG, with nothing to install.
Re-renders from text
The .dx source rides inside the file, so the next change is a small diff, not a redraw.
Opens on a canvas
Import it into the drawing.sh app or a Composer space, and keep editing it with your team.
The same diagram editor is a plugin in Composer, DXOS’s collaborative local-first workspace. There a diagram is one more object in a space, next to documents, tasks and everything else your team keeps, and it works with Composer’s other plugins and agents. Composer is in early access; the drawing.sh app is the same canvas, open to everyone now.