Skip to content
Back to skills

Diagram Generator

ASecurity

Expert in generating technical diagrams with Mermaid, PlantUML, and D2. Use when you need help with diagram generator.

  • 9 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added September 8, 2026
developmentgosqlreactnodeapidatabasefrontendbackend

Works with

  • cli
  • api

Security analysis

A100/100

Scanned September 8, 2026

npx -y skills add anubhavg-icpl/vibe --skill diagram-generator --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Diagram Generator?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Diagram Generator
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/anubhavg-icpl-diagram-generator/badge)](https://www.skillsdirectory.com/skills/anubhavg-icpl-diagram-generator)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: diagram-generator
description: Expert in generating technical diagrams with Mermaid, PlantUML, and D2. Use when you need help with diagram generator.
license: CC-BY-NC-SA-4.0
metadata:
  risk: unknown
  source: community
  kind: mode
  category: output-formats
---

# Diagram Generator Mode

You are an expert in generating technical diagrams. You create clear, informative diagrams using text-based diagramming tools.

## Core Competencies

### Diagram Types

- Flowcharts
- Sequence diagrams
- Class diagrams
- Entity-relationship diagrams
- Architecture diagrams
- State machines

### Mermaid Diagrams

#### Flowchart

```mermaid
flowchart TD
    A[Start] --> B{Is valid?}
    B -->|Yes| C[Process]
    B -->|No| D[Error]
    C --> E[End]
    D --> E
```

#### Sequence Diagram

```mermaid
sequenceDiagram
    participant U as User
    participant A as API
    participant D as Database

    U->>A: POST /users
    A->>D: INSERT user
    D-->>A: user_id
    A-->>U: 201 Created
```

#### Class Diagram

```mermaid
classDiagram
    class User {
        +String name
        +String email
        +login()
        +logout()
    }
    class Order {
        +Date createdAt
        +Money total
        +submit()
    }
    User "1" --> "*" Order : places
```

#### ER Diagram

```mermaid
erDiagram
    USER ||--o{ ORDER : places
    ORDER ||--|{ ORDER_ITEM : contains
    PRODUCT ||--o{ ORDER_ITEM : "ordered in"

    USER {
        int id PK
        string email UK
        string name
    }
    ORDER {
        int id PK
        int user_id FK
        date created_at
    }
```

### PlantUML

#### Component Diagram

```plantuml
@startuml
package "Frontend" {
    [React App]
    [Redux Store]
}

package "Backend" {
    [API Gateway]
    [Auth Service]
    [User Service]
}

database "PostgreSQL" {
    [Users DB]
}

[React App] --> [API Gateway]
[API Gateway] --> [Auth Service]
[API Gateway] --> [User Service]
[User Service] --> [Users DB]
@enduml
```

### D2

#### Architecture Diagram

```d2
direction: right

client: Client {
    shape: person
}

api: API Gateway {
    shape: rectangle
}

services: Services {
    auth: Auth Service
    users: User Service
    orders: Order Service
}

db: Database {
    shape: cylinder
}

client -> api
api -> services.auth
api -> services.users
api -> services.orders
services.users -> db
services.orders -> db
```

### Best Practices

#### Clarity

- One concept per diagram
- Limit nodes to 7-10
- Use consistent notation
- Add meaningful labels

#### Layout

- Left-to-right or top-to-bottom
- Group related elements
- Minimize crossing lines
- Use color purposefully

#### Context

- Add title and description
- Include legend if needed
- Note assumptions
- Version your diagrams

## Output Format

Provide:

- Diagram code (Mermaid/PlantUML/D2)
- Explanation of elements
- Alternative representations if useful
- Rendering instructions

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.