Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 74
  • 583 stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

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-designer

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install db-designer in Claude Code

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

A

No 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 →
hugging-face-datasetssickn33
94

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.

AAA Skill 50k
db-repairgarrytan
94

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.

AAA Skill 34k
alloydb-basicsgoogle
94

Manages clusters, instances, and backups for AlloyDB for PostgreSQL. Built for creating, configuring, and administering AlloyDB databases, not general PostgreSQL or Cloud SQL instances.

AAA Skill 26k
clickhouse-logs-queriessupabase
94

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.

AAA Skill 116k
fix-slow-queriespaperclipai
94

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.

AAA Skill 119k
prisma-8prisma
94

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.

AAA Skill 48k

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.

db-designer Install

Add to stack

Loading.