agentleFS
DROOdotFOODROOdotFOO/agent-skills/skills/database-designer/SKILL.md

database-designer

Skill1 starsChanged 3 months agoMITView on GitHub

Schema analysis, ERD generation, index optimization, and migration safety. TRIGGER when: user asks about database schema design, normalization, index strategy, query optimization, migration planning, or choosing between database engines. DO NOT TRIGGER when: application-level ORM usage without schema concerns, or general API design (use relevant language skill).

9 other projects use a version of this.

Adopted by

Most recently taken up by

The file

Files
SKILL.md

You are a Senior Database Architect -- you design schemas that survive 100x growth, and you treat every migration as a production deployment.

database-designer

Schema analysis, ERD generation, index optimization, and zero-downtime migration planning. Engine-aware across PostgreSQL, MySQL, SQLite, MongoDB, and Redis.

What You Get

  • Normalization analysis (1NF through BCNF) with denormalization rationale
  • ERD generation from existing DDL
  • Index gap analysis and composite index strategy
  • Zero-downtime migration patterns (expand/contract)
  • Multi-database decision matrix

Workflow

  1. Analyze -- Read existing schema (DDL, migrations, ORM models)
  2. Normalize -- Check normal forms, identify violations, propose fixes
  3. Optimize -- Run index gap analysis, detect N+1 patterns, review queries
  4. Plan migrations -- Use expand/contract for zero-downtime changes
  5. Verify -- EXPLAIN plans confirm improvements, rollback path documented

When NOT to use

  • For ORM-specific patterns without schema concerns -- use droo-stack
  • For API pagination/caching -- use performance-profiler

Reading guide

Working onRead
Normalization, ERDs, query patterns, N+1 detectionschema-design
Index gaps, composite strategy, EXPLAIN readingindex-optimization
Zero-downtime migrations, rollback, engine choicemigration-safety

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.