From dotnet-inspect
Reconstruct a method or type locally as C# and IL — decompiled source, annotated source with hidden facts, raw IL, fidelity levels, and IL-offset lookup. Always local, no network.
How this skill is triggered — by the user, by Claude, or both
Slash command
/dotnet-inspect:decompilerThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Use this skill to understand how code actually works from the assembly you have.
Use this skill to understand how code actually works from the assembly you have.
The decompiler is local and always available (no network), and the IL and
annotated views can reveal more than the original source. For the authoritative
original source as written by the author, use the sourcelink skill.
dnx dotnet-inspect -y -- <command>
A selected overload defaults to Signature; bare -S adds Decompiled Source.
Use -S @Source for the full local evidence set (it also pulls Original Source when SourceLink is available — see the sourcelink skill):
Decompiled Source — raised, lowered C# (readable best-effort).Annotated Source — C# with hidden-fact comments and interleaved IL.IL — raw IL, the highest-fidelity view.Use Annotated Source or IL when exact opcodes, offsets, branches, tokens, or
calls matter. Use --bare for a whole-type listing.
--project reads existing restored assets; restore/build first if dependencies
changed.
dnx dotnet-inspect -y -- member JsonSerializer --platform System.Text.Json Serialize:1 -S @Source
dnx dotnet-inspect -y -- member JsonSerializer --platform System.Text.Json Serialize:1 -S "Annotated Source"
dnx dotnet-inspect -y -- type JsonSerializer --platform System.Text.Json -S "Decompiled Source" --bare
dnx dotnet-inspect -y -- member Command --project ./src/App Add:1 -S @Source
The decompiler degrades honestly: IL with no faithful C# spelling renders as a
visible comment and lowers the result's fidelity level
(Full -> Partial -> StructuredOnly -> IlOnly -> Failed) instead of
emitting plausible-but-wrong source, with a stable DEC#### diagnostic on every
degradation. Decompiled Source is lowered C#; raw/annotated IL is highest
fidelity.
If decompiled output looks wrong, capture Decompiled Source, Annotated Source, Original Source (via the sourcelink skill), and IL together;
maintainers diagnose pipeline state with DecompilerHarness.
Select Fidelity Causes for the typed DEC#### cause census behind that
fidelity grade. It distinguishes a Full method (complete, no causes), a method
without a body (absent), and a failed inspection.
dnx dotnet-inspect -y -- member MyType MyMethod:1 --library MyLib.dll -S "Fidelity Causes"
dnx dotnet-inspect -y -- library Foo --il-offset 0x06000001+0x5
Use library Foo --il-offset 0x06000001+0x5 (MethodDef token plus IL offset) to
map a crash location back to the method and source. For call edges (what a method
calls, who calls it), see the relationships skill.
npx claudepluginhub richlander/dotnet-inspectDecompiles .NET assemblies to C# source code for understanding internal API implementation, inspecting NuGet packages, or viewing framework internals.
Decompiles .NET assemblies to reveal internal implementations, NuGet package source, and framework code. Use when you need to understand how .NET APIs work or inspect compiled binaries.
Fetches authoritative original source code via SourceLink from .NET assemblies' PDBs. Resolves type-to-URL maps, member file/line locations, and original source bodies. Requires SourceLink-enabled PDBs and network access.