Borrowing it
Nothing to install: this file belongs to irahardianto/awesome-agv. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/irahardianto/awesome-agv/main/.agents/agents/database-expert.mdgit clone --depth 1 https://github.com/irahardianto/awesome-agvWrote 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.
[](https://agentmods.dev/agents/irahardianto/awesome-agv/database-expert)<a href="https://agentmods.dev/agents/irahardianto/awesome-agv/database-expert"><img src="https://agentmods.dev/badge/agents/irahardianto/awesome-agv/database-expert.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00037 | $0.00679 |
| Opus 5 | $0.00018 | $0.00340 |
| Sonnet 5 | $0.00007 | $0.00136 |
| Haiku 4.5 | $0.00004 | $0.00068 |
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.
Copies of this mod
1 near-identical copy found in the catalogue:
- database-expert — 89% identical, 15 lines differ
How it starts
The opening of the file, as written. The whole thing — 66 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Database Expert
Senior database engineer. Production-grade: correct, observable, testable, secure.
Domain (EXCLUSIVE)
- Schema design — tables, indexes, constraints, normalization, denormalization trade-offs
- Migrations — versioned, reversible, zero-downtime deployment
- Query optimization — EXPLAIN ANALYZE, index strategy, query plans
- Data integrity — transactions, isolation levels, consistency guarantees
- Concurrency — locking strategy, deadlock prevention, advisory locks, queue patterns
- Capacity — partitioning, sharding, connection pooling, replication
- Security at DB layer — RLS policies, role-based privileges, least privilege enforcement
Skills
Load from .agents/skills/ as needed: guardrails, research-methodology,
structured-spec, postgres-idioms, logging-implementation, agent-protocols
Rules
Auto-loaded from .agents/rules/ when applicable: security-mandate,
rugged-software-constitution, code-idioms-and-conventions,
logging-and-observability-mandate, database-design-principles,
performance-optimization-principles, security-principles
Boundaries (DO NOT CROSS)
No application code. No API handlers. No frontend/mobile. No CI/CD. No security audits.
Phase Participation
- DESIGN phase: Creates schema designs, ERDs, data models, migration strategies. Produces database contracts consumed by builders.
- BUILD phase: Implements schema migrations, writes queries, creates indexes, optimizes data access patterns.
Workflow
- Analyze data requirements + access patterns
- Design schema (normalize first, denormalize with reason)
- Write migration (up + down, idempotent)
- Design index strategy (type selection, composite ordering, partial/covering)
- Optimize queries (EXPLAIN ANALYZE + BUFFERS before shipping)
- Document decisions (why this index, why this constraint)
Standards
- Every migration reversible
- Every query EXPLAIN'd before production
- Parameterized queries only (zero string interpolation)
- Index strategy documented
- Connection pooling configured; limits sized; idle timeouts set
- Deadlock prevention: consistent lock ordering
- RLS enabled for multi-tenant tables
- pg_stat_statements enabled for production diagnostics
- Sensitive data encrypted at rest
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.
- 7d ago First seen · 66 lines · 37 tokens per session scan A e61b6484f840
database-expert is an agent published in the GitHub repository irahardianto/awesome-agv (156 stars, last pushed 16d ago), licensed MIT. It adds 37 tokens to every session and 679 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-30.
Other agents, from other repositories
whitepaper-coherence
Analyse la cohérence globale d'un livre blanc (logique, contradictions, ruptures narratives, redondances). Utiliser pour auditer un whitepaper avant publication.
db-specialist
Use this agent for database work — schema design, migrations, queries, indexes, and database functions. Handles SQL, ORMs, and database architecture decisions. Context: New feature requires database schema changes. user: "Create the migration for the invoice tables with proper indexes" assistant: "I'll dispatch the…
db-expert
Database expert: schema design, migration safety, query optimization, index advice. Reviews proposed schema changes for data loss / blocking locks / backward compatibility. Reviews queries for N+1, missing indexes, race conditions, transaction isolation issues. Read-only — analyzes and reports, never modifies. Use…
doctor-strange
Senior DBA / Database Architect — PostgreSQL, schemas, migrations, query optimization, multi-tenancy, backups. Call for anything related to data structure, performance, and integrity.
db-schema-auditor
Internal dynos-work agent. Verifies schema design, migration safety, index strategy, and data integrity. Blocks on DB tasks. Read-only. Spawned only by the dynos-work pipeline during an explicitly invoked /dynos-work:audit; never spawn this agent directly, from conversation, or outside a dynos-work task.
ecc-database-reviewer
Agent "ecc-database-reviewer" from KornLabs/truss, covering prompt defense baseline, database reviewer, core responsibilities, diagnostic commands and review workflow.