python-venv
Python environment management skill. Automatically detect project type and existing environments, recommend based on popularity. Minimize interruptions, only ask when necessary.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/cikichen/python-venvPython Environment Management Skill
Core Principles
- Reuse Existing Environments - Don't recreate, reuse existing virtual environments
- Use Project-Type Decision - Auto-select based on lock files
- Recommend by Popularity - uv > pip > conda > venv
- Minimize Interruption - Only ask when necessary
Tool Popularity Ranking
| Priority | Tool | Best For |
|---|---|---|
| ๐ฅ | uv | New projects, fast installs |
| ๐ฅ | pip | Compatibility first |
| ๐ฅ | conda | Data science, specific versions |
| 4 | venv | Built-in, no extra install |
| 5 | poetry | Existing poetry.lock |
| 6 | pipenv | Existing Pipfile (declining) |
Decision Flow
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Detect project dependency files โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโดโโโโโโโโโโ
โ โ
Clear decision Unclear
โ โ
Use directly Detect existing env
โ
โโโโโโโดโโโโโโ
โ โ
Has env No env
โ โ
Reuse Assess complexity
โ
โโโโโโโโโโโดโโโโโโโโโโ
โ โ
Simple task Needs deps
โ โ
System Python Recommend uv/conda
1. Clear Decisions (Execute Directly, No Ask)
When these files are detected, use the corresponding tool directly:
| Detected File | Execute |
|---|---|
uv.lock exists | uv sync or uv pip install -r requirements.txt |
poetry.lock exists | poetry install |
environment.yml exists | conda env create -f environment.yml |
Pipfile.lock exists | pipenv install |
2. Detect Existing Environments (Reuse First)
# Priority: uv venv > conda > venv
# 2.1 Detect uv virtual environment
ls -la .venv/ 2>/dev/null && uv pip list 2>/dev/null | head -3
# 2.2 Detect conda environment
conda info --envs 2>/dev/null | grep "*" || echo $CONDA_PREFIX
# 2.3 Detect standard venv
ls -la venv/ .venv/ env/ 2>/dev/null
# 2.4 If exists โ Reuse (activate and run commands)
Reuse Example:
Detected existing .venv/ directory
โ Activate: source .venv/bin/activate
โ Run: uv pip install <package>
3. When Unclear (Assess Complexity)
| Scenario | Action |
|---|---|
| Stdlib only, no 3rd party | System Python (python3) |
| Simple pip install test | System Python (temp) |
| Has requirements.txt | Recommend uv > pip > venv |
| Has pyproject.toml | Recommend uv > pip |
| Multi-file project, needs isolation | Recommend uv |
4. When to Ask User (Only These Cases)
โ Ask:
- Empty project + first dependency install โ Ask which tool
- Both requirements.txt + pyproject.toml โ Ask which to use
- User explicitly wants different tool โ e.g., "I want conda"
Metadata
Not sure this is the right skill?
Describe what you want to build โ we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-cikichen-python-venv": {
"enabled": true,
"auto_update": true
}
}
}Related Skills
wsl-shell-reliability
Reliability-first shell selection policy for AI agents on Windows. Choose WSL or PowerShell based on execution risk, not preference.
structured-workflow
้ป่ฎคๅฏ็จ๏ผไธญๆ่พๅบใ็ปๆๅๆต็จใ็ฎๆดไผๅ ใ้็จไบๆๆไปปๅกใ
lao-huangli
Use when users ask for ่้ปๅ/้ปๅ/ๆฉๆฅ/ๅฎๅฟ/ๅฒ็ /ๅนฒๆฏ/่ๆฐ explanations, or need a reproducible engineering workflow to compute calendar fields and derive traditional almanac recommendations.