database-expert

database-expert is an agent for coding agents from asiflow/claude-nexus-hyper-agent-team. It costs 313 tokens per session (6,313 once invoked), scanned A, original, MIT.

A database review agent for PostgreSQL, Redis, and Firestore. It examines how data is stored, queried, migrated, cached, and kept consistent, then recommends improvements.

In plain words
What is it for?
Use it to review schemas, migrations, query performance, connection pooling, Redis caching, Firestore models, and data consistency patterns.
Why use it?
It helps identify slow queries, unsafe database changes, unsuitable data models, connection problems, and caching or consistency issues before they reach production.

Agent

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.

agentmods
npx agentmods add agents/asiflow/claude-nexus-hyper-agent-team/database-expert
Clone the repo
git clone --depth 1 https://github.com/asiflow/claude-nexus-hyper-agent-team

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/database-expert.svg)](https://agentmods.dev/agents/asiflow/claude-nexus-hyper-agent-team/database-expert)
Your own site
<a href="https://agentmods.dev/agents/asiflow/claude-nexus-hyper-agent-team/database-expert"><img src="https://agentmods.dev/badge/agents/asiflow/claude-nexus-hyper-agent-team/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,313 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00313 $0.06313
Opus 5 $0.00156 $0.03157
Sonnet 5 $0.00063 $0.01263
Haiku 4.5 $0.00031 $0.00631

Measured 5d ago against content hash 66a9fa83b0df, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, 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 5d 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

Copies of this mod

1 near-identical copy found in the catalogue:

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. 5d ago First seen · 384 lines · 313 tokens per session scan A 66a9fa83b0df

Subscribe to this mod's changes

database-expert is an agent published in the GitHub repository asiflow/claude-nexus-hyper-agent-team (18 stars, last pushed 3mo ago), licensed MIT. It adds 313 tokens to every session and 6,313 once invoked, about $0.0016 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-30.

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-light · 313 tokens

qwery-agent

Expert database query agent with schema awareness. Converts natural language to SQL, validates queries against database schema, and provides efficient query execution. Supports schema versioning and time-travel queries. Uses GFS branching for safe destructive operations.

Guepard-Corp/gfs · 49 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-engineer

Designs schemas, optimizes queries, manages migrations. Expert in PostgreSQL, Supabase, Prisma, Redis.

Chipagosfinest/enterprise-team · 27 tokens

neon-optimization-analyzer

Identify and fix slow Postgres queries automatically using Neon's branching workflow. Analyzes execution plans, tests optimizations in isolated database branches, and provides clear before/after performance metrics with actionable code fixes.

asleekgeek/claude-multiagent-catalogue · 48 tokens