borghei avatar

Database Designer

This handles schema normalization analysis, index optimization based on query patterns, and migration script generation with rollback procedures for PostgreSQL and MySQL. You get Mermaid ERDs, composite index recommendations ordered by selectivity, and expand-contract patterns for zero-downtime migrations on large tables. The workflows are solid: feed it DDL or JSON schemas, run the analyzers, get actionable output. It catches the usual problems like missing foreign keys and over-indexing, plus generates validation queries for every migration step. The scope is clear about what it won't do (no live profiling, no NoSQL-specific design), which saves time. If you're designing schemas or planning migrations without locking production tables, this covers the mechanics well.

skills.sh installs
170
GitHub stars
1.1K
last updated
Aug 21, 2026

Install

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

Installs into .claude/skills of the current project.

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.

Sponsors

Details

Repository
github.com/borghei/claude-skills
Categories
Backend & APIs, Debugging, Productivity & Planning, Marketing & SEO, Design & UI/UX, Databases
First seen
Jun 3, 2026

More from borghei/claude-skills

All 82
1davila7 avatarfastmcp-serverdavila7/claude-code-templatesComplete guide for building MCP servers with FastMCP 3.0 - tools, resources, authentication, providers, middleware, and deployment. Use when creating Python MCP154skills.sh installs
2webmaxru avatarenonic-api-referencewebmaxru/enonic-agent-skillsEnonic XP server-side JavaScript/TypeScript API reference for all /lib/xp/* libraries. Provides function signatures, parameters, return types, and usage example141skills.sh installs
3loops-so avatarapiloops-so/skillsUse this skill whenever the user wants to integrate Loops from application code, backend services, webhook handlers, or server-side automation. This includes th137skills.sh installs
4andrelandgraf avatarusing-drizzle-queriesandrelandgraf/fullstackrecipesWrite type-safe database queries with Drizzle ORM. Covers select, insert, update, delete, relational queries, and adding new tables.135skills.sh installs
5modu-ai avatarmoai-domain-backendmodu-ai/moai-adkBackend development specialist covering API design, database integration, microservices architecture, and modern backend patterns. Use when designing APIs, impl133skills.sh installs
6aniketpanjwani avatarpayload-v3-endpointsaniketpanjwani/payload-plugin-email-newsletterProvides correct Payload CMS v3 endpoint patterns and logger API usage. Use when writing or fixing REST API endpoints, custom handlers, or when encountering Typ0skills.sh installs