A Claude Code plugin that makes Claude write .NET 10 the way your team would.
34 skills • 3 agents • 8 rules • 24 MCP tools • guard hooks. Built for .NET 10 and C# 14.
Out of the box, Claude Code reaches for DateTime.Now, wraps EF Core in a repository, and reads whole files to find one method. This plugin gives it your .NET conventions, a set of workflows (/verify, /spec, /tdd, ...) and a Roslyn server for cheap, accurate code navigation. Every skill is checked against current .NET 10 and C# 14 guidance.
You need Claude Code and the .NET 10 SDK. Then, inside Claude Code:
/plugin marketplace add codewithmukesh/dotnet-agent-kit
/plugin install dotnet-agent-kit
That's it. Open any .NET repo and the kit is active. Optionally run /dotnet-init once per project: it generates a CLAUDE.md for your stack and architecture, and can copy the 8 rules into .claude/rules/ so they are always loaded.
Other install routes (APM, local checkout, the Windows cache error, macOS/Linux DOTNET_ROOT) are in docs/reference.md. New here? The complete guide walks through a first session.
- Session context. A SessionStart hook detects a .NET repo and adds a skill index plus a digest of the 8 rules (about 1.3k tokens). Plugins can't ship always-on rules, and without a nudge Claude rarely loads skills, so this is what makes the kit active. It prints nothing outside .NET repos. Turn it off with
CWM_SESSION_CONTEXT=off. - 34 skills that load on demand: architecture, modern C#, minimal APIs, EF Core, testing, resilience, observability, Docker, Aspire and more. Each has code, a BAD/GOOD anti-pattern pair and a decision table.
- 11 slash commands for the loops you repeat:
/verify,/spec,/tdd,/scaffold,/migrate,/build-fixand others (see below). - A Roslyn MCP server with 24 read-only tools. Claude asks for one method body, one type hierarchy or one route map instead of reading files. It starts by itself; nothing to install.
- Guard hooks. Block destructive shell commands, format edited
.csfiles once per turn, run restore after.csprojchanges, and stop shortcuts like[Fact(Skip...)],Assert.True(true)or an emptycatch. - Modular slices by default. Business apps start as modules built from vertical slices (ADR-008). The
architecture-advisorskill asks questions first and can pick VSA, Clean Architecture or DDD when they fit better.
We measure it instead of asking you to trust it.
The 23 cases in evals/ run with claude plugin eval: each request is answered once with the plugin and once without it. On Claude Sonnet, from the 2026-11-28 eval runs:
- Without the session hook, a kit skill loaded in about 2 of 36 runs. With it, the matching skill loads in nearly every run, and the overall score rose from 0.57 to 0.92–0.95 across two full runs.
- The cases that dipped in the second run were fixed and re-run three times each, all passing.
- Scores with the plugin against the no-plugin baseline (0 to 1):
| What the case checks | Without | With |
|---|---|---|
| Pushes back on a generic repository over EF Core | 0 | 1.0 |
Pins EF Core to an exact 10.0.x on net10.0 (no floating 10.*) |
0.5 | 1.0 |
| Flags the MediatR commercial licence and offers an alternative | 0.5 | 1.0 |
Handlers return TypedResults unions with ProblemDetails |
0.63 | 1.0 |
| xUnit v3 + Testcontainers fixture, no in-memory database | 0.63 | 1.0 |
| EF Core 10 named query filters | 0.75 | 1.0 |
| Built-in OpenAPI + Scalar, not Swashbuckle | 0.67–0.83 | 1.0 |
Loads the right workflow (/verify, /migrate, /spec, /build-fix, /code-review) |
– | every run |
These are score differences against the no-plugin baseline on one model with few runs per case, so read them as direction, not precision. How to run them yourself: evals/README.md.
We asked Claude Code (Sonnet 5.5) 11 everyday questions on each of five open-source solutions, from 9 to 270 projects, with and without the navigator. A blinded judge scored each answer from 0 to 100.
| Size | Solution | Projects | Time for 11 questions | Accuracy (0-100) | Tool calls | Cost |
|---|---|---|---|---|---|---|
| Small | CleanArchitecture | 9 | 112 s → 62 s | 59 → 95 | 23 → 16 | $0.34 → $0.20 |
| Small | eShop | 28 | 90 s → 64 s | 78 → 95 | 17 → 11 | $0.26 → $0.25 |
| Medium | Jellyfin | 41 | 168 s → 127 s | 70 → 93 | 27 → 11 | $0.69 → $0.44 |
| Large | OrchardCore | 257 | 179 s → 133 s | 48 → 91 | 35 → 11 | $0.53 → $0.55 |
| XL | ABP Framework | 270 | 186 s → 116 s | 49 → 86 | 35 → 13 | $0.55 → $0.63 |
| All 55 questions | 734 s → 502 s (-32%) | 61 → 92 | 137 → 62 | $2.37 → $2.08 (-12%) |
Speed is the smaller win. Without the navigator, Claude answers from Grep's matching lines, which is quick but often wrong. Honest notes: it was slower on 7 of the 55 questions, cost slightly more on the two largest solutions, and each question ran once per arm. Full method, per-question results and startup timings: the navigator README.
Workflow skills that orchestrate other skills and agents. Type the command and Claude does the rest.
| Command | Purpose |
|---|---|
/dotnet-init |
Set up an existing or new project: detects your stack, asks architecture questions, generates CLAUDE.md (merges with an existing one, backs it up first) |
/spec |
Ask questions until you and Claude agree, then write the implementation plan to docs/specs/ |
/verify |
7-phase check: build, analyzers, antipatterns, tests, security, format, diff. Modes: health (graded report card), security (OWASP, secrets, auth, CORS), architecture (dependency direction, module leaks) |
/tdd |
Red-green-refactor with xUnit v3 and Testcontainers |
/scaffold |
One feature slice (endpoint, handler, request, validator) plus its tests, in your architecture |
/code-review |
Review prioritised by blast radius: data access, security and concurrency first |
/build-fix |
Bounded build-fix and test-fix loops that stop when no progress is made |
/migrate |
EF Core schema, .NET version and NuGet migrations with rollback. /migrate packages reports outdated packages, CVEs and commercial-license traps |
/de-sloppify |
Cleanup pass: format, unused usings, analyzers, dead code, sealed classes, cancellation tokens |
/wrap-up |
End-of-session handoff and next-session loading. /wrap-up checkpoint saves mid-session |
/doctor |
Checks the kit itself: .NET 10 SDK, dotnet dnx, bash for the hooks, the navigator, CLAUDE.md and rules, and leftover installs under the old name. Run it after installing or when something seems off |
Eleven are the workflows above. The other 23 are knowledge skills that Claude loads when the task matches. What each one teaches: docs/reference.md.
| Topic | Skills |
|---|---|
| Architecture and structure | architecture-advisor, modular-slices |
| Language, DI, errors | modern-csharp, dependency-injection, configuration, error-handling |
| Web APIs | minimal-api, openapi, authentication |
| Data and messaging | ef-core, caching, messaging |
| Resilience and observability | resilience, logging, opentelemetry |
| Testing | testing, tdd |
| Build, deploy, runtime | docker, ci-cd, aspire, native-aot |
| Console and desktop | console-cli, desktop-mvvm |
| Workflows | dotnet-init, spec, scaffold, verify, build-fix, code-review, de-sloppify, migrate, wrap-up, doctor |
| Learning | instinct-system |
Domain knowledge lives in skills. Agents exist only where a separate context or a tool restriction earns its cost.
| Agent | Use it for |
|---|---|
| code-reviewer | Read-only review of correctness, security and performance. Learns your conventions across sessions |
| build-error-resolver | Parse errors, fix, rebuild until green |
| refactor-cleaner | Dead code and cleanup in an isolated worktree |
coding-style, architecture, security, testing, performance, error-handling, packages and workflow. Claude sees a short digest of them at session start; /dotnet-init can copy the full files into your project's .claude/rules/ so they are always loaded. What each rule enforces: docs/reference.md.
The plugin's .mcp.json starts CWM.RoslynNavigator through dotnet dnx CWM.RoslynNavigator@<version> --yes, so there is no dotnet tool install step. A global install (dotnet tool install -g CWM.RoslynNavigator) still works if you prefer it. The 24 tools are read-only and return file paths, line numbers and short snippets with a Truncated flag, so no single call can flood your context. Highlights: find_symbol, find_references, get_symbol_source, get_type_hierarchy, get_endpoint_map, get_di_registrations, analyze_change_impact. All tools, flags and troubleshooting: mcp/CWM.RoslynNavigator/README.md.
Hooks run on their own (declared in hooks/hooks.json, documented in hooks/README.md): session start, the Bash guard, formatting (edited files are formatted once at the end of each turn, not after every edit), restore after a .csproj change, and the slop guard. Session start, format and the slop guard each have an environment variable to turn them off, and CI runs the hook behaviour tests on every push. hooks/ also holds optional git pre-commit hooks and post-test-analyze.sh, which you pipe dotnet test output into.
Drop-in CLAUDE.md files if you prefer to copy one by hand instead of running /dotnet-init: web-api, modular-monolith (the default for business apps), blazor-app, worker-service, class-library, console-cli and desktop-app.
Claude Code is the primary target: it is the only one the evals, hook tests and session hook cover. The repo also ships config for Cursor (.cursor/rules/dotnet-rules.md, generated from the rules), Codex CLI (.codex/AGENTS.md), OpenCode (opencode.json) and Kimi Code (.kimi-plugin/plugin.json). These get the same skills and rules, and CI checks that their counts and versions match, but nobody tests them end to end; reports and fixes from their users are welcome. Details and the APM route are in docs/reference.md.
The kit works alongside the superpowers plugin. When superpowers is enabled, the session hook adds a short rule that splits the work. Superpowers owns how you work (brainstorming, plans, the TDD loop, debugging). The kit owns what good .NET looks like (EF Core, testing, API patterns) and its own commands (/verify, /migrate, /scaffold, /build-fix, /doctor). In a side-by-side test, sessions without the rule sometimes ran superpowers' brainstorming and the kit's /spec for the same request; with the rule, none did. CWM_SUPERPOWERS=off turns the rule off.
The kit was renamed to dotnet-agent-kit, and the plugin ID changed with it, so an install made under the old name no longer receives updates. Reinstall it once:
/plugin uninstall dotnet-claude-kit@dotnet-claude-kit
/plugin marketplace remove dotnet-claude-kit
/plugin marketplace add codewithmukesh/dotnet-agent-kit
/plugin install dotnet-agent-kit@dotnet-agent-kit
Skills are now namespaced dotnet-agent-kit: (for example /dotnet-agent-kit:verify). The Roslyn MCP server (CWM.RoslynNavigator) is unchanged.
CI enforces size budgets for skills, rules and descriptions, checks generated files (Cursor rules, router snippet, session context) and runs the hook tests. A weekly workflow checks package versions and compiles the code samples, and opens an issue when something drifts. Guidance is checked against .NET 10.0.15, .NET 11.0.0, Aspire 17 and EF Core 10. Found advice that is wrong or stale? Use the wrong-guidance issue template.
See CONTRIBUTING.md for adding skills, agents, rules, templates and MCP tools. More docs: reference, shorthand guide, longform guide, Claude Code workflow tips.
MIT. Built by Mukesh Murugan.