Skip to content
Development
MCP

cwm-roslyn-navigator

Ships with dotnet-claude-kit: Make Claude Code a .NET 10 Expert

From plugin
dotnet-claude-kit
84452 skills11 agents2 hooks1 MCP

Claude Code

> /plugin marketplace add codewithmukesh/dotnet-claude-kit
> /plugin install dotnet-claude-kit@dotnet-claude-kit

Security report

Info

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.

Read the complete dotnet-claude-kit guide

📖 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 IEndpointGroup auto-discovery, TypedResults, and proper OpenAPI metadata
  • How to use EF Core without repository wrappers, with compiled queries and interceptors
  • How to test with WebApplicationFactory + Testcontainers instead 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:

CapabilityWhat It Does
Surgical Code Analysis26 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 Mappingget_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-Rayget_di_registrations maps every service registration with lifetimes, duplicate detection, and captive-dependency risks (singleton holding scoped).
Agents That LearnSpecialist 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.
ScaffoldingOne command → complete feature with Result pattern, validation, OpenAPI metadata, pagination, CancellationToken, and tests. 9-point checklist enforced. All 4 architectures.
Health CheckAutomated codebase analysis using MCP tools: anti-pattern scan, diagnostics, dead code detection, test coverage → graded report card.
PR ReviewMulti-dimensional code review: anti-patterns, diagnostics, API surface changes, blast radius, architecture compliance, test coverage.
Convention LearningDetects project-specific patterns (naming, structure, modifiers) and enforces them in new code. Adapts to your codebase.
Active HooksAutomated quality scripts — format on edit, destructive-command guard, restore on .csproj change — tested on Windows and Linux in CI.
Always CurrentEvery package recommendation verified against NuGet with licensing-trap warnings, and a .NET 11 preview watch so guidance never rots.

Why dotnet-claude-kit?

MetricWithout KitWith KitImpact
Architecture decisionsClaude picks randomlyAsks questions, recommends with rationaleCorrect architecture from day one
Code qualityGeneric C#, legacy patternsModern C# 14 with idiomatic .NET 10Zero "fix this pattern" revision cycles
Codebase navigationReads entire files (500-2000+ tokens each)Roslyn MCP queries (30-150 tokens each)~10x token savings on exploration
Anti-patterns generatedDateTime.Now, repository-over-EF, new HttpClient()TimeProvider, direct DbContext, IHttpClientFactoryProduction-ready on first generation
Testing approachIn-memory fakes, mocked everythingWebApplicationFactory + TestcontainersTests that catch real bugs
Production resilienceNo retry, no circuit breakersPolly v8 pipelines with telemetryHandles 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_ROOT to 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 .claude lives 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

84452 skills11 agents1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
844
Star history of codewithmukesh/dotnet-claude-kit on GitHub, a chart by star-history.com

More MCP servers from other plugins.

chrome-devtools
Auto-invoked

chrome-devtools

MCP

Connects to Chrome over the DevTools Protocol to inspect the DOM, network requests and console output.

ecc4d306k
@affaan-m@affaan-mInstall MCP
supabase

supabase

MCP

Queries a Supabase project: Postgres tables, auth users, storage and edge functions.

supabase4d115k
@supabase@supabaseInstall MCP

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