# dotnet-inspect-decompiler

Rebuilds C# and IL views from .NET assemblies, exposing implementation details and searchable method-body patterns.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 417 installs · ★ 156
- Author: richlander
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/richlander/dotnet-inspect/tree/HEAD/skills/decompiler/SKILL.md
- Updated: 2026-10-25
- HTML: https://affpapa.org/en/nevibecode/skills/dotnet-inspect-decompiler

## What it does

This skill inspects a selected .NET type or member and renders reconstructed C#, annotated C# with IL details, or raw IL. It can resolve an overload, show a signature, and search public API methods for a chosen C# body shape such as object creation or a try statement.

Searches stay scoped to an assembly, type, or member. Results can include a qualified member selector, MethodDef token, rendered-body range, and the matching text. Run restore and build first when project dependencies changed. Package and PDB acquisition may use the network, so `--offline` is required when the analysis must stay local.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add richlander/dotnet-inspect --skill dotnet-inspect-decompiler -a claude-code
```
```bash
npx skills add richlander/dotnet-inspect --skill decompiler -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/decompiler/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/decompiler/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add richlander/dotnet-inspect --skill decompiler -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/decompiler/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add richlander/dotnet-inspect --skill decompiler -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/decompiler/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install richlander/dotnet-inspect decompiler
```

2. **Manually: put the files in place**
- File: `.github/skills/decompiler/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add richlander/dotnet-inspect --skill decompiler -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/richlander/dotnet-inspect --path skills/decompiler
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/decompiler/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add richlander/dotnet-inspect --skill decompiler -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/richlander/dotnet-inspect/tree/HEAD/skills/decompiler/SKILL.md

## When to use it
- reconstruct C# from a .NET assembly
- compare decompiled code with raw IL
- find methods by C# body shape
- inspect offsets, branches, and calls
- select a specific overloaded member

## Example prompts
- Inspect type `JsonSerializer` from package `System.Text.Json` and show reconstructed C# plus IL with `--offline`.
- Search `MyLib.dll` for methods where `Kind=TryStatement`, returning JSONL results.
- Render member `JsonSerializer` selector `Serialize:1` as `Decompiled Source` and `Annotated Source`.

## Similar
- [migrate-to-shoehorn](https://affpapa.org/en/nevibecode/skills/migrate-to-shoehorn.md) — skill · 475388 installs
- [write-swift](https://affpapa.org/en/nevibecode/skills/write-swift.md) — skill · 119300 installs
- [megacave](https://affpapa.org/en/nevibecode/skills/megacave.md) — skill · 25400 installs
- [find-docs](https://affpapa.org/en/nevibecode/skills/find-docs.md) — skill · 9400 installs
- [typescript-advanced-types](https://affpapa.org/en/nevibecode/skills/typescript-advanced-types.md) — skill · 92169 installs
- [smart-explore](https://affpapa.org/en/nevibecode/skills/smart-explore.md) — skill · 7300 installs

From the same set: [richlander/dotnet-inspect](https://affpapa.org/en/nevibecode/by/richlander/dotnet-inspect.md) — 4 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
