db-diagram

Generate ER diagrams from ORM schemas into Mermaid, PlantUML, or DBML.

1|Updated Jan 26, 2026
One-click install
npx skills add https://github.com/manastalukdar/claude-devstudio --skill db-diagram
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: db-diagram
Source: https://github.com/manastalukdar/claude-devstudio/tree/main/skills/db-diagram
Command: npx skills add https://github.com/manastalukdar/claude-devstudio --skill db-diagram

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the generation of Entity-Relationship (ER) diagrams from database schemas, making complex database structures easy to understand and document.

Core Features & Use Cases

  • Automated Diagram Generation: Creates ER diagrams in Mermaid, PlantUML, and DBML formats.
  • ORM Detection: Automatically detects and parses schemas from popular ORMs like Prisma, TypeORM, Sequelize, SQLAlchemy, and Django.
  • Relationship Documentation: Clearly documents one-to-many, many-to-many, and one-to-one relationships.
  • Schema Evolution Tracking: Compares schema versions and highlights changes.
  • Use Case: You've just finished defining your database models in Prisma. Run this Skill to instantly generate a visual ER diagram that you can share with your team or embed in your project documentation.

Quick Start

Use the db-diagram skill to auto-detect your schema and generate a Mermaid diagram.

Frequently Asked Questions about db-diagram

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate an ER diagram from my Prisma or SQLAlchemy schema?

Generating an ER diagram from Prisma or SQLAlchemy schemas involves parsing ORM model definitions to automatically extract entities and relationships, outputting visual formats like Mermaid or PlantUML for documentation.

What's the best way to visualize database schema relationships for documentation?

Visualizing database schema relationships for documentation is best achieved by generating ER diagrams in DBML or Mermaid formats, which clearly map one-to-many and many-to-many connections directly from ORM definitions.

Can I automatically detect one-to-many and many-to-many relationships from TypeORM or Sequelize models?

Yes, automatically detecting one-to-many and many-to-many relationships from TypeORM or Sequelize models is possible by parsing schema definitions to extract foreign keys and mapping associations for ER diagram generation.

How do I compare different versions of a database schema to track structural changes?

Comparing different versions of a database schema to track structural changes requires schema evolution tools that analyze ORM definitions across versions to highlight added, modified, or removed entities and relationship mappings.

Does automated ER diagram generation work with Django ORM and output DBML?

Automated ER diagram generation works with Django ORM and supports DBML output by parsing Django model definitions to extract entities and relationships for database schema visualization and documentation.