Skill
Community

maintaining-npm-packages

Install
1
Install the plugin
$
npx claudepluginhub lennetech/claude-code --plugin lt-dev

Want just this skill?

Then install: npx claudepluginhub u/[userId]/[slug]

Description

Analyzes and optimizes npm package dependencies across 5 maintenance modes: FULL (update all), DRY-RUN (analysis only), SECURITY-ONLY (urgent CVE fixes), PRE-RELEASE (conservative patch-only), POST-FEATURE (cleanup after development). Activates when user mentions "update packages", "pnpm audit", "npm audit", "check dependencies", "security fix", "outdated dependencies", "deprecated packages", "devDependencies", "pre-release cleanup", "post-feature housekeeping", "remove unused packages", or package.json optimization. NOT for @lenne.tech/nest-server version updates (use nest-server-updating).

Tool Access

This skill uses the workspace's default tool permissions.

Skill Content

NPM Package Maintenance

When to Use This Skill

  • User mentions outdated packages or wants to update dependencies
  • Security vulnerabilities found via pnpm audit
  • Need to optimize dependencies vs devDependencies
  • Removing unused packages from package.json
  • Pre-release or post-feature dependency cleanup
  • General package maintenance or housekeeping tasks

For comprehensive npm package maintenance, use the lt-dev:npm-package-maintainer agent via the maintenance commands.

Skill Boundaries

User IntentCorrect Skill
"Update npm packages"THIS SKILL
"npm audit fix"THIS SKILL
"Remove unused dependencies"THIS SKILL
"Update nest-server to v14"nest-server-updating
"Fix NestJS service"generating-nest-servers

Related Skills

  • generating-nest-servers - For NestJS development when dependencies affect the server
  • using-lt-cli - For Git operations after maintenance
  • nest-server-updating - For updating @lenne.tech/nest-server (uses this agent internally)

Available Commands

CommandModeUse Case
/lt-dev:maintenance:maintainFULLComplete optimization (remove unused, recategorize, update all)
/lt-dev:maintenance:maintain-checkDRY-RUNAnalysis only - see what would be done without changes
/lt-dev:maintenance:maintain-securitySECURITYFast security-only updates (audit vulnerabilities)
/lt-dev:maintenance:maintain-pre-releasePRE-RELEASEConservative patch-only updates before a release
/lt-dev:maintenance:maintain-post-featureFULLClean up after feature development

When to Recommend Each Command

/lt-dev:maintenance:maintain (FULL MODE)

Recommend when user wants:

  • Complete dependency optimization
  • General maintenance / housekeeping
  • "Clean up my dependencies"
  • "Update all packages"

/lt-dev:maintenance:maintain-check (DRY-RUN)

Recommend when user wants:

  • To see what would change without making changes
  • Analysis or audit of current state
  • "What packages are outdated?"
  • "Check my dependencies"
  • Pre-approval before making changes

/lt-dev:maintenance:maintain-security (SECURITY-ONLY)

Recommend when user mentions:

  • pnpm audit vulnerabilities
  • Security issues
  • CVEs or security advisories
  • "Fix security vulnerabilities"
  • Quick/urgent security fixes

/lt-dev:maintenance:maintain-pre-release (PRE-RELEASE)

Recommend when user mentions:

  • Preparing for a release
  • "Before release"
  • Wanting minimal/safe changes only
  • Risk-averse updates

/lt-dev:maintenance:maintain-post-feature (POST-FEATURE)

Recommend when user:

  • Just finished implementing a feature
  • Added new dependencies
  • Wants to clean up after development work

What the Agent Does

The lt-dev:npm-package-maintainer agent performs 4 priorities:

  1. Remove unused packages - Finds and removes packages not used in the codebase
  2. Optimize categorization - Moves dev-only packages to devDependencies
  3. Replace deprecated packages - Detects deprecated packages and replaces them with maintained alternatives
  4. Update packages - Updates to latest versions with risk-based approach

All operations ensure pnpm run build and pnpm test pass before completion.

Quick Guidance

  • User unsure? → Recommend /lt-dev:maintenance:maintain-check first (safe, no changes)
  • Security urgent? → Recommend /lt-dev:maintenance:maintain-security (fast, focused)
  • Before release? → Recommend /lt-dev:maintenance:maintain-pre-release (conservative)
  • General cleanup? → Recommend /lt-dev:maintenance:maintain (comprehensive)
Stats
Stars0
Forks0
Last CommitMar 17, 2026

Similar Skills