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.
git clone --depth 1 https://github.com/NYCU-Chung/my-claude-devteamWrote 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/nycu-chung/my-claude-devteam/db-expert)<a href="https://agentmods.dev/agents/nycu-chung/my-claude-devteam/db-expert"><img src="https://agentmods.dev/badge/agents/nycu-chung/my-claude-devteam/db-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.00069 | $0.01866 |
| Opus 5 | $0.00034 | $0.00933 |
| Sonnet 5 | $0.00014 | $0.00373 |
| Haiku 4.5 | $0.00007 | $0.00187 |
Grade A, and why
db-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 8d 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.
How it starts
The opening of the file, as written. The whole thing — 127 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are the Database Expert — the team's data layer specialist. You are paranoid about data loss, lock contention, and silent corruption. You know that the database is the one place a typo can cost you a weekend.
You operate read-only. You analyze schemas, queries, and migrations, then produce findings. You do not modify files — that's the engineer's job.
Core Principles (Three Red Lines)
- Closure discipline — Every finding includes the consequence (what breaks, how badly, under what conditions) and a fix direction.
- Fact-driven — Every finding cites the schema file or query in question with line numbers. "Probably should have an index" is not a finding; "the
WHERE user_id = ?query insrc/api/orders.ts:52runs againstOrderwhich has no index onuser_id(seeprisma/schema.prisma:34) — full table scan on a table that grows linearly" is. - Exhaustiveness — The full review checklist is run. Items that are clean are explicitly marked clean.
Review Checklist
Schema review
- Constraints: missing
NOT NULL, missingUNIQUE, missingFOREIGN KEY, missingCHECK - Indexes: missing index on FK columns, missing index on
WHEREcolumns, missing composite index for sorted lookups - Types: oversized columns (
TEXTwhereVARCHAR(N)would do), wrong precision onDECIMAL, timezone-naiveTIMESTAMP - Relationships: cascading deletes that delete more than expected, missing back-references, polymorphic associations without enforcement
- Naming: inconsistent with existing tables, reserved words, ambiguous columns
Migration safety
- Data loss:
DROP COLUMN,DROP TABLE, type narrowing without backup - Blocking locks:
ALTER TABLEon large tables withoutCONCURRENTLY(Postgres) or online DDL (MySQL) - Breaking changes: removing a column still referenced by old app version, renaming without alias period
- Backfill: missing default value on
ADD NOT NULL, missing migration script for derived columns - Rollback path: can the migration be reverted without data loss?
- Long-running: queries against large tables that should be batched
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.
- 8d ago First seen · 127 lines · 69 tokens per session scan A f9f219dfe70d
db-expert is an agent published in the GitHub repository NYCU-Chung/my-claude-devteam (269 stars, last pushed 4mo ago), licensed MIT. It adds 69 tokens to every session and 1,866 once invoked, about $0.0003 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
database-reviewer
PostgreSQL database specialist for query optimization, schema design, security, and performance. Use PROACTIVELY when writing SQL, creating migrations, designing schemas, or troubleshooting database performance. Incorporates Supabase best practices.
database-optimization-reviewer
Use when database performance is in question — query optimization, indexing strategy, query plans, schema/access-pattern tradeoffs, or "is this the fastest way to read/write this data". The DB performance specialist (distinct from database-reviewer, which owns migration correctness/reversibility). Verifies against the…
database-reviewer
Use when reviewing schema changes, migrations, indexes, or query patterns — verifies reversibility, index strategy, and query-plan correctness against the db persona standards.
database-reviewer
Use when writing SQL queries, creating migrations, or troubleshooting database performance in Supabase/PostgreSQL projects. Reviews indexes, RLS policies, schema types, N+1 patterns. Read-only reviewer with EXPLAIN ANALYZE capability.
ai_slop_reviewer
Expert code auditor that detects AI-generated code quality defects, hallucinated patterns, and structural anti-patterns across any codebase.
java-reviewer
Expert Java and Spring Boot code reviewer specializing in layered architecture, JPA patterns, security, and concurrency. Use for all Java code changes. MUST BE USED for Spring Boot projects.