database-reviewer

database-reviewer is an agent for coding agents from VersoXBT/claude-initial-setup. It costs 57 tokens per session (757 once invoked), scanned A, original, MIT.

A coding agent that reviews database structure, queries, data access, and schema changes.

In plain words
What is it for?
It reviews schemas, indexes, complex queries, ORM usage, migrations, normalization, relationships, data types, and required fields.
Why use it?
It helps catch missing constraints or indexes, inefficient ORM queries, unsafe migrations, and mismatches between code and stored data.

Agent

Part of the claude-initial-setup plugin — 24 skills, 15 commands, 14 agents, 2 hooks shipped together

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/versoxbt/claude-initial-setup/database-reviewer
Clone the repo
git clone --depth 1 https://github.com/VersoXBT/claude-initial-setup

Or install claude-initial-setup, the plugin that ships this one along with the rest of its 24 skills, 15 commands, 14 agents, 2 hooks.

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/versoxbt/claude-initial-setup/database-reviewer.svg)](https://agentmods.dev/agents/versoxbt/claude-initial-setup/database-reviewer)
Your own site
<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>
Per session 57 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 757 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 $0.00057 $0.00757
Opus 5 $0.00028 $0.00378
Sonnet 5 $0.00011 $0.00151
Haiku 4.5 $0.00006 $0.00076

Measured 4d ago against content hash f2e40e9b8908, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

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.

agents/database-reviewer.md · 101 lines

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

  1. 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
  2. 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
  3. 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
  4. 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
  5. 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

Read the full file on GitHub · 101 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. 4d ago First seen · 101 lines · 57 tokens per session scan A f2e40e9b8908

Subscribe to this mod's changes

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.