# Database Design

> Design MySQL and PostgreSQL databases from scratch: planning process, ERD, 3NF normalization, data types, primary key, indexing, relationships, performance anti-patterns, transactions & migrations, security & backup.

Database Design is a free AI agent skill on Agensi by Maulana Ruhaedi Putra, in Data & Databases. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Maulana Ruhaedi Putra](https://www.agensi.io/creators/maulana-ruhaedi-putra)
- Category: [Data & Databases](https://www.agensi.io/skills/data-databases)
- Version: 1.0
- Last updated: 2026-11-30
- Security: scan passed (2026-11-30); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/database-design
- Tags: database, postgresql, mysql, sql, llm-ops

## About this skill

Design MySQL and PostgreSQL databases from scratch: planning process, ERD, 3NF normalization, data types, primary key, indexing, relationships, performance anti-patterns, transactions & migrations, security & backup.

## Known limitations

Does not support MySQL 8.0 (EOL). SQL is validated via static analysis but requires live execution on PG 18/19 or MySQL 8.4 to verify runtime behavior.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Database Design skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does this skill prevent technical debt in my database architecture?

This skill automates the creation of production-grade schemas, ensuring strict 3NF normalization, optimized indexing, and migration scripts that avoid common pitfalls like N+1 query issues or deadlock risks.

### Which specific database engines and versions are supported?

It is optimized for PostgreSQL (versions 17-19) and MySQL (versions 8.4 and 9.7 LTS), generating DDL and migrations compatible with tools like Flyway, Liquibase, and DBML.

### What makes this skill more reliable than a standard LLM prompt for database design?

Unlike generic prompts, this skill enforces platform-specific constraints such as PostgreSQL's 63-character identifier limits and mandates explicit foreign key actions (ON DELETE) and audit columns for every table.

### Can I use this skill to optimize an existing database instead of starting from scratch?

Yes, the skill includes a specific workflow for auditing existing schemas to identify anti-patterns, missing indexes, and performance bottlenecks, providing actionable refactoring paths.

### What is included in the purchase of the Database Design skill?

You receive the full agent skill logic designed for integration with your AI agent, including the specialized workflows for requirements mapping, relationship modeling, and security hardening.

### Why doesn't this skill support MySQL 8.0?

Due to the End-of-Life (EOL) status of MySQL 8.0, this skill exclusively targets modern LTS versions (8.4/9.7) to ensure your schema remains compatible with the latest security and performance features.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
