Skip to content
FunCoding

doctor

Check that the kit works on this machine and project: .NET 10 SDK, dotnet dnx, bash for the hooks, the Roslyn navigator, CLAUDE.md and rules, old installs.

Star
856
License
MIT
Last commit
Nov 29, 2026

skills/doctor/SKILL.md

View on GitHub

/doctor -- Kit Health Check

What

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.

When

  • Right after installing the plugin, or on a new machine
  • "the hooks don't run", "the navigator tools are missing", "is the kit working?"
  • After upgrading the .NET SDK or Claude Code
  • Before reporting a bug (paste the table into the issue)

How

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.

1. .NET SDK

dotnet --version
dotnet --list-sdks
  • PASS: a 10.x or newer SDK is listed.
  • FAIL: no SDK, or only 9.x and older. Fix: install the .NET 10 SDK from https://dotnet.microsoft.com/download. The navigator and dotnet dnx need it.
  • If a global.json pins an SDK that isn't installed, dotnet --version fails: report the pinned version and that it is missing.

2. dotnet dnx (starts the navigator)

dotnet dnx --help
  • PASS: help text prints. FAIL: "No .NET SDKs were found" or unknown command, which means the SDK is older than 10. Same fix as check 1.

3. bash for the hooks

bash --version
command -v jq || echo "jq missing"
  • PASS: bash 3.2 or newer. On Windows that means Git for Windows; without it every kit hook (format, guard, session start) silently does nothing. Fix: install Git for Windows and restart Claude Code.
  • jq missing is a WARN only: the hooks fall back to sed.

4. Roslyn navigator

Call the MCP tool get_workspace_status (server cwm-roslyn-navigator).

  • PASS: it answers and reports the solution loaded with no failed projects.
  • WARN: it answers with "loading": rerun /doctor in a minute on a large solution. Projects that failed to load: list them with the reason it gives.
  • FAIL: the tool doesn't exist. The server didn't start: run /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).
  • No .sln, .slnx or .csproj in the project: WARN, the navigator has nothing to load.

5. Project setup

ls CLAUDE.md .claude/CLAUDE.md .claude/rules/*.md 2>/dev/null
  • PASS: a CLAUDE.md exists. Report how many of the kit's 8 rules are in .claude/rules/ (coding-style, architecture, security, testing, performance, error-handling, packages, workflow).
  • WARN: no CLAUDE.md. Fix: run /dotnet-init.
  • Rules missing are fine (the session hook adds a digest); note that /dotnet-init can copy them in full.

6. Old installs and switches

grep -o '"dotnet-claude-kit@[^"]*"' ~/.claude/plugins/installed_plugins.json 2>/dev/null
env | grep -E '^CWM_' || echo "no CWM_ switches set"
  • WARN when 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.
  • List any 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).

7. Report

Print one table, then only the fixes for rows that are not PASS, most important first. No fixes needed: say so in one line.

Example

/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 broken

Similar Skills

ask-matt

MAmattpocock/skills336k4,217 new stars in the last 7 days

chief-of-staff

MAmattpocock/skills336k4,217 new stars in the last 7 days

setup-matt-pocock-skills

MAmattpocock/skills336k4,217 new stars in the last 7 days

subagent-driven-development

OBobra/superpowers331k5,030 new stars in the last 7 days

autonomous-loops

AFaffaan-m/ECC314k3,503 new stars in the last 7 days

agent-eval

AFaffaan-m/ECC314k3,503 new stars in the last 7 days