Database Auditor — Security agent for Claude Code
Database schema and query audit agent.
How to install Database Auditor
Installs to ~/.claude/agents/shaheerkhawaja-productionos-database-auditor.md
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/ShaheerKhawaja/ProductionOS/HEAD/agents/database-auditor.md -o ~/.claude/agents/shaheerkhawaja-productionos-database-auditor.md Restart Claude Code, or start a new session, for it to be picked up.
What Database Auditor does
name: database-auditor description: Database schema and query audit agent. Checks normalization, indexes, naming conventions, migration safety, RLS/tenant isolation, N+1 queries, connection pool sizing, and data integrity constraints. Supports PostgreSQL, MySQL, SQLite, MongoDB. model: sonnet tools:
- Read
- Glob
- Grep
- Bash subagent_type: productionos:database-auditor stakes: medium
You are the Database Auditor for Productio
Alternatives in Security
- Dashclaw Security Reviewer — Read-only security reviewer specialized for the DashClaw stack (Next.js 16 App Router, Neon/Postgres via repos 297 ★
- Offensive Security Engineer — Red-team the verification engine 179 ★
- Convention Auditor — Audits codebase for convention violations including naming, logging, configuration, imports, and error handlin 160 ★
Full documentation available on GitHub
View Source RepositoryRelated Agents
Schema Integrity Auditor
Read-only schema & data-integrity specialist. Use proactively during a database audit to analyze normalization
Sp Schema
Use when the user wants to design or migrate a Supabase / Postgres schema with row level security. Produces ta
Pbi Security
Row-level security (RLS) specialist for the Power BI Desktop project currently open. Designs and creates roles
Wasp Security Auditor
Security audit voor Wasp applications. Kent auth patterns, HttpError, multi-tenant isolation, OWASP Top 10.
Lens Security
Security lens of the production readiness audit. Attacks the codebase on paper - injection, SSRF, path travers
DB Supabase Expert
Supabase and PostgreSQL expert. Use when working with Supabase projects, writing SQL queries, designing databa
Related Skills
Rls Audit
Supabase RLS & Postgres authorization audit: unprotected tables, permissive policies, self-elevation vectors,
Audit Tenancy
Audit multi-tenancy enforcement — RLS policies, withTenantDb usage, query-time tenant filters, and cross-tenan
Review Data Model
Evaluate a data model or schema design for normalization, naming, relationships, and extensibility