sherlock

sherlock is a skill for Claude Code from jcucci/dotnet-sherlock-mcp. It costs 83 tokens per session (1,468 once invoked), scanned A, original, MIT.

A tool for inspecting compiled .NET assemblies, which are the packaged program files used by .NET applications. It can look up types, methods, interfaces, call relationships, and NuGet package contents.

In plain words
What is it for?
Use it before writing C# against an unfamiliar library or when investigating what a .NET assembly contains and how its methods are connected.
Why use it?
It replaces guesses about a library's API with information from the exact compiled version the project uses.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the sherlock plugin — 1 skill shipped together

Good fit Use it before writing C# against an unfamiliar library or when investigating what a .NET assembly contains and how its methods are connected.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jcucci/dotnet-sherlock-mcp/sherlock
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add jcucci/dotnet-sherlock-mcp --skill sherlock
Clone the repo
git clone --depth 1 https://github.com/jcucci/dotnet-sherlock-mcp

Made for: Claude Code.

Or install sherlock, the plugin that ships this one along with the rest of its 1 skill.

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 sherlock

README.md
[![agentmods](https://agentmods.dev/badge/skills/jcucci/dotnet-sherlock-mcp/sherlock/github.svg)](https://agentmods.dev/skills/jcucci/dotnet-sherlock-mcp/sherlock)
Your own site
<a href="https://agentmods.dev/skills/jcucci/dotnet-sherlock-mcp/sherlock"><img src="https://agentmods.dev/badge/skills/jcucci/dotnet-sherlock-mcp/sherlock/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 sherlock

Your own site · 80×15
<a href="https://agentmods.dev/skills/jcucci/dotnet-sherlock-mcp/sherlock"><img src="https://agentmods.dev/badge/skills/jcucci/dotnet-sherlock-mcp/sherlock.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 83 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,468 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 original No closer match found 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.00083 $0.01468
Opus 5.5 $0.00033 $0.00587
Sonnet 5.5 $0.00017 $0.00294
Haiku 4.5 $0.00008 $0.00147

Measured 8d ago against content hash 9037411225d6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

sherlock 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 8d 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.

plugins/sherlock/skills/sherlock/SKILL.md · 87 lines

How it starts

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

Sherlock: .NET assembly introspection

Sherlock reads real assemblies (your build output or the NuGet cache) via metadata-only reflection, so its answers match the exact version the project compiles against. Reach for it whenever correctness depends on an API's actual shape.

Tool names are snake_case; argument names are camelCase.

1. Locate the assembly

Every tool takes an assembly path. Find it rather than guessing:

  • find_assembly_by_class_name - you know a type name but not which DLL holds it.
  • find_assembly_by_nuget_package - resolve a package (and version) from the local NuGet cache.
  • get_project_output_paths - the build output DLL of a .csproj.
  • find_assembly_by_file_name - you know the DLL name.

Never hardcode bin/Debug/<tfm>/...; the target framework and configuration vary.

When you will make several calls against the same assembly, call open_assembly once and pass the returned assemblyHandle (a short asm_… id) instead of assemblyPath. The handle also carries any additionalAssemblies you opened it with.

2. Orient cheaply

  • get_assembly_info - identity, target framework, references.
  • search_members - you know a member name fragment but not its declaring type (narrow with memberKinds).
  • get_types_from_assembly - browse types, paginated.

3. Drill in, narrow to wide

  1. get_type_info - kind, base type, interfaces, accessibility, member counts.
  2. get_type_members filtered by kinds, nameContains or hasAttributeContains. The default summary projection returns { kind, name, signature }, and the C# signature already carries return type, parameters and modifiers.
  3. Re-call with projection='full' only for the few members where you need structured parameters, attributes or modifier flags.
  4. analyze_method for one method's overloads; get_xml_docs_for_type / get_xml_docs_for_member for documentation; get_type_hierarchy for the inheritance chain (format='mermaid' for a class diagram).

Start with a small maxItems and page with continuationToken instead of fetching everything.

Read the full file on GitHub · 87 lines

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. 8d ago Changed · +17 lines 9037411225d6
  2. 9d ago Changed · +3 lines d0c177dcbb28
  3. 10d ago First seen · 67 lines · 83 tokens per session scan A 3621e744832f

Subscribe to this mod's changes

sherlock is a skill published in the GitHub repository jcucci/dotnet-sherlock-mcp (8 stars, last pushed 7d ago), licensed MIT. It adds 83 tokens to every session and 1,468 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-02.

Related

Other skills, from other repositories

dotnet-reverse

A guide for analyzing compiled .NET and C# programs, including managed Windows executables and libraries. Reverse engineering means studying compiled software to understand how it works, and decompiling turns it back into readable approximate source code.

zhaoxuya520/reverse-skill · 144 tokens

check-bin-obj-clash

Detects MSBuild projects with conflicting OutputPath or IntermediateOutputPath. USE FOR: builds failing with 'Cannot create a file when that file already exists', 'The process cannot access the file because it is being used by another process', intermittent build failures that succeed on retry, or missing/overwritten…

dotnet/skills · 160 tokens

winforms-expert

Create, modify, debug, or review Windows Forms applications only when the request contains a concrete Windows Forms marker. USE FOR: WinForms, Windows Forms, System.Windows.Forms, WinForms Form or UserControl designer files (.Designer.cs or .Designer.vb), Visual Studio WinForms Designer, TableLayoutPanel…

dotnet/skills · 137 tokens

build-perf-diagnostics

Diagnose MSBuild build performance bottlenecks using binary log analysis. USE FOR: identifying why builds are slow by analyzing binlog performance summaries, detecting ResolveAssemblyReference (RAR) taking >5s, Roslyn analyzers consuming >30% of Csc time, single targets dominating >50% of build time, node utilization…

dotnet/skills · 160 tokens

dump-collect

Configure and collect crash dumps for modern .NET applications. USE FOR: enabling automatic crash dumps for CoreCLR or NativeAOT, capturing dumps from running .NET processes, setting up dump collection in Docker or Kubernetes, using dotnet-dump collect or createdump. DO NOT USE FOR: analyzing or debugging dumps…

dotnet/skills · 96 tokens

binlog-generation

Generate MSBuild binary logs (binlogs) for build diagnostics and analysis. USE FOR: adding /bl:{} to any dotnet build, test, pack, publish, or restore command to capture a full build execution trace, prerequisite for binlog-failure-analysis and build-perf-diagnostics skills, enabling post-build investigation of errors…

dotnet/skills · 136 tokens