From dak
Detects and uses the correct Python dependency manager (uv, Poetry, Pipenv, Conda, venv+pip) before any install. Prevents global pip install and guides virtual environment setup.
How this skill is triggered — by the user, by Claude, or both
Slash command
/dak:managing-python-dependenciesThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
> [!CAUTION]
[!CAUTION]
BEFORE any
pip install: You MUST first detect the project's existing dependency manager and use it correctly. Do NOT override the project's established tooling.
Before installing ANY Python package, check the workspace for these files in priority order:
uv.lock or pyproject.toml with [tool.uv]
uv add <package>uv syncpyproject.toml with [tool.poetry]
poetry add <package>poetry installPipfile
pipenv install <package>pipenv installenvironment.yml
conda install <package>conda env create -f environment.ymlrequirements.txt only
.venv/bin/pip install <package>.venv/bin/pip install -r requirements.txt.venv/bin/pip install <package>.venv/bin/pip install -r requirements.txtIf no dependency manager is detected, use venv + pip + requirements.txt as the default:
# Initialize environment
python3 -m venv .venv
# Add dependencies
.venv/bin/pip install <package>
# Preserve state
.venv/bin/pip freeze > requirements.txt
Rules for venv + pip workflow:
.venv/bin/pip or .venv/bin/python (explicit path)..venv/bin/pip freeze > requirements.txt..venv/bin/pip install -r requirements.txt.pip install globallynpx claudepluginhub gemini-cli-extensions/data-agent-kit-starter-pack --plugin dakManages Python environments 10-100x faster using uv instead of pip. Covers project init, dependencies, virtual envs, and CLI tools via uv.
Detects which Python environment manager a project uses and runs the correct install/add/remove command. Bootstraps new projects with pixi when no manager is in place.
Guides uv for Python: init projects, add/sync deps, manage venvs/interpreters, resolve conflicts, generate lockfiles. Use for fast setups, pip/poetry migrations, CI/Docker optimization.