Dependency Management

Dependency Management

Guides an AI agent to manage project dependencies across languages: installs, versioning, lock files, conflicts, security audits and monorepos.

Skill files13 files

references/

scripts/

templates/

SKILL.md108 lines
1
---
2
name: dependency-management
3
description: >
4
Manage project dependencies across languages including npm install, package
5
versioning, dependency conflicts, security scanning, and lock files. Use when
6
dealing with dependencies, version pinning, semantic versioning, or resolving
7
conflicts.
8
---
9
10
# Dependency Management
11
12
## Table of Contents
13
14
- [Overview](#overview)
15
- [When to Use](#when-to-use)
16
- [Quick Start](#quick-start)
17
- [Reference Guides](#reference-guides)
18
- [Best Practices](#best-practices)
19
20
## Overview
21
22
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.
23
24
## When to Use
25
26
- Installing or updating project dependencies
27
- Resolving version conflicts
28
- Auditing security vulnerabilities
29
- Managing lock files (package-lock.json, Gemfile.lock, etc.)
30
- Implementing semantic versioning
31
- Setting up monorepo dependencies
32
- Optimizing dependency trees
33
- Managing peer dependencies
34
35
## Quick Start
36
37
Minimal working example:
38
39
```bash
40
# Initialize project
41
npm init -y
42
43
# Install dependencies
44
npm install express
45
npm install --save-dev jest
46
npm install --save-exact lodash # Exact version
47
48
# Update dependencies
49
npm update
50
npm outdated # Check for outdated packages
51
52
# Audit security
53
npm audit
54
npm audit fix
55
56
# Clean install from lock file
57
npm ci # Use in CI/CD
58
59
# View dependency tree
60
npm list
61
npm list --depth=0 # Top-level only
62
```
63
64
## Reference Guides
65
66
Detailed implementations in the `references/` directory:
67
68
| Guide | Contents |
69
|---|---|
70
| [Package Manager Basics](references/package-manager-basics.md) | Package Manager Basics |
71
| [Semantic Versioning (SemVer)](references/semantic-versioning-semver.md) | Semantic Versioning (SemVer) |
72
| [Dependency Lock Files](references/dependency-lock-files.md) | Dependency Lock Files |
73
| [Resolving Dependency Conflicts](references/resolving-dependency-conflicts.md) | Resolving Dependency Conflicts |
74
| [Security Vulnerability Management](references/security-vulnerability-management.md) | Security Vulnerability Management |
75
| [Monorepo Dependency Management](references/monorepo-dependency-management.md) | Monorepo Dependency Management |
76
| [Peer Dependencies](references/peer-dependencies.md) | Peer Dependencies |
77
| [Performance Optimization](references/performance-optimization.md) | Performance Optimization |
78
| [CI/CD Best Practices](references/cicd-best-practices.md) | CI/CD Best Practices |
79
| [Dependency Update Strategies](references/dependency-update-strategies.md) | Dependency Update Strategies |
80
81
## Best Practices
82
83
### ✅ DO
84
85
- Commit lock files to version control
86
- Use `npm ci` or equivalent in CI/CD pipelines
87
- Regular dependency audits (weekly/monthly)
88
- Keep dependencies up-to-date (automate with Dependabot)
89
- Use exact versions for critical dependencies
90
- Document why specific versions are pinned
91
- Test after updating dependencies
92
- Use semantic versioning correctly
93
- Minimize dependency count
94
- Review dependency licenses
95
96
### ❌ DON'T
97
98
- Manually edit lock files
99
- Mix package managers (npm + yarn in same project)
100
- Use `npm install` in CI/CD (use `npm ci`)
101
- Ignore security vulnerabilities
102
- Use wildcards (\*) for versions
103
- Install packages globally when local install is possible
104
- Commit node_modules to git
105
- Use `latest` tag in production
106
- Blindly run `npm audit fix`
107
- Install unnecessary dependencies
108

© AJ Geddes · MIT · source · posted by @OpenSourceBuffGuy on promptparty.com

@OpenSourceBuffGuy

I find openly licensed prompts and post them here.

0 followers · 13,700 prompts

More by @OpenSourceBuffGuy

See all
Girl rides a bicycle past a summer shop prompt image

Girl rides a bicycle past a summer shop

Directs a 10-second nostalgic hand-drawn animated clip of a young girl in a straw hat riding a red bicycle past a summer shop, with timed shots and one spoken line.

video-prompt, animation, anime, timed-beats, multi-shot, lip-sync, character-consistency, summer, illustration, guardrails, negative-prompt, widescreen, camera-movement, tracking-shot, vintage, cozy, storyboard, family-friendly, short-film, minimax

Zombie train cabin infection spreads through sleeper car prompt image

Zombie train cabin infection spreads through sleeper car

Lays out a 26-shot, 30-second horror video where an infection spreads through a night train sleeper car, with timed shots, framing and a reference image locking one character.

video-prompt, seedance, horror, multi-shot, timed-beats, handheld, slow-motion, cinematic, reference-image, image-to-video, character-consistency, face-reference, camera-movement, close-up, wide-shot, thriller, structured-output, night-scene, moody, advanced, long-form, for-filmmakers, action, visual-effects

Satirical AI Hater Action Figure Toy Packaging prompt image

Satirical AI Hater Action Figure Toy Packaging

Draws a satirical anti-hype action figure in blister-pack toy packaging, with every label, accessory and section position fixed in a JSON spec.

image-prompt, json-prompt, structured-output, packaging-design, mockup, action-figure, toys, product-photography, text-rendering, comics, humorous, sarcastic, vintage, studio-lighting, vibrant-colors, limited-palette, vertical-format, gpt-image, chatgpt, for-designers, for-content-creators, long-form, meme, pop-art

Reviews

Loading reviews…

Discussion

Loading comments…