Skip to content
borghei avatar

Database Designer

Schema analysis, index recommendations, and migration generation for PostgreSQL and MySQL schemas.

CCM score
67 of 100
skills.sh installs
181
GitHub stars
1.2K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers schema review for normalization, constraint, naming, and type problems, plus index tuning from real query patterns
  • Includes schema_analyzer.py, index_optimizer.py, and migration_generator.py, which output forward and rollback SQL with risk levels
  • Enforces expand-contract migrations via --zero-downtime for large tables, with HIGH-risk drops and type changes flagged for review
  • Designed for engineers reviewing existing DDL before a change; MongoDB and DynamoDB get selection guidance only

Install

$ npx -y skills add borghei/claude-skills --skill database-designer -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Database Designer

The agent analyses an existing relational schema for normalization, constraint, naming and type problems, recommends indexes for the queries that actually run, and generates forward and rollback migrations between two schema versions. To design a new schema from product requirements (ERDs, RLS, ORM models), use engineering/database-schema-designer instead.

When to Use

  • Reviewing a schema (DDL or JSON) before or after a change.
  • Choosing or pruning indexes for a known set of queries.
  • Turning a schema diff into a migration with rollback and validation queries, optionally zero-downtime (expand-contract).
  • Choosing between database engines for a workload (reference only).

Clarify First

Before designing or migrating, settle the inputs below. When one is missing or vague and would change the result, ask about it; when it wouldn't, use a sensible default and say which one you used.

Details

Repository
github.com/borghei/claude-skills
Categories
Databases, Code Review & Quality
First seen
Jun 3, 2026

Questions

What does the database-designer skill do?

The database-designer skill analyzes an existing SQL schema for normalization and constraint gaps, recommends indexes based on query patterns, and generates forward and rollback migrations between two schema versions. It works with PostgreSQL and MySQL schemas, while MongoDB and DynamoDB get only selection guidance in its references.

How do I install the database-designer skill?

Run npx -y skills add borghei/claude-skills --skill database-designer -y in your project. Once installed, the agent can analyze your DDL, tune indexes and generate migrations for your schema.

Where does database-designer fit among Databases skills?

It sits in the Databases category on Claude Marketplaces, alongside skills such as supabase-postgres-best-practices and the prisma skills. Unlike those, it focuses on reviewing an existing schema, choosing indexes from query patterns, and producing migrations with rollback steps.

What do I need to use database-designer?

You need your schema as DDL or JSON and the queries you want to optimize for, since index recommendations depend on those query patterns. The skill also expects you to state the engine, PostgreSQL or MySQL, because that sets the DDL dialect.

Can database-designer design a new schema from product requirements?

No, the skill is for reviewing and migrating existing relational schemas. Its own documentation points to a separate skill, engineering/database-schema-designer, for designing a new schema from product requirements.

More from borghei/claude-skills

All 81

Similar to Database Designer

More Databases