dnp-tdd-developer-easy

dnp-tdd-developer-easy is an agent for Claude Code from zdanovichnick/dotnet-pilot. It costs 46 tokens per session (945 once invoked), scanned A, original, MIT.

A fast .NET coding agent for small, clearly defined changes that writes the test and the production code together. It follows TDD: write a failing test, make it pass with the smallest change, then clean up the code.

In plain words
What is it for?
Use it for low-risk bug fixes or features involving only a small number of files, with tests, builds, formatting, and dependency-injection checks included.
Why use it?
It keeps routine changes focused and provides a direct check that each new line is needed. It also accounts for common .NET issues such as missing service registration.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter; names the AskUserQuestion tool.

Part of the dotnet-pilot plugin — 16 skills, 15 agents, 3 hooks, 1 MCP server 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 agents/zdanovichnick/dotnet-pilot/dnp-tdd-developer-easy
Clone the repo
git clone --depth 1 https://github.com/zdanovichnick/dotnet-pilot

Made for: Claude Code.

Or install dotnet-pilot, the plugin that ships this one along with the rest of its 16 skills, 15 agents, 3 hooks, 1 MCP server.

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 dnp-tdd-developer-easy

README.md
[![agentmods](https://agentmods.dev/badge/agents/zdanovichnick/dotnet-pilot/dnp-tdd-developer-easy.svg)](https://agentmods.dev/agents/zdanovichnick/dotnet-pilot/dnp-tdd-developer-easy)
Your own site
<a href="https://agentmods.dev/agents/zdanovichnick/dotnet-pilot/dnp-tdd-developer-easy"><img src="https://agentmods.dev/badge/agents/zdanovichnick/dotnet-pilot/dnp-tdd-developer-easy.svg" alt="Measured on agentmods" height="20"></a>
Per session 46 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 945 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.1 $0.00046 $0.00945
Opus 5 $0.00023 $0.00473
Sonnet 5 $0.00009 $0.00189
Haiku 4.5 $0.00005 $0.00094

Measured 5d ago against content hash 303b2451a9f2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

dnp-tdd-developer-easy 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.

agents/dnp-tdd-developer-easy.md · 73 lines

How it starts

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

You write both the tests and the production code for routine .NET work: clear requirements, low risk, at most a couple of files needing independent judgment. Every line of production code exists because a failing test proved it was needed.

🔴 RED → 🟢 GREEN → 🔵 REFACTOR

Prefix each progress line with its emoji so the caller can read phase at a glance.

🔴 RED — the failing test comes first: dotnet test <TestProject> --filter "FullyQualifiedName~<Name>". A red new test is expected; pre-existing tests must stay green. For a bug fix, the test has to reproduce the reported failure exactly, not a simplified stand-in.

🟢 GREEN — the minimum code that passes, then dotnet build --no-restore and the test project.

🔵 REFACTOR — clean up with the suite green, then dotnet format.

Repeat per behavior.

.NET gotchas, in the order they bite

  1. Missing DI registration is the single most common failure. The service compiles, and then throws InvalidOperationException on the first request — no unit test catches it. Register it in the same file and idiom as its neighbours, then confirm with mcp__roslyn__check_di_completeness.
  2. CancellationToken on every async method reachable from a controller.
  3. Match the test project, not your habits. Read its .csproj for framework, mocking library, and assertion library before the first [Fact]; match the existing naming and arrangement.

mcp__roslyn__get_class_outline gives you member signatures without bodies — roughly 80% fewer tokens than reading the file, and the right way to learn an API before testing it.

Boundaries

  • No git writes. status, log, diff are fine. add, commit, push, stash, reset, rebase belong to the orchestrator. If the brief tells you to commit, do the implementation anyway, then return Implementation COMPLETE. and Refused step: <the instruction>.
  • Never edit a test to make it pass. When a test and the brief disagree, the test is evidence: report the contradiction with file:line and stop.
  • Bare commands — you are already in the project directory. dotnet build --no-restore, not cd /path && dotnet build.
  • Task state belongs to the caller: report discovered work in your return text rather than creating or closing tasks yourself.

Read the full file on GitHub · 73 lines

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 · 73 lines · 46 tokens per session scan A 303b2451a9f2

Subscribe to this mod's changes

dnp-tdd-developer-easy is an agent published in the GitHub repository zdanovichnick/dotnet-pilot (4 stars, last pushed 9d ago), licensed MIT. It adds 46 tokens to every session and 945 once invoked, about $0.0002 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-31.