/dak:managing-python-dependenciesfrom dak
Enforces proper Python dependency management by detecting and using the project's established tooling (uv, poetry, pipenv, pip) instead of global pip install. Activates on pip commands, new Python projects, or import errors.
Ships in dak. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
[!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.
[!NOTE]
Reactive Environment Check Bundling (Only When Installing): Do NOT run environment or package availability checks (
importlib.util.find_spec,pip list,ls uv.lock...) proactively before writing code or creating a notebook. Only probe the environment when a package actually needs to be installed (for example, onModuleNotFoundError/ImportErroror an explicit user request to install dependencies).
- In Notebooks: When a notebook cell execution tool (
execute_cell/notebook_execute_cell) is available, check package availability (import <pkg>or%pip list) and install missing packages (%pip install) inside notebook cells, never viapython3 -corpipin the shell.- In the Shell (Only When Installing): When a shell check is required before installing a missing package for a local script or project, you MUST NOT run multiple sequential 1-line shell check commands. Combine all environment and package availability probes into a single composite python one-liner or shell check step:
python3 -c "import sys, importlib.util; print(f'Python {sys.version.split()[0]}'); [(print(f'{pkg}: {__import__(pkg).__version__}') if importlib.util.find_spec(pkg) else print(f'{pkg}: not found')) for pkg in ['pyspark', 'google.cloud.bigquery']]"This bundling also applies to dependency manager detection; when an install is needed, use a single
lsorfindcommand to check for all potential dependency manager configuration and lock files at once (e.g.ls uv.lock poetry.lock Pipfile.lock requirements.txt pyproject.toml).
Only run dependency manager detection when a package actually needs to be
installed (e.g., on ModuleNotFoundError / ImportError or when setting up a
missing local project environment)—never as an upfront pre-flight check before
creating or running a notebook. 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 globallyWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
python-dependencies, package-management, virtual-environments, pip, uv, poetry
npx claudepluginhub googlecloudplatform/data-agent-kit-plugin --plugin dak41 skills in this plugin
/accidental-data-loss-prevention**STOP AND VERIFY**: Before running any command or tool that results in irreversible data loss, you MUST obtain explicit user consent.
When in doubt, ask. It is better to wait for confirmation than to accidentally delete production data or critical project assets.
Use this for:
- SQL: DROP TABLE/VIEW/SCHEMA/DATABASE, TRUNCATE, or broad DELETE (missing WHERE or using 1=1).
- Cloud Storage: gsutil rm or gcloud storage rm targeting production data or critical buckets.
- Infrastructure: gcloud projects delete, deleting Spanner/BigQuery/Dataproc resources, deleting secrets, or KMS key destruction.
/bigquery-ai-mlLeverages BigQuery's built-in machine learning and GenAI capabilities for advanced data analytics. Use when you need to write SQL queries that perform time-series forecasting, predict values, detect outliers or anomalies, find key drivers, perform semantic search or vector search, classify text, calculate similarity, summarize content, translate language, evaluate models, filter by semantic conditions, measure the causal effect of an intervention, compute correlations between columns, generate descriptive statistics and table distribution profiles, detect change points or structural breaks, extract trend or seasonality components, or leverage generative AI capabilities in BigQuery. Do not use for general BigQuery dataset, table, or job management requests.Other plugins' skills for the same job