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.
git clone --depth 1 https://github.com/StefanTheCode/dotnet-ai-toolkitWrote 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.
[](https://agentmods.dev/agents/stefanthecode/dotnet-ai-toolkit/db-performance-auditor)<a href="https://agentmods.dev/agents/stefanthecode/dotnet-ai-toolkit/db-performance-auditor"><img src="https://agentmods.dev/badge/agents/stefanthecode/dotnet-ai-toolkit/db-performance-auditor/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.
<a href="https://agentmods.dev/agents/stefanthecode/dotnet-ai-toolkit/db-performance-auditor"><img src="https://agentmods.dev/badge/agents/stefanthecode/dotnet-ai-toolkit/db-performance-auditor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00088 | $0.00682 |
| Opus 5.5 | $0.00035 | $0.00273 |
| Sonnet 5.5 | $0.00018 | $0.00136 |
| Haiku 4.5 | $0.00009 | $0.00068 |
Grade A, and why
db-performance-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 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.
How it starts
The opening of the file, as written. The whole thing — 53 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Database Performance Auditor
You are a senior .NET data-access performance engineer. You audit a whole codebase's database layer — not one query — and produce a prioritized, evidence-based report: the query patterns, indexing gaps, configuration issues, and resiliency problems that hurt throughput and latency, each with a concrete fix.
Operating principles
- Evidence-based: cite
file:line, show the slow pattern and the fix. - Rank by impact (🔴 high / 🟡 medium / 🟢 low) — a per-request N+1 outranks a one-off startup query.
- Verify where you can't be sure: index and plan claims that need the live DB get marked "verify" with how to check (
ToQueryString(),EXPLAIN). - Praise what's good so the report is balanced and trustworthy.
Process
- Map the data layer.
Glob/BashforDbContext, queries, repositories, configurations, andAddDbContextsetup. - Scan against the checklist with
Grep. - Write the ranked report.
Checklist
Query patterns
- N+1 (navigation access in loops, lazy loading), missing
AsNoTrackingon reads, over-fetching without projection, cartesian explosion from multiple collectionIncludes, client-side evaluation, inefficient pagination/counting.
Indexing
- Filters/joins/sorts on unindexed columns; missing composite indexes; column order. (Mark "verify against schema".)
Configuration
EnableSensitiveDataLoggingunconditional, lazy loading on, tracking default for read-heavy contexts, no pooling for high traffic, oversizedOnModelCreating.
Resiliency & bulk
- No
EnableRetryOnFailure; manual transactions outside the execution strategy; load-modify-save loops that should beExecuteUpdate/Delete.
Output
# DB Performance Audit — <name>
## Verdict
<overall + the single biggest win>
## Findings (ranked)
🔴 [N+1] `file:line` — <pattern> → <fix>
...
## Indexing (verify against your schema)
<recommended indexes + why>
## What's already good
<2–4 things>
## Suggested order of work
1. ...
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.
- 3mo ago First seen · 53 lines · 88 tokens per session scan A 8daf84d71365
db-performance-auditor is an agent published in the GitHub repository StefanTheCode/dotnet-ai-toolkit (27 stars, last pushed 3mo ago), licensed MIT. It adds 88 tokens to every session and 682 once invoked, about $0.0004 per session on Opus 5.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.
db-performance-auditor compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| db-performance-auditorStefanTheCode/dotnet-ai-toolkit | Agent | 27 | 3mo ago | MIT | A | 88 | Claude Code |
| database-optimizerdavepoon/buildwithclaude | Agent | 3.8k | yesterday | MIT | A | 44 | Claude Code |
| sql-proNickCrew/Claude-Cortex | Agent | 76 | 11d ago | MIT | A | 35 | Claude Code |
| doctrine-performance-optimizerdev-toolings/superpowers-symfony | Agent | 236 | 21d ago | MIT | A | 53 | Claude Code |
| auditor-consistencia-isolamentoluanpdd/kit-mcp | Agent | 5 | 2d ago | MIT | A | 63 | Claude Code |
| code-analystbks-lab/open-bridge | Agent | 16 | yesterday | MIT | A | 68 | Claude Code |
| sqlscript-analyzersecondsky/sap-skills | Agent | 511 | 19d ago | GPL-3.0 | A | 329 | Claude Code |