uv-manage-dependencies

Manage Python project dependencies with the uv CLI.

Updated Jun 18, 2025
One-click install
npx skills add https://github.com/ekozmdev/my-codex-cli-settings --skill uv-manage-dependencies
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: uv-manage-dependencies
Source: https://github.com/ekozmdev/my-codex-cli-settings/tree/main/.agents/skills/uv-manage-dependencies
Command: npx skills add https://github.com/ekozmdev/my-codex-cli-settings --skill uv-manage-dependencies

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

uv dependency management is error-prone when manually editing pyproject.toml and requirements files. This Skill simplifies adding, removing, updating, and exporting dependencies for Python projects.

Core Features & Use Cases

  • Add dependencies: Add new packages with optional version constraints, including grouped development dependencies.
  • Remove and update: Remove unused packages and update existing ones with predictable results.
  • Export and audit: Generate requirements files for production or development environments and keep an auditable record.

Quick Start

uv add django djangorestframework uv add --group dev ruff pytest uv remove djangorestframework uv sync --upgrade uv export --format requirements.txt --output-file requirements.txt

Frequently Asked Questions about uv-manage-dependencies

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

FAQPage Schema
How do I manage uv dependencies in a Python project?

You can manage uv dependencies by automating the addition, removal, and update of Python packages directly from your project root. This process safely modifies the pyproject.toml file without requiring manual text edits.

How do I export a requirements.txt file using uv?

To export a requirements.txt file using uv, run the export command to generate a requirements file for either production or development environments. This creates an auditable record of your project's exact package versions.

Can I add development dependencies separately from production packages in uv?

Yes, you can add development dependencies separately from production packages in uv by grouping them. This allows you to specify distinct dev packages like test runners while keeping your production environment clean.

Do I need the uv CLI installed to update Python project dependencies?

Yes, you need the uv CLI installed to update Python project dependencies, as this skill operates from the project root and relies on it. The CLI executes the underlying commands that modify your pyproject.toml file.

What is the best way to update existing packages in a uv Python project?

The best way to update existing packages in a uv Python project is to use the sync command with the upgrade flag. This ensures your dependencies are updated predictably while maintaining the integrity of your pyproject.toml.

Why does manually editing pyproject.toml for dependencies cause errors?

Manually editing pyproject.toml for dependencies causes errors because it risks syntax mistakes and version conflicts. Automating dependency management eliminates these manual text editing errors and ensures predictable package updates.