agentleFS
LeanMeanCleanAppsLeanMeanCleanApps/CleanModelContextProtocol/.agents/skills/packages-and-dependencies/SKILL.md

packages-and-dependencies

Skill1 starsChanged 7 days agoMITView on GitHub

How NuGet packages are managed with Central Package Management and monthly grouped Dependabot updates, and which packages are not allowed. Use when adding, updating or removing a package.

The file

We split this skill into the rules it gives an agent

8 rules. About 0 are common, 4 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Look for something already in the solution or in the .NET base libraries first.

    line 16
  2. Distinctive:

    Check the licence. MIT, Apache 2.0 and BSD are fine.

    line 17
  3. Very specific:

    Add <PackageVersion Include="Name" Version="x.y.z" /> to Directory.Packages.props, in alphabetical order.

    line 18
  4. Very specific:

    Add <PackageReference Include="Name" /> (no version) to the project that needs it.

    line 19
  5. Very specific:

    Put Version= on a PackageReference.

    line 25
  6. Very specific:

    Add MediatR, MassTransit (v9 and later), AutoMapper, FluentAssertions (v8 and later), or any other library that moved to a commercial …

    line 26
  7. Distinctive:

    Add a package to quiet a warning or save a few lines.

    line 27
  8. Distinctive:

    Update one package by hand between Dependabot runs unless it fixes a vulnerability.

    line 28

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Packages and dependencies

The rule

Versions live in one file, Directory.Packages.props, and project files only name the package. Dependabot opens one grouped pull request a month (on the 15th) for NuGet, Docker Compose images and GitHub Actions together. Every package must be free and open source, with no paid or commercial licence tier.

Steps

  1. Look for something already in the solution or in the .NET base libraries first.
  2. Check the licence. MIT, Apache 2.0 and BSD are fine. Anything that needs a paid licence for some users is out.
  3. Add <PackageVersion Include="Name" Version="x.y.z" /> to Directory.Packages.props, in alphabetical order.
  4. Add <PackageReference Include="Name" /> (no version) to the project that needs it. Analysers and build-only tools get PrivateAssets all.
  5. A package used by Application or Infrastructure is shared code; in the template repository it must be added to all five templates.
  6. Build and test. The pipeline's dependency review fails on known vulnerabilities and disallowed licences.

Don't

  • Put Version= on a PackageReference.
  • Add MediatR, MassTransit (v9 and later), AutoMapper, FluentAssertions (v8 and later), or any other library that moved to a commercial licence. Use Mediator, Riok.Mapperly and Shouldly.
  • Add a package to quiet a warning or save a few lines.
  • Update one package by hand between Dependabot runs unless it fixes a vulnerability.

Check

dotnet restore
dotnet build
dotnet list package --vulnerable

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.