Token导航 LogoToken导航TokenDH.com
研究检索external-servicegithub未标认证来源可访问许可证需确认审计提醒

dotnet-inspect点网检查

Agent Skill

dotnet-inspect 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

294

周安装

12

GitHub Stars

47

下载量

95
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:dotnet-inspect(点网检查)
来源仓库:https://github.com/richlander/dotnet-skills
仓库路径:skills/dotnet-inspect
安装命令:
npx skills add https://github.com/richlander/dotnet-skills --skill dotnet-inspect
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/richlander/dotnet-skills --skill dotnet-inspect

简介

dotnet-inspect 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。

  • 它可结合来源仓库、安装命令和原始 README 继续核验具体用法。
  • 安装方式:github,使用 npx skills add 命令添加指定仓库的 skill。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

dotnet-inspect

Query.NET library APIs — the same commands work across NuGet packages, platform libraries (System.*, Microsoft.AspNetCore.*), and local.dll/.nupkg files.

Quick Decision Tree

  • Code broken?diff --package Foo@old..new first, then member
  • What's new in a.NET preview?diff --platform System.Runtime@P2..P3 --additive per framework library
  • What types exist?type --package Foo (discover types in a package or library)
  • What members does a type have?member Type --package Foo (compact table by default)
  • What does a type look like?type Type --package Foo (tree view for single type)
  • What are the method signatures?member Type --package Foo -m Method (full signatures + docs)
  • What is the source/IL?member Type --package Foo -m Method:1 -v:d (Source, Lowered C#, IL)
  • Where is the source code?source Type --package Foo (SourceLink URLs), source Type -m Member (with line numbers)
  • Want raw source content?source Type --package Foo --cat (fetches and prints source files)
  • What constructors exist?member 'Type<T>' --package Foo -m.ctor (use <T> not <>)
  • How many overloads?member Type --package Foo --show-index (shows Name:N indices)
  • What does this package depend on?depends --package Foo
  • What does this type inherit?depends 'INumber<TSelf>'
  • Want a dependency diagram?depends --mermaid (standalone) or depends --markdown --mermaid (embedded)
  • What metadata fields exist?-S Section --fields "PDB*" (structured query, no DSL)
  • What version is available?Foo --version (cache-first), Foo --latest-version (always NuGet), Foo --versions (list all)

When to Use This Skill

  • "What types are in this package?"type discovers types, find searches by pattern
  • "What members does this type have?"member for methods/properties/events (docs on by default)
  • "What changed between versions?"diff classifies breaking/additive changes
  • "What new APIs shipped in this preview?"diff --platform System.Runtime@prev..current --additive per framework library
  • "This code uses an old API — fix it"diff the old..new version, then member to see the new API
  • "What extends this type?"extensions finds extension methods/properties (--reachable for transitive)
  • "What implements this interface?"implements finds concrete types
  • "What does this type depend on?"depends walks type hierarchy, package deps, or library refs
  • "Show dependencies as a diagram"depends --mermaid for standalone mermaid, --markdown --mermaid for embedded
  • "Where is the source code?"source returns SourceLink URLs; add member name for line numbers
  • "What version/metadata does this have?"package and library inspect metadata
  • "What version is available?"Foo --version (fast, cache-first — like docker run)
  • "What's the latest on NuGet?"Foo --latest-version (always queries NuGet — like docker pull)
  • "What versions exist?"Foo --versions (list all published versions)
  • "What TFMs are available?"package Foo --tfms, then type --package Foo --tfm net8.0
  • "Where is the source code?"source returns SourceLink URLs; add member name for line numbers
  • "Show me the actual source?"source Type --package Foo --cat fetches and prints source file contents
  • "Show me something cool"demo runs curated showcase queries

Key Patterns

Default output is markdown — headings, tables, and field lists that render well in terminals, editors, and LLM contexts. No flags needed:

dnx dotnet-inspect -y -- member JsonSerializer --package System.Text.Json    # scan members
dnx dotnet-inspect -y -- type --package System.Text.Json                     # scan types
dnx dotnet-inspect -y -- diff --package System.CommandLine@2.0.0-beta4.22272.1..2.0.3  # triage changes

Default format is markdown — no flags needed. Optional formats: oneline (--oneline), plaintext (--plaintext), json (--json), mermaid (--mermaid). Verbosity (-v:q/m/n/d) controls which sections are included; formatter controls how they render. They compose freely — except --oneline and -v cannot be combined.

dnx dotnet-inspect -y -- member JsonSerializer --package System.Text.Json -v:d  # detailed (source/IL)
dnx dotnet-inspect -y -- System.Text.Json -v:n --plaintext                      # all local sections, plaintext
dnx dotnet-inspect -y -- type --package System.Text.Json --oneline              # compact columnar output
dnx dotnet-inspect -y -- depends Stream --mermaid                               # standalone mermaid diagram
dnx dotnet-inspect -y -- depends Stream --markdown --mermaid                    # mermaid embedded in markdown

Use diff first when fixing broken code — triage changes, then drill into specifics:

dnx dotnet-inspect -y -- diff --package System.CommandLine@2.0.0-beta4.22272.1..2.0.3  # what changed?
dnx dotnet-inspect -y -- member Command --package System.CommandLine@2.0.3               # new API surface

Platform Diffs & Release Notes

For framework libraries (System.*, Microsoft.AspNetCore.*), use --platform instead of --package. This is the primary workflow for.NET release notes — diff each framework library between preview versions:

dnx dotnet-inspect -y -- diff --platform System.Runtime@P2..P3 --additive        # what's new?
dnx dotnet-inspect -y -- diff --platform System.Net.Http@P2..P3 --additive       # per-library
dnx dotnet-inspect -y -- diff --platform System.Text.Json@9.0.0..10.0.0          # across major versions

Multi-library packages: diff --package works across all libraries in a package (e.g., Microsoft.Azure.SignalR with multiple DLLs). For framework ref packages like Microsoft.NETCore.App.Ref, prefer --platform per-library since it resolves from installed packs.

Nightly/preview packages from custom feeds: The --source flag works for version listing but not package downloads. Pre-populate the NuGet cache instead:

# Pre-populate cache (fails with NU1213 but downloads the package)
dotnet add package Microsoft.NETCore.App.Ref --version <version> --source <feed-url>
# Then use normally — resolves from NuGet cache
dnx dotnet-inspect -y -- diff --platform System.Runtime@P2..P3 --additive

Version Resolution (Docker-style)

Version queries use Docker-like semantics: cached packages are served in under 15ms, network calls cost 1–4 seconds. Three flags, three behaviors:

FlagBehaviorNetworkLike Docker...
--version (bare)Local — returns the version from local cacheOnly on cache missdocker run nginx
--latest-versionRemote — queries nuget.org for the absolute latestAlwaysdocker pull nginx
--versionsRemote — returns every published versionAlwaysdocker image ls --all

--version and bare-name inspection share the same cache. If Foo --version returns 2.0.3, then Foo (or package Foo) will inspect that same 2.0.3 — no surprises, no extra network call. This is the fast path for most tasks.

--latest-version and --versions always query nuget.org, so they reflect the latest published state. Use --latest-version when you need to confirm the newest version, e.g., before a dependency upgrade.

dnx dotnet-inspect -y -- Foo --version           # what's in the cache? (fast, local)
dnx dotnet-inspect -y -- Foo --latest-version     # what's on nuget.org? (always network)
dnx dotnet-inspect -y -- Foo --versions           # list all published versions
dnx dotnet-inspect -y -- Foo --versions 5         # list latest 5 versions
dnx dotnet-inspect -y -- Foo --versions --preview # include prerelease versions

The same flags work on the package subcommand:

dnx dotnet-inspect -y -- package Foo --version           # same local cache check
dnx dotnet-inspect -y -- package Foo --latest-version     # always queries nuget.org
dnx dotnet-inspect -y -- package Foo --versions           # list all versions

Version pinning with @version syntax:

dnx dotnet-inspect -y -- Foo@2.0.3                # pinned — no network if cached
dnx dotnet-inspect -y -- Foo@latest               # always checks nuget.org
dnx dotnet-inspect -y -- Foo                      # prefer cache, refresh on TTL expiry

Use --version (not --latest-version) as the default. It's fast and returns the same version that bare-name commands will use. Only reach for --latest-version when you need the absolute latest from nuget.org.

Structured Queries (like Go templates, without a DSL)

Discover the schema, then select and project — no template language needed:

dnx dotnet-inspect -y -- System.Text.Json -D                          # list sections
dnx dotnet-inspect -y -- System.Text.Json -D --effective              # sections with data (dry run)
dnx dotnet-inspect -y -- library System.Text.Json -D --tree           # full schema tree
dnx dotnet-inspect -y -- System.Text.Json -S Symbols                  # render one section
dnx dotnet-inspect -y -- System.Text.Json -S Symbols --fields "PDB*"  # project specific fields
dnx dotnet-inspect -y -- type System.Text.Json --columns Kind,Type    # project specific columns

Mermaid Diagrams

The depends command supports --mermaid for Mermaid diagram output. Two modes:

FlagsOutputUse case
--mermaidStandalone mermaid (graph TD)Pipe to mmdc, embed in tooling
--markdown --mermaidMermaid fenced blocks inside markdownRender in GitHub, VS Code, docs
dnx dotnet-inspect -y -- depends Stream --mermaid                               # type hierarchy as mermaid
dnx dotnet-inspect -y -- depends Stream --markdown --mermaid                    # embedded in markdown
dnx dotnet-inspect -y -- depends --library System.Text.Json --mermaid           # assembly reference graph
dnx dotnet-inspect -y -- depends --package Markout --mermaid                    # package dependency graph

Search Scope

Search commands (find, extensions, implements, depends) use scope flags:

  • (no flags) — all platform frameworks (runtime, aspnetcore, netstandard)
  • --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 Reference

CommandPurpose
typeDiscover types — terse output, no docs, use --shape for hierarchy
memberInspect members — docs on by default, supports dotted syntax (-m Type.Member)
findSearch for types by glob or fuzzy match across any scope
diffCompare API surfaces between versions — breaking/additive classification
extensionsFind extension methods/properties for a type (--reachable for transitive)
implementsFind types implementing an interface or extending a base class
dependsWalk dependency graphs upward — type hierarchy, package deps, or library refs
packagePackage metadata, files, versions, dependencies, search for NuGet discovery
libraryLibrary metadata, symbols, references, SourceLink audit
sourceSourceLink URLs — type-level or member-level (with line numbers), --cat to fetch content, --verify to check URLs
demoRun curated showcase queries — list, invoke, or feeling-lucky

Filtering and Limiting

dnx dotnet-inspect -y -- type System.Text.Json -k enum               # filter by kind (type and member commands)
dnx dotnet-inspect -y -- type System.Text.Json -t "*Converter*"      # glob filter on type names
dnx dotnet-inspect -y -- member System.Text.Json JsonDocument -m Parse  # filter by member name
dnx dotnet-inspect -y -- type System.Text.Json -5                    # first 5 lines (like head -5)
dnx dotnet-inspect -y -- type System.Text.Json --tail 10             # last 10 lines (like tail -10)

Do not pipe output through head, tail, or Select-Object. Use built-in --head / --tail:

  • -n N, --head N, or -N — first N lines (like head). Keeps headers, truncates cleanly.
  • --tail N — last N lines (like tail). Buffers output, emits only the final N lines.
  • -m N (numeric) — item limit (members per kind section).
  • -k Kind — filter by kind: class/struct/interface/enum/delegate (type) or method/property/field/event/constructor (type single-type view, member).
  • -S Section — show only a specific section (glob-capable).

Key Syntax

  • Generic types need quotes: 'Option<T>', 'IEnumerable<T>'
  • Use <T> not <> for generic types — "Option<>" resolves to the abstract base, 'Option<T>' resolves to the concrete generic with constructors
  • type uses -t for type filtering, member uses -m for member filtering (not --filter)
  • Dotted syntax for member: -m JsonSerializer.Deserialize or -m System.Text.Json.JsonSerializer.Deserialize
  • Diff ranges use ..: --package System.Text.Json@9.0.0..10.0.0
  • Derived types only show their own members — query the base type too

Installation

Use dnx (like npx). Always use -y and -- to prevent interactive prompts:

dnx dotnet-inspect -y -- <command>

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

33.46%
按下载量换算32

Claude

33.04%
按下载量换算31

Cursor

17.76%
按下载量换算17

Gemini CLI

9.7%
按下载量换算9

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills