Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Ensures proper Python dependency management, avoiding global `pip install` and adhering to project-specific tooling. Use this skill if any of the following are true: 1. Attempting to run `pip install {package_name}`. 2. Python packages or dependencies need to be added or modified. 3. Initiating a new Python project. 4. Creating a new notebook, even if just using BigQuery cells. 5. Generating Python code that includes `import` statements for third-party libraries. 6. Before executing
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-11 | ✗→✓ | ▲ Improved | 2% | 0% |
| case-12 | ✗→✓ | ▲ Improved | -38% | 0% |
| case-14 | ✗→✓ | ▲ Improved | 23% | 0% |
| case-21 | ✗→✓ | ▲ Improved | 92% | 0% |
| case-13 | ✓→✗ | ▼ Worse | -11% | 0% |
> !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 installPipfilepipenv install <package>pipenv installenvironment.ymlconda 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:
bash# 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 globallyOther measured skills in the registry, with their headline benchmark lift.