managing-python-dependencies

Detects the project's Python dependency manager and installs packages with the correct tool.

Updated Jan 8, 2026
One-click install
npx skills add https://github.com/arslan9024/White-Caves --skill managing-python-dependencies-arslan9024
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: managing-python-dependencies
Source: https://github.com/arslan9024/White-Caves/tree/main/.agents/skills/managing_python_dependencies
Command: npx skills add https://github.com/arslan9024/White-Caves --skill managing-python-dependencies-arslan9024

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Installing Python packages with a global pip install breaks reproducibility, pollutes the system environment, and conflicts with the dependency manager a project already uses. This Skill prevents those mistakes by detecting the project's existing tooling before any package is installed. ## Core Features & Use Cases - Dependency Manager Detection: Scans the workspace for signal files (uv.lock, pyproject.toml, Pipfile, environment.yml, requirements.txt) in priority order to identify the correct tool. - Tool-Specific Commands: Maps each detected manager (uv, Poetry, Pipenv, Conda, venv + pip) to its proper install and setup commands. - Safe Default Workflow: Falls back to an isolated .venv with explicit .venv/bin/pip paths and pip freeze > requirements.txt state preservation when no manager is found. - Use Case: When asked to add requests to a project containing a pyproject.toml with [tool.poetry], the Skill runs poetry add requests instead of a global pip install requests. ## Quick Start Check this project's dependency manager and install the httpx package using the correct tool.

Frequently Asked Questions about managing-python-dependencies

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

FAQPage Schema
How do I install Python packages without using global pip?▼

First detect the project's dependency manager by checking for files like uv.lock, pyproject.toml, Pipfile, or requirements.txt. Then use that tool's install command, such as `uv add`, `poetry add`, or `.venv/bin/pip install`, instead of a global `pip install`.

How to add a dependency to a Poetry project?▼

Run `poetry add <package>` in the project directory containing a pyproject.toml with a [tool.poetry] section. To set up an existing project from scratch, use `poetry install` to restore its locked dependencies.

What is the difference between uv, Poetry, Pipenv, and Conda for Python dependencies?▼

Each tool manages environments and lockfiles differently: uv uses uv.lock, Poetry uses pyproject.toml with [tool.poetry], Pipenv uses a Pipfile, and Conda uses environment.yml. The correct choice is whichever one the project already uses; never mix managers in one project.

What should I do if a Python project has no dependency manager?▼

Default to venv plus pip: create an isolated environment with `python3 -m venv .venv`, install packages via `.venv/bin/pip install <package>`, and preserve state with `.venv/bin/pip freeze > requirements.txt`.

Why is running pip install globally a problem?▼

Global pip installs modify the system Python environment, causing version conflicts between projects and non-reproducible setups. Using a project-local virtual environment or the project's declared dependency manager keeps installations isolated and consistent.