πŸ—ΊοΈ
DataJavaScript

Sql2Er

by ystemsrx

Sql2Er is a Data skill for Claude Code, published by ystemsrx in sql_to_ER.

187 stars25 forkson ystemsrx/sql_to_ERAdded 2026/09/06+1% in starsRepository updated 2026/09/01
agentagent-skillsagentic-aiai-agentdatabasedbmleducationer-diagramer-modelfreemongodbmysqlmysql-databaseonlineonline-usepostgresqlsqlsql2er
Install in seconds
Install Sql2Er
Copy Sql2Er into your Claude Code skills folder. Run the command in your terminal, or review the source on GitHub before installing.
terminal
npx degit https://github.com/ystemsrx/sql_to_ER/tree/master/skills/sql2er ~/.claude/skills/sql2er

Requires Node.js. Downloads this skill only β€” not the rest of the repository β€” into your Claude Code skills folder.

Without Node.js

git clone https://github.com/ystemsrx/sql_to_ER.git

Clones the whole repository, then copy the skill’s own directory into your skills folder yourself.

In this catalog

Source file
skills/sql2er/SKILL.md in ystemsrx/sql_to_ER
Installs to
~/.claude/skills/sql2er
Collection
The only skill cataloged from this repository
Category
Data β€” 779 skills

What Sql2Er does

Sql2Er generates Chen-model ER diagrams from SQL CREATE TABLE statements or DBML. Use it to inspect, clean up, and export diagrams to SVG, PNG, draw.io, JSON, or HTML with layout review.

Sql2Er is cataloged under Data on DirSkills. Sql2Er comes from a repository tagged agent, agent-skills, agentic-ai, ai-agent and database.

Documentation

README

sql2er

Use the bundled CLI from the repo root:

AGENT=skills/sql2er/scripts/sql2er-agent.mjs

State lives in one JSON file passed with --state <path>; reuse the same state path for every command in a diagram session.

Core workflow

  1. Generate the diagram:
node $AGENT generate --input schema.sql --state er.json

Use --hide-attrs only when the user wants an overview/skeleton, the schema is dense, or attributes are not important. Attribute visibility is fixed at generate; export never adds or removes attributes. If fields, PKs, or column-level semantics matter, generate with attributes.

Use --comment when table/column/ref comments carry readable business labels. Set labels before tuning layout because regenerating resets positions.

This is the opening of the README. Read the full README on GitHub.

Frequently asked about Sql2Er

  • How does Sql2Er compare to other Data skills?

    Sql2Er ranks #726 by stars among the 779 Data skills in this catalog. The most-starred ones next to it are Benchmark Methodology, Jupyter Notebook and Solana. DirSkills ranks by the star count of the repository each skill ships in, so that order reflects how popular those repositories are rather than any review of Sql2Er against them. Open each page to compare what they document and how they install.