managing-python-dependencies

Detects project dependency managers and installs Python packages with the correct tooling.

Updated Aug 16, 2026
One-click install
npx skills add https://github.com/1919114514yasenpai-maker/focus-quest --skill managing-python-dependencies-1919114514yasenpai-maker
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: managing-python-dependencies
Source: https://github.com/1919114514yasenpai-maker/focus-quest/tree/main/.gemini/skills/managing-python-dependencies
Command: npx skills add https://github.com/1919114514yasenpai-maker/focus-quest --skill managing-python-dependencies-1919114514yasenpai-maker

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? It prevents broken Python environments caused by running global pip install or mixing dependency managers, ensuring every package is installed through the project's established tooling. ## Core Features & Use Cases - Dependency Manager Detection: Scans the workspace for signal files like uv.lock, pyproject.toml, Pipfile, environment.yml, and requirements.txt to identify the correct tool. - Tool-Specific Install 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 requirements.txt freezing when no manager is found. - Use Case: When adding a new library like requests to a Poetry-based project, the Skill directs the use of poetry add requests instead of a global pip install, keeping the lockfile consistent. ## Quick Start Ask the assistant to add a new Python package to your project and it will detect the dependency manager and use the correct install command.

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 breaking my project environment?▼

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` or `poetry add`. Never run a global `pip install`.

How to add a dependency to a Poetry project?▼

Use `poetry add <package>` when the project contains a pyproject.toml with a [tool.poetry] section. Set up the environment with `poetry install` before running scripts.

What should I use if my project only has a requirements.txt file?▼

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

Can I use pip install in a project managed by uv or Conda?▼

No, you should never override an existing dependency manager with a different one. Use `uv add` for uv projects and `conda install` for Conda environments to keep lockfiles and environments consistent.

Why is global pip install prohibited?▼

Global pip installs bypass the project's dependency manager, causing version conflicts, untracked dependencies, and broken reproducibility. The Skill requires explicit virtual environment paths like `.venv/bin/pip` instead.