hadyfayed/laravel-agent/db-diagram

Claude Code and agent skill by hadyfayed/laravel-agent

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Generate a database ER diagram or schema visualization from migrations and models in Mermaid or DBML format; when documenting the database schema.

Install

npx vskill@latest install hadyfayed/laravel-agent/db-diagram

SKILL.md

The same SKILL.md was published earlier as hadyfayed/laravel-agent/db-diagram.

Task

Analyze Laravel migrations and Eloquent models to generate a visual database schema diagram.

Input

  • format (optional): Output format — mermaid (default), dbml, plantuml
  • tables (optional): Comma-separated table names to include; all by default

Steps

  1. Read Migrations

``bash find database/migrations -name "*.php" -type f ``

  • Parse table definitions, columns, indexes, foreign keys
  • Identify relationships (foreign key constraints)
  1. Analyze Models
  • Extract model relationships (hasMany, belongsTo, belongsToMany, hasOne)
  • Map relationship directions and cardinalities
  • Detect pivot tables and through relationships
  1. Detect Schema Properties
  • Column types and constraints (nullable, unsigned, default)
  • Primary and unique keys
  • Indexes and composite keys
  • Foreign key relationships and cascade options
  1. Generate Diagram
  • Render in chosen format (Mermaid ERD, DBML, PlantUML)
  • Show all tables and relationships
  • Include column details (types, keys)
  • Render cardinalities (one-to-many, many-to-many, etc.)

Output Format

Supports Mermaid (default), DBML, and PlantUML formats.

See references/ for complete examples and syntax rules for each format.

Reference

See ${CLAUDE_SKILL_DIR}/references/ for:

  • mermaid-erd.md — Mermaid ERD syntax and relationship cardinalities
  • dbml-syntax.md — DBML format for dbdiagram.io

Options

bash
# Generate full schema in Mermaid
/db:diagram
# Generate specific tables
/db:diagram mermaid users,orders,products
# Generate in DBML format
/db:diagram dbml
# Generate in PlantUML
/db:diagram plantuml

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
13
Repository forks
1
7-day trend score
13

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/hadyfayed/laravel-agent/db-diagram/badge)](https://verified-skill.com/skills/hadyfayed/laravel-agent/db-diagram)

Something wrong with this skill or its page? Tell us.