/dotnet-agent-kit:doctorfrom dotnet Agent Kit
Checks that a .NET development kit is fully working: SDK version, dotnet dnx, bash hooks, Roslyn navigator, and project setup. Run after install or when hooks/tools are missing.
Ships in dotnet Agent Kit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Checks every part the kit depends on and prints one table: what passed, what is
degraded and how to fix it. Each check is a quick read-only command; /doctor
changes nothing. It answers one question: "Is the kit fully working here, and
if not, what exactly do I fix?"
A kit that half-works fails quietly: hooks that can't find bash do nothing, a navigator that never loaded makes Claude fall back to Grep, and an install under the old plugin name stops getting updates. None of these show an error in a normal session.
Run the checks in order with the Bash tool, then print the table. Never install, uninstall or edit anything; give the fix and let the user run it.
dotnet --version
dotnet --list-sdks
dotnet dnx need it.global.json pins an SDK that isn't installed, dotnet --version
fails: report the pinned version and that it is missing.dotnet dnx --help
bash --version
command -v jq || echo "jq missing"
jq missing is a WARN only: the hooks fall back to sed.Call the MCP tool get_workspace_status (server cwm-roslyn-navigator).
/doctor in a minute on a large
solution. Projects that failed to load: list them with the reason it gives./mcp to see
its status and error. Usual causes are check 1 or 2, or no network on the
first dnx run (it downloads the package once)..sln, .slnx or .csproj in the project: WARN, the navigator has
nothing to load.ls CLAUDE.md .claude/CLAUDE.md .claude/rules/*.md 2>/dev/null
.claude/rules/ (coding-style, architecture, security, testing,
performance, error-handling, packages, workflow)./dotnet-init./dotnet-init can copy them in full.grep -o '"dotnet-claude-kit@[^"]*"' ~/.claude/plugins/installed_plugins.json 2>/dev/null
env | grep -E '^CWM_' || echo "no CWM_ switches set"
dotnet-claude-kit@... is installed: that is the kit's old name,
it no longer updates, and running both doubles every hook. Fix:
/plugin uninstall dotnet-claude-kit@dotnet-claude-kit and
/plugin marketplace remove dotnet-claude-kit.CWM_* switches that are set, so the user knows a hook is off
on purpose (CWM_SESSION_CONTEXT, CWM_SUPERPOWERS, CWM_POST_EDIT_FORMAT, CWM_SLOP_GUARD,
CWM_ANTIPATTERN_WARN_ONLY).Print one table, then only the fixes for rows that are not PASS, most important first. No fixes needed: say so in one line.
/doctor
| Check | Status | Detail |
|--------------------|--------|-----------------------------------------------|
| .NET SDK | PASS | 10.0.404 |
| dotnet dnx | PASS | |
| bash (hooks) | PASS | 5.2.37, jq missing (sed fallback) |
| Roslyn navigator | PASS | Shop.slnx, 6 projects loaded |
| Project setup | WARN | no CLAUDE.md; 0 of 8 rules in .claude/rules/ |
| Old installs | WARN | dotnet-claude-kit@dotnet-claude-kit installed |
Fix, in order:
1. Remove the old install: /plugin uninstall dotnet-claude-kit@dotnet-claude-kit
then /plugin marketplace remove dotnet-claude-kit
2. Run /dotnet-init to generate CLAUDE.md and copy the rules.
/dotnet-init -- the fix for a missing CLAUDE.md or rules/verify -- checks your code; /doctor checks the kit/build-fix -- when the build, not the kit, is what's brokenWhat SKILL.md sets; muted values are Claude Code's defaults
37 skills in this plugin
/api-hardeningProduction hardening for ASP.NET Core 10 APIs: HSTS, forwarded headers behind a proxy (KnownIPNetworks), strict CORS, body and upload limits, security headers, no detailed errors. Use for "HSTS", "forwarded headers", "behind nginx", "CORS", "request size limit", "security headers", "harden for production". Do NOT use for auth (use authentication) or throttling (use rate-limiting).
/architecture-advisorArchitecture selection for new or restructured .NET solutions: asks about domain, team and compliance, then recommends modular slices (default), vertical slice, Clean Architecture or DDD. Use for "which architecture", "new solution", "restructure", "DDD", "project structure", "tech stack". Do NOT use for adding features to a modular-slices codebase (modular-slices), scaffolding (scaffold), or CLAUDE.md (dotnet-init).
/aspireAspire (17.x, requires .NET 10) orchestration: AppHost, service defaults, resource configuration, service discovery, dashboard. Use for "Aspire", "AppHost", "service defaults", "service discovery", "AddDotnetProject", "AddProject", "WithReference", "aspire run". Do NOT use for Dockerfiles or container images (use docker), CI/CD pipelines (use ci-cd), or OpenTelemetry SDK setup (use opentelemetry).
/authenticationAuthentication and authorization for ASP.NET Core: JWT bearer, OpenID Connect, ASP.NET Identity, policies, role and claim-based authorization, API keys, cookie auth. Use for "JWT", "OIDC", "Identity", "claims", "roles", "RequireAuthorization", "API key". Do NOT use for endpoint design (use minimal-api), security schemes in API docs (use openapi), secrets and options binding (use configuration), or which rows a user may see (use resource-authorization).
/build-fixAutonomous loop that drives a broken .NET build or failing tests to green, with bounded iterations and retry guards (build, parse, fix, rebuild; test-fix variant). Use for "fix the build", "make it compile", "fix failing tests", "keep going until it works", "auto-fix". Do NOT use for cleanup of code that already builds (use de-sloppify), writing new tests (use testing or tdd), or a pre-PR check (use verify).
/cachingCaching for .NET 10: HybridCache (the default), output caching, response caching, distributed cache. Use for "cache", "HybridCache", "Redis", "output cache", "IMemoryCache", "cache invalidation", "stampede protection". Do NOT use for EF Core query tuning or N+1 (use ef-core), retry and timeout policies (use resilience), or Redis as a message broker (use messaging).
npx claudepluginhub codewithmukesh/dotnet-agent-kit --plugin dotnet-agent-kitOther plugins' skills for the same job