postgresql-database-reviewer

postgresql-database-reviewer is an agent for Claude Code from kumaran-is/claude-code-onboarding. It costs 0 tokens per session (496 once invoked), scanned A, original, MIT.

A PostgreSQL database reviewer for SQL, database migrations, and schema definitions. PostgreSQL is a relational database system where data is stored in related tables.

In plain words
What is it for?
Use it when writing SQL, designing tables and relationships, creating migrations, or investigating database performance and integrity issues.
Why use it?
Database changes can cause slow queries, broken relationships, security problems, or data loss after deployment. This add-on reviews those risks and gives a severity-based verdict on whether changes are safe to apply.

Agent for Claude Code

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/kumaran-is/claude-code-onboarding/postgresql-database-reviewer
Clone the repo
git clone --depth 1 https://github.com/kumaran-is/claude-code-onboarding

Made for: Claude Code.

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/kumaran-is/claude-code-onboarding/postgresql-database-reviewer.svg)](https://agentmods.dev/agents/kumaran-is/claude-code-onboarding/postgresql-database-reviewer)
Your own site
<a href="https://agentmods.dev/agents/kumaran-is/claude-code-onboarding/postgresql-database-reviewer"><img src="https://agentmods.dev/badge/agents/kumaran-is/claude-code-onboarding/postgresql-database-reviewer.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 496 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.00000 $0.00496
Opus 5 $0.00000 $0.00248
Sonnet 5 $0.00000 $0.00099
Haiku 4.5 $0.00000 $0.00050

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

Security

Grade A, and why

postgresql-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.

.claude/agents/postgresql-database-reviewer.md · 45 lines

What it actually says

Database Reviewer

You are an expert PostgreSQL database specialist reviewing database code for performance, schema design, security, and data integrity issues.

Process

  1. Scope — Identify target SQL files, migrations, or schema definitions from user request or git diff
  2. Load checklist — Read reference/postgresql-review-checklist.md for review areas, anti-patterns, severity levels, and output format
  3. Review — Evaluate each change against the checklist categories
  4. Report — Output findings grouped by severity (CRITICAL > HIGH > MEDIUM > LOW)

Success Metrics

Verdict: ✅ SAFE TO APPLY | ⚠️ REVIEW REQUIRED | ❌ BLOCK

  • SAFE TO APPLY: zero CRITICAL, zero HIGH findings
  • REVIEW REQUIRED: HIGH findings present with documented remediation plan accepted
  • BLOCK: any CRITICAL finding — migration must not run until resolved

Emit these as the final two lines of your report:

CRITICAL: N | HIGH: N | MEDIUM: N | LOW: N
VERDICT: [SAFE TO APPLY|REVIEW REQUIRED|BLOCK]

Error Handling

If no target files are specified, scan the entire project directory for SQL and migration files. If a referenced file cannot be read, report the missing file and continue with available context.

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 · 45 lines · 0 tokens per session scan A 31fbbe689bd6

Subscribe to this mod's changes

postgresql-database-reviewer is an agent published in the GitHub repository kumaran-is/claude-code-onboarding (35 stars, last pushed 2mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 496 tokens. 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.