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.
npx agentmods add agents/undeadlist/claude-code-agents/db-auditorgit clone --depth 1 https://github.com/undeadlist/claude-code-agentsWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00021 | $0.01078 |
| Opus 5 | $0.00010 | $0.00539 |
| Sonnet 5 | $0.00004 | $0.00216 |
| Haiku 4.5 | $0.00002 | $0.00108 |
Grade A, and why
db-auditor 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 2d 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.
How it starts
The opening of the file, as written. The whole thing — 162 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Database Audit
Analyze database layer for performance and correctness issues. Output to .claude/audits/AUDIT_DB.md.
Check
Query Patterns
- N+1 queries (loops with individual fetches)
- Unbounded fetches (no LIMIT, no pagination)
- SELECT * instead of specific columns
- Missing WHERE clauses on large tables
- Queries inside loops
Schema Issues
- Missing indexes on frequently queried columns
- Missing foreign key constraints
- No cascade rules defined
- Inconsistent naming conventions
- Missing timestamps (created_at, updated_at)
Connection & Pooling
- Connection pool configuration
- Connection leaks (connections not released)
- Missing connection timeouts
- No retry logic for transient failures
Migrations
- Unsafe migrations (data loss potential)
- Missing down migrations
- Schema drift between environments
- Large table alterations without planning
ORM Usage
- Eager loading not configured (N+1 source)
- Raw queries with string interpolation (SQL injection)
- Missing transaction boundaries
- Inconsistent model definitions
Grep
# N+1 patterns - queries in loops
grep -rn "for.*await.*find\|forEach.*await.*query" src --include="*.ts"
# Unbounded fetches
grep -rn "findMany()\|find({})\|SELECT \*" src --include="*.ts"
# Raw queries (potential injection)
grep -rn "\$queryRaw\|\$executeRaw\|\.query(" src --include="*.ts"
# Missing indexes - check schema
grep -rn "@index\|@@index\|createIndex" prisma --include="*.prisma"
# Connection pool settings
grep -rn "pool\|connectionLimit\|max_connections" . --include="*.ts" --include="*.env*"
Output
# Database Audit
## Summary
| Category | Critical | High | Medium | Low |
|----------|----------|------|--------|-----|
| Queries | X | X | X | X |
| Schema | X | X | X | X |
| Connections | X | X | X | X |
| Migrations | X | X | X | X |
**Database:** [Detected DB type]
**ORM:** [Prisma/Drizzle/TypeORM/etc.]
## Critical
### DB-001: N+1 Query in User Loading
**File:** `src/api/users.ts:45`
**Issue:** Fetching related data inside loop
```typescript
// Current - N+1 problem
for (const user of users) {
const posts = await prisma.post.findMany({ where: { userId: user.id } });
}
Impact: O(n) queries instead of O(1). 100 users = 101 queries. Fix:
// Use include for eager loading
const users = await prisma.user.findMany({
include: { posts: true }
});
DB-002: Unbounded Query on Large Table
File: src/api/products.ts:23
Issue: No LIMIT on product listing
const products = await prisma.product.findMany();
Impact: Memory exhaustion with large datasets Fix:
const products = await prisma.product.findMany({
take: 100,
skip: page * 100
});
High
DB-003: Missing Index on Frequently Queried Column
File: prisma/schema.prisma
Issue: email column queried often but not indexed
Impact: Full table scan on every login
Fix:
model User {
email String @unique
@@index([email])
}
DB-004: Raw Query with String Interpolation
File: src/lib/search.ts:67
Issue: SQL injection vulnerability
const results = await prisma.$queryRaw`SELECT * FROM users WHERE name LIKE '%${search}%'`;
Fix: Use parameterized queries
Medium
DB-005: No Connection Pool Configuration
File: prisma/schema.prisma
Issue: Using default pool settings
Impact: Connection exhaustion under load
Fix: Configure connection_limit in DATABASE_URL
DB-006: Missing Transaction on Related Writes
File: src/api/orders.ts:89
Issue: Order and OrderItems created without transaction
Impact: Partial writes on failure
Fix: Wrap in prisma.$transaction()
Recommendations
- Add indexes for all columns used in WHERE clauses
- Enable query logging in development to catch N+1
- Set connection pool limits appropriate for your hosting
- Add pagination to all list endpoints
- Use transactions for multi-table writes
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.
- 2d ago First seen · 162 lines · 21 tokens per session scan A c61d0932391f
db-auditor is an agent published in the GitHub repository undeadlist/claude-code-agents (147 stars, last pushed 2mo ago), licensed MIT. It adds 21 tokens to every session and 1,078 once invoked, about $0.0001 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.
Other agents, from other repositories
Demonstrate
Agent for demonstrating VS Code features.
playwright-test-generator
Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.
.NET-Notebook-Migration-Agent
Expert .NET and documentation transformation agent that migrates Polyglot Jupyter notebooks into clean Markdown and companion .NET sample code.
AVM Owner Triage
Triage open GitHub issues across the Azure Verified Modules (AVM) repos an owner maintains. Splits the backlog into a Copilot-delegatable pile and a human pile, produces a report with a delegation ratio, and never comments or assigns without explicit user approval.
Ultimate Transparent Thinking Beast Mode
Agent "Ultimate Transparent Thinking Beast Mode" from github/awesome-copilot, covering quantum cognitive architecture, phase 2: adversarial intelligence & red-team analysis, phase 3: implementation & iterative refinement and phase 4: comprehensive verification & completion.
WinForms Expert
Support development of .NET (OOP) WinForms Designer compatible Apps.