Agent skill
open-diagram
An open-source agent skill that turns a plain description into a finished diagram. Your AI agent checks the layout and fixes each problem before you see the picture.
What it does
On its own, Claude has to guess where every box and line goes, and nothing catches its mistakes. open-diagram gives Claude Python primitives, then places every box, fits every label, and checks the layout. The result is reliable, repeatable, and beautiful diagrams, each drawn in under a second.
- 01 Provides the primitives Panels, tiles, arrows, groups, and rings, written in Python
- 02 Repeatable Each diagram redraws exactly the same, in your team's colors
- 03 Reliable Catches overlaps, crossed lines, and labels that don't fit before you see the picture
- 04 Beautiful Every label fits its box, and it looks the same in PowerPoint, Keynote, Figma, or a browser
Sample outputs
Prompt
Draw a systems map of our online bike shop. Customers order on the website or the mobile app. The order service takes card payments and sends each order to the warehouse system for picking and shipping. Every night it copies sales into the reporting database, which feeds a daily revenue dashboard for finance. Gift cards and a returns portal are planned.
Prompt
Draw how a catering order moves from request to invoice, with the owner on every step. Sales takes the request, confirms the menu and books the date. The kitchen orders ingredients, preps, cooks and packs. The driver team drives to the venue and sets up. Finance sends the invoice and chases payment once the client signs the receipt.
Prompt
Draw our two-week release cycle as a ring: plan (pick the work), build (write the code), test (automated tests and a manual check), release (ship to customers) and measure (usage and errors), then back to plan. Put our two goals in the middle: ship every two weeks, and every release passes tests.
Prompt
Draw our photo upload service on AWS with the AWS icons. An API Gateway takes uploads and calls a Lambda function, which resizes each photo. The function saves the originals and thumbnails in S3 and writes the photo record to an RDS database. The function and the database sit inside our VPC, each in its own subnet.
AWS icons belong to Amazon Web Services and are shared under CC BY-ND 2.0.
It also draws layered stacks, and turns Mermaid flowcharts into slides. See all 17 examples and templates
- 400+ GitHub stars
- 17 Examples and cloud templates to start from
- MIT Open-source license, free to use
Get the skill
Enter your work email and we'll show you how to install it.
You're in. Install open-diagram in three steps.
-
Step 1
Install the library
pip install open-diagramNeeds Python 3.9 or later. PNG files also need Chrome, Chromium, or Edge; the SVG is always written.
-
Step 2
Add the skill to Claude Code
git clone https://github.com/lukendeasy/open-diagramcp -r open-diagram/skills/open-diagram ~/.claude/skills/Using Claude Desktop or Cursor? Add open-diagram as an MCP server, a small program your AI app starts on your computer. Nothing is hosted and nothing leaves your computer. Setup steps on GitHub.
-
Step 3
Ask for a picture
Copy one of the prompts above, or describe your own systems in plain words.
open-diagram is open source under the MIT license. The code, the skill, and the docs are kept in one place: github.com/lukendeasy/open-diagram. Install from there to get every update.