Inspect public API documentation from any NuGet package — decompile types with XML docs, compare API between versions, resolve dependencies. Built for AI agents and CLI workflows.
Install as a skill so your AI coding agent automatically knows when and how to inspect NuGet packages:
npx skills add tryAGI/nuget-docs -gWorks with Claude Code, Cursor, Windsurf, and other AI coding agents. This teaches your agent to run nuget-docs commands when you ask questions like "what methods does IChatClient have?" or "show me the ChatOptions class".
dotnet tool install -g nuget-docs# See all public types in a package
nuget-docs list Microsoft.Extensions.AI.Abstractions
# Decompile a type with full XML docs (short names work)
nuget-docs show Microsoft.Extensions.AI.Abstractions IChatClient
# Search for types/members
nuget-docs search Microsoft.Extensions.AI.Abstractions "Chat*"
# Compare API between versions
nuget-docs diff Microsoft.Extensions.AI.Abstractions --from 10.3.0 --to latestnuget-docs list Microsoft.Extensions.AI.Abstractions
nuget-docs list Newtonsoft.Json --namespace Newtonsoft.Json.Linq
nuget-docs list Humanizer --all # include internal types
nuget-docs list Newtonsoft.Json --format table # aligned columns
nuget-docs list Newtonsoft.Json --format csv # CSV outputnuget-docs show Microsoft.Extensions.AI.Abstractions IChatClient
nuget-docs show Newtonsoft.Json JsonConvert --member SerializeObject
nuget-docs show Newtonsoft.Json --assembly # assembly-level attributesShort names work — IChatClient resolves to Microsoft.Extensions.AI.IChatClient. Use --member to show a specific member (all overloads). Use --assembly to inspect assembly attributes.
nuget-docs search Microsoft.Extensions.AI.Abstractions "Chat*"
nuget-docs search Newtonsoft.Json "*Token*" --namespace Newtonsoft.Json.Linq
nuget-docs search Newtonsoft.Json "*Token*" --format table # aligned columns
nuget-docs search Newtonsoft.Json "*Convert*" --format csv # CSV outputUses glob patterns (* and ? wildcards). Results show [Kind.MemberKind] labels.
# Full unified diff with hunk headers
nuget-docs diff Microsoft.Extensions.AI.Abstractions --from 10.3.0 --to 10.4.0
# Use "latest" to auto-resolve the latest version
nuget-docs diff Microsoft.Extensions.AI.Abstractions --from 10.3.0 --to latest
# Compare latest stable vs latest prerelease
nuget-docs diff Microsoft.Extensions.AI.Abstractions --from latest-stable --to latest-prerelease
# Quick summary — added/removed types only
nuget-docs diff Microsoft.Extensions.AI.Abstractions --from 10.4.0 --to 10.4.1 --type-only
# Breaking changes only
nuget-docs diff Microsoft.Extensions.AI.Abstractions --from 10.3.0 --to 10.4.0 --breaking
# Member-level changes (methods/properties)
nuget-docs diff Microsoft.Extensions.AI.Abstractions --from 10.4.0 --to 10.4.1 --member-diff
# Skip additive changes — show only removals/modifications
nuget-docs diff Microsoft.Extensions.AI.Abstractions --from 10.4.0 --to 10.4.1 --no-additive
# Ignore XML doc comment changes
nuget-docs diff Microsoft.Extensions.AI.Abstractions --from 10.4.0 --to 10.4.1 --ignore-docsExit codes: 0 = no breaking changes, 1 = error, 2 = breaking changes detected (useful for CI).
nuget-docs info Newtonsoft.JsonShows package ID, version, authors, description, license, frameworks, and dependencies.
nuget-docs deps Microsoft.Extensions.AI
nuget-docs deps Microsoft.Extensions.AI --depth 3 # transitive
nuget-docs deps Microsoft.Extensions.AI --format table # aligned columns
nuget-docs deps Microsoft.Extensions.AI --format csv # CSV outputTree-style output with ├──/└── connectors. Shared dependencies marked (already listed). Use --format table or --format csv for flat tabular output.
nuget-docs versions Humanizer
nuget-docs versions Humanizer --stable # stable only
nuget-docs versions Humanizer --prerelease # prerelease only
nuget-docs versions Humanizer --latest # latest stable + prerelease
nuget-docs versions Newtonsoft.Json --since 13.0.1 # versions after 13.0.1
nuget-docs versions Newtonsoft.Json --since 13.0.1 --stable # stable only, after 13.0.1
nuget-docs versions Newtonsoft.Json --count --since 13.0.1 # just the count (for CI)
nuget-docs versions WindowsAzure.Storage --deprecated # show deprecation info
nuget-docs versions Humanizer --limit 50 # show more (default: 20, 0 = all)
nuget-docs versions Humanizer --format table # aligned columns
nuget-docs versions Humanizer --format csv # CSV output| Option | Short | Description |
|---|---|---|
--version <ver> |
-v |
Pin to a specific package version (latest, latest-stable, latest-prerelease) |
--framework <tfm> |
-f |
Target framework (auto-detected by default) |
--all |
-a |
Include internal/private members |
--namespace <prefix> |
-n |
Filter by namespace prefix |
--format <fmt> |
Output format for list/search/versions/deps/diff: grouped (default), table, csv |
|
--deprecated |
Show deprecation/vulnerability info (for versions) |
|
--json |
-j |
JSON output (shorthand for --output json) |
--output json |
-o json |
JSON output for programmatic use |
- Inspects any public NuGet package — auto-downloads if not cached
- Full C# decompilation with
///XML documentation comments - Short type name resolution (
IChatClient→Microsoft.Extensions.AI.IChatClient) - Nested type support (
ChatRole.Converter→ChatRole+Converter) - API diff with unified diff, member-level changes, and breaking change detection
- Version keywords:
latest,latest-stable,latest-prereleasework on any--version,--from,--to - Dependency tree with transitive resolution and deduplication
- Meta-package detection: suggests the real package (e.g.,
Humanizer→Humanizer.Core);infoanddepswork on meta-packages - Deprecation and vulnerability detection from NuGet registry
- Version listing with stable/latest filters
- Framework-aware: picks best matching TFM (net10.0 > net9.0 > ... > netstandard2.0)
- AI-optimized plain text output
- JSON output on all commands
- Tab completion via
dotnet-suggest - Zero configuration — works out of the box
Install the dotnet-suggest global tool and enable tab completion for your shell:
dotnet tool install -g dotnet-suggestbash (add to ~/.bashrc):
source <(dotnet-suggest script bash)zsh (add to ~/.zshrc):
source <(dotnet-suggest script zsh)fish (add to ~/.config/fish/config.fish):
dotnet-suggest script fish | sourceMIT