npm-package-maintenance

Audit and update npm dependencies with risk-based maintenance modes.

Updated Dec 8, 2025
One-click install
npx skills add https://github.com/lenneTech/claude-code --skill npm-package-maintenance
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: npm-package-maintenance
Source: https://github.com/lenneTech/claude-code/tree/main/plugins/lt-dev/skills/npm-package-maintenance
Command: npx skills add https://github.com/lenneTech/claude-code --skill npm-package-maintenance

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you manage dependencies, identify outdated packages, address security vulnerabilities via npm audit, and optimize packaging for best practices. It also promotes using the dedicated npm-package-maintainer agent via /maintain commands.

Core Capabilities

  • Guidance for removing unused packages and properly categorizing dependencies
  • Recommends and orchestrates updates with the npm-package-maintainer agent
  • Provides strategies for security fixes and pre/post-release cleanup
  • Clear guidance on git-based change tracking and cleanup

Quick Start

Use the maintenance commands to audit, clean, and update your package.json, then run tests to ensure the build remains stable.

Frequently Asked Questions about npm-package-maintenance

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I remove unused npm packages from my project?

Remove unused packages by identifying dependencies no longer referenced in your code, then use npm uninstall to delete them from package.json and node_modules. This Skill guides you through detection and safe removal while ensuring npm test and npm run build still pass.

What's the best way to fix npm security vulnerabilities?

Run npm audit to identify security issues, then use npm audit fix or manual updates to patch vulnerable packages. This Skill prioritizes security fixes and coordinates updates through risk-based strategies to maintain stability.

How do I organize dependencies vs devDependencies correctly?

Dependencies are packages needed at runtime; devDependencies are only for development and testing. This Skill optimizes categorization by moving packages to the correct field, reducing production bundle size and improving deployment efficiency.

Can I automate npm package maintenance for my Node.js project?

Yes. This Skill provides five operation modes for maintenance commands that automate auditing, cleaning, and updating packages while enforcing that builds and tests pass, reducing manual work across your Node.js workflow.

When should I clean up dependencies before or after releases?

Clean before releases to remove unused packages and fix security issues, ensuring a lean, secure version ships. After releases, cleanup removes temporary dependencies added during development. This Skill provides strategies for both timing.

How do outdated npm packages affect my project?

Outdated packages may contain security vulnerabilities, lack bug fixes, or lose compatibility with your other dependencies. This Skill identifies and updates outdated packages systematically while testing stability to prevent breaking changes.