Dependency management

From aiskillstore/marketplace · View interactive version

Dependency management is an AI agent skill from the GitHub repository aiskillstore/marketplace. Dependency management specialist. Use when updating dependencies, scanning for vulnerabilities, analyzing dependency trees, or ensuring license compliance. Handles npm, pip, maven, and other package managers.

How to use this skill

Skill file

Dependency Management

This skill manages project dependencies including updates, vulnerability scanning, license compliance, and dependency tree optimization.

When to Use This Skill

What This Skill Does

  1. Dependency Analysis: Identifies unused dependencies and version conflicts
  2. Vulnerability Scanning: Finds and fixes known security vulnerabilities
  3. License Compliance: Verifies dependency licenses are compatible
  4. Safe Updates: Updates dependencies with testing and validation
  5. Tree Optimization: Optimizes dependency trees and reduces bloat
  6. Version Management: Resolves version conflicts and updates

Helper Scripts

This skill includes Python helper scripts in scripts/:

```bash

python scripts/parse_dependencies.py package.json requirements.txt

```

How to Use

Manage Dependencies

Update all dependencies and check for vulnerabilities
Scan dependencies for security issues

Specific Tasks

Check license compatibility for all dependencies

Management Process

1. Analyze Dependencies

Using Helper Script:

The skill includes a Python helper script for parsing dependency files:

# Parse dependency files
python scripts/parse_dependencies.py package.json requirements.txt pyproject.toml

Package Manager Tools:

2. Scan for Vulnerabilities

Tools:

3. Check Licenses

Process:

4. Update Dependencies

Safe Update Process:

  1. Check for updates
  2. Review changelogs
  3. Update incrementally
  4. Run tests after each update
  5. Verify functionality

Examples

Example 1: Vulnerability Scan

Input: Scan for vulnerabilities

Output:

## Dependency Vulnerability Scan

### Critical Vulnerabilities

**1. lodash (4.17.20)**
- **Severity**: High
- **Issue**: Prototype Pollution
- **Fix**: Update to 4.17.21

npm update lodash


**2. express (4.16.4)**

- **Severity**: Medium
- **Issue**: Path Traversal
- **Fix**: Update to 4.18.2

npm update express


### Summary

- **Total vulnerabilities**: 5
- **Critical**: 1
- **High**: 2
- **Medium**: 2

Reference Files

For package manager-specific commands and patterns, load reference files as needed:

When working with specific package managers, load references/package_managers.md and refer to the relevant package manager section.

Best Practices

Dependency Management

  1. Regular Updates: Update dependencies regularly
  2. Security First: Prioritize security updates
  3. Test After Updates: Always test after updating
  4. Lock Files: Use lock files (package-lock.json, yarn.lock)
  5. Version Pinning: Pin critical dependencies

Related Use Cases

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.