Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
aj-geddes avatar

Dependency Management

  • 425 installs
  • 305 repo stars
  • Updated March 4, 2026
  • aj-geddes/useful-ai-prompts

dependency-management is an agent skill that standardizes adding, upgrading, pinning, auditing, and removing third-party libraries so developers maintaining multi-service codebases can avoid broken builds, license confli

About

dependency-management is an aj-geddes/useful-ai-prompts agent skill for comprehensive dependency management across JavaScript, Python, Ruby, Java, and related ecosystems. It documents npm init, npm install, npm ci, npm audit, npm outdated, semantic versioning, lock files such as package-lock.json and Gemfile.lock, peer dependency rules, monorepo strategies, and CI/CD best practices through ten reference guides in the references directory. Quick-start commands show exact-version installs, dev dependency separation, audit fix workflows, and dependency tree inspection with npm list. Best-practice sections distinguish committing lock files, using npm ci in pipelines, and avoiding wildcard version ranges in production. Developers reach for dependency-management when onboarding a service, resolving version conflicts, auditing CVEs, or standardizing how teams add packages—not when writing feature code unrelated to package manifests.

  • Version pinning and upgrade strategies
  • Transitive dependency risk review
  • License and vulnerability checks
  • Lockfile and reproducible installs
  • Monorepo and multi-runtime coordination

Dependency Management by the numbers

  • 425 all-time installs (skills.sh)
  • Ranked #441 of 2,715 Automation & Workflows skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/aj-geddes/useful-ai-prompts --skill dependency-management

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs425
repo stars305
Last updatedMarch 4, 2026
Repositoryaj-geddes/useful-ai-prompts

How do you safely upgrade npm dependencies?

Standardize how teams add, upgrade, pin, audit, and remove third-party libraries without breaking builds, licenses, or security posture across services.

Who is it for?

Backend and full-stack developers standardizing npm, pip, or Maven dependency workflows across services with lock files and CI audit gates.

Skip if: Teams with no third-party packages or developers seeking application feature implementation rather than package manifest and supply-chain hygiene.

When should I use this skill?

User adds or upgrades libraries, resolves dependency conflicts, audits CVEs, manages lock files, or asks about SemVer pinning across services.

What you get

Updated lock files, resolved version conflicts, npm audit remediation plan, and documented SemVer pinning policy across services.

  • Updated lock files
  • Audit remediation plan
  • SemVer pinning policy

By the numbers

  • Bundles 10 reference guides in the references directory
  • Documents npm ci, npm audit, npm outdated, and npm list workflows
  • Spans JavaScript, Python, Ruby, and Java dependency ecosystems

Files

SKILL.mdMarkdownGitHub ↗

Dependency Management

Table of Contents

Overview

Comprehensive dependency management across JavaScript/Node.js, Python, Ruby, Java, and other ecosystems. Covers version control, conflict resolution, security auditing, and best practices for maintaining healthy dependencies.

When to Use

  • Installing or updating project dependencies
  • Resolving version conflicts
  • Auditing security vulnerabilities
  • Managing lock files (package-lock.json, Gemfile.lock, etc.)
  • Implementing semantic versioning
  • Setting up monorepo dependencies
  • Optimizing dependency trees
  • Managing peer dependencies

Quick Start

Minimal working example:

# Initialize project
npm init -y

# Install dependencies
npm install express
npm install --save-dev jest
npm install --save-exact lodash  # Exact version

# Update dependencies
npm update
npm outdated  # Check for outdated packages

# Audit security
npm audit
npm audit fix

# Clean install from lock file
npm ci  # Use in CI/CD

# View dependency tree
npm list
npm list --depth=0  # Top-level only

Reference Guides

Detailed implementations in the references/ directory:

GuideContents
Package Manager BasicsPackage Manager Basics
Semantic Versioning (SemVer)Semantic Versioning (SemVer)
Dependency Lock FilesDependency Lock Files
Resolving Dependency ConflictsResolving Dependency Conflicts
Security Vulnerability ManagementSecurity Vulnerability Management
Monorepo Dependency ManagementMonorepo Dependency Management
Peer DependenciesPeer Dependencies
Performance OptimizationPerformance Optimization
CI/CD Best PracticesCI/CD Best Practices
Dependency Update StrategiesDependency Update Strategies

Best Practices

✅ DO

  • Commit lock files to version control
  • Use npm ci or equivalent in CI/CD pipelines
  • Regular dependency audits (weekly/monthly)
  • Keep dependencies up-to-date (automate with Dependabot)
  • Use exact versions for critical dependencies
  • Document why specific versions are pinned
  • Test after updating dependencies
  • Use semantic versioning correctly
  • Minimize dependency count
  • Review dependency licenses

❌ DON'T

  • Manually edit lock files
  • Mix package managers (npm + yarn in same project)
  • Use npm install in CI/CD (use npm ci)
  • Ignore security vulnerabilities
  • Use wildcards (\*) for versions
  • Install packages globally when local install is possible
  • Commit node_modules to git
  • Use latest tag in production
  • Blindly run npm audit fix
  • Install unnecessary dependencies

Related skills

How it compares

Use dependency-management for cross-ecosystem package hygiene and lock-file policy; use language-specific scaffold skills when bootstrapping new application code rather than curating manifests.

FAQ

Which package managers does dependency-management cover?

The dependency-management skill addresses JavaScript and Node.js npm workflows plus Python, Ruby, and Java ecosystems. Its quick start centers npm commands such as install, ci, audit, and outdated, with reference guides for lock files and monorepo patterns.

Should CI pipelines use npm install or npm ci?

The dependency-management skill recommends npm ci or equivalent clean installs in CI/CD pipelines rather than npm install. It also advises committing lock files to version control and running regular npm audit checks on a weekly or monthly cadence.

How many reference guides ship with dependency-management?

The dependency-management skill links ten reference guides covering package manager basics, SemVer, lock files, conflict resolution, security vulnerability management, monorepos, peer dependencies, performance, CI/CD, and update strategies under its references directory.

Automation & Workflowsbackendintegrationsdevops

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.