lc:model-diagram

Generate Mermaid Entity-Relationship diagrams from Eloquent models and migrations.

12|2|Updated Apr 8, 2026
One-click install
npx skills add https://github.com/edulazaro/laraclaude --skill lc-model-diagram
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lc:model-diagram
Source: https://github.com/edulazaro/laraclaude/tree/main/skills/model-diagram
Command: npx skills add https://github.com/edulazaro/laraclaude --skill lc-model-diagram

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill solves the difficulty of understanding complex database schemas in large Laravel applications by automatically generating visual Entity-Relationship diagrams from your Eloquent models.

Core Features & Use Cases

  • Automated Visualization: Parses your app/Models directory to map relationships and table structures into Mermaid syntax.
  • Contextual Scoping: Supports generating full system diagrams or focused diagrams for specific models to reduce visual clutter.
  • Use Case: Use this when onboarding new developers or documenting a legacy codebase to instantly visualize how your Eloquent models and database tables are interconnected.

Quick Start

Use the lc:model-diagram skill to generate an ER diagram for the User model and its direct relationships.

Frequently Asked Questions about lc:model-diagram

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

FAQPage Schema
How do I generate an ER diagram from Laravel Eloquent models?

To generate an ER diagram from Laravel Eloquent models, this Skill parses your model files and migration definitions to automatically output Mermaid-formatted Entity-Relationship diagrams. It analyzes your project directory to map table structures and model relationships visually.

What is the best way to visualize a database schema for a large Laravel application?

Visualizing a database schema for a large Laravel application is done by scanning your Eloquent models and migrations to produce Mermaid ER diagrams. This approach maps complex table relationships automatically, reducing visual clutter through contextual scoping for specific models.

Can I generate Mermaid diagrams for specific Eloquent models instead of the entire project?

Yes, you can generate Mermaid diagrams for specific Eloquent models instead of the entire project. The Skill supports contextual scoping, allowing you to create focused diagrams for individual models and their direct relationships to reduce visual clutter.

Does this tool require read access to parse migration definitions and model relationships?

Yes, this tool requires read access to the project directory to parse migration definitions and model relationships. It analyzes the Eloquent model files and table structures within your Laravel application to accurately generate the database schema visualization.

When should I use Mermaid ER diagrams for Laravel architectural documentation?

You should use Mermaid ER diagrams for Laravel architectural documentation when onboarding new developers or documenting a legacy codebase. Generating these visual Entity-Relationship diagrams instantly clarifies how your Eloquent models and database tables are interconnected.