ilspy-decompile

ilspy-decompile is a skill for Claude Code from NikiforovAll/claude-code-rules. It costs 49 tokens per session (780 once invoked), scanned A, a copy of ilspy-decompile, Apache-2.0.

A method for reading the inside of compiled .NET programs by converting their assemblies back into understandable source-like code.

In plain words
What is it for?
Use it to inspect DLLs, NuGet libraries, .NET runtime code, or build outputs. ILSpy is the command-line tool used for the decompilation.
Why use it?
It helps when the original source is unavailable or when you need to see how a .NET library, framework component, or NuGet package works internally.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is ./bin/Debug/net8.0/<AssemblyName>.dll.

Part of the handbook-dotnet plugin — 9 skills shipped together

Good fit Use it to inspect DLLs, NuGet libraries, .NET runtime code, or build outputs. ILSpy is the command-line tool used for the decompilation.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/NikiforovAll/claude-code-rules
agentmods
npx agentmods add skills/nikiforovall/claude-code-rules/ilspy-decompile

Made for: Claude Code.

Or install handbook-dotnet, the plugin that ships this one along with the rest of its 9 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ilspy-decompile

README.md
[![agentmods](https://agentmods.dev/badge/skills/nikiforovall/claude-code-rules/ilspy-decompile/github.svg)](https://agentmods.dev/skills/nikiforovall/claude-code-rules/ilspy-decompile)
Your own site
<a href="https://agentmods.dev/skills/nikiforovall/claude-code-rules/ilspy-decompile"><img src="https://agentmods.dev/badge/skills/nikiforovall/claude-code-rules/ilspy-decompile/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ilspy-decompile

Your own site · 80×15
<a href="https://agentmods.dev/skills/nikiforovall/claude-code-rules/ilspy-decompile"><img src="https://agentmods.dev/badge/skills/nikiforovall/claude-code-rules/ilspy-decompile.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 780 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 92% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00049 $0.00780
Opus 5.5 $0.00020 $0.00312
Sonnet 5.5 $0.00010 $0.00156
Haiku 4.5 $0.00005 $0.00078

Measured 3mo ago against content hash ebc8cc4a0b31, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ilspy-decompile scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

92% identical to ilspy-decompile — 48 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

plugins/handbook-dotnet/skills/ilspy-decompile/SKILL.md · 141 lines

How it starts

The opening of the file, as written. The whole thing — 141 lines — stays where its author put it; the contents beside it link to each section on GitHub.

.NET Assembly Decompilation with ILSpy

Use this skill to understand how .NET code works internally by decompiling compiled assemblies.

Prerequisites

  • .NET SDK installed
  • ILSpy command-line tool available via one of the following:
    • dotnet dnx ilspycmd (if available in your SDK or runtime)
    • dotnet tool install --global ilspycmd

Both forms are shown below. Use the one that works in your environment.

Note: ILSpyCmd options may vary slightly by version. Always verify supported flags with ilspycmd -h.

Quick start

# Decompile an assembly to stdout
ilspycmd MyLibrary.dll
# or
dotnet dnx ilspycmd MyLibrary.dll

# Decompile to an output folder
ilspycmd -o output-folder MyLibrary.dll

Common .NET Assembly Locations

NuGet packages

~/.nuget/packages/<package-name>/<version>/lib/<tfm>/

.NET runtime libraries

dotnet --list-runtimes

.NET SDK reference assemblies

dotnet --list-sdks

Reference assemblies do not contain implementations.

Project build output

./bin/Debug/net8.0/<AssemblyName>.dll
./bin/Release/net8.0/publish/<AssemblyName>.dll

Core workflow

  1. Identify what you want to understand
  2. Locate the assembly
  3. List types to find the target
  4. Decompile the target

Commands

List types in an assembly

Use -l with an entity type to discover what's inside:

# List classes
ilspycmd -l c MyLibrary.dll

# List interfaces
ilspycmd -l i MyLibrary.dll

# List structs, delegates, enums
ilspycmd -l s MyLibrary.dll
ilspycmd -l d MyLibrary.dll
ilspycmd -l e MyLibrary.dll

Basic decompilation

ilspycmd MyLibrary.dll
ilspycmd -o ./decompiled MyLibrary.dll
ilspycmd -p -o ./project MyLibrary.dll

Targeted decompilation

# Decompile specific type
ilspycmd -t Namespace.ClassName MyLibrary.dll

# Specify C# language version (default: Latest)
ilspycmd -lv CSharp12_0 MyLibrary.dll

View IL code

ilspycmd -il MyLibrary.dll

Read the full file on GitHub · 141 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 141 lines · 49 tokens per session scan A ebc8cc4a0b31

Subscribe to this mod's changes

ilspy-decompile is a skill published in the GitHub repository NikiforovAll/claude-code-rules (143 stars, last pushed 28d ago), licensed Apache-2.0. It adds 49 tokens to every session and 780 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 92% identical to ilspy-decompile, differing in 48 lines, and is treated as a copy.

Related

ilspy-decompile compared with skills from other repositories

ilspy-decompile next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ilspy-decompileNikiforovAll/claude-code-rulesSkill14328d agoApache-2.0A49Claude Code
unity-coderDmitriyYukhanov/claude-pluginsSkill81mo agoMITA27Claude Code
unity-devDmitriyYukhanov/claude-pluginsSkill81mo agoMITA19Claude Code
rider-searchJSungMin/rider-mcp-enforcerSkill41mo agoMITA60Claude Code
dotnet-backend-expertmathisk2095/jko-claude-pluginsSkill31mo agoMITA181Claude Code
dead-codelukaskellerstein/claude-my-marketplaceSkill312d agononeA75Claude Code
questionlukaskellerstein/claude-my-marketplaceSkill312d agononeA40Claude Code