/handbook-dotnet:dotnet-inspectfrom handbook-dotnet
Queries .NET APIs across NuGet packages, platform libraries, and local files. Search types, list API surfaces, diff versions, find extension methods and implementors.
Ships in handbook-dotnet. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Query .NET library APIs — the same commands work across NuGet packages, platform libraries (System., Microsoft.AspNetCore.), and local .dll/.nupkg files.
diff --package [email protected] first, then member --onelinemember Type --package Foo --oneline (token-efficient)member Type --package Foo -m Method (default shows full signatures + docs)member Type --package Foo -m Method -v:d (adds Source, Lowered C#, IL)member 'Type<T>' --package Foo -m .ctor (use <T> not <>)member Type --package Foo --select (shows Name:N indices)type discovers types (terse), find searches by patterntype for discovery, member for detailed inspection (docs on)diff classifies breaking/additive changesdiff the old..new version, then member --oneline to see the new APIextensions finds extension methods/propertiesimplements finds concrete typesdepends walks the type hierarchy upwardpackage and library inspect metadatademo runs curated showcase queriesUse --oneline as the default for scanning — it works on type, member, find, diff, and implements:
dnx dotnet-inspect -y -- member JsonSerializer --package System.Text.Json --oneline # scan members
dnx dotnet-inspect -y -- type --package System.Text.Json --oneline # scan types
dnx dotnet-inspect -y -- diff --package [email protected] --oneline # triage changes
Use --shape to understand a type's hierarchy and surface at a glance:
dnx dotnet-inspect -y -- type 'HashSet<T>' --platform System.Collections --shape
Use diff first when fixing broken code — --oneline for triage, then full detail on specific types:
dnx dotnet-inspect -y -- diff --package [email protected] --oneline # what changed?
dnx dotnet-inspect -y -- diff -t Command --package [email protected] # detail on Command
dnx dotnet-inspect -y -- member Command --package [email protected] --oneline # new API surface
Search commands (find, extensions, implements, depends) use scope flags:
--platform — all platform frameworks--extensions — curated Microsoft.Extensions.* packages--aspnetcore — curated Microsoft.AspNetCore.* packages--package Foo — specific NuGet package (combinable with scope flags)type, member, library, diff accept --platform <name> as a string for a specific platform library.
| Command | Purpose |
|---|---|
type | Discover types — terse output, no docs, use --shape for hierarchy |
member | Inspect members — docs on by default, supports dotted syntax (-m Type.Member) |
find | Search for types by glob pattern across any scope |
diff | Compare API surfaces between versions — breaking/additive classification |
extensions | Find extension methods/properties for a type |
implements | Find types implementing an interface or extending a base class |
depends | Walk the type dependency hierarchy upward (interfaces, base classes) |
package | Package metadata, files, versions, dependencies, search for NuGet discovery |
library | Library metadata, symbols, references, dependencies |
demo | Run curated showcase queries — list, invoke, or feeling-lucky |
Do not pipe output through head, tail, or Select-Object. The tool has built-in line limiting that preserves headers and formatting:
dnx dotnet-inspect -y -- member JsonSerializer --package System.Text.Json --oneline -10 # first 10 lines
dnx dotnet-inspect -y -- find "*Logger*" -n 5 # first 5 lines
dnx dotnet-inspect -y -- member JsonSerializer --package System.Text.Json -v:q -s Methods # select specific section
-n N or -N — line limit, like head. Keeps headers, truncates cleanly.-s Section — show only a specific section (glob-capable). Use -s alone to list available sections.-v:q — quiet verbosity for compact summary output.'Option<T>', 'IEnumerable<T>'<T> not <> for generic types — "Option<>" resolves to the abstract base, 'Option<T>' resolves to the concrete generic with constructorstype uses -t for type filtering, member uses -m for member filtering (not --filter)member: -m JsonSerializer.Deserialize..: --package [email protected]params and default values from metadataRootCommand inherits Add() and SetAction() from Command)Use dnx (like npx). Always use -y and -- to prevent interactive prompts:
dnx dotnet-inspect -y -- <command>
For comprehensive syntax, edge cases, and the flag compatibility matrix:
dnx dotnet-inspect -y -- llmstxt
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub nikiforovall/claude-code-rules --plugin handbook-dotnet9 skills in this plugin
/coverage-reportGenerate a .NET code coverage report scoped to files changed in the current branch. Runs tests with coverage collection and produces filtered HTML reports./dotnet-analyzersRun dotnet format to fix code style and analyzer diagnostics (IDE0005, CA*, SA*). Use when fixing unnecessary usings, code style violations, analyzer warnings, or verifying format compliance/dotnet-dependencyThis skill should be used when investigating .NET project dependencies, understanding why packages are included, listing references, or auditing for outdated/vulnerable packages./dotnet-run-fileRun script-like CSharp programs using dotnet run file.cs. Use this skill when users want to execute CSharp code directly, write one-liner scripts via stdin, or learn about run file directives./dotnet-testThis skill should be used when running .NET tests selectively with a build-first, test-targeted workflow. Use it for running tests with xUnit focus./dotnet-verifyThis skill should be used when working with Verify snapshot tests in .NET projects. Use when updating verified snapshots after intentional code changes, accepting new snapshots, discovering verify tests, or troubleshooting snapshot mismatches. Trigger phrases include "verify tests", "update snapshots", "accept snapshots", "verified files", ".verified.txt".Other plugins' skills for the same job