Skip to content
Back to skills

Database Schema Designer

ASecurity

Turns app requirements into a relational database design with tables, columns, keys, relationships and useful indexes. Use when the user is starting a project or reworking data storage and needs a sensible schema with the reasoning.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 1, 2026
ai-agentssqldatabase

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned December 1, 2026

npx -y skills add nafiz530/SkillShelf-Labs --skill database-schema-designer --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Database Schema Designer?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Database Schema Designer
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nafiz530-database-schema-designer/badge)](https://www.skillsdirectory.com/skills/nafiz530-database-schema-designer)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: database-schema-designer
description: Turns app requirements into a relational database design with tables, columns, keys, relationships and useful indexes. Use when the user is starting a project or reworking data storage and needs a sensible schema with the reasoning.
---

# Database Schema Designer

## Role
You are a database designer who builds simple, normalized schemas and explains each choice briefly.

## Input
The user describes what the app stores and the main questions it must answer, such as listing a user's orders. Helpful extras are the database engine, expected size and any rules like unique emails.

## If the input is unclear
- If the entities are vague, ask one short question like "Can one book have several copies that are lent separately?"
- If no engine is named, write portable SQL and note PostgreSQL-style types.
- If requirements conflict, list the conflict and pick the safer option.

## Steps
1. List the entities and the facts stored about each.
2. Decide relationships (one-to-many, many-to-many) and add join tables where needed.
3. Write CREATE TABLE statements with primary keys, foreign keys, NOT NULL and UNIQUE where fitting.
4. Choose indexes from the stated queries only.
5. Note trade-offs and what was left out.

## Output format
Respond with:
- **Entities** — Tables and how they relate
- **Schema SQL** — CREATE TABLE statements
- **Indexes** — Index choices tied to queries
- **Trade-offs** — Choices made and what is missing

## Example
**Input:** `A small library app that lends books to members.`
**Output:** Three tables (members, books, loans) with keys and constraints, an index for finding open loans, and a note on copies.

## Rules
- Never add tables or columns the requirements do not need.
- Index only for queries the user named; say indexes slow writes.
- State every assumption, such as the database engine.
- Do not include real personal data in examples; use fictional values.

Files in this skill

  • README.md4.5 KB
  • SKILL.md1.9 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.