Agent skill

Database Designer

by borghei in borghei/Claude-Skills

Database design with schema analysis, index optimization, and migration generation for PostgreSQL, MySQL, MongoDB, and DynamoDB.

MITAuto-check passedDatabases

Install Database Designer

skills CLI
$ npx skills add borghei/Claude-Skills --skill database-designer -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install borghei/Claude-Skills database-designer --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/borghei/Claude-Skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/engineering/database-designer .claude/skills/database-designer && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
database-designer
GitHub stars
874
Token cost
~1.6k tokens
SKILL.md length
660 words
Files
16 (incl. references, assets)
Skills in repo
364
Repo updated
First seen
Licence
MIT

At a glance

Database design with schema analysis, index optimization, and migration generation for PostgreSQL, MySQL, MongoDB, and DynamoDB.

  • Designing schemas
  • SKILL.md covers Core Capabilities, When to Use, Clarify First and References, plus 2 more sections
  • Runs Python scripts from its folder
  • Optimizing queries

What it does

Database Designer is an agent skill from borghei/Claude-Skills. Database design with schema analysis, index optimization, and migration generation for PostgreSQL, MySQL, MongoDB, and DynamoDB. Use when designing schemas, optimizing queries, planning migrations, or analyzing database performance.

Its SKILL.md is about 1.6k tokens, which your agent loads only when the skill is triggered. The skill folder holds 18 other files, including reference files and assets (for example `README.md`, `assets/sample_query_patterns.json` and `assets/sample_schema.json`).

It sits in Databases, covering NoSQL databases and Database schema design. It works with MySQL, PostgreSQL, Amazon DynamoDB and MongoDB. The repository describes itself as: 385 AI skills, 77 expert agents, and 900 stdlib Python tools for every team: engineering, PM, marketing, C-level, compliance, business ops, research, and a LinkedIn toolkit… The licence is MIT.

When your agent uses it

  • Designing schemas
  • Optimizing queries
  • Planning migrations
  • Analyzing database performance

Example prompts

  • “/database-designer”

Requirements

  • Python 3

What it can do on your machine

Read from SKILL.md and the folder at commit c9a1487. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships script files (Python), which the agent can run.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Database Designer loads about 1.6k tokens when it runs, and up to ~14k if it reads all its reference files. Until then it costs about 63 tokens; SKILL.md has 660 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~63
When it runs · the whole SKILL.md, loaded when a task matches
~1.6k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~14k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from borghei/Claude-Skills at commit c9a1487, republished under its MIT licence (© borghei). 660 words, ~1,625 tokens.

Download SKILL.mdSave it as .claude/skills/database-designer/SKILL.md (or your agent's skills folder). This skill also uses 15 other files; get the full folder from GitHub.
name
database-designer
description
Database design with schema analysis, index optimization, and migration generation for PostgreSQL, MySQL, MongoDB, and DynamoDB. Use when designing schemas, optimizing queries, planning migrations, or analyzing database performance.
license
MIT + Commons Clause
metadata.version
1.1.0
metadata.author
borghei
metadata.category
engineering
metadata.domain
databases
metadata.tier
POWERFUL
metadata.updated
2026-06-17

Database Designer

The agent analyzes SQL schemas for normalization compliance, recommends optimal indexes based on query patterns, and generates safe migration scripts with rollback procedures. It produces Mermaid ERDs, detects redundant indexes, and implements zero-downtime expand-contract migration patterns for PostgreSQL and MySQL.

Core Capabilities

  • Schema analysis — detect normalization violations (1NF-BCNF), missing constraints, naming issues, and data-type problems from DDL or JSON.
  • ERD generation — produce valid Mermaid entity-relationship diagrams from declared relationships.
  • Index optimization — recommend indexes from query patterns, order composite columns by selectivity, detect redundant/overlapping indexes, and find covering-index opportunities.
  • Migration generation — forward + rollback SQL between schema versions, with validation queries.
  • Zero-downtime migrations — expand-contract pattern with safe backfill for tables with 10M+ rows.
  • Database selection guidance — match workload requirements to PostgreSQL, MySQL, MongoDB, or DynamoDB.

When to Use

  • Designing or reviewing a new schema for normalization and constraints.
  • Optimizing queries by recommending or pruning indexes.
  • Planning a safe (optionally zero-downtime) migration between schema versions.
  • Analyzing database performance and relationship structure (ERD).
  • Choosing the right database technology for a workload.

Clarify First

Before designing or migrating, confirm these inputs. If any is unknown or vague, ASK — do not assume:

  • Task — schema analysis/ERD, index optimization, or migration generation (selects schema_analyzer.py vs index_optimizer.py vs migration_generator.py)
  • Engine — PostgreSQL, MySQL, MongoDB, or DynamoDB (drives the DDL dialect and selection guidance)
  • Schema input & query patterns — the DDL/JSON schema and the queries to optimize for (the input the tools analyze; index recommendations depend on the query patterns)

Stop rule: ask only the 2-3 that most change the output. If the user says "just draft it," proceed and list your assumptions at the top of the artifact.

References

Load the reference that matches the task — keep this file lean and pull detail on demand:

  • references/workflows-and-tools.md — the Quick Start, three core workflows (analyze/optimize, safe migration, index optimization), and the full CLI reference (flags, usage, output formats) for schema_analyzer.py, index_optimizer.py, and migration_generator.py. Read when running the tools end-to-end.
  • references/patterns-and-troubleshooting.md — index-type selection table, anti-patterns, the troubleshooting table for tool output, and the success-criteria quality bar. Read when picking an index type, avoiding mistakes, debugging output, or checking your work.
  • references/database_selection_decision_tree.md — systematic database-technology selection based on requirements, data patterns, and operational constraints. Read when choosing between SQL and NoSQL engines.
  • references/index_strategy_patterns.md — proven patterns for index design, optimization strategies, and pitfalls to avoid. Read when designing an indexing strategy in depth.
  • references/normalization_guide.md — normal forms (1NF-BCNF), decomposition to eliminate anomalies, and integrity trade-offs. Read when normalizing or deliberately denormalizing a schema.
Show full SKILL.md (253 more words)Show less

Scope & Limitations

Covers:

  • Schema design analysis for SQL databases (PostgreSQL, MySQL) including normalization, constraints, naming, and data types
  • Index optimization with selectivity estimation, composite index ordering, covering indexes, and redundancy detection
  • Migration generation with forward/rollback scripts, zero-downtime patterns, and validation queries
  • ERD generation in Mermaid format from DDL or JSON schema definitions

Does NOT cover:

  • Runtime query performance monitoring or live database profiling (see performance-profiler skill)
  • NoSQL-specific schema design for MongoDB, DynamoDB, or Cassandra (conceptual guidance only in the reference sections)
  • Database administration tasks such as backup/restore, replication setup, or user/role management
  • Application-level ORM configuration, connection pool tuning, or driver-specific optimizations (see database-schema-designer for ORM-adjacent patterns)

Integration Points

SkillIntegrationData Flow
migration-architectMigration strategy and execution planning for large-scale schema changesDatabase Designer generates migration SQL; Migration Architect orchestrates multi-service deployment order and rollback coordination
database-schema-designerComplementary schema design with focus on application-layer patternsDatabase Designer provides normalization analysis; Schema Designer applies ORM mapping and application modeling conventions
performance-profilerRuntime validation of index and schema optimization recommendationsDatabase Designer outputs recommended indexes; Performance Profiler measures actual query plan improvements via EXPLAIN ANALYZE
api-design-reviewerAlignment between database schema and API resource contractsDatabase Designer defines table structures; API Design Reviewer validates that endpoint schemas match underlying data models
ci-cd-pipeline-builderAutomated migration execution in deployment pipelinesDatabase Designer generates migration scripts; CI/CD Pipeline Builder integrates them into deployment stages with validation gates
observability-designerDatabase performance monitoring and alerting post-optimizationDatabase Designer identifies query patterns; Observability Designer configures slow query alerts and index usage dashboards

© borghei, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 15 other files (references, assets) in engineering/database-designer of borghei/Claude-Skills.

  • SKILL.md
  • README.md
  • assets/sample_query_patterns.json
  • assets/sample_schema.json
  • assets/sample_schema.sql
  • expected_outputs/index_optimization_sample.txt
  • expected_outputs/migration_sample.txt
  • expected_outputs/schema_analysis_sample.txt
  • index_optimizer.py
  • migration_generator.py
  • references/database_selection_decision_tree.md
  • references/index_strategy_patterns.md
  • references/normalization_guide.md
  • references/patterns-and-troubleshooting.md
  • references/workflows-and-tools.md
  • schema_analyzer.py

Open the folder on GitHubat commit c9a1487

Compare with similar skills

Database Designer next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Database Designer compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Database Designer this skillborghei/Claude-Skills874—~1.6kAutomated safety check: PassMIT
Database Expertcin12211/orca-q223—~2.8kAutomated safety check: PassMIT
DB SculptorEliasOulkadi/shokunin114—~3.1kAutomated safety check: NotesMIT
Database Schema DesignerOneWave-AI/claude-skills322—~1.6kAutomated safety check: PassMIT
Prisma Database Setupcurvenote/curvenote1693 repos~1.4kAutomated safety check: PassMIT
Database FundamentalsDanielPodolsky/ownyourcode2901 repos~1.6kAutomated safety check: PassMIT

Similar skills

  • Database Expert

    cin12211/orca-q

    Database performance optimization, schema design, query analysis, and connection management across PostgreSQL, MySQL, MongoDB, and SQLite with ORM integration.

    223 GitHub stars~2.8k tokensUpdated 16 days ago
    DatabasesAuto-check passed
  • DB Sculptor

    EliasOulkadi/shokunin

    Design database schemas with Prisma/Drizzle, PostgreSQL index strategy (B-tree, GIN, GiST, BRIN, Hash), query optimization (EXPLAIN ANALYZE), migration safety (expand/contract, zero-downtime), and…

    114 GitHub stars~3.1k tokensUpdated 2 days ago
    DatabasesAuto-check: notes
  • Database Schema Designer

    OneWave-AI/claude-skills

    Designs relational and document database schemas from requirements or an existing app - tables and collections, keys, relationships, constraints, indexes driven by real query patterns, ERDs, and…

    322 GitHub stars~1.6k tokensUpdated 5 days ago
    DatabasesAuto-check passed
  • Prisma Database Setup

    curvenote/curvenote

    Guides for configuring Prisma with different database providers (PostgreSQL, MySQL, SQLite, MongoDB, etc.).

    169 GitHub starsUsed in 3 repos~1.4k tokens
    DatabasesAuto-check passed
  • Database Fundamentals

    DanielPodolsky/ownyourcode

    Reviews schema design, SQL queries, ORM patterns. An agent skill from DanielPodolsky/ownyourcode.

    290 GitHub starsUsed in 1 repo~1.6k tokens
    DatabasesAuto-check passed
  • Database guidance for PostgreSQL, MongoDB, Redis and Oracle plus Neon, Supabase and Firestore: schema design, indexing, query tuning and cloud database choice.

    1.2k GitHub stars~2.8k tokensUpdated today
    DatabasesAuto-check passed

More from borghei/Claude-Skills

All 364 skills in this repo
  • Agents In The Team

    borghei/Claude-Skills

    Run delivery when AI coding and ops agents take tickets. An agent skill from borghei/Claude-Skills.

    874 GitHub stars~4.2k tokensUpdated today
    Auto-check passed
  • AI Content Disclosure

    borghei/Claude-Skills

    Check AI-generated marketing content and reviews for required disclosures under the EU AI Act, FTC rules and platform AI-label policies.

    874 GitHub stars~3.4k tokensUpdated today
    Auto-check passed
  • AI Prototyping

    borghei/Claude-Skills

    Idea to AI-generated prototype to customer validation to engineering handoff.

    874 GitHub stars~3.6k tokensUpdated today
    Auto-check passed
  • Analytics Engineer

    borghei/Claude-Skills

    Analytics engineering across data modeling, dbt, transformation, and semantic layers.

    874 GitHub stars~3.4k tokensUpdated today
    Auto-check passed
  • Ansoff Matrix

    borghei/Claude-Skills

    Ansoff Matrix — 4-quadrant framework for growth options: market penetration, market/product development, and diversification.

    874 GitHub stars~2.2k tokensUpdated today
    Auto-check passed
  • Brainstorm Okrs

    borghei/Claude-Skills

    OKR brainstorming and validation using the Radical Focus framework — outcome objectives, measurable key results, counter-metrics.

    874 GitHub stars~1.4k tokensUpdated today
    Auto-check passed

Categories

Questions about Database Designer

What does Database Designer do?

Database design with schema analysis, index optimization, and migration generation for PostgreSQL, MySQL, MongoDB, and DynamoDB. Database Designer is an agent skill from borghei/Claude-Skills. Database design with schema analysis, index optimization, and migration generation for PostgreSQL, MySQL, MongoDB, and DynamoDB.

When should I use Database Designer?

Database Designer fits situations like: designing schemas; optimizing queries; planning migrations; analyzing database performance.

How do I install Database Designer in Claude Code?

Run `npx skills add borghei/Claude-Skills --skill database-designer -a claude-code`. Or copy the skill folder (engineering/database-designer in borghei/Claude-Skills) into .claude/skills/database-designer in your project. Claude Code loads it when a task matches its description.

How do I install Database Designer in Codex?

Run `npx skills add borghei/Claude-Skills --skill database-designer -a codex`. Or copy the skill folder (engineering/database-designer in borghei/Claude-Skills) into .agents/skills/database-designer in your project. Codex loads it when a task matches its description.

Can I use Database Designer in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add borghei/Claude-Skills --skill database-designer -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/database-designer, .gemini/skills/database-designer, .github/skills/database-designer and .opencode/skills/database-designer in your project.

What does Database Designer need to run?

Going by SKILL.md and its folder, Database Designer needs Python for the scripts in its folder. Our summary lists: Python 3.

Does Database Designer access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Database Designer safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Database Designer use?

Database Designer is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Database Designer use?

About 1.6k tokens (SKILL.md is roughly 6.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 13k tokens, read only when the agent opens those files.

What are the alternatives to Database Designer?

Skills that share tags, products or a category with Database Designer: Database Expert (cin12211/orca-q, 223 stars), DB Sculptor (EliasOulkadi/shokunin, 114 stars), Database Schema Designer (OneWave-AI/claude-skills, 322 stars) and Prisma Database Setup (curvenote/curvenote, 169 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Database Designer?

borghei (a GitHub user) maintains it in borghei/Claude-Skills, which has 874 GitHub stars. The repository holds 364 skills in this directory. The repository was last updated on October 7, 2026.

Source: borghei/Claude-Skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.