Skip to main content
subagent

database-architect — Claude Code subagent: schema design and DB choice

A subagent for schema design, database selection and migration planning. Reach for it when the question is how data should be stored, not how to write a query.

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

What database-architect does

database-architect runs on the sonnet model inside Claude and can call Read, Write, Edit, Bash, Glob and Grep. On invocation it hunts through the repository for migration files and ORM definitions — Prisma, SQLAlchemy, ActiveRecord — then works out the access patterns: read/write mix, consistency needs, data volume, latency targets. The request gets sorted into one of four buckets: greenfield design, schema evolution, technology selection, or restructuring for performance.

What comes back is deliverables rather than opinions. DDL with constraints and indexes, migration scripts that include rollback, written rationale for a database choice, architecture diagrams. The framework behind it covers domain-driven design, normalization, sharding, CQRS, event sourcing and the database-per-service pattern.

The agent description draws its own boundary: PostgreSQL tuning belongs to postgres-pro, Neon-specific work to neon-database-architect. Bring it a question about index behaviour on a live instance and you have picked the wrong agent.

What it helps with

  • design a schema from scratch for a multi-tenant app
  • pick between relational, document and vector stores for known access patterns
  • split a monolithic database into per-service databases
  • write a migration with rollback and consistency checkpoints
  • align table structure with business domains

Example prompts for the agent

  • Design the database schema for a multi-tenant project management app: projects, tasks, comments, attachments, user permissions
  • Help me choose a storage stack for a recommendation engine: behaviour events, ML feature queries, results under 100ms
  • Plan splitting a MySQL monolith into five service databases with a cutover that avoids downtime

How to install database-architect

1claude-code-templates

npx claude-code-templates@latest --agent database/database-architect

2Manually: put the files in place

.claude/agents/database-architect.md

For all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention

Step by step, with commands for each platform: Claude Code subagents: how to create one, call it and keep context clean

Questions about database-architect

How do I install database-architect in Claude Code?

Run npx claude-code-templates@latest --agent database/database-architect, then confirm the agent file landed at .claude/agents/database-architect.md.

What does database-architect do?

It designs schemas and data models, plans scalability, selects database technology and maps out migrations. Output includes DDL, rollback scripts and written rationale.

How is database-architect different from postgres-pro?

database-architect handles design and planning. PostgreSQL tuning and Neon-specific work are handed off to other agents.

Similar subagents

All subagents for Data and databases →
database-migrations affaan-m A skill that spells out safe, reversible schema changes: expand-contract renames, concurrent indexes, batched backfills, plus workflows for PostgreSQL, Prisma, Drizzle, Kysely, Django and golang-migrate. CX Codex +1 5,200installs database-schema-designer Alireza Rezvani This skill turns database requirements into relational schemas, ERDs, and migrations. Use it when planning tables for a feature or reviewing an existing design. 692installs golang-database samber Go database guidelines for database/sql, sqlx, and pgx. Enforces parameterized queries, context passing, and explicit connection pool handling without ORMs. CX Codex +1 40,800installs ai-engineer Seth Hobson This subagent designs LLM applications, RAG systems, and AI agents. Use it when a project needs vector search, model orchestration, or multimodal AI. CX Codex 7,687installs business-analyst Seth Hobson This subagent analyzes business data and helps shape KPIs, forecasts, and financial models. Use it to turn a business question into an analysis plan and recommendations. CX Codex 3,855installs sql-pro VoltAgent Community Subagent for optimizing complex SQL queries, designing database schemas, and fixing performance bottlenecks across PostgreSQL, MySQL, SQL Server, and Oracle. 3,602installs sql-pro Seth Hobson Helps design database schemas, inspect query plans, and tune SQL for OLTP and OLAP systems. Use it for database optimization or complex analysis. CX Codex 3,602installs data-scientist VoltAgent Community Subagent for exploratory data analysis, hypothesis testing, and building machine learning models directly in Claude Code. 3,342installs

From the same set361

The whole set →
backend-architect A subagent for backend design work: service boundaries, API paradigm choice, database schemas and observability. Useful when the decision comes before the first line of code. 23,691installs generate-tests Creates a complete test suite for a specified component or file. The command inspects your testing setup and generates assertions following the AAA pattern. 12,378installs architect-review This subagent checks code changes against a project’s architecture and established patterns. Use it to review structural pull requests or assess a new service design. 8,999installs ultra-think Runs a structured analysis of a hard problem: surfaces hidden assumptions, proposes competing solutions, stress-tests each one. Useful when a decision is expensive to get wrong. 8,383installs documentation-expert This subagent creates, updates, and maintains project documentation, from README files to API references. Use it when docs need structure or a refresh. 6,992installs task-decomposition-expert Breaks down complex multi-step goals into a structured work breakdown structure with dependency graphs, effort estimates, and handoff plans. 6,870installs create-architecture-documentation A Claude slash command that turns your repo into architecture documentation: diagrams, ADRs and component descriptions. 6,136installs mcp-expert Designs and configures Model Context Protocol servers for Claude Code. It prepares ready-to-use JSON manifests for databases, APIs, and file access. 6,052installs

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