database-design

Design database schemas with indexing and migration planning.

Updated Mar 24, 2026
One-click install
npx skills add https://github.com/Icebane84/Synarche_Workshop --skill database-design-icebane84
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: database-design
Source: https://github.com/Icebane84/Synarche_Workshop/tree/main/.agent/skills/infra/database-design
Command: npx skills add https://github.com/Icebane84/Synarche_Workshop --skill database-design-icebane84

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

It helps you design database schemas that perform well and stay maintainable by making smart decisions about normalization, keys, indexing, migrations, and the right database/ORM choices for your deployment context.

Core Features & Use Cases

  • Database selection guidance: Pick the best-fit database for your environment, latency needs, and features (e.g., serverless, edge, vector search) instead of defaulting to a single option.
  • Schema design foundations: Choose primary keys, timestamp conventions, relationship types, and referential actions (ON DELETE behavior) to model data correctly.
  • Performance-focused tuning: Apply indexing strategy and query-optimization practices (like avoiding N+1 and using EXPLAIN ANALYZE) to improve real workloads.

Quick Start

Ask the skill to design a schema for your app by telling it your entities, relationships, expected query patterns, and whether you want an edge/serverless database or a traditional hosted one.

Frequently Asked Questions about database-design

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I design a database schema for a new application?

Design a database schema by defining entities, relationships, primary keys, and timestamp conventions, then applying normalization principles to model data correctly. Provide your domain model and expected query patterns to generate a maintainable schema structure.

What's the best way to choose a database for a serverless or edge deployment?

Choosing a database for serverless or edge deployments requires evaluating latency needs, feature sets like vector search, and connectivity constraints rather than defaulting to a traditional hosted option. Match the database selection to your specific environment requirements.

How do I choose the right indexes to avoid slow query performance?

Choose the right indexes by analyzing expected query patterns and applying an indexing strategy that prevents N+1 queries and full table scans. Use EXPLAIN ANALYZE to validate query performance and avoid anti-patterns like SELECT * in production workloads.

How do I plan safe database migrations when refactoring a schema?

Plan safe database migrations by defining incremental migration steps that preserve existing data and avoid breaking changes. Structure referential actions like ON DELETE behavior carefully to maintain referential integrity throughout the refactoring process.

How do I select an ORM that fits my schema and deployment scenario?

Select an ORM by matching its capabilities to your database choice, schema design requirements, and specific deployment scenario like serverless or edge. Consider how the ORM handles relationship modeling, migrations, and query optimization to ensure compatibility.