database-architect

database-architect is an agent for Claude Code from arpitnath/claude-capsule-kit. It costs 38 tokens per session (783 once invoked), scanned A, original, MIT.

A database-design specialist for planning how application data is stored, connected, and retrieved. It covers relational databases such as PostgreSQL, MySQL, and SQLite, as well as NoSQL systems, which store data in less rigid formats.

In plain words
What is it for?
Use it to design database tables, indexes, and relationships; compare SQL and NoSQL options; improve slow queries; plan schema changes and migrations; and design backup or replication strategies.
Why use it?
It helps choose suitable storage, avoid poorly structured data, and find causes of slow database queries. It also addresses data correctness, transactions, backups, and future growth.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter.

Good fit Use it to design database tables, indexes, and relationships; compare SQL and NoSQL options; improve slow queries; plan schema changes and migrations; and design backup or replication strategies.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/arpitnath/claude-capsule-kit/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/arpitnath/claude-capsule-kit

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/arpitnath/claude-capsule-kit/database-architect/github.svg)](https://agentmods.dev/agents/arpitnath/claude-capsule-kit/database-architect)
Your own site
<a href="https://agentmods.dev/agents/arpitnath/claude-capsule-kit/database-architect"><img src="https://agentmods.dev/badge/agents/arpitnath/claude-capsule-kit/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/arpitnath/claude-capsule-kit/database-architect"><img src="https://agentmods.dev/badge/agents/arpitnath/claude-capsule-kit/database-architect.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 783 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.00038 $0.00783
Opus 5.5 $0.00015 $0.00313
Sonnet 5.5 $0.00008 $0.00157
Haiku 4.5 $0.00004 $0.00078

Measured 1mo ago against content hash 75cf9e08003c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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 · 108 lines

How it starts

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

Database Architect

You are a Database Architect specializing in relational database design, query optimization, indexing strategies, and data modeling. Your expertise includes PostgreSQL, MySQL, SQLite, and understanding when to use SQL vs NoSQL.

When to Use This Agent

  • Designing a new database schema for a feature
  • Evaluating storage backend options (SQLite vs PostgreSQL vs NoSQL)
  • Optimizing query performance or analyzing slow queries
  • Planning data migrations or schema changes

Your Core Responsibilities:

  1. Design database schemas - Create normalized, efficient table structures
  2. Optimize queries - Design indexes, analyze query plans
  3. Evaluate storage backends - Compare SQLite, PostgreSQL, NoSQL options
  4. Plan for scale - Design for 100x current data volume
  5. Ensure data integrity - ACID properties, constraints, transactions
  6. Backup and recovery - Design HA, replication, backup strategies

Analysis Process:

  1. Understand data requirements

    • What data needs to be stored?
    • What are the access patterns (read-heavy, write-heavy)?
    • What's the expected scale (rows, size, growth rate)?
    • What are the consistency requirements (eventual, strong)?
  2. Design schema

    • Normalize to 3NF (balance with query performance)
    • Define primary keys, foreign keys
    • Add indexes for common queries
    • Consider partitioning for large tables
  3. Analyze query patterns

    • List common queries
    • Design indexes to support them
    • Estimate query performance (index scans, seeks)
    • Identify potential N+1 queries
  4. Evaluate storage backends

    Backend ACID Replication Scale Limit Ops Complexity
    SQLite Full Manual ~1TB Minimal
    PostgreSQL Full Streaming 100TB+ Medium
    MySQL Full Async/Semi-sync 50TB+ Medium
  5. Plan for failure

    • Replication strategy (sync, async, multi-region)
    • Backup frequency and retention
    • Recovery time objective (RTO)
    • Recovery point objective (RPO)

Read the full file on GitHub · 108 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. 1mo ago First seen · 108 lines · 38 tokens per session scan A 75cf9e08003c

Subscribe to this mod's changes

database-architect is an agent published in the GitHub repository arpitnath/claude-capsule-kit (93 stars, last pushed 4mo ago), licensed MIT. It adds 38 tokens to every session and 783 once invoked, about $0.0002 per session on Opus 5.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-30.

Related

Other agents, from other repositories

mongodb-performance-advisor

Analyze MongoDB database performance, offer query and index optimization insights and provide actionable recommendations to improve overall usage of the database.

archubbuck/workspace-architect · 29 tokens

MS-SQL Database Administrator

Work with Microsoft SQL Server databases using the MS SQL extension.

archubbuck/workspace-architect · 18 tokens

symfony-specialist

Use when building Symfony 6+/7+/8+ applications, architecting Doctrine ORM entities with complex relationships, implementing Messenger component for async processing, or optimizing API Platform performance.

alexmmatos/essentials-claude-code · 40 tokens

sql-pro

Use this agent when you need to optimize complex SQL queries, design efficient database schemas, or solve performance issues across PostgreSQL, MySQL, SQL Server, and Oracle requiring advanced query optimization, index strategies, or data warehouse patterns.

alexmmatos/essentials-claude-code · 49 tokens

database-optimizer

Use this agent when you need to analyze slow queries, optimize database performance across multiple systems, or implement indexing strategies to improve query execution.

alexmmatos/essentials-claude-code · 31 tokens

postgres-pro

Use when you need to optimize PostgreSQL performance, design high-availability replication, or troubleshoot database issues at scale. Invoke this agent for query optimization, configuration tuning, replication setup, backup strategies, and mastering advanced PostgreSQL features for enterprise deployments.

alexmmatos/essentials-claude-code · 52 tokens