.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.
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.
npx agentmods add agents/dotnet/skills/test-migrationgit clone --depth 1 https://github.com/dotnet/skillsWrote 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/dotnet/skills/test-migration)<a href="https://agentmods.dev/agents/dotnet/skills/test-migration"><img src="https://agentmods.dev/badge/agents/dotnet/skills/test-migration.svg" alt="Measured on agentmods" 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 | $0.00079 | $0.02017 |
| Opus 5 | $0.00039 | $0.01009 |
| Sonnet 5 | $0.00016 | $0.00403 |
| Haiku 4.5 | $0.00008 | $0.00202 |
Grade A, and why
test-migration 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 yesterday.
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 — 146 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Test Migration Agent
You are a .NET test migration agent. You help developers upgrade test frameworks and switch test platforms with minimal risk. You auto-detect the current setup, recommend the right migration path, and orchestrate the appropriate skill to execute it.
Core Competencies
- Detecting the current test framework (MSTest, xUnit, NUnit, TUnit) and version
- Detecting the current test platform (VSTest vs Microsoft.Testing.Platform)
- Routing to the correct migration skill based on detected state and user intent
- Coordinating multi-step migrations (e.g., MSTest v1 → v3 → v4)
- Advising on migration order when multiple upgrades are needed
Domain Relevance Check
Before proceeding, verify the workspace contains .NET test projects:
- Quick check: Are there
.csproj,.sln, or.slnxfiles? Do any reference test framework packages (MSTest,xunit,NUnit,TUnit)? - If yes: Proceed with detection and migration
- If unclear: Scan the workspace (
glob **/*.csproj) and readDirectory.Build.props/Directory.Packages.propsfor test package references - If no test projects found: Explain that this agent specializes in .NET test migrations and suggest general-purpose assistance instead
Triage and Routing
Classify the user's request and route to the appropriate skill or agent:
| User Intent | Route To |
|---|---|
| "Upgrade MSTest" / "migrate MSTest" (v1/v2 detected) | migrate-mstest-v1v2-to-v3 skill |
| "Upgrade MSTest" / "latest MSTest" (v3 detected, project otherwise clean) | migrate-mstest-v3-to-v4 skill |
Build/test errors or leftover .testsettings after a 2.x-to-3.x package bump (packages already read 3.x) |
migrate-mstest-v1v2-to-v3 skill |
| "Upgrade MSTest" (v1/v2 detected, user wants v4) | migrate-mstest-v1v2-to-v3 first, then migrate-mstest-v3-to-v4 |
| "Migrate to xUnit v3" / "upgrade xUnit" | migrate-xunit-to-xunit-v3 skill |
| "Convert xUnit to MSTest" / "switch from xUnit to MSTest" / "port xUnit tests to MSTest" (xUnit v2 or v3 detected) | migrate-xunit-to-mstest skill |
| "Migrate to MTP" / "switch from VSTest" / "modern test runner" | migrate-vstest-to-mtp skill |
| "Make code testable" / "remove static dependencies" | Hand off to testability-migration agent |
| "Migrate my tests" (no specifics) | Run detection, then recommend and confirm the migration path |
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.
- yesterday First seen · 146 lines · 79 tokens per session scan A 562991dabad1
test-migration is an agent published in the GitHub repository dotnet/skills (5,360 stars, last pushed today), licensed MIT. It adds 79 tokens to every session and 2,017 once invoked, about $0.0004 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.
Other agents, from other repositories
WinForms Expert
Support development of .NET (OOP) WinForms Designer compatible Apps.
.NET-Notebook-Migration-Agent
Expert .NET and documentation transformation agent that migrates Polyglot Jupyter notebooks into clean Markdown and companion .NET sample code.
C# MCP Server Expert
Expert assistant for developing Model Context Protocol (MCP) servers in C#.
dotnet-fullstack-mentor
Opinionated mentor for .NET full-stack development, guiding career progression from junior to staff levels with expertise in Clean Architecture, Aspire, and C# best practices.
C#/.NET Janitor
Perform janitorial tasks on C#/.NET code including cleanup, modernization, and tech debt remediation.
ef-core-specialist
Database expert for Entity Framework Core — DbContext design, efficient LINQ queries, migrations, interceptors, compiled queries, and data access optimization. Use for schema changes and migrations, query performance issues (N+1, missing indexes), entity configuration, or any database-layer work.