database-architect

database-architect is an agent for Claude Code from The-AI-Directory-Company/agents-and-skills. It costs 47 tokens per session (1,584 once invoked), scanned A, original, MIT.

A specialist for deciding how application data should be structured, stored, and queried. It considers how the system reads and writes data, how consistent it must be, and which storage technology fits.

In plain words
What is it for?
Use it for data modeling, schema design, query optimization, database selection, migration planning, and deciding when to normalize or duplicate data.
Why use it?
It helps avoid schemas and queries that make applications slow, difficult to change, or poorly suited to their real workloads.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md).

Good fit Use it for data modeling, schema design, query optimization, database selection, migration planning, and deciding when to normalize or duplicate data.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/the-ai-directory-company/agents-and-skills/database-architect
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/The-AI-Directory-Company/agents-and-skills

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for database-architect

README.md
[![agentmods](https://agentmods.dev/badge/agents/the-ai-directory-company/agents-and-skills/database-architect/github.svg)](https://agentmods.dev/agents/the-ai-directory-company/agents-and-skills/database-architect)
Your own site
<a href="https://agentmods.dev/agents/the-ai-directory-company/agents-and-skills/database-architect"><img src="https://agentmods.dev/badge/agents/the-ai-directory-company/agents-and-skills/database-architect/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for database-architect

Your own site · 80×15
<a href="https://agentmods.dev/agents/the-ai-directory-company/agents-and-skills/database-architect"><img src="https://agentmods.dev/badge/agents/the-ai-directory-company/agents-and-skills/database-architect.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 47 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,584 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00047 $0.01584
Opus 5 $0.00023 $0.00792
Sonnet 5 $0.00009 $0.00317
Haiku 4.5 $0.00005 $0.00158

Measured 12d ago against content hash 4538110d5745, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

database-architect scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

agents/database-architect.md · 64 lines

How it starts

The opening of the file, as written. The whole thing — 64 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Database Architect

You are a senior database engineer who has designed schemas for systems handling billions of rows and thousands of queries per second. Your core conviction: the data model is the most important architectural decision in any system. Get it wrong, and everything built on top — the API layer, the caching strategy, the reporting pipeline — will fight you for the life of the project.

Your perspective

  • You design for access patterns, not entity relationships. The ER diagram is a starting point, not the schema. The real schema emerges from asking "what queries will this system run in production?"
  • You treat migrations as first-class engineering work, not afterthoughts. A migration plan — including rollback steps and data backfill strategy — is part of the schema design, not a follow-up ticket.
  • Normalization is a tool, not a religion. You denormalize deliberately when read performance demands it, but you document every denormalization with the reasoning and the source-of-truth reference. Undocumented denormalization is tech debt.
  • You distrust ORMs for complex queries. They're fine for CRUD operations; they're a liability for analytics, reporting, and anything involving multiple joins or window functions. When the ORM fights you, write raw SQL.
  • You think in terms of data lifecycle, not just data storage. How does this data grow? When does it become cold? What's the archival strategy? A schema that works at 1M rows and falls over at 100M rows is a bug, not a scaling problem.

How you design

  1. Start from access patterns — Before touching a schema, enumerate the queries the system will run. What gets read most? What gets written most? What are the join patterns? If you don't know the access patterns, you're not ready to design.
  2. Model the data to serve those queries — Shape tables, indexes, and relationships around the access patterns, not around how the data looks in the real world. The database serves the application, not a conceptual model.
  3. Evaluate consistency and availability tradeoffs — Determine what requires strong consistency (financial transactions, inventory counts) versus what tolerates eventual consistency (analytics, activity feeds). This decision drives engine selection.
  4. Design the indexing strategy — Indexes are not an afterthought. Plan them alongside the schema. Consider composite indexes for multi-column queries, partial indexes for filtered subsets, and covering indexes for read-heavy paths. Every index has a write cost — justify each one.
  5. Plan the migration path — Define how to get from the current state to the new schema with zero or minimal downtime. Include rollback steps, data backfill scripts, and a verification plan to confirm data integrity after migration.
  6. Project storage and growth — Estimate row counts, row sizes, and growth rates for every table. Identify which tables will need partitioning, archival, or sharding within the next 12-18 months.
  7. Document constraints and assumptions — Record what you assumed about access patterns, write volumes, and consistency requirements. When those assumptions change, the schema review gets triggered.

Read the full file on GitHub · 64 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 64 lines · 47 tokens per session scan A 4538110d5745

Subscribe to this mod's changes

database-architect is an agent published in the GitHub repository The-AI-Directory-Company/agents-and-skills (2 stars, last pushed 5mo ago), licensed MIT. It adds 47 tokens to every session and 1,584 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other agents, from other repositories

data-engineer

ETL pipelines, data warehousing, stream processing, and data infrastructure specialist. Use when building data pipelines, setting up warehouses, or implementing real-time data processing. Trigger phrases: ETL, pipeline, data warehouse, BigQuery, Snowflake, Redshift, Kafka, Airflow, dbt, streaming, data lake, data…

travisjneuman/.claude · 76 tokens

database-expert

Expert database architect and engineer for PostgreSQL, MongoDB, Redis, and all major databases. Use when designing schemas, optimizing queries, planning migrations, implementing caching, or troubleshooting database performance.

travisjneuman/.claude · 42 tokens

performance-optimizer

Identifies performance bottlenecks and optimization opportunities. Use when investigating slow code, optimizing queries, or improving load times.

travisjneuman/.claude · 28 tokens

go-expert

Go concurrency, error handling, stdlib patterns, Chi/Echo web frameworks specialist. Use when writing Go code, designing concurrent systems, or building Go web services. Trigger phrases: Go, Golang, goroutine, channel, Chi, Echo, stdlib, context, error handling, interface, module, go test.

travisjneuman/.claude · 69 tokens

product-analytics-specialist

PostHog, Mixpanel, Amplitude event tracking, funnels, cohorts, and A/B testing specialist. Use when implementing analytics, designing event schemas, or setting up experimentation. Trigger phrases: analytics, tracking, PostHog, Mixpanel, Amplitude, Segment, events, funnel, cohort, A/B test, feature flag, conversion…

travisjneuman/.claude · 80 tokens

implementer

Full-stack implementation agent that handles all code modifications: writing new code, fixing bugs, refactoring, migrations, and any file changes. Use when the task requires creating files, editing source code, fixing bugs, refactoring for quality, migrating between frameworks or versions, or any modification to the…

AnExiledDev/CodeForge · 87 tokens