hadyfayed/laravel-agent/db-diagram
Claude Code and agent skill by hadyfayed/laravel-agent
- community
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-diagramSKILL.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
- Read Migrations
``bash find database/migrations -name "*.php" -type f ``
- Parse table definitions, columns, indexes, foreign keys
- Identify relationships (foreign key constraints)
- Analyze Models
- Extract model relationships (hasMany, belongsTo, belongsToMany, hasOne)
- Map relationship directions and cardinalities
- Detect pivot tables and through relationships
- Detect Schema Properties
- Column types and constraints (nullable, unsigned, default)
- Primary and unique keys
- Indexes and composite keys
- Foreign key relationships and cascade options
- 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 cardinalitiesdbml-syntax.md— DBML format for dbdiagram.io
Options
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
- SKILL.md in the repositoryCheckingskills/db-diagram/SKILL.md
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
[](https://verified-skill.com/skills/hadyfayed/laravel-agent/db-diagram)