Dependency management

From aj-geddes/useful-ai-prompts · View interactive version

Dependency management is an AI agent skill from the GitHub repository aj-geddes/useful-ai-prompts. Manage project dependencies across languages including npm install, package versioning, dependency conflicts, security scanning, and lock files. Use when dealing with dependencies, version pinning, semantic versioning, or resolving conflicts.

How to use this skill

Skill file

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

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:

| Guide | Contents |

|---|---|

| Package Manager Basics | Package Manager Basics |

| Semantic Versioning (SemVer) | Semantic Versioning (SemVer) |

| Dependency Lock Files | Dependency Lock Files |

| Resolving Dependency Conflicts | Resolving Dependency Conflicts |

| Security Vulnerability Management | Security Vulnerability Management |

| Monorepo Dependency Management | Monorepo Dependency Management |

| Peer Dependencies | Peer Dependencies |

| Performance Optimization | Performance Optimization |

| CI/CD Best Practices | CI/CD Best Practices |

| Dependency Update Strategies | Dependency Update Strategies |

Best Practices

✅ DO

❌ DON'T

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.