/dotrush:dotrush-pick-projectfrom dotrush
Pick 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.
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.
Choose the C# project/solution DotRush loads for the current session, and apply it without a
hand-written dotrush.config.json. The choice is scoped per Claude session (so parallel sessions —
e.g. one per git worktree under the same folder — never clobber each other) and replayed on the session's
LSP restarts, so within a session it's asked only once.
"${CLAUDE_PLUGIN_ROOT}/scripts/dotrush-diagnostics.sh" where
shows load: completed with no project. With load: not completed the workspace is still loading: wait and
check again rather than picking a project.Find this session's DotRush runtime dir with the plugin's CLI. It matches the dir recording this session's id first, and falls back to the project path only among dirs of proxies started without a session id — so parallel sessions in different worktrees never pick each other's FIFO:
WSDIR=$("${CLAUDE_PLUGIN_ROOT}/scripts/dotrush-cli.sh" session --dir)
no DotRush language server has started in this session), the C# LSP server hasn't
started for this session yet. Ask the user to trigger it (open any .cs file, or run any C# LSP action)
and re-run this skill."$WSDIR/target.json".Don't re-ask if already configured: run "${CLAUDE_PLUGIN_ROOT}/scripts/dotrush-pick-project.sh" show;
if it prints a target, report it. Only continue if the user explicitly wants to change it.
Discover candidates with Glob, relative to the user's working directory, solutions first:
**/*.slnx, then **/*.sln, then **/*.csproj. Dedupe, keep absolute paths, cap ~10.
Choose the target. If a project or user instruction (a CLAUDE.md mapping work areas to solutions, or
the user naming one) already determines it, use that and tell the user which rule chose it. Otherwise call
AskUserQuestion: "Which project/solution should DotRush load for C# in this workspace?" Options = the
discovered candidates (basename + parent folder). The user can pick "Other" to type an absolute path. Never
guess between candidates.
Also decide whether to restore: yes by default; no when the projects are already restored (a built
checkout) or a NuGet feed is unreachable (restores fail slowly with NU1900 and similar), or when an
instruction says so.
Save and apply it with the script, passing the chosen absolute path as one single-quoted argument (write
an apostrophe inside it as '\''), plus --no-restore when step 4 decided against restoring:
"${CLAUDE_PLUGIN_ROOT}/scripts/dotrush-pick-project.sh" apply '<ABS_PATH>' [--no-restore]
Never write target.json or the FIFO by hand: the script builds the JSON from its arguments, so no path is
pasted into shell or JSON source, and it writes the FIFO without blocking and without creating a file there.
What it prints decides the next step:
not applied live: the language server for this session is not running yet (it may still be installing).
The choice is saved and loads when the server starts; tell the user that and skip step 6.applied: configuration sent: the running server got the configuration. The script also sends
dotrush/reloadWorkspace (workspace reload sent), which is what makes the server switch. Without
"$WSDIR/load-completed" the server's first load is still running with the previous choice, and a reload
then would race it (code analysis never starts, or every diagnostic appears twice), so the script sends it
once that load finishes (reload sent (the first load finished with the previous choice)).loaded: N projects: the load finished; go to step 6.still loading after 90s (exit 3): a large solution or its restore is still running. Run
"${CLAUDE_PLUGIN_ROOT}/scripts/dotrush-pick-project.sh" wait, which waits for the same load again, until
it prints loaded:.not waited: the running DotRush proxy is older: this session's proxy does not count loads. Tell the user
a Claude Code restart brings that in, wait about 10 seconds, then do step 6."${CLAUDE_PLUGIN_ROOT}/scripts/dotrush-diagnostics.sh" report
and report the errors on the project or solution file, such as a failed restore), or the server stopped or
restarted while loading.Verify — run an LSP documentSymbol on a .cs file from the chosen project. Symbols back → success.
Still empty → tail -n 30 "$WSDIR/proxy.log" and look for projectLoaded / errors.
ws/sess-<hash>/target.json) and
replayed on that session's LSP restarts. Nothing is written into the user's repo (no dotrush.config.json).What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub nevse/dotrush-cc --plugin dotrush7 skills in this plugin
/dotrush-diagnosticsRun 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./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).Other plugins' skills for the same job