dependency-management

Automate Python dependency management with uv, Poetry, or pip.

2|Updated Nov 13, 2025
One-click install
npx skills add https://github.com/ricardoroche/ricardos-claude-code --skill dependency-management-ricardoroche
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dependency-management
Source: https://github.com/ricardoroche/ricardos-claude-code/tree/main/.claude/skills/dependency-management
Command: npx skills add https://github.com/ricardoroche/ricardos-claude-code --skill dependency-management-ricardoroche

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires uv, poetry, pip-audit, safety.

What problem does it solve?

This Skill provides best practices for managing Python dependencies, addressing issues like non-reproducible builds, dependency conflicts, and security vulnerabilities. It ensures stable, secure, and efficient development environments using modern tools like uv and Poetry.

Core Features & Use Cases

  • Modern Tools (uv/Poetry): Guides on initializing projects, adding/removing dependencies, and managing virtual environments with uv and Poetry.
  • pyproject.toml & Lock Files: Enforces defining dependencies in pyproject.toml and committing lock files (uv.lock, poetry.lock) for reproducible builds.
  • Version Constraints: Explains various version constraints (^, ~, >=) for managing dependency updates safely.
  • Security & CI/CD: Covers security scanning with pip-audit and safety, integrating Dependabot, and setting up CI/CD workflows for dependency checks.
  • Use Case: A developer is setting up a new Python project and needs to manage its dependencies reliably. This skill helps them use uv to add core and dev dependencies, generate a lock file, and configure Dependabot for automatic security updates, ensuring a stable and secure project.

Quick Start

Set up a new Python project using uv, add fastapi and pydantic as core dependencies, and pytest as a dev dependency.

Frequently Asked Questions about dependency-management

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I manage Python dependencies securely with lock files?

Lock files like uv.lock and poetry.lock record exact dependency versions for reproducible builds. Commit them to version control alongside pyproject.toml to ensure all developers and CI/CD systems install identical dependency trees, preventing conflicts and supply-chain vulnerabilities.

What's the best way to set up a new Python project with uv or Poetry?

Initialize your project with uv or Poetry, which creates pyproject.toml automatically. Add core dependencies and dev dependencies separately, generate a lock file, and commit both files. This ensures consistent environments across team members and deployments.

How do I resolve Python dependency conflicts?

Dependency conflicts arise when packages require incompatible versions. Modern tools like uv and Poetry resolve conflicts automatically during lock file generation by finding compatible version ranges. Adjust version constraints in pyproject.toml if resolution fails.

Can I scan Python dependencies for security vulnerabilities?

Yes. Tools like pip-audit and safety scan your dependencies against known vulnerability databases. Integrate them into CI/CD pipelines and configure Dependabot to automatically detect and notify you of security updates in your dependencies.

What version constraint syntax should I use in pyproject.toml?

Common constraints include `^` (caret, compatible versions), `~` (tilde, patch updates only), and `>=` (minimum version). Choose based on how conservative you want updates: caret allows minor and patch versions; tilde locks the minor version; `>=` is most permissive.

Do uv and Poetry work with existing pip projects?

Yes. Both tools can adopt existing pip-based projects by reading requirements files and converting them to pyproject.toml. They then manage future updates through their own lock files while maintaining compatibility with standard Python packaging.