Back to directory

Clean Unused Cpm Packages

Agent skill
1 skill

Remove unused PackageVersion entries from Directory.Packages.props files in a .NET repo using Central Package Management (CPM). Scans every .csproj, .props, and .targets file for PackageReference includes, computes which PackageVersion IDs aren't referenced anywhere, removes the unused entries with line-targeted edits that preserve formatting and comments, then verifies with dotnet restore. Use this skill whenever the user wants to clean up, prune, or remove unused entries from Directory.Packages.props, or says things like "clean up CPM", "remove unused packages from central package management", "the props file has stale entries", "prune Directory.Packages.props", or "dead packages in the central versions file" — even if they don't literally say "CPM". Trigger proactively when the user mentions Directory.Packages.props alongside cleanup, removal, dead, stale, or unused. Refuses to run on repos without a Directory.Packages.props (CPM not in use).

Install with
Claude CodeCodexCursorGitHub CopilotGemini CLI

Supported by the Atlas install prompt. Skill-specific requirements vary.

Skill stats

Skills1CategoryProduct & designStars0

About this skill

Remove unused PackageVersion entries from Directory.Packages.props files in a .NET repo using Central Package Management (CPM). Scans every .csproj, .props, and .targets file for PackageReference includes, computes which PackageVersion IDs aren't referenced anywhere, removes the unused entries with line-targeted edits that preserve formatting and comments, then verifies with dotnet restore. Use this skill whenever the user wants to clean up, prune, or remove unused entries from Directory.Packages.props, or says things like "clean up CPM", "remove unused packages from central package management", "the props file has stale entries", "prune Directory.Packages.props", or "dead packages in the central versions file" — even if they don't literally say "CPM". Trigger proactively when the user mentions Directory.Packages.props alongside cleanup, removal, dead, stale, or unused. Refuses to run on repos without a Directory.Packages.props (CPM not in use).

Quick start

  1. Copy the install prompt. Use the green button above this README.
  2. Send it to your agent. Paste it into your coding agent’s chat and send.
  3. Review the setup. Your agent checks the skill’s instructions, requirements, and installation scope.
Review, license & listing details
Review the source before using this skill

This is an imported listing. We haven’t certified its safety, license, or compatibility. Skills may include executable scripts.

Automated security scan: Unavailable

HTTP 404

About scan coverage and limitations

About this listing

Category
Product & design
Reported license
Unlicense
Listing language (estimated)
English
Review status
Not individually reviewed
Agent compatibility
Atlas installation supports Claude Code, Codex, and Cursor. Skill-specific dependencies and features are checked during setup.
Clean Unused Cpm Packages | Agent Skills Atlas