Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Multi-format diagram generation from text descriptions. Create Mermaid, PlantUML, D2, and Graphviz diagrams including flowcharts, sequence diagrams, architecture diagrams (C4), and data models.
.claude/skills/a5c-ai-diagram-generation/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-03 | ✗→✓ | ▲ Improved | 178% | 0% |
| case-01 | ✗→✓ | ▲ Improved | 337% | 0% |
| case-02 | ✗→✓ | ▲ Improved | 100% | 0% |
| case-19 | ✗→✓ | ▲ Improved | 241% | 0% |
| case-12 | ✓→✗ | ▼ Worse | 55% | 0% |
Multi-format diagram generation from text descriptions.
Invoke this skill when you need to:
| Parameter | Type | Required | Description | |-----------|------|----------|-------------| | type | string | Yes | mermaid, plantuml, d2, graphviz, c4 | | diagramType | string | Yes | flowchart, sequence, class, er, architecture | | source | string | No | Diagram source code | | inputPath | string | No | Path to diagram source file | | outputPath | string | Yes | Output file path | | format | string | No | svg, png, pdf (default: svg) | | theme | string | No | Theme for styling |
json{ "type": "mermaid", "diagramType": "sequence", "source": "sequenceDiagram\n Client->>API: Request\n API-->>Client: Response", "outputPath": "docs/diagrams/api-flow.svg", "format": "svg" }
mermaidflowchart TD A[Start] --> B{Is valid?} B -->|Yes| C[Process] B -->|No| D[Error] C --> E[End] D --> E
mermaidsequenceDiagram participant U as User participant A as API Gateway participant S as Service participant D as Database U->>A: POST /users A->>A: Validate Token A->>S: Create User S->>D: INSERT user D-->>S: Success S-->>A: User Created A-->>U: 201 Created
mermaidclassDiagram class User { +String id +String email +String name +create() +update() +delete() } class Order { +String id +Date createdAt +Status status +process() +cancel() } class OrderItem { +String productId +int quantity +float price } User "1" --> "*" Order : places Order "1" --> "*" OrderItem : contains
mermaiderDiagram USER ||--o{ ORDER : places USER { uuid id PK string email UK string name timestamp created_at } ORDER ||--|{ ORDER_ITEM : contains ORDER { uuid id PK uuid user_id FK enum status timestamp created_at } ORDER_ITEM { uuid id PK uuid order_id FK uuid product_id FK int quantity } PRODUCT ||--o{ ORDER_ITEM : "ordered in" PRODUCT { uuid id PK string name decimal price }
mermaidstateDiagram-v2 [*] --> Draft Draft --> Pending: Submit Pending --> Approved: Approve Pending --> Rejected: Reject Rejected --> Draft: Revise Approved --> Published: Publish Published --> [*]
plantuml@startuml C4_Context !include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Context.puml Person(user, "User", "A customer of the system") System(system, "E-Commerce Platform", "Allows users to browse and purchase products") System_Ext(payment, "Payment Gateway", "Processes payments") System_Ext(email, "Email Service", "Sends notifications") Rel(user, system, "Uses", "HTTPS") Rel(system, payment, "Processes payments", "HTTPS") Rel(system, email, "Sends emails", "SMTP") @enduml
plantuml@startuml C4_Container !include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Container.puml Person(user, "User") System_Boundary(system, "E-Commerce Platform") { Container(spa, "Web Application", "React", "User interface") Container(api, "API Gateway", "Node.js", "REST API") Container(orders, "Order Service", "Go", "Handles orders") Container(products, "Product Service", "Go", "Product catalog") ContainerDb(db, "Database", "PostgreSQL", "Stores data") ContainerQueue(queue, "Message Queue", "RabbitMQ", "Async messaging") } Rel(user, spa, "Uses", "HTTPS") Rel(spa, api, "Calls", "HTTPS") Rel(api, orders, "Routes", "gRPC") Rel(api, products, "Routes", "gRPC") Rel(orders, db, "Reads/Writes", "SQL") Rel(orders, queue, "Publishes", "AMQP") @enduml
d2direction: right users: Users { shape: person } frontend: Frontend { spa: React SPA mobile: Mobile App } backend: Backend Services { gateway: API Gateway auth: Auth Service orders: Order Service products: Product Service } data: Data Layer { postgres: PostgreSQL { shape: cylinder } redis: Redis Cache { shape: cylinder } s3: S3 Storage { shape: cylinder } } users -> frontend.spa users -> frontend.mobile frontend -> backend.gateway backend.gateway -> backend.auth backend.gateway -> backend.orders backend.gateway -> backend.products backend.orders -> data.postgres backend.auth -> data.redis backend.products -> data.s3
dotdigraph Dependencies { rankdir=LR; node [shape=box, style=filled, fillcolor=lightblue]; "api-gateway" -> "auth-service"; "api-gateway" -> "user-service"; "api-gateway" -> "order-service"; "order-service" -> "user-service"; "order-service" -> "product-service"; "order-service" -> "payment-service"; "user-service" -> "database" [style=dashed]; "order-service" -> "database" [style=dashed]; "product-service" -> "database" [style=dashed]; "database" [shape=cylinder, fillcolor=lightyellow]; }
json{ "theme": "neutral", "themeVariables": { "primaryColor": "#4a90d9", "primaryTextColor": "#fff", "primaryBorderColor": "#2d5986", "lineColor": "#5c6370", "secondaryColor": "#f0f0f0", "tertiaryColor": "#e8e8e8" }, "flowchart": { "curve": "basis", "padding": 20 }, "sequence": { "actorMargin": 50, "boxMargin": 10 } }
json{ "devDependencies": { "@mermaid-js/mermaid-cli": "^10.0.0", "plantuml": "^0.1.0", "d2": "^0.6.0", "graphviz": "^0.0.9", "svgo": "^3.0.0" } }
bash# Mermaid to SVG npx mmdc -i diagram.mmd -o diagram.svg # PlantUML to PNG java -jar plantuml.jar diagram.puml # D2 to SVG d2 diagram.d2 diagram.svg # Graphviz to PNG dot -Tpng diagram.dot -o diagram.png # Optimize SVG npx svgo diagram.svg -o diagram.min.svg
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-03 | fail→pass | 14,196 | 12,335 | -13% | 1 | 1 | 0% | 1,389 | 3,863 | +178% | 0 | 0 | — |
case-01 | fail→pass | 11,281 | 10,212 | -9% | 1 | 1 | 0% | 779 | 3,402 | +337% | 0 | 0 | — |
case-02 | fail→pass | 14,500 | 10,647 | -27% | 1 | 1 | 0% | 2,027 | 4,062 | +100% | 0 | 0 | — |
case-04 | pass→pass | 5,413 | 5,902 | +9% | 1 | 1 | 0% | 767 | 3,080 | +302% | 0 | 0 | — |
case-05 | pass→pass | 9,495 | 10,484 | +10% | 1 | 1 | 0% | 867 | 3,321 | +283% | 0 | 0 | — |
case-06 | pass→pass | 13,600 | 11,737 | -14% | 1 | 1 | 0% | 1,330 | 3,525 | +165% | 0 | 0 | — |
case-07 | pass→pass | 14,309 | 13,843 | -3% | 1 | 1 | 0% | 1,392 | 3,635 | +161% | 0 | 0 | — |
case-08 | pass→pass | 11,316 | 9,306 | -18% | 1 | 1 | 0% | 933 | 3,057 | +228% | 0 | 0 | — |
case-09 | pass→pass | 17,378 | 22,642 | +30% | 1 | 1 | 0% | 1,818 | 4,956 | +173% | 0 | 0 | — |
case-10 | pass→pass | 16,733 | 13,055 | -22% | 1 | 1 | 0% | 1,700 | 3,840 | +126% | 0 | 0 | — |
case-11 | pass→pass | 14,014 | 6,379 | -54% | 1 | 1 | 0% | 1,704 | 3,508 | +106% | 0 | 0 | — |
case-12 | pass→fail | 23,145 | 17,051 | -26% | 1 | 1 | 0% | 2,849 | 4,414 | +55% | 0 | 0 | — |
case-13 | pass→pass | 8,379 | 2,887 | -66% | 1 | 1 | 0% | 596 | 2,661 | +346% | 0 | 0 | — |
case-14 | pass→pass | 3,175 | 7,091 | +123% | 1 | 1 | 0% | 543 | 2,633 | +385% | 0 | 0 | — |
case-15 | pass→pass | 7,858 | 6,429 | -18% | 1 | 1 | 0% | 346 | 2,477 | +616% | 0 | 0 | — |
case-16 | pass→pass | 4,927 | 6,881 | +40% | 1 | 1 | 0% | 700 | 2,585 | +269% | 0 | 0 | — |
case-17 | pass→pass | 7,122 | 8,021 | +13% | 1 | 1 | 0% | 989 | 2,774 | +180% | 0 | 0 | — |
case-18 | pass→pass | 7,939 | 8,167 | +3% | 1 | 1 | 0% | 548 | 2,731 | +398% | 0 | 0 | — |
case-19 | fail→pass | 11,247 | 8,992 | -20% | 1 | 1 | 0% | 893 | 3,048 | +241% | 0 | 0 | — |
case-20 | pass→pass | 12,270 | 9,845 | -20% | 1 | 1 | 0% | 1,256 | 3,767 | +200% | 0 | 0 | — |
case-21 | pass→pass | 10,746 | 7,791 | -27% | 1 | 1 | 0% | 1,054 | 2,686 | +155% | 0 | 0 | — |
case-22 | pass→pass | 17,210 | 13,412 | -22% | 1 | 1 | 0% | 2,155 | 5,106 | +137% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted. The headline lift of +14 percentage points is the difference between those two pass rates over the 22 comparable cases. 1 case got worse with the skill loaded, and it is included in that figure.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.