dependency-management by aj-geddes/useful-ai-prompts
npx skills add https://github.com/aj-geddes/useful-ai-prompts --skill dependency-management跨 JavaScript/Node.js、Python、Ruby、Java 及其他生态系统的全面依赖管理。涵盖版本控制、冲突解决、安全审计以及维护健康依赖关系的最佳实践。
最小工作示例:
# 初始化项目
npm init -y
# 安装依赖
npm install express
npm install --save-dev jest
npm install --save-exact lodash # 精确版本
# 更新依赖
npm update
npm outdated # 检查过时的包
# 安全审计
npm audit
npm audit fix
# 根据锁定文件进行干净安装
npm ci # 在 CI/CD 中使用
# 查看依赖树
npm list
npm list --depth=0 # 仅查看顶层依赖
references/ 目录下的详细实现:
| 指南 |
|---|
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
| 内容 |
|---|
| 包管理器基础 | 包管理器基础 |
| 语义化版本控制 (SemVer) | 语义化版本控制 (SemVer) |
| 依赖锁定文件 | 依赖锁定文件 |
| 解决依赖冲突 | 解决依赖冲突 |
| 安全漏洞管理 | 安全漏洞管理 |
| 单体仓库依赖管理 | 单体仓库依赖管理 |
| 对等依赖 | 对等依赖 |
| 性能优化 | 性能优化 |
| CI/CD 最佳实践 | CI/CD 最佳实践 |
| 依赖更新策略 | 依赖更新策略 |
npm ci 或等效命令npm install(应使用 npm ci)latest 标签npm audit fix每周安装量
124
代码仓库
GitHub 星标数
127
首次出现
2026年1月21日
安全审计
安装于
opencode102
gemini-cli99
claude-code97
codex96
cursor93
github-copilot82
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.
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
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 |
npm ci or equivalent in CI/CD pipelinesnpm install in CI/CD (use npm ci)latest tag in productionnpm audit fixWeekly Installs
124
Repository
GitHub Stars
127
First Seen
Jan 21, 2026
Security Audits
Gen Agent Trust HubPassSocketFailSnykPass
Installed on
opencode102
gemini-cli99
claude-code97
codex96
cursor93
github-copilot82
Azure Data Explorer (Kusto) 查询技能:KQL数据分析、日志遥测与时间序列处理
133,300 周安装
| Peer Dependencies |
| Performance Optimization | Performance Optimization |
| CI/CD Best Practices | CI/CD Best Practices |
| Dependency Update Strategies | Dependency Update Strategies |