Agent skill · Databases

database-designer

Use when the user asks to design database schemas, plan data migrations, optimize queries, choose between SQL and NoSQL, or model data relationships.

Alireza Rezvani23,369★ · +428/wk · 1 repos on radarProfile →
claude-codecodexcursorships scriptsMIT
Install
npx skills add alirezarezvani/claude-skills --skill database-designer --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 15
SKILL.md size: 12 KB
Bundled scripts: yes
Path: engineering/skills/database-designer/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 23,791 · +422 this week
Language: Python
Read our review of the source →

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Database Designer - POWERFUL Tier Skill ## Overview A comprehensive database design skill that provides expert-level analysis, optimization, and migration capabilities for modern database systems. This skill combines theoretical principles with practical tools to help architects and developers create scalable, performant, and maintainable database schemas. ## Core Competencies ### Schema Design & Analysis - **Normalization Analysis**: Automated detection of normalization levels (1NF through BCNF) - **Denormalization Strategy**: Smart recommendations for performance optimization - **Data Type Optimization**: Identification of inappropriate types and size issues - **Constraint Analysis**: Missing foreign keys, unique constraints, and null checks - **Naming Convention Validation**: Consistent table and column naming patterns - **ERD Generation**: Automatic Mermaid diagram creation from DDL ### Index Optimization - **Index Gap Analysis**: Identification of missing indexes on foreign keys and query patterns - **Composite Index Strategy**: Optimal column ordering for multi-column indexes - **Index Redundancy Detection**: Elimination of overlapping and unused indexes - **Performance Imp

What's inside
Steps it walks through
  1. Overview
  2. Core Competencies
  3. Schema Design & Analysis
  4. Index Optimization
  5. Migration Management
  6. Tool Workflow (run these — do not analyze schemas by hand)
  7. 1. Analyze the schema
  8. 2. Optimize indexes against real query patterns
  9. 3. Generate the migration
  10. 4. Verification loop
  11. Database Design Principles
  12. Best Practices
  13. Schema Design
  14. Performance Optimization
Ships with 14 files
  • 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-design-reference.md
  • references/database_selection_decision_tree.md
  • references/index_strategy_patterns.md
  • references/normalization_guide.md
  • schema_analyzer.py
Commands it runs
python3 schema_analyzer.py --input schema.sql --generate-erd --output-format json -o analysis.json
python3 index_optimizer.py --schema assets/sample_schema.json --queries assets/sample_query_patterns.json --analyze-existing --format json -o indexes.json
python3 migration_generator.py --current current_schema.json --target target_schema.json --zero-downtime --format sql -o migration.sql
More from claude-skills
All skills →
About this skill
What does the database-designer skill do?

Use when the user asks to design database schemas, plan data migrations, optimize queries, choose between SQL and NoSQL, or model data relationships.

How do I install it?

Run `npx skills add alirezarezvani/claude-skills --skill database-designer --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From alirezarezvani/claude-skills, a repository with 23,791 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going