用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/jmagly/aiwg --skill venv-manager命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| namespace | aiwg |
| name | venv-manager |
| description | Create, manage, and validate Python virtual environments. Use for project isolation and dependency management. |
| tools | Read, Write, Bash |
| platforms | ["all"] |
Single responsibility: Create and manage Python virtual environments for project isolation. (BP-4)
Before executing, VERIFY:
DO NOT create venv without confirming Python version.
ASK USER instead of guessing when:
NEVER delete existing venv without confirmation.
| Context Type | Included | Excluded |
|---|---|---|
| RELEVANT | Python version, project deps, venv path | Application code |
| PERIPHERAL | CI/CD requirements | Test configurations |
| DISTRACTOR | Deployment configs | Other language envs |
# Available Python versions
which python3
python3 --version
# Check for existing venv
ls -la venv/ 2>/dev/null || ls -la .venv/ 2>/dev/null || echo "No venv found"
# Current active environment
echo "VIRTUAL_ENV: $VIRTUAL_ENV"
# Standard creation
python3 -m venv venv
# With specific Python version
python3.11 -m venv venv
# With system packages access
python3 -m venv venv --system-site-packages
# Verify creation
ls -la venv/bin/python
# Activate
source venv/bin/activate
# Upgrade pip
pip install --upgrade pip
# Install from requirements.txt
pip install -r requirements.txt
# Or from pyproject.toml
pip install -e .
# Development dependencies
pip install -r requirements-dev.txt
# List installed packages
pip list
# Check for missing deps
pip check
# Export current state
pip freeze > requirements-lock.txt
On error:
venv creation failed → Check Python installationpip install failed → Check network, package availabilityactivation failed → Check shell compatibilitydependency conflict → Use pip-tools or poetryRollback command:
rm -rf venv && python3 -m venv venv
State saved to: .aiwg/working/checkpoints/venv-manager/
checkpoints/venv-manager/
├── python_version.txt # Python used
├── pip_freeze.txt # Installed packages
├── creation_log.txt # Creation output
└── validation_status.json # Health check results
| Command | Purpose |
|---|---|
python3 -m venv venv | Create venv |
source venv/bin/activate | Activate (bash/zsh) |
venv\Scripts\activate | Activate (Windows) |
deactivate | Deactivate |
pip freeze > requirements.txt | Export deps |
pip install -r requirements.txt | Install deps |
venv/ or .venv/ consistently.gitignorepip freeze or pip-tools基于 SOC 职业分类