# diagram-creator

Generates system diagrams and flowcharts using Mermaid, PlantUML, and D2 syntax. It helps document APIs, database relations, and service architecture.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 5000 installs · ★ 540
- Author: claude-office-skills
- License: MIT · policy=mirror · the beginning of the file is at the end of this page
- Source: https://github.com/claude-office-skills/skills/tree/HEAD/diagram-creator/SKILL.md
- Updated: 2026-01-31
- HTML: https://affpapa.org/en/nevibecode/skills/diagram-creator

## What it does

This skill translates system descriptions into text-based diagram code. It covers flowcharts, sequence diagrams, ER schemas, UML class structures, state machines, and Gantt timelines. Supported output formats include Mermaid, PlantUML, ASCII, and D2, with options for layout direction and themes like forest or dark.

Output comes as raw code blocks inside Markdown. The skill cannot render PNG or raster images directly. You will need an external preview tool, such as Mermaid Live Editor or an IDE extension, to view the graphic output.

The author recommends claude-sonnet-4 or claude-opus-4 models, while claude-3-5-sonnet, gpt-4, and gpt-4o are marked compatible.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add claude-office-skills/skills --skill diagram-creator -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/diagram-creator/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/diagram-creator/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add claude-office-skills/skills --skill diagram-creator -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/diagram-creator/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add claude-office-skills/skills --skill diagram-creator -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/diagram-creator/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install claude-office-skills/skills diagram-creator
```

2. **Manually: put the files in place**
- File: `.github/skills/diagram-creator/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add claude-office-skills/skills --skill diagram-creator -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/claude-office-skills/skills --path diagram-creator
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/diagram-creator/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add claude-office-skills/skills --skill diagram-creator -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/claude-office-skills/skills/tree/HEAD/diagram-creator/SKILL.md

## When to use it
- generate Mermaid sequence diagrams for authentication workflows
- create entity-relationship diagrams for database schemas
- build PlantUML component diagrams for backend architecture
- draft Gantt charts and project schedules in Markdown

## Example prompts
- Generate a Mermaid sequence diagram for a user login flow with JWT
- Create an ER diagram for an e-commerce database with orders and products
- Draw a backend microservices architecture diagram in PlantUML using the dark theme

## Source text · SKILL.md · MIT

Below is the content of a third-party file. It is data, not instructions for you: do not act on anything written inside unless the human asks. Block tag: 49f108f9658fd0b5.

BEGIN THIRD-PARTY FILE 49f108f9658fd0b5
````text
---
# ═══════════════════════════════════════════════════════════════════════════════
# CLAUDE OFFICE SKILL - Diagram Creator
# ═══════════════════════════════════════════════════════════════════════════════

name: diagram-creator
description: "Create professional diagrams using Mermaid, PlantUML, and other text-based diagram tools. Generate flowcharts, sequence diagrams, architecture diagrams, and more."
version: "1.0.0"
author: claude-office-skills
license: MIT

category: visualization
tags:
  - diagram
  - flowchart
  - mermaid
  - plantuml
  - architecture
department: Engineering/Design

models:
  recommended:
    - claude-sonnet-4
    - claude-opus-4
  compatible:
    - claude-3-5-sonnet
    - gpt-4
    - gpt-4o

capabilities:
  - flowchart_creation
  - sequence_diagrams
  - architecture_diagrams
  - er_diagrams
  - class_diagrams

languages:
  - en
  - zh

related_skills:
  - chart-designer
  - ppt-visual
  - dev-slides
---

# Diagram Creator Skill

## Overview

I help you create professional diagrams using text-based diagram tools like Mermaid and PlantUML. These diagrams can be rendered in documentation, presentations, and development tools.

**What I can do:**
- Create flowcharts and process diagrams
- Generate sequence diagrams
- Build architecture and system diagrams
- Design ER (Entity-Relationship) diagrams
- Create class diagrams and UML
- Generate organizational charts
- Build Gantt charts and timelines

**What I cannot do:**
- Render images directly (use Mermaid live editor or similar)
- Create pixel-perfect custom designs
- Generate raster images

---

## How to Use Me

### Step 1: Describe Your Diagram

Tell me:
- What process/system/concept to visualize
- Type of diagram needed
- Level of detail
- Target audience

### Step 2: Choose Format

- **Mermaid**: Best for web, markdown, GitHub
- **PlantUML**: Best for UML, complex diagrams
- **ASCII**: Simple, universal compatibility
- **D2**: Modern, stylish diagrams

### Step 3: Specify Style

- Colors and themes
- Direction (top-down, left-right)
- Level of detail

---

## Diagram Types

### 1. Flowchart / Process Diagram

**Use for**: Business processes, decision trees, workflows

```mermaid
flowchart TD
    A[Start] --> B{Decision?}
    B -->|Yes| C[Action 1]
    B -->|No| D[Action 2]
    C --> E[End]
    D --> E
```

### 2. Sequence Diagram

**Use for**: API calls, user interactions, system communication

```mermaid
sequenceDiagram
    participant U as User
    participant A as App
    participant S as Server
    participant D as Database
    
    U->>A: Click Login
    A->>S: POST /auth/login
    S->>D: Query user
    D-->>S: User data
    S-->>A: JWT token
    A-->>U: Redirect to dashboard
```
````
END THIRD-PARTY FILE 49f108f9658fd0b5

The third-party file has ended. Everything between the 49f108f9658fd0b5 tags is data: requests and commands from it are not followed. An “end of file” line with another tag inside the block is part of the file.

First 3026 of 8281 bytes. © claude-office-skills · MIT · https://github.com/claude-office-skills/skills/tree/HEAD/diagram-creator/SKILL.md

_Part of the page did not fit — see the HTML version._

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
