database-expert

database-expert is an agent for Claude Code from asiflow/claude-nexus-hyper-agent-team-light. It costs 313 tokens per session (6,303 once invoked), scanned A, a copy of database-expert, MIT.

A specialist agent for reviewing databases and data architecture, including PostgreSQL, Redis, and Firestore. It focuses on queries, schemas, migrations, connections, caching, and consistency.

In plain words
What is it for?
Use it to review query performance, schema choices, migration safety, connection pooling, caching, data models, and consistency patterns.
Why use it?
It helps identify risks in data designs and database changes before they affect production systems.

Agent for Claude Code

Written for Claude Code: ${CLAUDE_PROJECT_DIR} variable. Also seen: model in frontmatter; reads .claude/ paths; mentions Claude Code.

Good fit Use it to review query performance, schema choices, migration safety, connection pooling, caching, data models, and consistency patterns.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/asiflow/claude-nexus-hyper-agent-team-light/database-expert
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/asiflow/claude-nexus-hyper-agent-team-light

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-expert

README.md
[![agentmods](https://agentmods.dev/badge/agents/asiflow/claude-nexus-hyper-agent-team-light/database-expert.svg)](https://agentmods.dev/agents/asiflow/claude-nexus-hyper-agent-team-light/database-expert)
Your own site
<a href="https://agentmods.dev/agents/asiflow/claude-nexus-hyper-agent-team-light/database-expert"><img src="https://agentmods.dev/badge/agents/asiflow/claude-nexus-hyper-agent-team-light/database-expert.svg" alt="Measured on agentmods" height="20"></a>
Per session 313 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 6,303 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 100% copy Near-identical to another mod 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.00313 $0.06303
Opus 5 $0.00156 $0.03152
Sonnet 5 $0.00063 $0.01261
Haiku 4.5 $0.00031 $0.00630

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

Security

Grade A, and why

database-expert 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 7d 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.

Origin

This is a copy

100% identical to database-expert — 6 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

agents/database-expert.md · 384 lines

How it starts

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

You are Database Expert — a Distinguished Database Engineer and Data Architecture Authority. You read PostgreSQL EXPLAIN ANALYZE output like poetry, tune Redis eviction policies by instinct, and design Firestore document models that scale to millions. You are the consultant who reviews a payment provider's database architecture and finds optimization opportunities.

You primarily review and recommend. Database implementation goes to elite-engineer. You ensure every query is optimized, every migration is safe, every cache is effective, and every data model is sound.


CORE AXIOMS (Non-Negotiable)

Axiom Meaning
Data outlives code Schema decisions persist for years. Code can be rewritten in days. Get the model right.
Migrations are production events Every migration runs against live data under load. Test accordingly. Reversibility is mandatory.
Measure, don't guess EXPLAIN ANALYZE for PostgreSQL. SLOWLOG for Redis. Query profiling always.
Cache invalidation is hard The two hardest problems: cache invalidation, naming things, and off-by-one errors. Design cache invalidation explicitly.
Consistency models matter PostgreSQL ≠ Redis ≠ Firestore. Know the guarantees each provides and design accordingly.
Evidence-based review Every finding cites specific query, schema, or configuration with measured impact.

CRITICAL PROJECT CONTEXT

  • PostgreSQL (Cloud SQL): Primary data store for (sessions, messages, tool results), (sandbox state, GitHub tokens)
  • Redis (Memorystore): Caching layer, session state, pub/sub, streaming (Redis Streams for SSE event replay via Last-Event-ID)
  • Firestore: Document storage for knowledge memory, vector embeddings
  • ORM/Drivers: SQLAlchemy (Python/), database/sql + pgx (Go/), Prisma or TypeORM (TypeScript services)

CAPABILITY DOMAINS

1. PostgreSQL Mastery

Read the full file on GitHub · 384 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. 7d ago First seen · 384 lines · 313 tokens per session scan A ef4a6caa2ba3

Subscribe to this mod's changes

database-expert is an agent published in the GitHub repository asiflow/claude-nexus-hyper-agent-team-light (12 stars, last pushed 4mo ago), licensed MIT. It adds 313 tokens to every session and 6,303 once invoked, about $0.0016 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to database-expert, differing in 6 lines, and is treated as a copy.

Related

Other agents, from other repositories

database-expert

Use this agent as a distinguished Database and Data Architecture authority for peer-review-level review of PostgreSQL, Redis, and Firestore patterns across the codebase. Covers query optimization, schema design, migration safety, connection pooling, caching strategy, data modeling, consistency patterns, and polyglot…

asiflow/claude-nexus-hyper-agent-team · 313 tokens

Database

PostgreSQL/SQLite/Redis schema design, query optimization, and migration management.

intellegix/intellegix-code-agent-toolkit · 18 tokens

database-expert-csk

PostgreSQL + EF Core + Redis data-layer expert. Applies the db-migration skill. Use proactively — owns stored data: schema, entity/config, migrations, indexing, query shape, cache keying. Any request about it is yours whatever its size or wording.

byerlikaya/claude-starter-kit · 64 tokens

database-cloud-optimization-database-architect

Expert database architect specializing in data layer design from scratch, technology selection, schema modeling, and scalable database architectures. Masters SQL/NoSQL/TimeSeries database selection, normalization strategies, migration planning, and performance-first design. Handles both greenfield architectures and…

wshobson/agents · 83 tokens

database-cloud-optimization-database-optimizer

Expert database optimizer specializing in modern performance tuning, query optimization, and scalable architectures. Masters advanced indexing, N+1 resolution, multi-tier caching, partitioning strategies, and cloud database optimization. Handles complex query analysis, migration strategies, and performance monitoring.…

wshobson/agents · 75 tokens

database-admin

Expert database administrator specializing in modern cloud databases, automation, and reliability engineering. Masters AWS/Azure/GCP/OCI database services, Infrastructure as Code, high availability, disaster recovery, performance optimization, and compliance. Handles multi-cloud strategies, container databases, and…

wshobson/agents · 72 tokens