/dotrush:dotrush-diagnosticsfrom dotrush
Run DotRush's whole-solution compiler analysis in this session's C# language server and report the errors and warnings it finds, grouped by code and listed errors first. Use when the user asks for solution or project diagnostics, compiler errors or warnings across the codebase, "does it compile", or a health check of C# code without running a build. Do not use for analyzer-only rules (a solution run reports compiler diagnostics), runtime failures, or test results.
Ships in dotrush. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Ask the running DotRush server to analyze every project it has loaded, then report what it publishes. This answers "what does the compiler say about this solution" from the language server's in-memory workspace, without dotnet build and without touching bin/ or obj/.
Use the plugin helper at ${CLAUDE_PLUGIN_ROOT}/scripts/dotrush-diagnostics.sh. It finds this session's DotRush runtime directory, injects dotrush/solutionDiagnostics into the server through the proxy, waits for the results, and prints a summary. The proxy mirrors every diagnostics publish into diagnostics.json in that directory, which is where the results are read from.
Check the session is ready:
"${CLAUDE_PLUGIN_ROOT}/scripts/dotrush-diagnostics.sh" where
no DotRush language server has started — run any C# LSP operation first (for example documentSymbol on a .cs file in the project), then retry. The proxy holds that operation until the workspace load ends (up to 45 seconds), so it answers from the loaded project; if it still says "No symbols found", run where before picking a project.
load: not completed — DotRush is still loading the workspace, and it starts code analysis only after that; solution refuses to run. Re-check until it completes (a large solution takes longer); this polls for up to a minute:
for i in $(seq 30); do "${CLAUDE_PLUGIN_ROOT}/scripts/dotrush-diagnostics.sh" where | grep -q '^load: completed' && break; sleep 2; done; "${CLAUDE_PLUGIN_ROOT}/scripts/dotrush-diagnostics.sh" where
If the project was switched with a dotrush/reloadWorkspace before any load completed, analysis will not start in this server: tell the user to restart Claude Code.
load: completed with no project — nothing is loaded, so solution refuses to run. (none chosen, …): no project was chosen, and DotRush found no single solution or project in the workspace to load on its own; run the dotrush-pick-project skill, then re-check. (the last load loaded none; …): the chosen project failed to load. Run report (it works without a loaded project) and give the user the errors on the project or solution file, such as a failed restore (NU0000), then offer to pick another project.
load: completed (N projects) — ready; N is how many projects DotRush loaded. A proxy from before 0.8.7 prints load: completed without the count.
target: none chosen — normal when the workspace holds a single solution (or a single project) or a dotrush.config.json: DotRush loads that on its own. The load: line says whether it did.
publishes: no capture (older proxy) — the language server started before the plugin was updated. Tell the user to restart Claude Code; do not try to work around it.
channel: unavailable (older proxy) — the proxy predates the request channel that plugin tools such as rename use. Diagnostics do not need it, so solution and report still work; mention a Claude Code restart only if the user also wants those tools.
The first where (or any first use of the plugin's CLI) builds that CLI once per plugin version, which takes a few seconds and prints building the DotRush CLI on stderr. where, solution and report all find the session through that CLI, so building the DotRush CLI failed; full log: … (or a missing shasum/sha256sum) stops all three, even report, which otherwise needs nothing running. That is a .NET 10 SDK problem, not a language-server one: report the tail of the log it prints.
no DotRush language server has started while the server is plainly running usually means the session id is missing from this Bash environment: the lookup matches DOTRUSH_SESSION_ID or AGTERM_SESSION_ID, and falls back to a per-workspace directory only (with a session id, only to one whose proxy is running). Tell the user to restart Claude Code from a terminal that sets one, rather than retrying.
Run the analysis:
"${CLAUDE_PLUGIN_ROOT}/scripts/dotrush-diagnostics.sh" solution [count]
Both arguments are optional and go in either order: count (default 50) limits the listed diagnostics, and --hints lists the hints too. The counts and the per-code table always cover everything, hints included. It waits up to DOTRUSH_DIAGNOSTICS_TIMEOUT seconds (default 300) for the first result, so give the Bash call a timeout above that on a large solution, and ends the run once results stop arriving for DOTRUSH_DIAGNOSTICS_QUIET seconds (default 2); raise that if a slow solution's report looks cut short.
Read the output:
new-diagnostics block after the run. It holds only errors and warnings it has not shown before (so files already reported are missing from it), at most 30, and a multi-targeted project's error appears there once per framework. Report from this script's output, which is the complete current set.[net10.0, net11.0] means one project built for several target frameworks, [App.Core.Tests(net10.0, net11.0), App.Tests] means a file several projects compile, such as a package's Program.cs. Projects appear under their full names, sorted, each with its frameworks when it has several. That is normal, not a duplicate.Publishes: is the server's running total of publishDiagnostics since it started, not a per-run figure; it only shows that results arrived. By code ranks codes by occurrence. The list is sorted errors first, then by path. Paths are relative to the workspace, except a file outside it (one from a NuGet package, say), which keeps its absolute path and sorts first; line:column positions are 1-based.CS8019 unnecessary usings, many in generated obj/ files) are counted but not listed. Pass --hints (to solution or report) only when the user asks for them (see step 4).Errors: for that.dotrush-diagnostics: (or dotrush-cli: from the session lookup); act on it rather than retrying. Exit status 2 means an unknown subcommand, with the usage printed.To re-read the last results without analyzing again, or to list more rows or the hints:
"${CLAUDE_PLUGIN_ROOT}/scripts/dotrush-diagnostics.sh" report 200
"${CLAUDE_PLUGIN_ROOT}/scripts/dotrush-diagnostics.sh" report 500 --hints
The number (default 50) is how many rows are listed; past it the list ends with ... K more; pass a larger count. The counts above the list always cover everything. --hints also lists the hints. solution takes the same optional arguments.
Report the totals, the most frequent codes, and the errors with their locations. Group repeated codes rather than listing each occurrence. For each error you explain, read the source at that location rather than guessing from the message.
proxy.log in the runtime directory for dotrush/projectLoaded.report then shows at most the last file analyzed. No diagnostics. from such a report means that one file is clean, not the solution. Run solution again for a whole-solution view.CA…, IDE…), at info or hint severity, so a report after a file was opened can show codes a solution run never does. A hint is only counted, so pass --hints to report to see one. Name them as analyzer findings for that file, not as compiler diagnostics of the solution. A compiler hint and an analyzer rule on the same line (CS8019 and IDE0005 on an unused using) are two findings, not the double load described above.solution waits.dotnet build.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub nevse/dotrush-cc --plugin dotrush7 skills in this plugin
/dotrush-pick-projectPick which C# project/solution (.sln/.slnx/.csproj) DotRush should load for LSP in THIS workspace, and apply it live — no dotrush.config.json needed. Use when the user wants to set or change the DotRush project, or when C# LSP returns "No symbols found" because no project is loaded./dotrush-profile-allocationsFind what a running .NET application, or a short-lived .NET program or test it launches, allocates and where from, with dotnet-trace's allocation sampling (GCAllocationTick), reporting allocated bytes by type, by allocating function and by call path. Use for allocation rate, GC pressure, "what allocates", "who allocates this type", frequent gen0 collections, or reducing allocations in a hot loop. Do not use for what the heap retains or leaks (use dotrush-profile-memory) or for CPU hot paths (use dotrush-profile-cpu)./dotrush-profile-cpuProfile CPU usage, hot paths, throughput, or latency in a running .NET application, or in a short-lived .NET program or test it launches, with dotnet-trace, then interpret the trace report. Use for high CPU, slow requests, regressions, flame graphs, profiling a benchmark or a single test, or when the user asks to attach a trace profiler. Do not use for managed-memory growth or leak analysis, or for what allocates (use dotrush-profile-allocations)./dotrush-profile-gcMeasure how much a running .NET application, or a short-lived .NET program or test it launches, pays for garbage collection, with a low-overhead dotnet-trace GC capture, reporting GC mode (workstation or server, heaps, concurrent), collection counts per generation, pause totals and percentiles, the share of the capture spent paused, and the longest pauses with their reasons. Use for "is GC the problem", GC pauses, time in GC, latency spikes that may be GC, gen2 or induced collections, or comparing workstation and server GC. Do not use for what allocates (use dotrush-profile-allocations), what the heap retains or leaks (use dotrush-profile-memory) or CPU hot paths (use dotrush-profile-cpu)./dotrush-profile-memoryProfile managed-memory usage and suspected leaks in a running .NET application with DotRush's dotnet-gcdump, report exact per-type sizes and what retains the most memory, and compare snapshots. Use for growing GC heaps, retained object types, surviving-object counts, retention paths, or when the user asks to create a heap dump. Do not use for CPU hot paths, allocation-rate or "what allocates" questions (a gcdump forces a full GC and sees only survivors; use dotrush-profile-allocations), or native-memory-only problems./dotrush-renameRename a C# symbol (type, method, property, field, event, local or parameter) everywhere it is used across the loaded solution, through the Roslyn rename in this session's DotRush language server, with a diff preview and, after the user confirms, an apply that checks every file before replacing any. Use when the user asks to rename a C# class, member or variable across the codebase, or to "rename X to Y" in C# code. Do not use for renaming files, folders or projects, text inside strings or comments, non-C# files, or a plain search-and-replace of text that is not one symbol.