Skip to content

Diagrams your agent can draw.

Your agent describes a system in a few lines of text, naming the parts and how they connect. drawing.sh lays out the boxes, routes every arrow around them and returns an SVG. Try it below. Edit the .dx source, or paste a Mermaid flowchart into the From Mermaid tab.
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

edit the source
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
arch.dx.svg
Web appStorageBrowserAPI serverPostgresRedisQueueJob workerHTTPSreads, writesenqueue
$ drawing render arch.dx
8 nodes, 6 connectors
0 crossings, 1 bend
wrote arch.dx.svg

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 Animal

a subtype, with a hollow triangle

DogAnimal
edge Socket implements Stream

a contract, dashed

SocketStream
edge Car composes Engine

a part that lives and dies with the whole

CarEngine
edge Team owns Player

a part that can outlive the whole

TeamPlayer
edge App depends-on Logger

a dependency, dashed with an open arrow

AppLogger
edge Author one-to-many Book

cardinality, with a crow's foot

AuthorBook

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.