modules/programs/agents/shared/_archive/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
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.
development
Turn an idea or objective into a goal package for /goal. Interviews the user, builds a reviewed fact sheet via Plannotator, then explores the codebase to produce an execution plan.
development
Open Plannotator's browser-based code review UI for the current worktree or a pull request URL, then act on the feedback that comes back.
testing
Open Plannotator on the latest rendered assistant message and use the returned annotations to revise that message or continue.