From erd-designer
Edits database entity-relationship diagram (.erd) files via a bundled CLI. Use for adding/modifying tables, columns, relations, indexes, memos, or exporting DDL.
How this skill is triggered — by the user, by Claude, or both
Slash command
/erd-designer:erd-designerThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Edit `.erd` files directly with the bundled CLI. No MCP server, VSCode or running app is required.
Edit .erd files directly with the bundled CLI. No MCP server, VSCode or running app is required.
Requires Node.js 20+.
The CLI ships with this skill at scripts/erd-cli.cjs, relative to the directory containing
this SKILL.md. This skill is self-contained (Agent Skills format), so it works from any agent
that supports skills — e.g. Claude Code and GitHub Copilot CLI. In the examples below, $CLI
stands for the resolved path:
CLI=<directory of this SKILL.md>/scripts/erd-cli.cjs
node $CLI list-tools
node $CLI describe <tool-name>
.erd file:
node $CLI run <tool-name> --file <path/to/file.erd> --args '<json>'
The result is printed as JSON on stdout. Mutating tools save the file in place..erd file (e.g. after external changes):
node $CLI validate --file <path/to/file.erd>
.erd JSON by hand; always go through the CLI so referential integrity
(column/share/relation IDs) and the canvas layout stay consistent.documentId in --args; the CLI injects it from --file automatically.describe; do not dump all schemas at once..erd file is done in the ERD Designer app (it configures the target
database type). The CLI edits existing files.run add-table, then run add-columns-to-table with the
returned tableId.run list-tables, then run create-relation.run list-tables (summaries) or run find-table (full detail).run export-ddl.A .erd file is a single JSON document containing tableViewModels (tables + canvas
positions), columnModels / columnShareModels (columns; shares hold the type definition
and can be reused by multiple columns), relationViewModels, memos and database settings.
IDs cross-reference between these arrays, which is why manual edits are unsafe.
--file at the synced local path..erd file first,
edit it, then import it back.npx claudepluginhub kajitiluna/erd-designer --plugin erd-designerDesigns complete database schemas with tables, fields, indexes, ER diagrams for MySQL, PostgreSQL, SQL Server. Generates Markdown docs, SQL scripts, DrawDB JSON/DBML files.
Designs production-ready database schemas with tables, fields, indexes, ER diagrams, Markdown docs, SQL scripts, and DrawDB/DBML files for MySQL, PostgreSQL, SQL Server.
Documents database schemas with ERD diagrams, table definitions, indexes, constraints, and data dictionaries. Use when documenting schema or creating ERD diagrams.