Skip to content
Skills Library
Security · Review & audit

nuget-hygiene

/nuget-hygiene

Keep NuGet dependencies safe and tidy: list vulnerable, deprecated and outdated packages with the dotnet CLI, check licences, adopt Central Package Management, lock files for reproducible restores, trusted package sources, and an update routine that does not break builds. Use when auditing dependencies, after a security advisory, before a release, or when package versions drift between projects.

Licence
MIT
Last repository change
10.11.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 10.11.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Keep NuGet dependencies safe and tidy: list vulnerable, deprecated and outdated packages with the dotnet CLI, check licences, adopt Central Package Management, lock files for reproducible restores, trusted package sources, and an update routine that does not break builds. Use when auditing dependencies, after a security advisory, before a release, or when package versions drift between projects.

Original author description

Keep NuGet dependencies safe and tidy: list vulnerable, deprecated and outdated packages with the dotnet CLI, check licences, adopt Central Package Management, lock files for reproducible restores, trusted package sources, and an update routine that does not break builds. Use when auditing dependencies, after a security advisory, before a release, or when package versions drift between projects.

How it works

  1. Audit
  2. Triage a vulnerable package
  3. Hygiene
Original SKILL.md headings · 23 lines, 174 words
SKILL.md preview
---
name: nuget-hygiene
description: "Keep NuGet dependencies safe and tidy: list vulnerable, deprecated and outdated packages with the dotnet CLI, check licences, adopt Central Package Management, lock files for reproducible restores, trusted package sources, and an update routine that does not break builds. Use when auditing dependencies, after a security advisory, before a release, or when package versions drift between projects."
---

# NuGet hygiene

## Audit
```bash
dotnet list package --vulnerable --include-transitive
dotnet list package --deprecated
dotnet list package --outdated
```
.NET 8+ also warns at restore (`NuGetAudit`); keep it on, and set `<NuGetAuditMode>all</NuGetAuditMode>` to include transitive packages.

## Triage a vulnerable package
1. Is the vulnerable code path used? Severity and exploitability in our context.
2. Upgrade the direct package; for a transitive one, add an explicit reference to the fixed version (or a CPM transitive pin).
3. Build, test, note it in the PR with the advisory id.

## Hygiene
- **Central Package Management**: `Directory.Packages.props` with `<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>`; one version per package for the whole repo.
- **Lock files** (`RestorePackagesWithLockFile`) and `--locked-mode` in CI for reproducible builds.
- **Sources**: `nuget.config` with the internal feed and package source mapping, so a public package cannot shadow an internal name (dependency confusion).
- **Licences**: list them (e.g. `dotnet-project-licenses` or the SBOM tool) and flag copyleft or "no licence" before shipping to customers.
- Update routine: small batches, one family at a time, read release notes for majors.

Versions

The database has no other skills named nuget-hygiene.

Database snapshot: 13.11.2026 · package version 209efa18c005 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 3 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100dotnet-update-packages
    Lists and updates outdated NuGet packages in .NET projects. Also use when the user mentions "update packages," "outdated NuGet," "upgrade dependencies," "dotnet package update," "check for updates," or "package versions." For centralizing package versions, see dotnet-centralise-packages.
  • 100dependency-vuln-scanner
    Scan a .NET project's NuGet dependencies for known vulnerabilities, deprecated/outdated packages, and transitive risks, then recommend safe upgrades. Use this skill whenever the user wants to check dependencies for CVEs, vulnerable packages, outdated NuGet, transitive…
  • 100nuget-manager
    Manage NuGet packages in .NET projects/solutions. Use this skill when adding, removing, or updating NuGet package versions. It enforces using `dotnet` CLI for package management and provides strict procedures for direct file edits only when updating versions.
  • 100nuget-dependency-analyzer
    Analyze a .NET solution's NuGet dependencies — version conflicts, duplicate/inconsistent versions across projects, unused packages, and central package management opportunities. Use this skill whenever the user wants to analyze dependencies, fix version conflicts, consolidate…
  • 90dotnet-supply-chain-review
    Use this skill when reviewing .NET CI/CD and NuGet supply-chain integrity — SDK pinning via global.json, package version pinning and lock files, Central Package Management, NuGet feed trust, fork-PR secret exposure, vulnerability scanning, and build reproducibility. Trigger when…
  • 90nuget
    NuGet package management via dotnet CLI. Trigger on install package, update package, push nupkg, pack project, manage NuGet sources, or clear NuGet cache.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.