resharper-inspectcode
SKILL.md
ReSharper InspectCode
Install and run JetBrains ReSharper Command Line Tools (jb inspectcode) against a .NET solution or project, defaulting to XML output and a deterministic report path. Use when you need whole-solution ReSharper-style inspection from the terminal, a machine-readable inspection report, or must analyze current C#/.NET issues without relying on Rider UI.
Keep SKILL.md lean. Read only the reference file you need:
- references/workflow-details.md for assumptions, selection rules, defaults, and failure handling.
- references/platform-commands.md for exact PowerShell and Bash command forms.
- references/implementation-examples.md for pseudocode, response patterns, and extension ideas.
Default workflow
- Verify the .NET SDK is available with
dotnet --version. Stop if it is missing. - Check whether
jbis already onPATHwithjb --version. - If
jbis missing, trydotnet tool install -g JetBrains.ReSharper.GlobalTools. If that fails or global tools are blocked, create a local tool manifest and install the tool locally, then invoke it withdotnet tool run jb. - Walk upward from the current working directory to find the repository root (
.gitdirectory). Use this as the search ceiling. If no.gitis found, fall back to the filesystem root. - Within that boundary, select the nearest
*.sln. If none exists, fall back to the nearest*.csproj. - Create
./artifactsif needed and default the report path to./artifacts/inspectcode-report.xmlunless the user asked for another path or format. - Look for a
*.DotSettingsfile next to the target. If found, pass--settings=<path>. The tool also respects.editorconfigautomatically. - Run InspectCode with
--no-build --format=Xmlunless the user explicitly wants a build-backed run or another output format. - Return the analyzed target, the report path, and a concise severity summary parsed from the XML (see references/workflow-details.md for XML structure). State that the analysis reflects files on disk, not unsaved IDE buffers.
Operating rules
- Prefer
.slnover.csproj. - Prefer XML over JSON unless the user explicitly requests another format.
- Prefer
--no-buildfor iterative inspection. - Be explicit when a global tool install fails and the workflow falls back to a local tool manifest.
- Stop with a clear error if no solution or project file is found.
Weekly Installs
3
Repository
gamers-lab/resharper-cliFirst Seen
8 days ago
Security Audits
Installed on
opencode3
gemini-cli3
claude-code3
github-copilot3
codex3
kimi-cli3