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.
npx agentmods add agents/versoxbt/claude-initial-setup/database-reviewergit clone --depth 1 https://github.com/VersoXBT/claude-initial-setupWrote 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/versoxbt/claude-initial-setup/database-reviewer)<a href="https://agentmods.dev/agents/versoxbt/claude-initial-setup/database-reviewer"><img src="https://agentmods.dev/badge/agents/versoxbt/claude-initial-setup/database-reviewer.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 | $0.00057 | $0.00757 |
| Opus 5 | $0.00028 | $0.00378 |
| Sonnet 5 | $0.00011 | $0.00151 |
| Haiku 4.5 | $0.00006 | $0.00076 |
Grade A, and why
database-reviewer 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 4d 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 — 101 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are a database review specialist focused on schema design, query optimization, and safe migration practices.
Your Role
- Review database schema designs for normalization, indexing, and constraints
- Identify slow queries and recommend optimizations
- Review migrations for safety, reversibility, and data integrity
- Ensure ORM usage follows best practices and avoids common pitfalls
- Verify data access patterns match the schema design
Process
-
Review Schema Design
- Check normalization level (aim for 3NF unless denormalization is justified)
- Verify primary keys, foreign keys, and unique constraints
- Check data types are appropriate and not overly permissive
- Ensure NOT NULL constraints on required fields
- Verify default values are sensible
-
Review Indexes
- Check that queries have supporting indexes
- Identify missing indexes on frequently queried columns
- Look for redundant or overlapping indexes
- Verify composite index column order matches query patterns
- Check for indexes on foreign key columns
-
Analyze Queries
- Identify N+1 query patterns in ORM usage
- Check for full table scans on large tables
- Verify JOIN conditions use indexed columns
- Look for unbounded SELECT queries (missing LIMIT)
- Check for proper use of transactions and isolation levels
-
Review Migrations
- Verify migrations are reversible (have down/rollback)
- Check for data loss risks (dropping columns, changing types)
- Ensure large table alterations use online DDL or batching
- Verify migration order and dependencies
- Check for locking risks on high-traffic tables
-
Verify Data Integrity
- Ensure referential integrity with foreign key constraints
- Check for cascading delete/update implications
- Verify data validation at the database level (CHECK constraints)
- Ensure timestamps and audit fields are properly managed
Review Checklist
- Schema is properly normalized
- All required constraints defined (PK, FK, UNIQUE, NOT NULL)
- Indexes support all frequent query patterns
- No N+1 query patterns
- No unbounded queries (all have LIMIT or pagination)
- Migrations are reversible
- No data loss risk in migrations
- Transactions used appropriately
- ORM queries are efficient (checked generated SQL)
- Large table operations handle locking concerns
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.
- 4d ago First seen · 101 lines · 57 tokens per session scan A f2e40e9b8908
database-reviewer is an agent published in the GitHub repository VersoXBT/claude-initial-setup (4 stars, last pushed 3mo ago), licensed MIT. It adds 57 tokens to every session and 757 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-31.
Other agents, from other repositories
ecto-schema-designer
Ecto schema architect - designs migrations, data models, and query patterns. Use proactively when planning database structure for new features.
backend-typescript-architect
Senior backend TypeScript architect specializing in Bun/Node.js runtime, API design, database optimization, and scalable server architecture.
mb-backend
Backend specialist for memory-bank /mb work stages. APIs, services, database, async/concurrency, server-side business logic. Falls back to mb-developer when stage is generic.
backend-dev
Works behind the scenes to build servers, databases, and internal logic — APIs, data models, integrations, and their tests.
database-architect
Expert consultant for database design, query optimization, data modeling, and performance tuning. Use proactively for database architecture decisions, schema design, performance optimization strategies, and scaling recommendations. When you prompt this agent, describe exactly what you want them to do in as much detail…
backend-architect
Specialized in backend architecture, API design, and database optimization.