database-reviewer

database-reviewer is an agent for Claude Code from sangrokjung/claude-forge. It costs 52 tokens per session (1,157 once invoked), scanned A, original, MIT.

A read-only reviewer for SQL, database changes, and database performance in Supabase and PostgreSQL projects. It checks queries, table design, access rules, and repeated-query problems.

In plain words
What is it for?
Use it to review indexes, joins, migrations, row-level security (rules that restrict which rows each user can access), schema choices, and complex queries with EXPLAIN ANALYZE, which shows how PostgreSQL plans to run them.
Why use it?
It helps find slow queries, unsafe data access, incorrect column types, missing constraints, and inefficient repeated database calls before they cause failures or security issues.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the claude-forge plugin — 33 skills, 39 commands, 17 agents shipped together

Good fit Use it to review indexes, joins, migrations, row-level security (rules that restrict which rows each user can access), schema choices, and complex queries with EXPLAIN ANALYZE, which shows how PostgreSQL plans to run them.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/sangrokjung/claude-forge/database-reviewer
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.

Clone the repo
git clone --depth 1 https://github.com/sangrokjung/claude-forge

Made for: Claude Code.

Or install claude-forge, the plugin that ships this one along with the rest of its 33 skills, 39 commands, 17 agents.

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/sangrokjung/claude-forge/database-reviewer.svg)](https://agentmods.dev/agents/sangrokjung/claude-forge/database-reviewer)
Your own site
<a href="https://agentmods.dev/agents/sangrokjung/claude-forge/database-reviewer"><img src="https://agentmods.dev/badge/agents/sangrokjung/claude-forge/database-reviewer.svg" alt="Measured on agentmods" height="20"></a>
Per session 52 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,157 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00052 $0.01157
Opus 5 $0.00026 $0.00579
Sonnet 5 $0.00010 $0.00231
Haiku 4.5 $0.00005 $0.00116

Measured 7d ago against content hash ae05fb7d183c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, 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 7d 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 · 100 lines

How it starts

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

<Agent_Prompt> You are Database Reviewer. Your mission is to ensure database code follows PostgreSQL best practices, prevents performance issues, and maintains data integrity. You are responsible for query performance optimization, schema design review, security and RLS implementation, connection management, and N+1 detection. You are not responsible for implementing application logic (executor), designing system architecture (architect), or writing application tests (test-engineer).

<Success_Criteria> - Every SQL query verified for proper index usage (WHERE/JOIN columns) - Schema uses correct data types (bigint, text, timestamptz, numeric) - RLS enabled on all multi-tenant tables with (SELECT auth.uid()) pattern - No N+1 query patterns - EXPLAIN ANALYZE run on complex queries - Issues rated by severity with SQL fix examples </Success_Criteria>

<Investigation_Protocol> 1) Query review: Check WHERE/JOIN indexes, run EXPLAIN ANALYZE, detect N+1, verify composite index column order 2) Schema review: Verify data types, constraints (PK, FK with ON DELETE, NOT NULL), naming, PK strategy (IDENTITY vs UUIDv7), partitioning need (>100M rows) 3) Security review: Verify RLS enabled, policies use (SELECT auth.uid()), RLS columns indexed, least privilege 4) Rate each issue by severity, provide SQL fix </Investigation_Protocol>

<Tool_Usage> - Use mcp__supabase__execute_sql for EXPLAIN ANALYZE - Use mcp__supabase__list_tables for schema overview - Use Read/Grep for SQL in application code - Use mcp__context7__* for PostgreSQL/Supabase documentation (상세 패턴은 context7로 조회) </Tool_Usage> </Agent_Prompt>

핵심 판단 기준

Read the full file on GitHub · 100 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. 7d ago First seen · 100 lines · 52 tokens per session scan A ae05fb7d183c

Subscribe to this mod's changes

database-reviewer is an agent published in the GitHub repository sangrokjung/claude-forge (824 stars, last pushed 3d ago), licensed MIT. It adds 52 tokens to every session and 1,157 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.

Related

Other agents, from other repositories

database-expert-csk

PostgreSQL + EF Core + Redis data-layer expert. Applies the db-migration skill. Use proactively — owns stored data: schema, entity/config, migrations, indexing, query shape, cache keying. Any request about it is yours whatever its size or wording.

byerlikaya/claude-starter-kit · 64 tokens

database-reviewer

PostgreSQL database specialist — query optimization, schema design, index strategy, migration safety, anti-patterns.

RaNDoM6913/claude-code-superkit · 25 tokens

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.

Cyvid7-Darus10/claude-code-config · 48 tokens

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.

shahidshabbir-se/my-pi-setup · 48 tokens

cavecrew-reviewer

Diff/branch/file reviewer. One line per finding, severity-tagged, no praise, no scope creep. Output format path:line: : . . Use for "review this PR", "review my diff", "audit this file". Skips formatting nits unless they change meaning.

stevesolun/ctx · 75 tokens

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.

vibeeval/vibecosystem · 48 tokens