code-testing-generator

code-testing-generator is an agent for Claude Code from dotnet/skills. It costs 44 tokens per session (4,370 once invoked), scanned A, original, MIT.

An internal agent that coordinates a research, planning, and implementation process for generating tests. It is used behind a public test-generation workflow.

In plain words
What is it for?
Use it indirectly through the related test-generation entry point to research targets, create a phased plan, write tests, and check that they compile and pass.
Why use it?
It breaks test generation into separate steps so the codebase is understood, the work is planned, and each phase can be verified.

Agent for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: mentions subagents.

Part of the dotnet-test plugin — 22 skills, 10 agents shipped together

Good fit Use it indirectly through the related test-generation entry point to research targets, create a phased plan, write tests, and check that they compile and pass.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/dotnet/skills/code-testing-generator
About the project

.NET/skills is a repository of reusable instructions and custom agents that help AI coding agents work with .NET and C#. It supports tasks such as C# language-server integration, data access, diagnostics, builds, packages, upgrades, MAUI, templates, and AI development. The catalogue entries are the repository's skills, agents, plugins, and instructions.

dotnet/skills · 5,377 stars · on GitHub

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.

Clone the repo
git clone --depth 1 https://github.com/dotnet/skills

Made for: Claude Code.

Or install dotnet-test, the plugin that ships this one along with the rest of its 22 skills, 10 agents.

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 code-testing-generator

README.md
[![agentmods](https://agentmods.dev/badge/agents/dotnet/skills/code-testing-generator.svg)](https://agentmods.dev/agents/dotnet/skills/code-testing-generator)
Your own site
<a href="https://agentmods.dev/agents/dotnet/skills/code-testing-generator"><img src="https://agentmods.dev/badge/agents/dotnet/skills/code-testing-generator.svg" alt="Measured on agentmods" height="20"></a>
Per session 44 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 4,370 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.
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.00044 $0.04370
Opus 5 $0.00022 $0.02185
Sonnet 5 $0.00009 $0.00874
Haiku 4.5 $0.00004 $0.00437

Measured 2d ago against content hash 8985a80f5fd7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

code-testing-generator 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 2d 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.

plugins/dotnet-test/agents/code-testing-generator.agent.md · 261 lines

How it starts

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

Test Generator Agent

You coordinate test generation using the Research-Plan-Implement (RPI) pipeline. You are polyglot — you work with any programming language.

Language-specific guidance: Call code-testing-extensions once, then read only the base extension for the detected language. Do not read example files unless the project has no test conventions and the base extension is insufficient.

Pipeline Overview

  1. Research — Understand the codebase structure, testing patterns, and what needs testing
  2. Plan — Create a phased test implementation plan
  3. Implement — Execute the plan phase by phase, with verification

Workflow

Step 1: Clarify the Request and Load Language Guidance

Understand what the user wants: scope (project, files, classes), priority areas, framework preferences. If clear, proceed directly. If the user provides no details or a very basic prompt (e.g., "generate tests"), use unit-test-generation.prompt.md for default conventions, coverage goals, and test quality guidelines.

Before writing code, read the language-specific base extension. Reuse it for the whole run; sub-agents must not independently reload the same reference unless they need a section that was not captured in the research document.

For Single pass and Iterative strategies, resolve one absolute <TESTAGENT_DIR> before invoking any sub-agent:

  1. Prefer a host-provided session artifact or scratch directory when one is available.
  2. Otherwise, in a Git worktree run git rev-parse --path-format=absolute --git-path testagent. This returns a path in worktree-specific Git metadata, which cannot be staged or committed.
  3. Outside Git, create a unique directory under the operating system's temporary directory.

Create the resolved directory and pass its absolute path explicitly in every sub-agent prompt. Never create <TESTAGENT_DIR> or any intermediate state file in version-controlled workspace content, and never modify .gitignore to hide them.

Read the full file on GitHub · 261 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. 2d ago Changed · +28 lines 8985a80f5fd7
  2. 3d ago First seen · 233 lines · 44 tokens per session scan A 2e40707070ca

Subscribe to this mod's changes

code-testing-generator is an agent published in the GitHub repository dotnet/skills (5,377 stars, last pushed today), licensed MIT. It adds 44 tokens to every session and 4,370 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-09-03.

Related

Other agents, from other repositories

project-implementer

Implementation specialist - executes tasks from plans with TDD methodology, writes tests, and validates acceptance criteria. Use for executing phased implementation plans generated by attune:plan.

athola/claude-night-market · 38 tokens

sdd-init

Initialize project SDD context, testing capabilities, and skill registry.

Gentleman-Programming/gentle-pi · 17 tokens

python-pro

Write idiomatic Python code with advanced features like decorators, generators, and async/await. Optimizes performance, implements design patterns, and ensures comprehensive testing. Use PROACTIVELY for Python refactoring, optimization, or complex Python features.

echoVic/blade-code · 51 tokens

test-engineer

QA engineer operating on the "Prove-It" principle — if it works, prove it with a test. Use when writing tests for a new feature, filling coverage gaps, or validating that a bug fix won't regress. Can read, write and edit test files. Dispatch with Task tool for isolated test work.

felvieira/claude-skills-fv · 66 tokens

test-writer

Use this agent when the guild needs unit or integration tests written for implemented code. The test-writer implements the test-planner's test plan — reading the plan's Changed Files Inventory instead of re-analyzing the codebase — then writes and runs the tests. Spawned by the check-in skill when a test-writing task…

HirogaKatageri/hirokata · 77 tokens

implement-test-diversifier

Generates test suites from 4 different testing perspectives for comprehensive coverage.

eai-support/eai-gofer · 19 tokens