<< All versions
Skill v1.0.1
currentAutomated scan100/100gemini-cli-extensions/data-agent-kit-starter-pack/managing-python-dependencies
+2 new
──Details
PublishedJune 24, 2026 at 03:03 AM
Content Hashsha256:7ad459a5a8188fa0...
Git SHA86cd0201237e
Bump Typepatch
──Files
Files (1 file, 2.7 KB)
SKILL.md2.7 KBactive
SKILL.md · 85 lines · 2.7 KB
version: "1.0.1" name: managing-python-dependencies description: | 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:
- Attempting to run
pip install {package_name}. - Python packages or dependencies need to be added or modified.
- Initiating a new Python project.
- Creating a new notebook, even if just using BigQuery cells.
- Generating Python code that includes
importstatements for third-party libraries. - Before executing Python scripts via the terminal to ensure the correct virtual environment is active.
license: Apache-2.0 metadata: version: v1 publisher: google
Python Dependency Management Rule
[!CAUTION]BEFORE any `pip install`: You MUST first detect the project's existingdependency manager and use it correctly. Do NOT override the project'sestablished tooling.
Dependency Manager Detection
Before installing ANY Python package, check the workspace for these files in priority order:
- Signal:
uv.lockorpyproject.tomlwith[tool.uv]
- Tool: uv
- Install:
uv add <package> - Setup:
uv sync
- Signal:
pyproject.tomlwith[tool.poetry]
- Tool: Poetry
- Install:
poetry add <package> - Setup:
poetry install
- Signal:
Pipfile
- Tool: Pipenv
- Install:
pipenv install <package> - Setup:
pipenv install
- Signal:
environment.yml
- Tool: Conda
- Install:
conda install <package> - Setup:
conda env create -f environment.yml
- Signal:
requirements.txtonly
- Tool: venv + pip
- Install:
.venv/bin/pip install <package> - Setup:
.venv/bin/pip install -r requirements.txt
- Signal: None of the above
- Tool: venv + pip (default)
- Install:
.venv/bin/pip install <package> - Setup:
.venv/bin/pip install -r requirements.txt
Default: venv + pip
If no dependency manager is detected, use venv + pip + requirements.txt as the default:
bash
# Initialize environmentpython3 -m venv .venv# Add dependencies.venv/bin/pip install <package># Preserve state.venv/bin/pip freeze > requirements.txt
Rules for venv + pip workflow:
- Always use
.venv/bin/pipor.venv/bin/python(explicit path). - After installing, run:
.venv/bin/pip freeze > requirements.txt. - When setting up:
.venv/bin/pip install -r requirements.txt.
Prohibited
- NEVER run
pip installglobally - NEVER override an existing dependency manager with a different one