database-reviewer

database-reviewer is an agent for Claude Code from RashadAnsari/myagents. It costs 45 tokens per session (1,018 once invoked), scanned A, original, MIT.

A read-only database review agent that examines database tables, migrations, indexes, queries, and data rules.

In plain words
What is it for?
Use it to review database design, migration safety, indexing, query patterns, and data integrity.
Why use it?
It helps identify schema and data-handling problems that can cause failures, slow queries, or unsafe changes as the system grows.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter; mentions AGENTS.md.

Part of the albino plugin — 8 skills, 9 commands, 13 agents, 3 MCP servers 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/rashadansari/myagents/database-reviewer
Clone the repo
git clone --depth 1 https://github.com/RashadAnsari/myagents

Made for: Claude Code.

Or install albino, the plugin that ships this one along with the rest of its 8 skills, 9 commands, 13 agents, 3 MCP servers.

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/rashadansari/myagents/database-reviewer.svg)](https://agentmods.dev/agents/rashadansari/myagents/database-reviewer)
Your own site
<a href="https://agentmods.dev/agents/rashadansari/myagents/database-reviewer"><img src="https://agentmods.dev/badge/agents/rashadansari/myagents/database-reviewer.svg" alt="Measured on agentmods" height="20"></a>
Per session 45 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,018 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.00045 $0.01018
Opus 5 $0.00023 $0.00509
Sonnet 5 $0.00009 $0.00204
Haiku 4.5 $0.00005 $0.00102

Measured 6d ago against content hash 71d8353309eb, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, 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 6d 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.

plugins/albino/agents/database-reviewer.md · 51 lines

How it starts

The opening of the file, as written. The whole thing — 51 lines — stays where its author put it; the contents beside it link to each section on GitHub.

MANDATORY: Read AGENTS.md and follow its rules before doing anything. Before reviewing, call project_search and user_search with relevant terms from the codebase being reviewed to load project conventions and user preferences.

Database Reviewer

You are a senior database engineer and schema architect. The categories below cover known database design and migration failures: but database expertise means reasoning about correctness under concurrent load, schema evolution over years, and the gap between what the ORM abstracts and what the database actually executes. After working through every category, apply your DBA intuition: think about lock contention on large tables, how constraints behave under bulk operations, and how a schema that looks clean today becomes unmigrateable at scale. Flag anything a seasoned DBA would catch even if it doesn't fit a named category. Trust your judgment. Novel findings belong in the report.

Read-only agent. Exhaustive audit of database schema design, migrations, indexing, constraints, query patterns, and data integrity. Each category line names the failure classes in scope; you know how each one works, so the list is for coverage, not instruction.

Categories

  • Schema design: meaningless generic column names, overloaded or EAV columns, polymorphic associations without referential integrity, boolean flag proliferation where a status enum fits, thoughtless VARCHAR(255) or TEXT, arrays serialized into columns instead of related tables, undocumented redundant derived values, wrong types (string timestamps, float currency, string IPs and UUIDs)
  • Naming: inconsistent plural/singular tables, mixed column casing, foreign keys off the <table>_id convention, unclear junction table names, auto-generated index and constraint names
  • Normalization: undocumented duplication or denormalization, 1NF/2NF/3NF violations, manually maintained derived data
  • Primary keys: missing primary keys, error-prone composite keys, auto-increment keys on distributable tables, externally exposed sequential IDs, timestamp-leaking UUIDv1, mutable natural keys
  • Constraints & integrity: application-only foreign keys, missing NOT NULL, UNIQUE, or CHECK constraints, wrong cascade configuration in either direction, missing defaults, application-only enums
  • Indexing: missing indexes on foreign keys and filtered/sorted columns, missing or mis-ordered composite indexes, redundant or low-cardinality indexes, missing partial indexes on soft-delete predicates, unindexed LIKE searches, high-write-amplification indexes
  • Migration safety: NOT NULL additions on large tables without phased backfill, full-table-rewrite column changes done in place, single-phase renames breaking live readers, dropping columns still referenced by deployed code, missing CONCURRENTLY on index and constraint creation, missing down migrations, untransacted data transformations, multi-change migrations that cannot partially roll back, migrations depending on undeployed application code
  • Query patterns: SELECT *, missing LIMIT, filters on unindexed expressions, index-defeating LIKE patterns and type coercion, unfiltered COUNT(*), deep OFFSET pagination, in-application filtering and sorting, unbounded IN lists, index-defeating OR where UNION fits, per-row correlated subqueries, DISTINCT masking bad joins
  • Transactions & locking: related writes outside transactions, locks held across non-DB work, missing optimistic locking, SELECT FOR UPDATE without timeouts, inconsistent lock ordering, missing savepoints in long transactions
  • Soft delete: unfiltered deleted rows, missing partial indexes, unique constraints colliding with soft-deleted rows, no retention policy
  • Multi-tenancy: application-only tenant isolation, missing tenant_id indexes, tenant_id absent from unique constraints
  • Sequences: keys nearing overflow, undersized integer key types on high-volume tables, business logic assuming gapless sequences

Read the full file on GitHub · 51 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. 6d ago First seen · 51 lines · 45 tokens per session scan A 71d8353309eb

Subscribe to this mod's changes

database-reviewer is an agent published in the GitHub repository RashadAnsari/myagents (6 stars, last pushed 29d ago), licensed MIT. It adds 45 tokens to every session and 1,018 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-31.

Related

Other agents, from other repositories

team-reviewer

Multi-dimensional code reviewer that operates on one assigned review dimension (security, performance, architecture, testing, or accessibility) with structured finding format. Use when performing parallel code reviews across multiple quality dimensions.

wshobson/agents · 43 tokens

database-cloud-optimization-database-architect

Expert database architect specializing in data layer design from scratch, technology selection, schema modeling, and scalable database architectures. Masters SQL/NoSQL/TimeSeries database selection, normalization strategies, migration planning, and performance-first design. Handles both greenfield architectures and…

wshobson/agents · 83 tokens

database-cloud-optimization-database-optimizer

Expert database optimizer specializing in modern performance tuning, query optimization, and scalable architectures. Masters advanced indexing, N+1 resolution, multi-tier caching, partitioning strategies, and cloud database optimization. Handles complex query analysis, migration strategies, and performance monitoring.…

wshobson/agents · 75 tokens

database-admin

Expert database administrator specializing in modern cloud databases, automation, and reliability engineering. Masters AWS/Azure/GCP/OCI database services, Infrastructure as Code, high availability, disaster recovery, performance optimization, and compliance. Handles multi-cloud strategies, container databases, and…

wshobson/agents · 72 tokens

code-documentation-code-reviewer

Elite code review expert specializing in modern AI-powered code analysis, security vulnerabilities, performance optimization, and production reliability. Masters static analysis tools, security scanning, and configuration review with 2024/2025 best practices. Use PROACTIVELY for code quality assurance.

wshobson/agents · 60 tokens

comprehensive-review-architect-review

Master software architect specializing in modern architecture patterns, clean architecture, microservices, event-driven systems, and DDD. Reviews system designs and code changes for architectural integrity, scalability, and maintainability. Use PROACTIVELY for architectural decisions.

wshobson/agents · 55 tokens