Token导航 LogoToken导航

Agent Skill · 研究检索

dotnet-project-analysis(dotnet 项目分析)

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

dotnet-project-analysis 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为操作浏览器;许可证信息还不明确,第三方扫描有未通过项,按安装量在研究检索类的 73,675 个 Skill 里排第 57,766。

总安装 424周安装 17GitHub Stars 15下载 137核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/wshaddix/dotnet-skills --skill dotnet-project-analysis

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

用于分析 .NET 解决方案结构和项目引用关系,是开发工作的基础技能。适合理解项目布局、识别入口点和配置文件,为后续开发提供上下文。通过 GitHub 安装,需先运行版本检测以确定目标框架和 SDK 版本。适用于单文件应用需切换至 dotnet-file-based-apps 技能。

dotnet-project-analysis 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/dotnet-project-analysis

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/wshaddix/dotnet-skills --skill dotnet-project-…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要操作浏览器,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

dotnet-project-analysis 怎么安装?

在终端执行 npx skills add https://github.com/wshaddix/dotnet-skills --skill dotnet-project-analysis。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

dotnet-project-analysis 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

dotnet-project-analysis 需要什么权限?

权限级别是操作浏览器。该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

dotnet-project-analysis 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

dotnet-project-analysis 用的人多吗?

公开数据是累计安装 424 次,近一周安装 17 次,下载 137 次,GitHub 15 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

dotnet-project-analysis 安全吗?

第三方扫描有未通过项,风险较高。除非你确认过源码,否则不建议直接安装到常用环境。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
dotnet-project-analysis

dotnet 项目分析 · 本页

42415操作浏览器未明确未通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

dotnet-project-analysis

Analyzes.NET solution structure, project references, and build configuration. This skill is foundational -- agents need to understand project layout before doing any meaningful.NET development work.

Prerequisites: Run [skill:dotnet-version-detection] first to determine TFM and SDK version. For.NET 10+ single-file apps without a .csproj, see [skill:dotnet-file-based-apps] instead.


Step 1: Find the Solution Root

Look for solution files in the workspace, starting from the current directory and walking up to the repository root.

.sln (Legacy Format)

The traditional MSBuild solution format. Contains project paths and build configurations.

Microsoft Visual Studio Solution File, Format Version 12.00
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MyApp", "src\MyApp\MyApp.csproj", "{GUID}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MyApp.Tests", "tests\MyApp.Tests\MyApp.Tests.csproj", "{GUID}"
EndProject

Extract project entries from Project("...") lines. The second quoted value is the project name, the third is the relative path to the .csproj.

.slnx (Modern XML Format)

The new XML-based solution format (supported in.NET 10+ SDK, Visual Studio 17.13+). Preferred for new projects.

<Solution>
  <Folder Name="/src/">
    <Project Path="src/MyApp/MyApp.csproj" />
  </Folder>
  <Folder Name="/tests/">
    <Project Path="tests/MyApp.Tests/MyApp.Tests.csproj" />
  </Folder>
</Solution>

Extract project entries from <Project Path="..." /> elements. Solution folders (<Folder>) indicate logical grouping.

No Solution File

If no .sln or .slnx is found, scan for .csproj files recursively. Report: "No solution file found. Discovered N project files. Consider creating a solution with dotnet new sln and dotnet sln add."


Step 2: Analyze Each Project

For every .csproj discovered in Step 1, read its contents and extract the following.

Project SDK and Type

The <Project Sdk="..."> attribute identifies the project kind:

SDKProject TypeDescription
Microsoft.NET.SdkClass Library / ConsoleDefault SDK, check for <OutputType>
Microsoft.NET.Sdk.WebWeb (API / MVC / Razor Pages)ASP.NET Core web application
Microsoft.NET.Sdk.BlazorWebAssemblyBlazor WASMClient-side Blazor (legacy SDK)
Microsoft.NET.Sdk.WorkerWorker ServiceBackground service / daemon
Microsoft.NET.Sdk.RazorRazor Class LibraryShared Razor components
Microsoft.Maui.Sdk or TFMs with -android/-iosMAUICross-platform mobile/desktop
Custom or Uno.SdkUno PlatformCross-platform UI (check for Uno references)

Output Type Detection

If SDK is Microsoft.NET.Sdk, check <OutputType> to distinguish:

OutputTypeMeaning
ExeConsole application
Library (or absent)Class library
WinExeWindows desktop (WPF/WinForms/WinUI)

Test Project Detection

A project is a test project if any of the following are true:

  • <IsTestProject>true</IsTestProject> is set
  • Has a PackageReference to xunit.v3, xunit, NUnit, MSTest.TestFramework, or Microsoft.NET.Test.Sdk
  • Project name ends with .Tests, .UnitTests, .IntegrationTests, or .TestUtils

Blazor Project Detection

A project is Blazor if:

  • SDK is Microsoft.NET.Sdk.BlazorWebAssembly
  • Has <PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" />
  • Has .razor files in the project directory
  • Uses AddInteractiveServerComponents() or AddInteractiveWebAssemblyComponents() in startup

MAUI Project Detection

A project is MAUI if:

  • <UseMaui>true</UseMaui> is set
  • SDK is Microsoft.Maui.Sdk
  • TFM includes platform-specific targets: net*-android, net*-ios, net*-maccatalyst, net*-windows (e.g., net8.0-android, net10.0-ios)

Uno Platform Detection

A project is Uno Platform if:

  • SDK is Uno.Sdk or Uno.Sdk.Private
  • Has PackageReference to Uno.WinUI or Uno.UI
  • TFM includes Uno-specific targets (e.g., net*-browserwasm, net*-desktop)

Step 3: Map Project References

Read <ProjectReference> elements from each .csproj to build the dependency graph.

<ItemGroup>
  <ProjectReference Include="..\MyApp.Core\MyApp.Core.csproj" />
  <ProjectReference Include="..\MyApp.Infrastructure\MyApp.Infrastructure.csproj" />
</ItemGroup>

Build a dependency graph and report it:

Project Dependency Graph
========================
MyApp.Web (Web API)
  -> MyApp.Core (Library)
  -> MyApp.Infrastructure (Library)
    -> MyApp.Core (Library)
MyApp.Tests (Test)
  -> MyApp.Web (Web API)
  -> MyApp.Core (Library)

Flag issues:

  • Circular references: "Project A -> B -> A detected. This will cause build failures."
  • Test projects referencing other test projects: "Unusual -- test projects should reference production code, not other tests."
  • Deep nesting: More than 4 levels deep may indicate over-abstraction.

Step 4: Detect Centralized Build Configuration

Directory.Build.props

Search for Directory.Build.props starting from each project directory up to the solution root. These files set shared MSBuild properties across all projects in their directory subtree.

Common shared properties to report:

  • <TargetFramework> / <TargetFrameworks> -- shared TFM (see [skill:dotnet-version-detection])
  • <LangVersion> -- C# language version
  • <Nullable>enable</Nullable> -- nullable reference types
  • <ImplicitUsings>enable</ImplicitUsings> -- implicit global usings
  • <TreatWarningsAsErrors>true</TreatWarningsAsErrors> -- strict warnings
  • <EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild> -- code style enforcement
  • <AnalysisLevel>latest-all</AnalysisLevel> -- analyzer severity
  • <ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally> -- CPM indicator

Report: "Found Directory.Build.props at <path>. Shared settings: [list properties found]. These apply to all projects under <directory>."

Directory.Build.targets

Search for Directory.Build.targets the same way. These run after project evaluation and typically contain:

  • Shared <PackageReference> items (e.g., analyzers applied to all projects)
  • Conditional logic based on project type
  • Custom MSBuild targets

Report: "Found Directory.Build.targets at <path>. Contains: [summarize content]."

Multiple Directory.Build Files

If multiple Directory.Build.props files exist at different levels (e.g., root and src/), report the hierarchy:

Build Configuration Hierarchy
==============================
/repo/Directory.Build.props           (root: Nullable, ImplicitUsings, LangVersion)
  /repo/src/Directory.Build.props     (src: TargetFramework, TreatWarningsAsErrors)
  /repo/tests/Directory.Build.props   (tests: IsTestProject, test-specific settings)

Note: Inner files do NOT automatically import outer files. Check for <Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../'))" /> to see if chaining is configured.


Step 5: Detect Central Package Management (CPM)

Directory.Packages.props

Search for Directory.Packages.props starting from the solution root and walking upward toward the repository root (or filesystem root). NuGet resolves CPM hierarchically -- a monorepo may have Directory.Packages.props in a parent directory that governs multiple solutions. Also check for <ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally> in any Directory.Build.props in the hierarchy, as CPM can be enabled there instead.

<Project>
  <PropertyGroup>
    <ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
  </PropertyGroup>
  <ItemGroup>
    <PackageVersion Include="Microsoft.Extensions.Logging" Version="10.0.0" />
    <PackageVersion Include="xunit.v3" Version="3.2.2" />
  </ItemGroup>
</Project>

Report:

  • CPM enabled: "Central Package Management is active. Package versions are defined in Directory.Packages.props at <path>. Individual .csproj files use <PackageReference Include="..." /> without Version attributes."
  • Package count: "N packages managed centrally."
  • Version overrides: Check for <PackageReference... VersionOverride="..."> in individual projects -- flag these as exceptions.
  • Inherited CPM: If Directory.Packages.props is above the solution root, note: "CPM is inherited from <path> (above solution root). This is common in monorepos."

CPM Not Used

If no Directory.Packages.props is found in the upward search and ManagePackageVersionsCentrally is not set in any Directory.Build.props:

  • Report: "Central Package Management is not configured. Each project defines its own package versions."
  • Suggest: "Consider enabling CPM for version consistency. See [skill:dotnet-project-structure] for setup guidance."

Step 6: Detect Additional Configuration Files

.editorconfig

Check for .editorconfig at the solution root and nested levels. Report:

  • Whether it exists
  • Key rules: indent style/size, naming conventions, severity overrides
  • .NET-specific sections: [*.cs] rules for dotnet_style_* and csharp_style_*

nuget.config

Search for nuget.config (case-insensitive) starting from the solution root and walking upward through parent directories. NuGet merges configuration hierarchically (project > user > machine), so multiple files may contribute to the effective config. Report all discovered files and their contents:

  • Package sources configured (e.g., nuget.org, private feeds, local folders)
  • Any <packageSourceMapping> entries (security best practice for supply chain)
  • Any <disabledPackageSources> entries
  • Note: "User-level (~/.nuget/NuGet/NuGet.Config) and machine-level configs may also affect package resolution. Run dotnet nuget list source to see the effective merged sources."

global.json

Already read by [skill:dotnet-version-detection]. Report relevant details here:

  • sdk.version and sdk.rollForward policy
  • msbuild-sdks section if present (custom SDK versions)

.config/dotnet-tools.json

Check for local tool manifest. Report installed tools:

  • dotnet-ef -- Entity Framework Core tools
  • dotnet-format -- code formatting
  • nbgv -- Nerdbank.GitVersioning
  • Any other tools and their versions

Step 7: Identify Entry Points and Key Files

Guide the agent to the most important files based on project type.

Web API / MVC / Razor Pages

  • Entry point: Program.cs (top-level statements, service registration, middleware pipeline)
  • Configuration: appsettings.json, appsettings.{Environment}.json
  • Startup: Look for builder.Services registrations and app.Map* endpoint definitions
  • Endpoints: Minimal API endpoints in Program.cs or *.cs files under an Endpoints/ directory; Controller-based in Controllers/ directory

Console Application

  • Entry point: Program.cs (top-level statements or static void Main)
  • Configuration: appsettings.json if using IHostBuilder / Generic Host

Worker Service

  • Entry point: Program.cs with builder.Services.AddHostedService<Worker>()
  • Worker: Class inheriting BackgroundService with ExecuteAsync override

Class Library

  • No entry point: Document the public API surface (public classes/interfaces)
  • Key files: Look for the primary namespace's types

Blazor

  • Entry point: Program.cs with component registration
  • Root component: App.razor or Routes.razor
  • Layout: MainLayout.razor in Layout/ or Shared/
  • Pages: .razor files with @page directive

MAUI

  • Entry point: MauiProgram.cs with CreateMauiApp()
  • App shell: AppShell.xaml for navigation structure
  • Pages: Files under Views/ or Pages/ directories
  • Platform-specific: Platforms/ directory with Android, iOS, Windows, Mac Catalyst folders

Test Project

  • Test files: *.cs files with [Fact], [Theory], [Test], or [TestMethod] attributes
  • Fixtures: Classes implementing IClassFixture<T> or ICollectionFixture<T>
  • Configuration: Look for WebApplicationFactory<T> usage for integration tests

Structured Output Format

After completing analysis, present results in this format:

.NET Project Analysis Results
==============================
Solution:         MyApp.slnx (or MyApp.sln)
Projects:         5 (2 libraries, 1 web API, 1 console, 1 test)
CPM:              enabled (42 packages in Directory.Packages.props)
Shared Config:    Directory.Build.props (Nullable, ImplicitUsings, LangVersion=14)
Code Style:       .editorconfig present
Package Sources:  nuget.org + private feed (packageSourceMapping configured)
Local Tools:      dotnet-ef 10.0.0, nbgv 3.7.0

Project Dependency Graph
------------------------
MyApp.Api (Web API, net10.0) -> entry: src/MyApp.Api/Program.cs
  -> MyApp.Core (Library)
  -> MyApp.Infrastructure (Library)
    -> MyApp.Core (Library)
MyApp.Console (Console, net10.0) -> entry: src/MyApp.Console/Program.cs
  -> MyApp.Core (Library)
MyApp.Tests (Test, xUnit) -> entry: tests/MyApp.Tests/
  -> MyApp.Api (Web API)
  -> MyApp.Core (Library)

Key Files
---------
- Solution root:    /repo/MyApp.slnx
- Shared props:     /repo/Directory.Build.props
- Package versions: /repo/Directory.Packages.props
- API entry point:  /repo/src/MyApp.Api/Program.cs
- API config:       /repo/src/MyApp.Api/appsettings.json

Edge Cases

Mixed Solution Formats

If both .sln and .slnx exist, prefer .slnx (modern format). Note: "Both .sln and .slnx found. Using .slnx as primary. The .sln may be maintained for older tooling compatibility."

Monorepo with Multiple Solutions

If multiple .sln/.slnx files exist, report all of them and ask the user which solution to analyze. If one is at the repository root, default to that one.

Projects Not in Solution

If .csproj files exist that are not referenced by any solution file, report them as orphaned: "Found N project files not included in any solution. These may be experimental or unused."

Conditional ProjectReferences

If <ProjectReference> is inside a <When> or has a Condition attribute:

<ProjectReference Include="..\MyApp.DevTools\MyApp.DevTools.csproj"
                  Condition="'$(Configuration)' == 'Debug'" />

Report: "Conditional reference to MyApp.DevTools (Debug only)."

Web Project Without launchSettings.json

If a web project has no Properties/launchSettings.json, note: "No launchSettings.json found. The project uses default Kestrel settings. Consider adding launch profiles for development."

平台分布

Codex

33.49%
按下载量换算46

Claude

30.76%
按下载量换算42

Cursor

20.25%
按下载量换算28

Gemini CLI

9.84%
按下载量换算13

安全审计

Gen Agent Trust Hub

通过

Socket

未通过

Snyk

未通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills