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

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

Good fit Use it when writing SQL, designing tables and relationships, creating migrations, or investigating database performance and integrity issues.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/kumaran-is/claude-code-onboarding/postgresql-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/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/github.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/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for postgresql-database-reviewer

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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. 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.00000 $0.00496
Opus 5.5 $0.00000 $0.00198
Sonnet 5.5 $0.00000 $0.00099
Haiku 4.5 $0.00000 $0.00050

Measured 3mo ago against content hash 31fbbe689bd6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 3mo 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. 3mo 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 (37 stars, last pushed yesterday), 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.

Related

postgresql-database-reviewer compared with agents from other repositories

postgresql-database-reviewer next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
postgresql-database-reviewerkumaran-is/claude-code-onboardingAgent37yesterdayMITA0Claude Code
PostgreSQL Database Administratorgithub/awesome-copilotAgent42ktodayMITA17Claude Code
postgres-expert0xfurai/claude-code-subagentsAgent1.0k24d agoMITA28Claude Code
supabase-substrate-explorerKastalien-Research/thoughtboxAgent6621d agoMITA117Claude Code
supabase-rag-implementerluanpdd/kit-mcpAgent52d agoMITA52Claude Code
database-reviewersjarmak/coding-agent-workflowsAgent74d agoMITA43Claude Code
supabase-roles-implementerluanpdd/kit-mcpAgent52d agoMITA59Claude Code