Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计异常

dependency-manager依赖管理器

Agent Skill

dependency-manager 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1

周安装

8

GitHub Stars

27

下载量

65
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:dependency-manager(依赖管理器)
来源仓库:https://github.com/armanzeroeight/fastagent-plugins
仓库路径:skills/dependency-manager
安装命令:
npx skills add https://github.com/armanzeroeight/fastagent-plugins --skill dependency-manager
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/armanzeroeight/fastagent-plugins --skill dependency-manager

简介

用于 Python 项目依赖管理,支持 UV、pip-tools 与 requirements.txt 三种方案。

  • 推荐新项目使用 UV 以获得更快解析速度。
  • 适用于依赖锁定与跨环境一致性维护场景。
  • 安装方式:通过 npx skills add 命令从指定 GitHub 仓库添加。
  • 使用前应评估团队现有工具链偏好,避免引入学习成本。

SKILL.md

Dependency Manager

Manage Python project dependencies with UV, pip-tools, or requirements.txt.

Quick Start

Choose UV for new projects (fast, modern), pip-tools for existing pip workflows, or requirements.txt for simple projects.

Instructions

Choosing a Tool

UV - Fast, modern Python package manager (recommended):

  • Extremely fast dependency resolution (10-100x faster than pip)
  • Automatic virtual environment management
  • Drop-in replacement for pip and pip-tools
  • Lock file support with uv.lock
  • Best for: All projects, especially new ones

pip-tools - Lightweight, pip-compatible workflow:

  • Generates lock files from requirements.in
  • Works with existing pip workflows
  • Minimal changes to project structure
  • Best for: Existing projects, CI/CD with pip, gradual adoption

requirements.txt - Simple, universal:

  • Direct pip install
  • No additional tools
  • No lock file (unless manually maintained)
  • Best for: Simple scripts, minimal dependencies, quick prototypes

UV Setup (Recommended)

Install UV:

curl -LsSf https://astral.sh/uv/install.sh | sh
# Or with pip
pip install uv

Initialize new project:

uv init my-project
cd my-project

Add dependencies:

# Runtime dependency
uv add requests

# Development dependency
uv add --dev pytest

# With version constraint
uv add "requests>=2.28.0,<3.0.0"

Install dependencies:

uv sync

Update dependencies:

# Update all
uv lock --upgrade

# Update specific package
uv lock --upgrade-package requests

Remove dependencies:

uv remove requests

Show dependency tree:

uv tree

Export to requirements.txt:

uv pip compile pyproject.toml -o requirements.txt

Run commands in virtual environment:

uv run python script.py
uv run pytest

pip-tools Setup

Install pip-tools:

pip install pip-tools

Create requirements.in:

# requirements.in
requests>=2.28.0
flask>=2.0.0

Create requirements-dev.in:

# requirements-dev.in
-c requirements.txt  # Constrain to production versions
pytest>=7.0.0
black>=23.0.0
mypy>=1.0.0

Compile lock files:

# Compile production dependencies
pip-compile requirements.in

# Compile dev dependencies
pip-compile requirements-dev.in

This generates requirements.txt and requirements-dev.txt with pinned versions.

Install dependencies:

pip-sync requirements.txt requirements-dev.txt

Update dependencies:

# Update all
pip-compile --upgrade requirements.in

# Update specific package
pip-compile --upgrade-package requests requirements.in

Add new dependency:

  1. Add to requirements.in
  2. Run pip-compile requirements.in
  3. Run pip-sync requirements.txt

requirements.txt Workflow

Create requirements.txt:

pip freeze > requirements.txt

Install dependencies:

pip install -r requirements.txt

Separate dev dependencies:

Create requirements-dev.txt:

-r requirements.txt
pytest>=7.0.0
black>=23.0.0

Install with:

pip install -r requirements-dev.txt

Version Constraints

UV/PEP 621 syntax (pyproject.toml):

[project]
dependencies = [
    "requests>=2.28.0,<3.0.0",  # Range
    "flask~=2.0.0",              # Compatible release
    "django>=3.2,<4.0",          # Range
    "numpy==1.24.0",             # Exact version
]

pip syntax (requirements.in or requirements.txt):

requests>=2.28.0,<3.0.0
flask~=2.0.0
django>=3.2,<4.0
numpy==1.24.0
pandas

Constraint operators:

  • ==: Exact version
  • >=, <=: Minimum/maximum version
  • ~=: Compatible release (patch updates)
  • ,: Combine constraints (AND)

Dependency Groups

UV/PEP 621 groups:

[project.optional-dependencies]
dev = ["pytest>=7.0.0", "black>=23.0.0"]
docs = ["sphinx>=5.0.0"]
test = ["coverage>=7.0.0"]

Install specific groups:

uv sync --extra dev
uv sync --extra docs
uv sync --all-extras

pip-tools approach:

Create separate .in files:

  • requirements.in - Production
  • requirements-dev.in - Development
  • requirements-test.in - Testing
  • requirements-docs.in - Documentation

Resolving Conflicts

With UV:

  1. Check conflict: uv add package-name # UV will show conflict if it exists
  2. Update constraints in pyproject.toml: [project] dependencies = ["package-a>=2.0.0", # Relax constraint "package-b>=3.0.0",]
  3. Force resolution: uv lock uv sync

With pip-tools:

  1. Check conflict: pip-compile requirements.in # Will show resolution errors
  2. Adjust constraints in requirements.in: package-a>=2.0.0 # Relax constraint package-b>=3.0.0
  3. Recompile: pip-compile requirements.in

Common conflict patterns:

  • Transitive dependency conflict: Two packages require incompatible versions of a third package

- Solution: Update one or both packages, or relax constraints

  • Python version conflict: Package requires newer Python than project supports

- Solution: Upgrade Python version or find alternative package

  • Platform-specific conflict: Package not available on current platform

- Solution: Use platform markers or optional dependencies

Platform-Specific Dependencies

UV/PEP 621:

[project]
dependencies = [
    "pywin32>=305; sys_platform == 'win32'",
    "python-daemon>=2.3; sys_platform == 'linux'",
]

pip:

pywin32>=305; sys_platform == 'win32'
python-daemon>=2.3; sys_platform == 'linux'

Optional Dependencies

UV/PEP 621:

[project.optional-dependencies]
aws = ["boto3>=1.26.0"]
all = ["boto3>=1.26.0"]  # Include all optional deps

Install with:

uv sync --extra aws
uv pip install package-name[aws]

Virtual Environments

UV (automatic):

# UV creates and manages venv automatically
uv sync
uv run python script.py
source .venv/bin/activate  # Manual activation if needed

pip-tools (manual):

# Create venv
python -m venv venv

# Activate
source venv/bin/activate  # Linux/Mac
venv\Scripts\activate     # Windows

# Install
pip-sync requirements.txt

requirements.txt (manual):

python -m venv venv
source venv/bin/activate
pip install -r requirements.txt

CI/CD Integration

UV in CI (recommended):

# .github/workflows/test.yml
- name: Install UV
  run: curl -LsSf https://astral.sh/uv/install.sh | sh

- name: Install dependencies
  run: uv sync

- name: Run tests
  run: uv run pytest

pip-tools in CI:

- name: Install dependencies
  run: |
    pip install pip-tools
    pip-sync requirements.txt requirements-dev.txt

- name: Run tests
  run: pytest

requirements.txt in CI:

- name: Install dependencies
  run: pip install -r requirements.txt

- name: Run tests
  run: pytest

Migration Strategies

From requirements.txt to UV:

  1. Initialize UV project: uv init --no-readme
  2. Import dependencies: # Add each dependency from requirements.txt cat requirements.txt | grep -v "^#" | xargs -I {} uv add {}
  3. Separate dev dependencies: uv add --dev pytest black mypy
  4. Test: uv sync uv run pytest

From requirements.txt to pip-tools:

  1. Rename requirements.txt: mv requirements.txt requirements.in
  2. Compile lock file: pip-compile requirements.in
  3. Create dev requirements: echo "-c requirements.txt" > requirements-dev.in echo "pytest" >> requirements-dev.in pip-compile requirements-dev.in
  4. Test: pip-sync requirements.txt requirements-dev.txt

From pip-tools to UV:

  1. Create pyproject.toml: uv init --no-readme
  2. Import from requirements.in: cat requirements.in | grep -v "^#" | grep -v "^-" | xargs -I {} uv add {}
  3. Test: uv sync

Common Patterns

Monorepo with Shared Dependencies

UV workspace:

# Root pyproject.toml
[tool.uv.workspace]
members = ["packages/*"]

# packages/package1/pyproject.toml
[project]
name = "package1"
dependencies = ["requests>=2.28.0"]

# packages/package2/pyproject.toml
[project]
name = "package2"
dependencies = ["requests>=2.28.0"]

pip-tools approach:

# shared-requirements.in
requests>=2.28.0

# package1/requirements.in
-c ../shared-requirements.txt
flask>=2.0.0

# package2/requirements.in
-c ../shared-requirements.txt
django>=4.0.0

Lock File Best Practices

Commit lock files:

  • uv.lock - Always commit
  • requirements.txt (from pip-compile) - Always commit
  • requirements.txt (from pip freeze) - Consider committing

Update regularly:

# UV
uv lock --upgrade

# pip-tools
pip-compile --upgrade requirements.in

Verify after updates:

# Run tests
uv run pytest

# Check for security issues
pip-audit

Troubleshooting

UV lock takes too long:

  • UV is typically very fast; if slow, check for network issues
  • Use uv lock --offline to use cached packages
  • Check for circular dependencies

pip-compile fails with conflict:

  • Relax version constraints in requirements.in
  • Use pip-compile --resolver=backtracking for better resolution
  • Check for incompatible transitive dependencies

Dependencies not found:

  • Verify package name (check PyPI)
  • Check Python version compatibility
  • Ensure correct index URL (for private packages)
  • With UV: uv pip install --index-url https://custom-index.com package

Virtual environment issues:

  • Delete and recreate: rm -rf.venv && uv sync
  • Check Python version matches project requirements
  • UV automatically manages virtual environments

Outdated dependencies:

  • Check with: uv tree --outdated or pip list --outdated
  • Update carefully, test after each major update
  • Use uv lock --upgrade --dry-run to preview changes

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.23%
按下载量换算24

Claude

31.69%
按下载量换算21

Cursor

19.06%
按下载量换算12

Gemini CLI

9.38%
按下载量换算6

安全审计

Gen Agent Trust Hub

未通过

Socket

通过

Snyk

未通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills