managing-python-dependencies
Skill0 starsChanged 4 months agoApache-2.0View on GitHub
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 Python scripts via the terminal to ensure the correct virtual environment is active.
- Installs packages
4 other projects use a version of this, 4 of them edited.
Adopted by
Most recently taken up by
- sid-lakhani/agents-configedited, first seen Oct 20, 2026
- Luckycat133/gemini-web-mcpedited, first seen Oct 15, 2026
- matt-rabah/sf-ragedited, first seen Jun 28, 2026
- GoogleCloudPlatform/data-agent-kit-pluginedited, first seen Jun 11, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 4
- GoogleCloudPlatform/data-agent-kit-plugin★ 25149% same
- sid-lakhani/agents-config★ 396% same
- Luckycat133/gemini-web-mcp★ 096% same
- matt-rabah/sf-rag★ 096% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository78 other files it gives its agents.
- a11y-debuggingSkill
- accidental-data-loss-preventionSkill
- agy-customizationsSkill
- alphafold-database-fetch-and-analyzeSkill
- alphagenome-single-variant-analysisSkill
- antigravity-guideSkill
- bigquery-ai-mlSkill
- bigquery-bigframesSkill
- bigquery-data-transfer-serviceSkill
- bigquery-graphSkill
- bigquery-sqlSkill
- building-data-appsSkill
- chembl-databaseSkill
- chrome-devtoolsSkill
- chrome-extensionsSkill
- clinical-trials-databaseSkill
- clinvar-databaseSkill
- credentialsSkill
- data-autocleaningSkill
- dataform-bigquerySkill
- dbsnp-databaseSkill
- dbt-bigquerySkill
- debug-optimize-lcpSkill
- discovering-gcp-data-assetsSkill
- document-validatorSkill
- embl-ebi-olsSkill
- encode-ccres-databaseSkill
- enforcing-resource-attributionSkill
- ensembl-databaseSkill
- federate-lakehouse-catalogSkill
- foldseek-structural-searchSkill
- gcloud-auth-verificationSkill
- gcp-composer-troubleshootingSkill
- gcp-dataflowSkill
- gcp-data-pipelinesSkill
- gcp-managed-airflow-migrationsSkill
- gcp-pipeline-orchestrationSkill
- gcp-pipeline-resource-provisioningSkill
- gcp-sparkSkill
- gcs-security-assessmentSkill
- gnomad-databaseSkill
- google-antigravity-sdkSkill
- gtex-databaseSkill
- human-protein-atlas-databaseSkill
- interpro-databaseSkill
- jaspar-databaseSkill
- link-checkSkill
- literature-search-arxivSkill
- literature-search-biorxivSkill
- literature-search-europepmcSkill
- literature-search-openalexSkill
- memory-leak-debuggingSkill
- ml-best-practicesSkill
- modern-web-guidanceSkill
- ncbi-sequence-fetchSkill
- notebook-guidanceSkill
- openfda-databaseSkill
- opentargets-databaseSkill
- pdb-databaseSkill
- permissioned-githubSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
6 rules. 2 are common, 0 are distinctive, and 4 are very specific to this project.
2
Common
Most of the 4 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Common: line 15
Before installing ANY Python package, check the workspace for these files in priority order:
- Common: line 45
If no dependency manager is detected, use venv + pip + requirements.txt as the default:
- Very specific: line 61
Always use .venv/bin/pip or .venv/bin/python (explicit path).
- Very specific: line 62
After installing, run: .venv/bin/pip freeze > requirements.txt.
- Very specific: line 63
When setting up: .venv/bin/pip install -r requirements.txt.
- Very specific: line 67
NEVER: run pip install globally
“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Python Dependency Management Rule
[!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.
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:
# Initialize environment
python3 -m venv .venv
# Add dependencies
.venv/bin/pip install <package>
# Preserve state
.venv/bin/pip freeze > requirements.txtRules 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
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

