pg-aiguide Skills
Security scan passedPostgres best practices for your agent: table design, indexes, pgvector and hybrid search, PostGIS and TimescaleDB hypertables.

Turns SQL CREATE TABLE statements or DBML into a clean Chen-model ER diagram, then lays it out and exports SVG, PNG, draw.io or HTML.
by ystemsrx· DatabasesUnclaimed · Yours? Claim it
4 images
About
sql2er is the Agent Skill for ystemsrx's free, open-source SQL-to-ER diagram tool. It gives your agent a bundled command-line engine that draws Chen-model ER diagrams (entities, attributes and relationship diamonds) from your schema, checks the layout and exports a finished picture. What it does - Generates a Chen-model ER diagram from SQL CREATE TABLE statements or DBML, with attributes shown, or as a skeleton overview with attributes hidden - Uses table, column and reference comments as readable labels, and lets your agent rename relationships ("placed by") - Reports diagnostics (line crossings, overlaps, disconnected parts, parser warnings) and fixes them with an optimal layout, compact or evenly spread attributes, swaps, moves and rotation - Exports SVG, PNG, draw.io, JSON or a portable HTML editor (in Chinese or English) for hand-tuning, and reviews the image before finishing - Splits unrelated clusters into separate files when you want How it works - Add it with npx skills add ystemsrx/sql-to-ER. The skill runs its bundled Node.js CLI and keeps each diagram's state in one JSON file. - Automatic overlap avoidance moves attributes and relationship diamonds, never your entity boxes, unless you turn it off. - The same engine powers the free online tool at ystemsrx.github.io/sql-to-ER, which needs no sign-in. Good to know - It draws Chen (conceptual) diagrams. For logical diagrams the maker points to dbdiagram.io. - Everything runs locally; your schema isn't uploaded. - A community project by ystemsrx, licensed AGPL-3.0.
Skills people install alongside sql2er.
Once it’s added
“Draw a Chen ER diagram from schema.sql”
“Turn this DBML into an ER diagram and export a PNG”
“Give me a skeleton overview of this schema with attributes hidden”
“Use the column comments as labels”
“Clean up the crossings in my ER diagram”
“Export it to draw.io so I can edit it”
Before you add it
Reads only
Your SQL CREATE TABLE statements or DBML · The diagram's JSON state file
Makes changes · your agent can ask first
Writes the diagram state and exported SVG, PNG, draw.io, JSON or HTML files
From people who use it
Step by step
Nothing new reaches your agent until a person has looked at it.
Scanned on every change, and again when our rules improve.
Runs on your machine.
Runs on your machine.
Runs on your machine.
Runs on your machine.
npx -y degit ystemsrx/sql-to-ER/skills/sql2er ~/.copilot/skills/sql2er
Runs on your machine.
npx -y degit ystemsrx/sql-to-ER/skills/sql2er ~/.cursor/skills/sql2er
Runs on your machine.
npx -y degit ystemsrx/sql-to-ER/skills/sql2er ~/.claude/skills/sql2er
Runs on your machine.
npx -y degit ystemsrx/sql-to-ER/skills/sql2er ~/.agents/skills/sql2er
Runs on your machine.
Runs on your machine.
npx -y degit ystemsrx/sql-to-ER/skills/sql2er ~/.gemini/skills/sql2er
Runs on your machine.
npx -y degit ystemsrx/sql-to-ER/skills/sql2er .agents/skills/sql2er
Runs on your machine.
npx -y degit ystemsrx/sql-to-ER/skills/sql2er ~/.openclaw/skills/sql2er
Runs on your machine.
npx -y degit ystemsrx/sql-to-ER/skills/sql2er ~/.config/opencode/skills/sql2er
Runs on your machine.
npx -y degit ystemsrx/sql-to-ER/skills/sql2er ~/.hermes/skills/sql2er
Scanned and passed · checked 47 min ago
No reviews yet. Used sql2er? Say how it went.
Write a reviewNobody has shared how they use sql2er yet.
Security scan
Passed
Safe to install in every agent it supports. Runs in your agent, as instructions.
Skills people install alongside sql2er.
Postgres best practices for your agent: table design, indexes, pgvector and hybrid search, PostGIS and TimescaleDB hypertables.
Redis' own skills for your agent: data structures, connections, Search and vectors, semantic caching, clustering, security and monitoring.
Pinecone's official skills: build an index, search it with text, run document Q&A Assistants, use the pc CLI and n8n.
Gives every branch and PR its own preview database and live URL, so agents can run migrations and test without touching production.