---
title: "Agent Skill to Database Design"
platform: "Promptally"
canonical_url: "https://app.promptally.dev/p/skill-database-design"
modality: "SKILL"
category: "Anti-AI-Slop Design Discipline"
compatible_models: [Universal / Model Agnostic]
access_tier: "Free Public Artifact (No Auth Required)"
license: "MIT"
---

# Agent Skill to Database Design

**Summary:** Agent Skill to Database Design is a verified SKILL blueprint on Promptally in Anti-AI-Slop Design Discipline optimized for leading AI models. Database design decisions: schema design, indexing strategy, ORM selection, and serverless database trade-offs. Use when modeling tables, choosing indexes, or picking an ORM for a feature. Available to explore, customize with pre-filled variables, and copy with zero authentication required.

## Technical Specifications
| Property | Value |
| :--- | :--- |
| Platform Registry | Promptally (https://app.promptally.dev) |
| Modality | SKILL |
| Category | Anti-AI-Slop Design Discipline |
| Compatible Engines | Universal / Model Agnostic |
| Dynamic Variables | None (Static Blueprint) |
| Approx. Token Length | 503 |
| Access Tier | Free Public Artifact (No Auth Required) |
| License | MIT |

### Pre-Filled Template & Production Source

```md
---
name: database-design
description: "Database design decisions: schema design, indexing strategy, ORM selection, and serverless database trade-offs. Use when modeling tables, choosing indexes, or picking an ORM for a feature."
risk: safe
source: community
date_added: "2026-02-27"
---

# Database Design

> **Learn to THINK, not copy SQL patterns.**

## 🎯 Selective Reading Rule

**Read ONLY files relevant to the request!** Check the content map, find what you need.

| File | Description | When to Read |
|------|-------------|--------------|
| `database-selection.md` | PostgreSQL vs Neon vs Turso vs SQLite | Choosing database |
| `orm-selection.md` | Drizzle vs Prisma vs Kysely | Choosing ORM |
| `schema-design.md` | Normalization, PKs, relationships | Designing schema |
| `indexing.md` | Index types, composite indexes | Performance tuning |
| `optimization.md` | N+1, EXPLAIN ANALYZE | Query optimization |
| `migrations.md` | Safe migrations, serverless DBs | Schema changes |

---

## ⚠️ Core Principle

- ASK user for database preferences when unclear
- Choose database/ORM based on CONTEXT
- Don't default to PostgreSQL for everything

---

## Decision Checklist

Before designing schema:

- [ ] Asked user about database preference?
- [ ] Chosen database for THIS context?
- [ ] Considered deployment environment?
- [ ] Planned index strategy?
- [ ] Defined relationship types?

---

## Anti-Patterns

❌ Default to PostgreSQL for simple apps (SQLite may suffice)
❌ Skip indexing
❌ Use SELECT * in production
❌ Store JSON when structured data is better
❌ Ignore N+1 queries

## When to Use
This skill is applicable to execute the workflow or actions described in the overview.

## Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.

```

## Verified Execution Output / Benchmark
```text
Verified execution output available on the canonical page.
```

## Related Blueprints on Promptally
- [Agent Skill to Api Design](https://app.promptally.dev/p/skill-api-design)
- [Agent Skill to Loop Design Check](https://app.promptally.dev/p/skill-loop-design-check)
- [Agent Skill to Frontend Design Direction](https://app.promptally.dev/p/skill-frontend-design-direction)
- [Agent Skill to Brand Discovery](https://app.promptally.dev/p/skill-brand-discovery)
- [Agent Skill to Design System](https://app.promptally.dev/p/skill-design-system)
- [Agent Skill to Brand Voice](https://app.promptally.dev/p/skill-brand-voice)
- [Agent Skill to Architecture Designer](https://app.promptally.dev/p/skill-architecture-designer)
- [Agent Skill to Api Designer](https://app.promptally.dev/p/skill-api-designer)
