npx skills add https://modelscope.cn/skills/@majiayu000/csharp-decompile
smithery/j-r-beckett
csharp-decompile
Decompile .NET assemblies to inspect types, understand implementations, debug third-party libraries, and view IL code. Use when debugging NuGet dependency behavior, understanding compiled code, investigating runtime issues, or exploring unfamiliar assemblies.
Installation
npx skills add smithery/j-r-beckett --skill csharp-decompile
Similar popular skills
Related neighbors and high-traction skills in the same topics — useful to compare before installing.
Browser automation CLI for AI agents. Use when the user needs to interact with websites, includ…
810.4K installsDebug Azure production issues on Azure using AppLens, Azure Monitor, resource health, and safe …
568.9K installsPre-deployment validation for Azure readiness. Run deep checks on configuration, infrastructure…
567.7K installsConfigure Azure API Management as an AI Gateway for AI models, MCP tools, and agents. WHEN: sem…
566.3K installsAzure VM/VMSS router. WHEN: create / provision / deploy / spin-up VM, recommend VM size, compar…
510K installsPostgres best practices maintained by Supabase, for Postgres running anywhere. Load this skill …
391.6K installsMore details
Agent compatibility
Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.
Also listed on
Alternate registries and mirrors of this skill.
Skill metadata
Parsed from SKILL.md frontmatter.
Package contents
Files included with this skill beyond the listing page.
-
skill md
SKILL.md2,861 B -
docs
SUMMARY.md283 B
History
- First recorded snapshot · 0 installs
SKILL.md
C# Decompilation with ilspycmd
Decompile .NET assemblies to C# source code or IL using ilspycmd.
Setup
Ensure ilspycmd is installed:
ilspycmd --version || dotnet tool install --global ilspycmd
Workflows
List Types in an Assembly
Discover what's in an assembly before decompiling:
# List all types: classes, interfaces, structs, delegates, enums
ilspycmd -l cisde /path/to/assembly.dll
Decompile to a Project
Generate a compilable C# project from an assembly:
ilspycmd --nested-directories -p -o /tmp/decompiled /path/to/assembly.dll
This creates a .csproj and source files organized by namespace.
Important: this lets Claude code bring its sophisticated code reading and exploration tools to bear.
Decompile a Specific Type
Target a single type by its fully qualified name:
ilspycmd -t MyNamespace.MyClass /path/to/assembly.dll
The output goes to stdout. Use this to quickly inspect a type's implementation.
View IL Code
For low-level analysis, view the intermediate language:
ilspycmd -il -t MyNamespace.MyClass /path/to/assembly.dll
# With sequence points (source line mappings)
ilspycmd --il-sequence-points -t MyNamespace.MyClass /path/to/assembly.dll
Debug NuGet Dependencies
NuGet packages are at ~/.nuget/packages/<package-name>/<version>/lib/<tfm>/. To inspect:
# Find the DLL
find ~/.nuget/packages/sixlabors.imagesharp -name "*.dll" | grep -v ref
# List types
ilspycmd -l cisde ~/.nuget/packages/sixlabors.imagesharp/3.1.11/lib/net6.0/SixLabors.ImageSharp.dll
# Decompile a specific type
ilspycmd -t "SixLabors.ImageSharp.Numerics" ~/.nuget/packages/sixlabors.imagesharp/3.1.11/lib/net6.0/SixLabors.ImageSharp.dll
Generate Type Diagrams
Create an interactive HTML visualization of type relationships:
ilspycmd --generate-diagrammer -o /tmp/diagrammer /path/to/assembly.dll
# With filtering
ilspycmd --generate-diagrammer -o /tmp/diagrammer \
--generate-diagrammer-include "MyNamespace\\..*" \
--generate-diagrammer-exclude "MyNamespace\\.Internal\\..*" \
/path/to/assembly.dll
These are mostly useful for the user. Let the user know that they're available.
Tips
- Add
-r /path/to/depswhen the assembly has dependencies that aren't automatically resolved - Use
--no-dead-codeand--no-dead-storesfor cleaner output - For tight loops or scripts, add
--disable-updatecheck - The
-lv Latestflag is default; use-lv CSharp9_0etc for older language features