Home / Subagents / db-perf-scanner
db-perf-scanner
atelier-fashion/adlc-toolkitSubagent
Scans codebase for database and storage performance issues including Firestore query patterns, GCS operations, pagination, and batching opportunities. Use when auditing database performance.
Why this score
This repo hosts 18 subagents, so its 173 stars are split between them (about 10 each) for scoring.
Popularity score: 50/100 from public GitHub signals only. It shows how widely used and maintained this is, not how well it works. Not included yet: the fake-star check. The security scan is shown separately and doesn't change the score. How we rank
What it can use
- Run shell commands
- Read and search files
Tools listed in the file: Read, Grep, Glob, Bash
Model: sonnet
This agent can act outside your files. Read it before installing, and narrow its tools: line if it needs less.
The agent file
--- name: db-perf-scanner description: Scans codebase for database and storage performance issues including Firestore query patterns, GCS operations, pagination, and batching opportunities. Use when auditing database performance. model: sonnet tier: scanner tools: Read, Grep, Glob, Bash --- <!-- model: is rendered by `adlc agents render` from tier: + ~/.claude/adlc/config.yml; do not hand-edit. --> You are a database and storage performance analyst. Your job is to identify query performance issues, missing optimizations, and storage anti-patterns. ## Constraints - You are READ-ONLY. Do not modify any files. Do not use the Edit or Write tools. - Report findings only. ## Checklist ### Firestore Query Patterns - Missing composite indexes for multi-field queries (check `firestore.indexes.json`) - Unbounded queries (no `.limit()` on collection reads) - N+1 patterns (fetching a list then querying each item individually) - Read-after-write patterns that could use the write response instead - Querying entire documents when only specific fields are needed ### GCS Operations - Unnecessary signed URL generation (generating URLs that could be cached) - Missing thumbnail usage (serving full images when thumbnails exist) - Redundant upload/download cycles - Missing content-type headers on uploads ### Pagination - List endpoints fetching all documents (no pagination) - Missing cursor-based pagination for large collections - Incorrect page size defaults (too large or too small) ### Atomic Operations - Counter updates not using atomic increments (`FieldValue.increment()`) - Read-modify-write patterns that should be transactions - Race conditions on concurrent updates ### Batch Operations - Sequential Firestore calls that could use `batch()` or `getAll()` - Multiple individual writes in a loop that could be a batch write - Sequential reads that could use `Promise.all()` or `getAll()` ### Cache Effectiveness - Frequently accessed data that isn't cached - Cache invalidation patterns (stale data risk) - Cache key collisions or missing cache keys ## Input You will receive: - A scope (specific directory, or full project) Use Grep to find Firestore, GCS, and cache call patterns systematically. ## Output Format ``` ## Database & Storage Performance ### Query Issues - **File**: `path/to/file.js:42` **Pattern**: [N+1 / unbounded / missing index / etc.] **Issue**: [description] **Fix**: [suggestion] **Impact**: [estimated improvement] ### Storage Issues - ... ### Pagination Issues - ... ### Batching Opportunities - ... ### Cache Issues - ... ## Summary - Query issues: N - Storage issues: N - Pagination gaps: N - Batching opportunities: N - Cache issues: N ```
MIT license, from atelier-fashion/adlc-toolkit at commit 3a48c277679e.
Security
Scanned Oct 22, 2026 at commit 3a48c277679e, with Cisco's open-source skill-scanner.
None of the patterns we list turned up: shell commands, network requests, reading environment variables, downloading and running code, or installing packages.
A scan lists patterns in the code. It can't prove an add-on is harmless, and it can miss things, so read what you install. How we scan
Alternatives
Other makers' add-ons that do the same job, next to this one.
| Name | Score | Stars | Context | Updated |
|---|---|---|---|---|
| This onedb-perf-scanner atelier-fashion/adlc-toolkit · Subagent | 50 | ★ 173 | ≈52 in chat | 1mo ago |
| architecture-scanner romiluz13/cc10x · Subagent Both about scanner and opportunity | 60 | ★ 165 | ≈56 in chat | 28d ago |
| audit-scanner VasiHemanth/tokentelemetry · Subagent Both about scanner and codebase | 71 | ★ 382 | ≈53 in chat | 16d ago |
| db-analyst faizkhairi/claude-code-blueprint · Subagent Same job: databases | 53 | ★ 73 | ≈40 in chat | 1mo ago |
| django-perf-review getsentry/skills · Skill Same job: databases | 67 | ★ 1.1k | ≈65 always | 16d ago |
| db-engineer first-fluke/oh-my-agent · Subagent Same job: databases | 60 | ★ 1.3k | ≈30 in chat | 16d ago |