modules/programs/agents/shared/skills/mermaid-erd/SKILL.md
Generate a Mermaid ERD from SQL schema files
npx skillsauth add MichaelVessia/nixos-config mermaid-erdInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Analyze SQL schema files and generate a Mermaid entity relationship diagram.
Arguments: Path to SQL file(s) or directory containing schema files (*.sql)
Steps:
Find and read all relevant SQL schema files
Parse each table definition extracting:
Generate a Mermaid erDiagram showing:
Validate diagram by running: npx -y @mermaid-js/mermaid-cli mmdc -i /dev/stdin -o /dev/null <<< '<diagram>'
Verify complete coverage:
Output format:
erDiagram
users {
int id PK
string email UK
string name
timestamp created_at
}
posts {
int id PK
int user_id FK
string title
text content
}
users ||--o{ posts : "has many"
Relationship notation:
||--|| one-to-one||--o{ one-to-manyo{--o{ many-to-many (via junction table)Notes:
development
Restate the last message in plain human language, with no jargon.
testing
Fan out a batch of work items into one PR each via isolated worktree agents, review every PR before it opens, then babysit all PRs through green CI and review feedback. Use when the user wants to fan out PRs, dispatch parallel PR agents over a list of items, or run a batch of independent changes as separate PRs.
development
Dispatch user-visible coding or research agents through Herdr with Codex-Desktop-like thread ergonomics. Use when the user asks to use Herdr to spawn, dispatch, fan out, inspect, follow up with, or monitor agent workspaces/threads.
development
Generate self-contained HTML visualizations with Plannotator theming. Use for implementation plans, PR explainers, architecture diagrams, data tables, slide decks, and any visual explanation of technical concepts. Plans and PR explainers follow Plannotator's prescriptive approach; all other visual content delegates to nicobailon/visual-explainer.