An agnet skill that teaches an agent to resolve a C# source file (.cs) to the .csproj
project that owns it, using the findproject
.NET CLI tool.
Given a path to a .cs file, findproject walks up the directory tree and
prints the absolute path of the nearest owning .csproj. This skill packages
the tool's usage, invocation modes, and gotchas so an agent can reliably locate,
build, or test the project that contains a given file.
finding-owning-csproj/
├── SKILL.md # Entry point: metadata + concise instructions (loaded when triggered)
└── README.md # This file (human-facing overview)
- SKILL.md — the skill itself. Its YAML frontmatter (
name,description) is what the agent uses to discover and trigger the skill; the body gives quick-start usage and the most important rules.
The findproject command must be installed and on PATH:
dotnet tool install --global findprojectfindproject src/Common/Commands.Common/PowerBICmdlet.cs
# -> .../src/Common/Commands.Common/Commands.Common.csprojTip:
findprojectalways exits with code0. Detect success by checking whether it produced output, not by the exit code.
npx skills add leblocks/dotnet-findproject-skillThe findproject tool is authored and maintained by Kirill Osenkov
(@KirillOsenkov) as part of
CodeCleanupTools. All credit for the tool belongs to the author.
- NuGet package: https://www.nuget.org/packages/findproject
- Source code: https://github.com/KirillOsenkov/CodeCleanupTools/tree/main/FindProject