Skip to main content
skill

database-design · davila7 — Claude Code skill: what it does, how to install

This skill guides Claude Code through database and ORM selection, schema design, and query tuning. It stops the model from blindly picking PostgreSQL for every project.

Install into Claude Code · claude-code-templates All methods and platforms ↓
npx claude-code-templates@latest --skill development/database-design
Open on GitHub

What database-design does

The skill provides architectural rules and reference guides for data modeling. Instead of pasting generic SQL templates, the agent evaluates project requirements, asks clarifying questions, and picks the right engine. It will suggest SQLite for small tools rather than defaulting to PostgreSQL.

Its documentation is split into focused files: database evaluation across PostgreSQL, Neon, Turso, and SQLite (database-selection.md), ORM comparisons for Drizzle, Prisma, and Kysely (orm-selection.md), schema normalization (schema-design.md), indexing strategies (indexing.md), safe migrations (migrations.md), and query optimization with EXPLAIN ANALYZE (optimization.md). The assistant only inspects the file that answers the immediate question.

The checklist stops bad habits like relying on SELECT * in production code or dumping structured entities into JSON columns. The agent will not assemble tables until it confirms the deployment setup and table relationships.

What it helps with

  • Pick an optimal database engine between SQLite, PostgreSQL, Neon, and Turso
  • Compare ORM and query builder options such as Drizzle, Prisma, or Kysely
  • Design normalized database schemas, primary keys, and relations
  • Plan index configurations and eliminate N+1 query bottlenecks
  • Prepare safe migration steps for serverless database environments

Example prompts for the agent

  • Help me design a database schema for an e-commerce backend and suggest composite indexes.
  • Which stack works better for a serverless API: Turso with Drizzle or PostgreSQL with Prisma?
  • Audit my current queries for N+1 issues and explain the execution plan.

How to install database-design

1claude-code-templates

npx claude-code-templates@latest --skill development/database-design

2Skills CLI (Vercel)

npx skills add davila7/claude-code-templates --skill database-design -a claude-code

3Manually: put the files in place

~/.claude/skills/database-design/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/database-design/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about database-design

How to install database-design in Claude Code?

Run npx claude-code-templates@latest --skill development/database-design in your terminal.

What does the database-design skill do?

It equips Claude Code with decision frameworks for database architecture, schema normalization, indexing, and migration planning. It enforces context-aware technical choices instead of repeated SQL defaults.

Which bad practices does this skill prevent?

It restricts the agent from using SELECT * queries in production, storing structured data inside raw JSON fields, and ignoring N+1 query issues. It also prevents picking PostgreSQL when a lighter engine like SQLite fits better.

Similar skills

All skills for Data and databases →

database-design by other authors comes first.

database-design MoizIbnYousaf A skill for schema design, migrations and query optimization on PostgreSQL, MySQL and NoSQL. Useful whenever the agent writes SQL. CX Codex +1 604installs database-design spencerpauly Designs relational database schemas, foreign keys, indexes, and constraints from raw requirements, with output tailored for SQL, Prisma, or Drizzle. CX Codex +1 462installs xlsx official anthropics Creates, reads, edits, and converts spreadsheet files. Use it when the requested deliverable is an Excel workbook or another tabular file. 187,223installs google-agents-cli-observability official Google This skill guides you through tracing and monitoring AI agents, including ADK agents. Use it when you need to inspect agent execution or monitor a deployed agent. CX Codex +1 511,300installs caveman-evidence-review JuliusBrussee A read-only skill reviews Caveman Cloud evidence on LLM spend, traces, and routing. Use it to see where a project’s model budget goes. CX Codex +1 104,500installs migration JuliusBrussee Enforces reversible, compatibility-safe transitions for schema, data, and API updates. Useful whenever data loss or rollout downtime is unacceptable. CX Codex +1 103,900installs performance-optimization addyosmani An agent skill that measures before it changes code: Core Web Vitals budgets, N+1 queries, missing indexes and slow endpoints. CX Codex +1 65,200installs supabase official supabase Guides the agent through database configuration and strict RLS policies in Supabase. CX Codex GP ChatGPT 8installs

From the same set495

The whole set →

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor