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.
In this repository40 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- add-a-use-caseSkill
- api-conventionsSkill
- branches-and-pull-requestsSkill
- cancellationSkill
- ci-for-your-solutionSkill
- ci-pipelineSkill
- clean-architecture-layersSkill
- configuration-and-environmentsSkill
- coverageSkill
- csharp-house-styleSkill
- data-access-ef-coreSkill
- database-migrationsSkill
- docker-and-composeSkill
- docs-and-voiceSkill
- errors-and-exceptionsSkill
- expose-a-use-caseSkill
- family-syncSkill
- health-checksSkill
- integration-testsSkill
- json-serializationSkill
- mapping-with-mapperlySkill
- mcp-inspectorSkill
- mediatorSkill
- optional-token-authSkill
- pagingSkill
- presentation-integration-testsSkill
- releasesSkill
- sample-dataSkill
- security-findingsSkill
- serilogSkill
- telemetrySkill
- template-authoringSkill
- test-designSkill
- time-providerSkill
- unit-testsSkill
- validationSkill
- writing-a-skillSkill
- xml-docs-and-openapiSkill
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
- Distinctive: line 16
Look for something already in the solution or in the .NET base libraries first.
- Distinctive: line 17
Check the licence. MIT, Apache 2.0 and BSD are fine.
- Very specific: line 18
Add <PackageVersion Include="Name" Version="x.y.z" /> to Directory.Packages.props, in alphabetical order.
- Very specific: line 19
Add <PackageReference Include="Name" /> (no version) to the project that needs it.
- Very specific: line 25
Put Version= on a PackageReference.
- Very specific: line 26
Add MediatR, MassTransit (v9 and later), AutoMapper, FluentAssertions (v8 and later), or any other library that moved to a commercial …
- Distinctive: line 27
Add a package to quiet a warning or save a few lines.
- Distinctive: line 28
Update one package by hand between Dependabot runs unless it fixes a vulnerability.
≈ “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.
Files
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
- Look for something already in the solution or in the .NET base libraries first.
- Check the licence. MIT, Apache 2.0 and BSD are fine. Anything that needs a paid licence for some users is out.
- Add
<PackageVersion Include="Name" Version="x.y.z" />toDirectory.Packages.props, in alphabetical order. - Add
<PackageReference Include="Name" />(no version) to the project that needs it. Analysers and build-only tools getPrivateAssetsall. - A package used by Application or Infrastructure is shared code; in the template repository it must be added to all five templates.
- Build and test. The pipeline's dependency review fails on known vulnerabilities and disallowed licences.
Don't
- Put
Version=on aPackageReference. - Add MediatR, MassTransit (v9 and later), AutoMapper, FluentAssertions (v8 and later), or any other library that moved to a commercial licence. Use
Mediator,Riok.MapperlyandShouldly. - 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 --vulnerableDoes 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
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.

