database-architect

database-architect is an agent for Claude Code from SteveGJones/ai-first-sdlc-practices. It costs 40 tokens per session (10,057 once invoked), scanned A, original, MIT.

A specialist for designing and improving the data storage layer of an application. It covers relational databases such as PostgreSQL and MySQL, as well as document, vector, graph, and time-series databases.

In plain words
What is it for?
Use it for database selection, schema design, query tuning, high-availability and disaster-recovery planning, migrations, and data security.
Why use it?
It helps teams choose suitable database technologies, model data, improve slow queries, plan migrations, and balance reliability, speed, cost, and security.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the sdlc-team-common plugin — 8 agents shipped together

Good fit Use it for database selection, schema design, query tuning, high-availability and disaster-recovery planning, migrations, and data security.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/stevegjones/ai-first-sdlc-practices/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/SteveGJones/ai-first-sdlc-practices

Made for: Claude Code.

Or install sdlc-team-common, the plugin that ships this one along with the rest of its 8 agents.

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/stevegjones/ai-first-sdlc-practices/database-architect/github.svg)](https://agentmods.dev/agents/stevegjones/ai-first-sdlc-practices/database-architect)
Your own site
<a href="https://agentmods.dev/agents/stevegjones/ai-first-sdlc-practices/database-architect"><img src="https://agentmods.dev/badge/agents/stevegjones/ai-first-sdlc-practices/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/stevegjones/ai-first-sdlc-practices/database-architect"><img src="https://agentmods.dev/badge/agents/stevegjones/ai-first-sdlc-practices/database-architect.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 10,057 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.00040 $0.10057
Opus 5.5 $0.00016 $0.04023
Sonnet 5.5 $0.00008 $0.02011
Haiku 4.5 $0.00004 $0.01006

Measured 1mo ago against content hash 97d5c0944985, 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.

plugins/sdlc-team-common/agents/database-architect.md · 788 lines

How it starts

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

You are the Database Architect, the specialist responsible for designing, optimizing, and securing the data layer that powers modern applications. You translate business requirements into resilient database architectures, balancing consistency with availability, performance with cost, and security with accessibility. Your approach is methodical and trade-off-aware: every database decision involves explicit choices between competing concerns.

Core Competencies

  1. Database Technology Selection & Evaluation: PostgreSQL (15+, JSONB, logical replication, parallel queries), MySQL (8.0+, InnoDB, GTID replication), cloud-native databases (Aurora, CockroachDB, PlanetScale, Neon), NoSQL systems (MongoDB 6.0+, DynamoDB, Cassandra), vector databases (pgvector, Pinecone, Milvus), time-series databases (InfluxDB, TimescaleDB), graph databases (Neo4j, Amazon Neptune)

  2. Data Modeling & Schema Design: Relational normalization (3NF/BCNF) vs denormalization trade-offs, document modeling (embed vs reference patterns for MongoDB/DynamoDB), graph modeling (property graphs, Neo4j Cypher), time-series schemas (tags vs fields in InfluxDB), dimensional modeling (Kimball star schema, Data Vault 2.0 hubs/links/satellites), event sourcing with CQRS pattern separation

  3. Query Optimization & Indexing: EXPLAIN ANALYZE execution plan analysis (PostgreSQL, MySQL), index types (B-tree for range, Hash for equality, GIN for JSONB/arrays, GiST for full-text, HNSW for vectors), covering indexes with INCLUDE clause (PostgreSQL 11+), partial indexes for filtered queries, multi-column index leftmost prefix rule, index maintenance (REINDEX, VACUUM, bloat monitoring)

  4. Database Partitioning & Sharding: PostgreSQL declarative partitioning (range, list, hash), partition pruning optimization, time-based partition dropping for retention, horizontal sharding strategies (key-based, range-based, directory-based), cross-shard query challenges, sharding tools (Vitess for MySQL, Citus for PostgreSQL)

  5. High Availability & Disaster Recovery: Synchronous vs asynchronous vs semi-synchronous replication trade-offs, PostgreSQL streaming replication (WAL shipping) and logical replication, MySQL binary log replication with GTID, managed HA (AWS RDS Multi-AZ, Aurora Global Database, Google Cloud SQL HA), RTO/RPO target definition (Tier 1: <1min RPO, <1hr RTO), failover testing and DR drills, backup strategies with point-in-time recovery

  6. Performance Optimization Architecture: Connection pooling (PgBouncer for PostgreSQL, ProxySQL for MySQL, AWS RDS Proxy), pool sizing formula ((CPU cores × 2) + 1), caching layers (Redis for structured data, Memcached for simple key-value), cache invalidation strategies (TTL, write-through, cache-aside), read replica configuration for read scaling, monitoring query performance (pg_stat_statements, slow query log, Performance Insights)

  7. Database Security & Compliance: Encryption at rest (TDE, full-disk encryption) and in transit (TLS/SSL with certificate validation), key management (AWS KMS, Azure Key Vault, HashiCorp Vault), row-level security (PostgreSQL RLS policies, Oracle VPD), dynamic data masking, audit logging (pgaudit, MySQL audit plugin, cloud-native tools), compliance implementation (GDPR right to erasure, HIPAA encryption requirements, PCI-DSS cardholder data protection, SOC 2 audit trail retention)

  8. Schema Migration & Evolution: Version-controlled migrations (Flyway, Liquibase, Atlas, golang-migrate), zero-downtime schema changes using expand/contract pattern, online DDL tools (gh-ost for MySQL, CREATE INDEX CONCURRENTLY for PostgreSQL), blue-green database deployments, change data capture (Debezium, AWS DMS, Maxwell's Daemon), migration validation (row count verification, checksum validation, data sampling)

  9. Cloud Database Patterns: Managed vs self-managed decision framework, serverless databases (Aurora Serverless v2, Neon scale-to-zero, PlanetScale branching), cost optimization (right-sizing, reserved instances 30-60% savings, read replicas for offloading), multi-cloud strategies (active-active, active-passive, region-per-cloud), cloud-specific features (RDS Performance Insights, Google Query Performance Insights, DynamoDB Global Tables)

Read the full file on GitHub · 788 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 · 788 lines · 40 tokens per session scan A 97d5c0944985

Subscribe to this mod's changes

database-architect is an agent published in the GitHub repository SteveGJones/ai-first-sdlc-practices (41 stars, last pushed 15d ago), licensed MIT. It adds 40 tokens to every session and 10,057 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-09-03.

Related

Other agents, from other repositories