adonet-data-access-auditor

adonet-data-access-auditor is a skill for Claude Code, Codex 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 CodeCodex

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

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.

agentmods
npx agentmods add skills/stefanthecode/dotnet-ai-toolkit/adonet-data-access-auditor
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, Codex.

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.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.svg" alt="Measured on agentmods" 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. Scan, not verified.
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 $0.00144 $0.02263
Opus 5 $0.00072 $0.01131
Sonnet 5 $0.00029 $0.00453
Haiku 4.5 $0.00014 $0.00226

Measured 5d ago against content hash ec11339b6483, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 5d 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 filepath/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. 5d 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 (19 stars, last pushed 26d ago), licensed MIT. It adds 144 tokens to every session and 2,263 once invoked, about $0.0007 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.

Related

Other skills, from other repositories

azure-resource-manager-postgresql-dotnet

Azure PostgreSQL Flexible Server SDK for .NET. Database management for PostgreSQL Flexible Server deployments. Use for creating servers, databases, firewall rules, configurations, backups, and high availability. Triggers: "PostgreSQL", "PostgreSqlFlexibleServer", "PostgreSQL Flexible Server", "Azure Database for…

microsoft/skills · 97 tokens

optimizing-ef-core-queries

Optimize and improve the performance of slow Entity Framework Core (EF Core) queries: make them generate less SQL, make fewer database round-trips, and return results faster. Use whenever an EF Core or DbContext query or data-access path is slow or should be made faster — whether or not EF Core owns the database…

dotnet/skills · 86 tokens

efcore-patterns

Entity Framework Core best practices including NoTracking by default, query splitting for navigation collections, migration management, dedicated migration services, and common pitfalls to avoid.

Aaronontheweb/dotnet-skills · 35 tokens

entity-framework-core

Design, tune, or review EF Core data access with proper modeling, migrations, query translation, performance, and lifetime management for modern .NET applications. USE FOR: DbContext, migrations, model configuration, EF queries, tracking, loading, performance, transactions, and EF6 migration decisions. DO NOT USE FOR…

managedcode/dotnet-skills · 110 tokens

entity-framework6

Maintain or migrate EF6-based applications with realistic guidance on what to keep, what to modernize, and when EF Core is or is not the right next step. USE FOR: EF6 codebases; runtime versus ORM migration decisions; EDMX, code-first, ObjectContext, and legacy data-access review. DO NOT USE FOR: unrelated stacks…

managedcode/dotnet-skills · 114 tokens

ef-core

Entity Framework Core patterns for .NET 10. Covers DbContext configuration, migrations workflow, interceptors, compiled queries, ExecuteUpdateAsync, ExecuteDeleteAsync, value converters, and query optimization. Load this skill when working with databases, writing queries, managing schema changes, or when the user…

codewithmukesh/dotnet-claude-kit · 113 tokens