Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

finding-owning-csproj skills.sh

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.

What it does

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.

Skill contents

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.

Prerequisite

The findproject command must be installed and on PATH:

dotnet tool install --global findproject

Quick example

findproject src/Common/Commands.Common/PowerBICmdlet.cs
# -> .../src/Common/Commands.Common/Commands.Common.csproj

Tip: findproject always exits with code 0. Detect success by checking whether it produced output, not by the exit code.

Installing the skill

npx skills add leblocks/dotnet-findproject-skill

Credits

The findproject tool is authored and maintained by Kirill Osenkov (@KirillOsenkov) as part of CodeCleanupTools. All credit for the tool belongs to the author.

About

wrapping dotnet findproject tool as an agent skill

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages