adonet-data-access-auditor

adonet-data-access-auditor is a skill for Claude Code from StefanTheCode/dotnet-ai-toolkit. It costs 144 tokens per session (2,263 once invoked), scanned A, original, MIT.

A reviewer for classic ADO.NET database code on .NET Framework, including SQL connections, commands, readers, datasets, and repositories. ADO.NET is Microsoft's lower-level way to connect .NET programs to databases.

In plain words
What is it for?
Use it to review or rewrite data-access files, stored-procedure calls, and SQL built with SqlCommand before improving or migrating an older application.
Why use it?
It finds common problems such as SQL injection, which lets input alter a query, leaked database resources, and repeated inefficient reads.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the dotnet-ai-toolkit plugin — 49 skills shipped together

Good fit Use it to review or rewrite data-access files, stored-procedure calls, and SQL built with SqlCommand before improving or migrating an older application.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/stefanthecode/dotnet-ai-toolkit/adonet-data-access-auditor
Install

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.

Any agent
npx skills add StefanTheCode/dotnet-ai-toolkit --skill adonet-data-access-auditor
Clone the repo
git clone --depth 1 https://github.com/StefanTheCode/dotnet-ai-toolkit

Made for: Claude Code.

Or install dotnet-ai-toolkit, the plugin that ships this one along with the rest of its 49 skills.

Wrote 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.

agentmods badge for adonet-data-access-auditor

README.md
[![agentmods](https://agentmods.dev/badge/skills/stefanthecode/dotnet-ai-toolkit/adonet-data-access-auditor/github.svg)](https://agentmods.dev/skills/stefanthecode/dotnet-ai-toolkit/adonet-data-access-auditor)
Your own site
<a href="https://agentmods.dev/skills/stefanthecode/dotnet-ai-toolkit/adonet-data-access-auditor"><img src="https://agentmods.dev/badge/skills/stefanthecode/dotnet-ai-toolkit/adonet-data-access-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.

agentmods 80×15 button for adonet-data-access-auditor

Your own site · 80×15
<a href="https://agentmods.dev/skills/stefanthecode/dotnet-ai-toolkit/adonet-data-access-auditor"><img src="https://agentmods.dev/badge/skills/stefanthecode/dotnet-ai-toolkit/adonet-data-access-auditor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 144 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,263 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00144 $0.02263
Opus 5.5 $0.00058 $0.00905
Sonnet 5.5 $0.00029 $0.00453
Haiku 4.5 $0.00014 $0.00226

Measured 2mo ago against content hash ec11339b6483, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

adonet-data-access-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 2mo 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.

skills/adonet-data-access-auditor/SKILL.md · 136 lines

How it starts

The opening of the file, as written. The whole thing — 136 lines — stays where its author put it; the contents beside it link to each section on GitHub.

ADO.NET Data Access Auditor

Audit classic ADO.NET code for the three things that go wrong in 20-year-old data layers -- SQL injection, leaked connections/commands/readers, and wasteful repeated reads -- then return the rewritten code with a one-line explanation per fix. This is for the old stack (System.Data.SqlClient / Microsoft.Data.SqlClient, SqlDataReader, DataSet/DataTable), not EF Core.

When this runs

The user has hand-written ADO.NET (a DAL, a repository, a Helper class full of SqlCommands) and wants it made safe, leak-free, and faster -- or reviewed before a migration. They may paste code or point at a file. If nothing is provided, ask for the data-access method(s) and how the connection string is obtained.

Input — point it at your code

You don't need pasted snippets. Work from whatever target the user gives:

  • A single file — path/to/OrderRepository.cs
  • A folder — a Data/ or DAL/ directory
  • A whole project or solution — a .csproj / .sln or the repo root
  • A GitHub URL — clone first: git clone --depth 1 <url> /tmp/repo && cd /tmp/repo

Find the ADO.NET yourself with Glob/Grep/Bash instead of asking for a paste:

grep -rl "SqlCommand\|SqlConnection\|SqlDataReader\|SqlDataAdapter" --include=*.cs <target> | grep -vi "/obj/\|/bin/"
grep -rn "ExecuteReader\|ExecuteNonQuery\|\" + \|GetOrdinal" --include=*.cs <target>

On a large data layer, prioritize the worst offenders (string-built SQL, undisposed connections) and tell the user which files you scanned.

Workflow

  1. Read the code and the data flow. Identify every SqlConnection, SqlCommand, SqlDataReader, DataAdapter, DataSet, and where user input enters the SQL.
  2. Run the checklist below against every command.
  3. Rewrite the problematic methods. Preserve behavior unless you find a bug (call bugs out separately).
  4. Explain each change in one line -- what was wrong, why it matters, what the fix does.
  5. Flag what you cannot verify (e.g. column ordinals depend on the actual proc; mark "verify").

Read the full file on GitHub · 136 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

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.

  1. 2mo ago First seen · 136 lines · 144 tokens per session scan A ec11339b6483

Subscribe to this mod's changes

adonet-data-access-auditor is a skill published in the GitHub repository StefanTheCode/dotnet-ai-toolkit (26 stars, last pushed 2mo ago), licensed MIT. It adds 144 tokens to every session and 2,263 once invoked, about $0.0006 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.

Related

adonet-data-access-auditor compared with skills from other repositories

adonet-data-access-auditor next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
adonet-data-access-auditorStefanTheCode/dotnet-ai-toolkitSkill262mo agoMITA144Claude Code
optimizing-ef-core-queriesdotnet/skillsSkill5.8kyesterdayMITA116Claude Code
azure-resource-manager-postgresql-dotnetmicrosoft/skillsSkill3.2kyesterdayMITA97Claude Code
efcore-patternsAaronontheweb/dotnet-skillsSkill1.3k9d agoMITA35Claude Code
ef-corecodewithmukesh/dotnet-claude-kitSkill8052d agoMITA113Claude Code
migratecodewithmukesh/dotnet-claude-kitSkill8052d agoMITA82Claude Code
entity-framework-coremanagedcode/dotnet-skillsSkill508yesterdayMITA110Claude Code, Codex