# Entity relationship diagram (/database--erd)

/database--erd is a Claude Code skill in the Data section. Generates a Mermaid ER diagram from your database schema or ORM models, with columns, keys and relationship cardinality.

- Web version: https://skills.sgomez.dev/en/s/database--erd
- Section: [Data](https://skills.sgomez.dev/en/data.md)
- Author: Santiago Gómez de la Torre
- License: MIT
- Source: https://github.com/sgomez-dev/claude-skills/blob/main/skills/database/erd.md
- Updated 26 Mar 2026

## How to ask for it

- `/database--erd generate the ERD for my Postgres database`
- `/database--erd entity-relationship diagram from my Prisma models`
- `/database--erd create an ERD to explain the schema to the team`

## Install

macOS · Linux:

```
curl -fsSL https://raw.githubusercontent.com/sgomez-dev/claude-skills/main/install.sh | bash
```

Windows:

```
irm https://raw.githubusercontent.com/sgomez-dev/claude-skills/main/install.ps1 | iex
```

Claude Code plugin:

```
/plugin marketplace add sgomez-dev/claude-skills
/plugin install database-skills@claude-skills-collection
```

## Permissions

- Reads: `**/*`
- Writes: —
- Runs: —
- Network: No
- Destructive: No

## Author's description

Generate Entity Relationship Diagram from database schema or ORM models

- [How we review this](https://skills.sgomez.dev/en/methodology.md)
