cwm-roslyn-navigator
Ships with dotnet-claude-kit: Make Claude Code a .NET 10 Expert
Claude Code
> /plugin marketplace add codewithmukesh/dotnet-claude-kit> /plugin install dotnet-claude-kit@dotnet-claude-kit
Codex
$ claude --plugin-dir /path/to/dotnet-claude-kit
Cursor
$ claude --plugin-dir /path/to/dotnet-claude-kit
Gemini CLI
$ claude --plugin-dir /path/to/dotnet-claude-kit
GitHub Copilot
$ claude --plugin-dir /path/to/dotnet-claude-kit
OpenCode
$ claude --plugin-dir /path/to/dotnet-claude-kit
Windsurf
$ claude --plugin-dir /path/to/dotnet-claude-kit
Security report
Not enough data
Known flaws
Not published
Signed build
Not published
Maintained
Nov 4, 2026
Last push
Licence
MIT
Runs as
Local process
On your machine
Deprecated
Not published
Signals from public registries, not an audit. Checked Nov 21, 2026.
dotnet-claude-kit README
Make Claude Code an expert .NET developer.
52 skills • 11 specialist agents • 17 slash commands • 10 rules • 7 project templates • 26 MCP tools • automation hooks
Built for .NET 10 / C# 14. Architecture-aware. Token-efficient.
📖 Full Guide • Installation • Quick Start • 10x Features • Commands • Skills • Agents • Rules • Templates • MCP Server • Contributing
📖 New here? Start with the guide
How I Use dotnet-claude-kit: Making Claude Code Write Senior-Level .NET →
The complete walkthrough: install and update the plugin, what happens in your first session, the everyday feature workflow, how the Roslyn MCP server cuts token usage, which commands keep a codebase healthy, plus FAQ and troubleshooting.
This README is the reference. The guide is how to actually use it.
The Problem
Claude Code is powerful, but out of the box it doesn't know your .NET conventions. It generates DateTime.Now instead of TimeProvider. It wraps EF Core in repository abstractions. It picks an architecture without asking about your domain. It reads entire source files when a Roslyn query would cost 10x fewer tokens.
dotnet-claude-kit fixes all of that.
What This Is
A curated knowledge and action layer that sits between Claude Code and your .NET project. Install the plugin, run /dotnet-init once, and Claude knows:
- Which architecture fits your project (VSA, Clean Architecture, DDD, Modular Monolith)
- How to write modern C# 14 with primary constructors, collection expressions, and records
- How to build minimal APIs with
IEndpointGroupauto-discovery,TypedResults, and proper OpenAPI metadata - How to use EF Core without repository wrappers, with compiled queries and interceptors
- How to test with
WebApplicationFactory+Testcontainersinstead of in-memory fakes - How to build console tools, CLIs (System.CommandLine), and desktop apps (MVVM, Avalonia, WPF), and ship them with Native AOT
- How to navigate your codebase via Roslyn semantic analysis instead of expensive file reads
- How to scaffold complete features, run health checks, review PRs, and enforce conventions
One plugin install, one /dotnet-init, and you're set.
What Makes This 10x
An action layer on top of the knowledge layer — Claude doesn't just know the right patterns, it actively applies and enforces them:
| Capability | What It Does |
|---|---|
| Surgical Code Analysis | 26 Roslyn-powered MCP tools with guaranteed bounded responses. get_symbol_source reads ONE method body instead of the whole file. get_file_outline shows what's in a file before reading it. resolve_stack_trace turns an exception into file:line in your own code. analyze_change_impact answers "what breaks if I change this?" in one call. Every list-returning tool reports Truncated — no tool can blow your context window. In real Claude Code sessions on five open-source solutions, answers came back 32% faster with less than half the tool calls, and were far more accurate (92 vs 61 out of 100) than with the default Grep + Read (benchmarks). |
| Architecture Enforcement | /arch-check verifies the code still matches its declared architecture (VSA, Clean, DDD, Modular Monolith): dependency direction, layer violations, module leaks, cycles — with file:line evidence and fixes. |
| Dependency Health | /outdated reports stale packages, CVEs, and commercial-license traps (MediatR 13+, MassTransit 9+, FluentAssertions 8+, AutoMapper 15+) before an innocent update-all changes your legal position. |
| Security Mapping | get_endpoint_map inventories every route with its auth posture (authorized/anonymous/unmarked) in one token-cheap call — /security-scan starts every auth audit there. |
| DI X-Ray | get_di_registrations maps every service registration with lifetimes, duplicate detection, and captive-dependency risks (singleton holding scoped). |
| Agents That Learn | Specialist agents carry memory: project — the code reviewer, architect, and security auditor learn your conventions across sessions instead of rediscovering them. The reviewer is tool-enforced read-only; the cleanup agent works in an isolated worktree. |
| Scaffolding | One command → complete feature with Result pattern, validation, OpenAPI metadata, pagination, CancellationToken, and tests. 9-point checklist enforced. All 4 architectures. |
| Health Check | Automated codebase analysis using MCP tools: anti-pattern scan, diagnostics, dead code detection, test coverage → graded report card. |
| PR Review | Multi-dimensional code review: anti-patterns, diagnostics, API surface changes, blast radius, architecture compliance, test coverage. |
| Convention Learning | Detects project-specific patterns (naming, structure, modifiers) and enforces them in new code. Adapts to your codebase. |
| Active Hooks | Automated quality scripts — format on edit, destructive-command guard, restore on .csproj change — tested on Windows and Linux in CI. |
| Always Current | Every package recommendation verified against NuGet with licensing-trap warnings, and a .NET 11 preview watch so guidance never rots. |
Why dotnet-claude-kit?
| Metric | Without Kit | With Kit | Impact |
|---|---|---|---|
| Architecture decisions | Claude picks randomly | Asks questions, recommends with rationale | Correct architecture from day one |
| Code quality | Generic C#, legacy patterns | Modern C# 14 with idiomatic .NET 10 | Zero "fix this pattern" revision cycles |
| Codebase navigation | Reads entire files (500-2000+ tokens each) | Roslyn MCP queries (30-150 tokens each) | ~10x token savings on exploration |
| Anti-patterns generated | DateTime.Now, repository-over-EF, new HttpClient() | TimeProvider, direct DbContext, IHttpClientFactory | Production-ready on first generation |
| Testing approach | In-memory fakes, mocked everything | WebApplicationFactory + Testcontainers | Tests that catch real bugs |
| Production resilience | No retry, no circuit breakers | Polly v8 pipelines with telemetry | Handles transient failures automatically |
The result: Less time reviewing and correcting Claude's output. More time shipping features.
Installation
Prefer a narrated walkthrough with screenshots and troubleshooting? Read the complete installation and usage guide.
Plugin Install (Recommended)
Install as a Claude Code plugin — all 52 skills (including 17 slash-command workflows), 11 agents, hooks, and MCP config activate globally. The 10 rules ship in this repo for you to copy into your project's .claude/rules/:
# In your terminal — install the Roslyn MCP server
dotnet tool install -g CWM.RoslynNavigator
macOS/Linux: If the server fails with "No .NET SDKs were found", set
DOTNET_ROOTto your .NET installation root (e.g./usr/local/share/dotnet). See the MCP server troubleshooting guide.
Then inside a Claude Code session:
# Add the marketplace and install the plugin
/plugin marketplace add codewithmukesh/dotnet-claude-kit
/plugin install dotnet-claude-kit
For local development/testing (loads directly from disk, no install needed):
claude --plugin-dir /path/to/dotnet-claude-kit
Using APM (Agent Package Manager)? The repo installs as-is, with skills, agents, hooks, and the MCP server config:
apm install codewithmukesh/dotnet-claude-kit --target claude # or --target copilot
Pin a tag or commit SHA (codewithmukesh/dotnet-claude-kit#<tag-or-sha>) to keep installs reproducible. For the Copilot target, APM renames agents to *.agent.md itself.
Windows: "Failed to finalize marketplace cache" (EPERM)? That's a Claude Code installer issue (anthropics/claude-code#12174). Close every Claude Code session, delete
%USERPROFILE%\.claude\plugins\marketplaces\*dotnet-claude-kit*, pause OneDrive sync if.claudelives under it, and run the marketplace add again.
Per-Project Setup
Navigate to your project directory (existing or empty) and run:
/dotnet-init
Existing project? It detects your solution, scans .csproj SDKs, reads your tech stack from config, asks architecture questions, and generates a customized CLAUDE.md. It works for web APIs, console apps and CLI tools, desktop apps (WPF, Avalonia, WinForms, MAUI), and libraries.
Already have a CLAUDE.md? /dotnet-init never overwrites it silently. It asks you to Merge (recommended: keeps your own sections and adds or refreshes only the kit's), Overwrite, or Keep, and backs your original up to CLAUDE.md.bak first.
Greenfield project? It asks what you're building, scaffolds the full solution structure (dotnet new sln, projects, Directory.Build.props, src/ and tests/ folders), then generates CLAUDE.md. Follow up with /scaffold to add your first feature.
No manual template copying needed.
Manual Template Copy (Alternative)
If you prefer manual setup, copy the template matching your project type:
cp templates/web-api/CLAUDE.md ./CLAUDE.md # REST API
cp templates/modular-monolith/CLAUDE.md ./CLAUDE.md # Multi-module system
cp templates/blazor-app/CLAUDE.md ./CLAUDE.md # Blazor app
cp templates/worker-service/CLAUDE.md ./CLAUDE.md # Background workers
cp templates/class-library/CLAUDE.md ./CLAUDE.md # NuGet packages
cp templates/console-cli/CLAUDE.md ./CLAUDE.md # Console app / CLI tool
cp templates/desktop-app/CLAUDE.md ./CLAUDE.md # Avalonia / WPF / WinForms / MAUI
Replace [ProjectName], update tech stack, choose your architecture.
Start Claude Code — 52 skills, 11 agents, and 26 MCP tools activate automatically. Copy the 10 rules into your project's .claude/rules/ to make them always-loaded.
That's it. Claude now writes .NET code the way a senior .NET engineer would.
Manual Install (Alternative)
If you prefer to clone the repo and wire things up manually:
# 1. Install the MCP server globally
dotnet tool install -g CWM.RoslynNavigator
# 2. Register it in Claude Code at user scope (available in ALL projects)
claude mcp add --scope user cwm-roslyn-navigator -- cwm-roslyn-navigator --solution ${workspaceFolder}
# 3. Clone the kit
git clone https://github.com/codewithmukesh/dotnet-claude-kit.git
# 4. Load as a local plugin (or copy a template manually)
claude --plugin-dir ./dotnet-claude-kit
What You Get
Before dotnet-claude-kit
More MCP servers from other plugins.
Questions about cwm-roslyn-navigator.
- Which coding agents can use cwm-roslyn-navigator?
- cwm-roslyn-navigator works in any agent that reads an MCP config file: Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf. Each agent reads it from its own file; this page names the file for each one.
- How do I add cwm-roslyn-navigator to Claude Code?
- Run these in order, one at a time. 1. In Claude Code: /plugin marketplace add codewithmukesh/dotnet-claude-kit 2. In Claude Code: /plugin install dotnet-claude-kit@dotnet-claude-kit

