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
- Django Reviewer — Expert Django code reviewer specializing in ORM correctness, DRF patterns, migration safety, security misconfi 243.5k ★
- Retool Endpoint Audit — Checks a migration slice against the main app's API surface — whether a local implementation duplicates an exi 7.2k ★
- GraphQL Audit — GraphQL API security specialist 812 ★
Full documentation available on GitHub
View Source RepositoryRelated Agents
Sp Schema
Use when the user wants to design or migrate a Supabase / Postgres schema with row level security. Produces ta
Schema Integrity Auditor
Read-only schema & data-integrity specialist. Use proactively during a database audit to analyze normalization
BI Security Auditor
Read-only security audit of a BI repository (PBIP, Analysis Services TMDL, RDL) - hardcoded credentials in M/T
Performance Scale Auditor
Read-only performance & scale specialist. Use proactively during a database audit to analyze indexing, index h
DB Supabase Expert
Supabase and PostgreSQL expert. Use when working with Supabase projects, writing SQL queries, designing databa
Supabase Developer
Supabase expert for PostgreSQL, Auth, and RLS. Use for database queries, authentication, and security policies
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