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/rashadansari/myagents/database-reviewergit clone --depth 1 https://github.com/RashadAnsari/myagentsWrote 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/rashadansari/myagents/database-reviewer)<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>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.00045 | $0.01018 |
| Opus 5 | $0.00023 | $0.00509 |
| Sonnet 5 | $0.00009 | $0.00204 |
| Haiku 4.5 | $0.00005 | $0.00102 |
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.
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>_idconvention, 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 UPDATEwithout 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
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.
- 6d ago First seen · 51 lines · 45 tokens per session scan A 71d8353309eb
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.
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.
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…
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.…
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…
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.
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.