db-designer
Skill by miniidealab
Designs database schemas and SQL DDL from API specifications and scenario requirements. Built for projects that have API YAML files but no database design yet. Supports PostgreSQL, MySQL and SQLite.
Install db-designer
Built from the published package, never by AI.
git clone --depth 1 https://github.com/miniidealab/openlogos /tmp/openlogos && mkdir -p ~/.claude/skills && cp -r /tmp/openlogos/plugin/skills/db-designer ~/.claude/skills/db-designerRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/miniidealab/openlogos /tmp/openlogos && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/openlogos/plugin/skills/db-designer ~/.gemini/antigravity-cli/skills/db-designerAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
DB Designer derives database table structures from API YAML specifications and generates SQL DDL in the dialect set by tech_stack.database in logos-project.yaml. It supports PostgreSQL, MySQL and SQLite, and maps API field types to database types, such as storing monetary values as integer cents. Output goes to logos/resources/database/, either as one schema file or several files split by domain.
The skill also adds primary keys, audit fields, foreign keys with cascade rules, indexes with a rationale for each, and comments on every table and field. For PostgreSQL it designs Row-Level Security policies, while MySQL and SQLite rely on application-level permissions. It is meant for projects where scenarios exist but the database folder is empty, after the API design step is done.
Written from the project's SKILL.md and checked against it.
What it can do
- Derive tables from APIMaps API request and response structures to database table structures.
- Read database typeReads tech_stack.database from logos-project.yaml to choose the SQL dialect.
- Generate SQL DDLWrites DDL for PostgreSQL, MySQL or SQLite.
- Design table relationshipsSets up foreign keys and ON DELETE cascade, set null or restrict strategies.
- Design indexesAdds indexes for foreign keys and common queries, each with a stated rationale.
- Design security policiesCreates RLS policies on PostgreSQL, or notes application-level permissions for other databases.
- Add commentsAdds comments to every table and field using the method for each dialect.
What you need
- API YAML specifications in logos/resources/api/
- logos-project.yaml with tech_stack.database filled in
Try asking
- Design the database schema from my API specs in logos/resources/api/
- Generate PostgreSQL DDL for the users and projects endpoints
- Add indexes and RLS policies to my database schema
Good to know
- Requires API specs and tech_stack.database to be set before it runs.
- MySQL and SQLite do not support RLS, so permissions go to the application layer.
- SQLite uses a custom @comment convention because it has no COMMENT ON syntax.
- Monetary fields must be integers in cents, since DECIMAL and FLOAT are prohibited.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: plugin/skills/db-designer/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to db-designer
All alternatives →Creates, configures and manages datasets on the Hugging Face Hub, including SQL-based querying and transformation. Built for people who edit dataset content and metadata directly, alongside the HF MCP server.
Diagnoses and repairs gbrain's Postgres access when a command or MCP result shows a GBRAIN_DB_ACCESS marker, or when the operator reports the brain database is down. It runs the hardcoded gbrain db-repair ladder and verifies the result with a re-probe.
Manages clusters, instances, and backups for AlloyDB for PostgreSQL. Built for creating, configuring, and administering AlloyDB databases, not general PostgreSQL or Cloud SQL instances.
Writes, reviews and migrates Supabase logs queries against the ClickHouse logs table served by the logs.all.otel endpoint. Built for developers who write Logs Explorer SQL or convert older BigQuery logs queries.
Diagnoses and fixes slow Paperclip PostgreSQL queries using Cloud and Neon evidence, local benchmarks, regression tests, and a pull request with passing checks. Built for engineers working on Paperclip.
Guides AI assistants through Prisma 8 projects built on @prisma/orm-postgres, @prisma/orm-sqlite, or @prisma/orm-mongo. It covers data contracts, migrations, typed queries and runtime setup for developers on Prisma 8.
Compare with hugging-face-datasets, db-repair or alloydb-basics
db-designer: common questions
Which databases does it support?
The source names PostgreSQL, MySQL and SQLite. For other databases, it says to confirm with the user and pick the closest dialect.
Where is the generated schema saved?
It writes SQL files to logos/resources/database/, either as a single schema.sql or split by domain such as auth.sql and billing.sql.
Does it add row-level security?
Yes, for PostgreSQL it enables RLS and designs at least one policy per table. MySQL and SQLite use application-level permissions instead.
How do I install db-designer?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is db-designer free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is db-designer safe to use?
It scores 74 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to db-designer?
Similar skills: hugging-face-datasets, db-repair, alloydb-basics, clickhouse-logs-queries.
