/building:use-venvfrom building
Use when about to run a language install command (pip, pipx, npm install -g, uv pip install, etc.) OR entering a project directory containing pyproject.toml / requirements.txt / package.json / .nvmrc — verifies virtual-environment isolation exists and is active before proceeding, and prompts to create one if missing.
Ships in building. 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.
Prevent pollution of the user's system Python and global Node installs. Verify virtual-environment isolation is present and active before running any language install command, and prompt to set one up when entering a project directory that has a dependency manifest but no isolation.
Never install into system/global. Refuse pip install X outside a venv, sudo pip install, or npm install -g X without explicit user confirmation. Always offer the isolated equivalent first.
Existence ≠ activation. A .venv/ directory is not sufficient. Either $VIRTUAL_ENV must be set, or the command must be prefixed with uv run / uv pip (which target .venv/ without activation).
Detect before recommending. Use existing project markers to pick the right tool, not a hard-coded default:
| Marker | Recommend |
|---|---|
uv.lock | uv sync / uv pip install … |
poetry.lock or [tool.poetry] in pyproject.toml | poetry install |
Pipfile | pipenv install |
requirements.txt only | uv venv && uv pip install -r requirements.txt |
pyproject.toml with no lock | uv venv && uv pip install -e . |
.nvmrc or package.json#engines.node | nvm use (fall back to fnm use if fnm is on PATH and nvm is not) |
package.json with no engine pin | prompt for Node version |
Ask once per decision. When the user confirms "create .venv with uv", don't re-prompt for subsequent installs in the same Claude conversation. Same for declines — remember them for the rest of the conversation. (No cross-conversation memory; each new conversation starts fresh.)
Never auto-run destructive env changes. Creating a new venv is additive and fine to run after confirmation. Deleting an existing venv, switching Python versions in place, or rm -rf node_modules always requires a separate explicit confirmation.
Trigger A — about to run a language install command. Examples that fire the skill:
pip install …, pip3 install …, sudo pip install …uv pip install … (verifies .venv/ exists and is the target)pipx install … (no-op — pipx isolates by design)npm install -g …, yarn global add …, pnpm add -g …Trigger B — entering a project directory with a manifest. Manifest markers:
pyproject.toml, requirements.txt, Pipfile, setup.py, setup.cfgpackage.json, .nvmrc, .node-versionIf none of these exist in the current directory (walking up to the git root), Trigger B does not fire.
pipx install, npm install without -g, cargo install, brew install), proceed. Skill is a no-op.$VIRTUAL_ENV. If set, proceed.$VIRTUAL_ENV is unset, look for .venv/ (or .env/, venv/) in the current directory, walking up to the git root:
source .venv/bin/activate does not persist across separate Bash subprocess calls, so do not "activate then install" in two steps. Default to uv pip install … (which targets .venv/ without activation). If uv is not on PATH, chain activation and install in one bash call: source .venv/bin/activate && pip install …. Tell the user which path was taken.npm install -g X: always refuse. Offer alternatives — npx <pkg> for one-shot use, project-local npm install <pkg>, or a user-managed global via volta / pnpm / nvm-scoped global..venv/ (or .env/, venv/) exist? Does $VIRTUAL_ENV point at it?node_modules/ exist? Does node -v match .nvmrc or engines.node?uv not on PATH), fall back to python -m venv .venv for Python or prompt the user for the Node version manager. Always tell the user what fallback was taken.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub joelstoddard/guardrails --plugin building10 skills in this plugin
/biasesCounter reasoning biases when investigating, debugging, or searching a codebase or history. Follow this skill when looking for every instance of a pattern, diagnosing an incident, judging a past decision, or answering "has this happened before" — anywhere a partial sample could pass for the whole population./ci-watchWatch a pull request's CI checks and repair failures until they pass. Follow this skill after opening a PR, or when asked to watch, babysit, or fix CI on a PR. Bounded at three fix rounds; never weakens a test to reach green./commitCreate atomic conventional commits. Follow this skill whenever committing code — commit without asking, never push, and sub-agents commit as they go and surface a summary in their return value./concise-commentsUse when writing or editing comments in source code, when a comment is running past two sentences, when explaining non-obvious design context, tradeoffs, constraints or workarounds in code, or when reviewing code that carries long explanatory comment blocks or changelog-style notes. Trigger on 'document this decision', 'explain why this is here', 'make sure the next person understands', 'comment this properly'./draft-prCreate a draft pull request with a standardized body (a blank Intent for the author, then What/Why/How) and conventional-commit title, or hand the user the exact `gh pr create --draft` command to run. Follow this skill whenever opening a pull request, or when the user asks for the command to open one — the draft PR is the human review checkpoint, so the body format is fixed, the title is conventional-commit, and the PR is always marked draft. Main agents only; sub-agents return their work to the main agent to PR./learning-styleSet how Claude presents information to you, and takes it in from you, for this session. Styles are reading, seeing (or visual), doing and listening; give one or more.