Skip to content
cccskills
FreePublished on GitHub

db-diagram

Generate ER diagrams from migrations, schemas, or ORM models. Output in Mermaid. Trigger: DB diagram, ER diagram, schema, data model.

The English summary is being prepared. Showing the original description.

SebastianLuser/claude-code-arcane3 stars(GitHub 3 + cccskills 0)

Run score Not tested

See how to install

Files included (1)

  • SKILL.md2.3 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

Database Diagram Generator

Lee el schema de la base de datos y genera un diagrama ER en Mermaid.

Process

1. Detectar fuente del schema

Buscar en orden de prioridad:

FuenteUbicación típica
Migrations SQLdb/migrations/, migrations/, prisma/migrations/
ORM Modelsmodels/, src/core/entities/, app/models/
Prisma Schemaprisma/schema.prisma
SQLAlchemymodels.py, models/
GORM structs*.go con tags gorm:"..."
Django Modelsmodels.py en cada app
TypeORM*.entity.ts
Drizzleschema.ts, schema/

2. Parsear tablas y relaciones

Para cada tabla/modelo extraer:

  • Nombre de tabla
  • Columnas: nombre, tipo, nullable, default
  • Primary key
  • Foreign keys → tabla referenciada
  • Indexes únicos
  • Relaciones: 1:1, 1:N, N:M

3. Generar Mermaid ER

erDiagram
    USERS {
        bigint id PK
        uuid organization_id FK
        string email
        string first_name
        string last_name
        string role
        timestamp created_at
        timestamp updated_at
    }
    
    ORGANIZATIONS {
        uuid id PK
        string name
        string slug
        jsonb config
    }
    
    ORGANIZATIONS ||--o{ USERS : "has many"
    USERS ||--o{ DOCUMENTS : "creates"

4. Output

  1. Mostrar el diagrama Mermaid en pantalla
  2. Si el usuario quiere guardarlo → escribir en docs/db-diagram.md o docs/schema.md
  3. Incluir tabla resumen:
## Tablas
| Tabla | Columnas | FK | Descripción |
|-------|----------|-----|-------------|

## Relaciones
| Tabla A | → | Tabla B | Tipo | Via |
|---------|---|---------|------|----|

Rules

  • Si hay múltiples fuentes (migrations + models), preferir migrations como fuente de verdad
  • Agrupar tablas relacionadas visualmente
  • Marcar campos nullable con ?
  • En español para descripciones, nombres de tabla como están en el código
  • Si el schema es muy grande (>20 tablas), ofrecer generar por módulo/dominio

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

Plan, design, and implement A/B tests and experiments with statistical rigor. Covers hypothesis frameworks, sample sizing, metrics, and result analysis.

The English summary is being prepared. Showing the original description.

SebastianLuser/claude-code-arcane3Updated Oct 27, 2026

Web/mobile accessibility decision guide: WCAG 2.2 AA, ARIA, keyboard nav, focus management, contrast, testing. Use for: a11y, accessibility, wcag, aria, screen reader, keyboard, contrast.

The English summary is being prepared. Showing the original description.

SebastianLuser/claude-code-arcane3Updated Oct 27, 2026

Generate, iterate, and scale ad creative for paid advertising across Google, Meta, LinkedIn, and X. Covers platform specs, creative frameworks, and quality validation.

The English summary is being prepared. Showing the original description.

SebastianLuser/claude-code-arcane3Updated Oct 27, 2026

Musica interactiva para juegos: layering vertical, re-secuenciacion horizontal, stingers, reglas de transicion con sync points, y mapeo de estados de gameplay a musica. Usar para: musica adaptativa, sistema de musica dinamica, transiciones musicales, combat music.

The English summary is being prepared. Showing the original description.

SebastianLuser/claude-code-arcane3Updated Oct 27, 2026

Design multi-agent systems, create agent architectures, define communication patterns, and build autonomous agent workflows with structured evaluation frameworks.

The English summary is being prepared. Showing the original description.

SebastianLuser/claude-code-arcane3Updated Oct 27, 2026

Inter-agent communication protocol for C-suite agent teams. Defines invocation syntax, loop prevention, isolation rules, response formats, and quality loops.

The English summary is being prepared. Showing the original description.

SebastianLuser/claude-code-arcane3Updated Oct 27, 2026

See all skills by SebastianLuser

Report a problem with this skill