# db-schema

> Turn plain English app descriptions into fully normalized SQL schemas and entity relationship documentation.

db-schema is a paid AI agent skill on Agensi by Kevin Cline, in Data & Databases. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $12 (one-time purchase)
- Creator: [Kevin Cline](https://www.agensi.io/creators/kevin-cline)
- Category: [Data & Databases](https://www.agensi.io/skills/data-databases)
- Version: 1.0
- Last updated: 2026-04-10
- Security: scan passed (2026-04-10); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/db-schema
- Tags: data-engineering, architecture, backend, database-design, postgresql, sql

## About this skill

### What it does

This skill transforms natural language requests into production-ready database architectures. It interprets high-level business requirements and automatically generates both the SQL DDL and comprehensive markdown documentation for your data layer.

### Problem it solves

Designing a normalized database from scratch is time-consuming and prone to manual errors, such as missing indexes on foreign keys, inconsistent naming conventions, or improper data types for currency. This skill automates the drudgery of schema design while enforcing industry best practices from the start.

### Supported Tools

- **PostgreSQL:** Default support with JSONB, BIGSERIAL, and automated updated_at triggers.
- **MySQL:** Optimized with UNSIGNED types and AUTO_INCREMENT syntax.
- **SQLite:** Lightweight syntax with CHECK constraints for enums.

### Why use this skill

Unlike generic AI prompts, this skill applies strict 3rd Normal Form (3NF) logic, ensures every table includes audit timestamps and soft-delete support, and handles complex many-to-many junction tables automatically. It doesn't just give you code; it produces a professional `SCHEMA.md` directory of your entities and relationships for your team.

## Known limitations

- Does not generate application-level ORM code.
- Limited to 3NF relational structures; not for NoSQL.
- No automated migration versioning (e.g., Alembic/Flyway).

## 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 db-schema skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### What specific outputs are included when I run this skill?

This skill generates production-ready SQL DDL for PostgreSQL, MySQL, and SQLite, plus a comprehensive Markdown relationship document (SCHEMA.md) and junction tables for complex relationships.

### Do I need to provide technical details, or can I use plain English descriptions?

No manual formatting is required; the skill is designed to interpret high-level business descriptions, such as 'I need a multi-tenant SaaS for an inventory system,' and convert them into 3rd Normal Form database structures.

### Does the generated schema follow industry best practices for database normalization?

Yes, by default the skill enforces data integrity standards including primary/foreign key indexing, audit timestamps (created_at/updated_at), soft-delete columns, and appropriate data types for currency and precise decimals.

### Is this skill compatible with my existing AI agent or low-code platform?

The skill is delivered as a standardized prompt manifest and configuration file that can be imported into most major LLM-based agent platforms that support multi-tool orchestration.

### Can I choose which SQL dialect is used for the output?

The skill supports PostgreSQL (including JSONB extensions), MySQL (including Unsigned/Auto-increment), and SQLite (including hardware-specific CHECK constraints).

### How are updates and new SQL dialect supports handled after purchase?

Purchasing this skill grants you permanent access to the current version; major updates or dialect expansions are typically delivered through the marketplace's versioning system at no additional cost.

---

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.
