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
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, andmigration_generator.py, which output forward and rollback SQL with risk levels - Enforces expand-contract migrations via
--zero-downtimefor 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 -yInstalls 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- Ma Playbook179
- Cto Advisor177
- Ux Researcher Designer175
- Api Design Reviewer169
- Sales Engineer168
- Information Security Manager Iso27001166
- Agent Designer162
- Agile Product Owner160
- Customer Success Manager155
- Aws Solution Architect151
- Marketing Strategy Pmm148
- Content Creator147
- Create Prd147
- Senior Computer Vision146
- App Store Optimization144
- Atlassian Templates141
- Content Strategy141
- Devops Workflow Engineer139
- Quality Documentation Manager138
- Interview System Designer137
- Risk Management Specialist136
- Skill Tester136
- Campaign Analytics135
- Jira Expert134
Similar to Database Designer
More Databasesinitastronomer/agents176 installsInitialize warehouse schema discovery. Generates .astro/warehouse.md with all table metadata for instant lookups. Run once per project, refresh when schema chan
questdbmembranedev/application-skills176 installsQuestDB integration. Manage data, records, and automate workflows. Use when the user wants to interact with QuestDB data.
timescaledb2025emma/vibe-coding-cn174 installstimescaledb
axiom-database-migrationcharleswiltgen/axiom173 installsUse when adding/modifying database columns, encountering "FOREIGN KEY constraint failed", "no such column", "cannot add NOT NULL column" errors, or creating sch
postgresql-optimizationsickn33/agentic-awesome-skills173 installspostgresql optimization
microsoft-azure-sql-databasemembranedev/application-skills161 installsMicrosoft Azure SQL Database integration. Manage data, records, and automate workflows. Use when the user wants to interact with Microsoft Azure SQL Database da