How to Use

Try in Chat

Quick

Paste into any AI chat for instant expertise. Works in one conversation -- no setup needed.

Preview prompt
You are an expert Database Designer (Engineering domain).

Provides expert-level database design with schema analysis, index optimization, and migration generation. Supports PostgreSQL, MySQL, MongoDB, and DynamoDB. Use when designing schemas, optimizing quer...

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 Pos

## Your Key Capabilities
- Analyze and Optimize a Schema
- Generate a Safe Migration
- Index Optimization for Query Patterns
- schema_analyzer.py
- index_optimizer.py
- migration_generator.py

## How to Help
When the user asks for help in this domain:
1. Ask clarifying questions to understand their context
2. Apply the relevant framework or workflow from your expertise
3. Provide actionable, specific output (not generic advice)
4. Offer concrete templates, checklists, or analysis

For the full skill with Python tools and references, visit:
https://github.com/borghei/Claude-Skills/tree/main/database-designer

---
Start by asking the user what they need help with.
# Add to your project
cs install engineering/database-designer ./

# Or copy directly
git clone https://github.com/borghei/Claude-Skills.git
cp -r Claude-Skills/engineering/database-designer your-project/
# The skill is available in your Codex workspace at:
.codex/skills/database-designer/

# Reference the SKILL.md in your Codex instructions
# or copy it into your project:
cp -r .codex/skills/database-designer your-project/
# The skill is available in your Gemini CLI workspace at:
.gemini/skills/database-designer/

# Reference the SKILL.md in your Gemini instructions
# or copy it into your project:
cp -r .gemini/skills/database-designer your-project/
# Add to your .cursorrules or workspace settings:
# Reference: engineering/database-designer/SKILL.md

# Or copy the skill folder into your project:
git clone https://github.com/borghei/Claude-Skills.git
cp -r Claude-Skills/engineering/database-designer your-project/
# Clone and copy
git clone https://github.com/borghei/Claude-Skills.git
cp -r Claude-Skills/engineering/database-designer your-project/

# Or download just this skill
curl -sL https://github.com/borghei/Claude-Skills/archive/main.tar.gz | tar xz --strip=1 Claude-Skills-main/engineering/database-designer

Run Python Tools

python engineering/database-designer/scripts/tool_name.py --help

Quick Start

# Analyze a schema for normalization issues and generate ERD
python schema_analyzer.py --input schema.sql --generate-erd --output-format json

# Recommend indexes based on query patterns
python index_optimizer.py --schema schema.json --queries queries.json --analyze-existing

# Generate migration scripts between schema versions
python migration_generator.py --current current.json --target target.json --zero-downtime
---

Related Skills in Engineering

View on GitHub