搜索

PythonReactSEOPDF
GitHub Skill

venv-manager

Manage Python virtual environments in a consistent, organized way. Use when a skill needs Python packages installed, or when the user wants to create a venv following standard conventions. Provides the authoritative convention for venv location and naming that other skills should follow.

jbdamask☆ 2 仓库 Stars0 仓库 Forks

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

查看来源 ↗使用指南

技能说明

Venv Manager

Provides standardized conventions and commands for managing Python virtual environments. Other skills that need Python packages should reference this skill to ensure consistent organization.

Convention

All virtual environments are stored in a standard location with consistent naming:

~/.venvs/<package-name>/

Examples:

  • ~/.venvs/gitingest/
  • ~/.venvs/docetl/
  • ~/.venvs/myproject/

When to Use

  • Another skill needs a Python package installed
  • User wants to create a venv following standard conventions
  • User asks about venv organization or where venvs are stored

Workflow

1. Check if Venv Already Exists

Before creating, check if the venv already exists:

ls ~/.venvs/<name>/bin/python 2>/dev/null && echo "EXISTS" || echo "NOT_FOUND"
2. Create a New Venv
python3 -m venv ~/.venvs/<name>
3. Install Packages

Install one or more packages into the venv:

~/.venvs/<name>/bin/pip install <package1> <package2> ...
4. Run Commands in the Venv

To run a command using the venv's Python or installed packages:

~/.venvs/<name>/bin/<command> <args>

Or activate first (less preferred):

source ~/.venvs/<name>/bin/activate
<command> <args>
deactivate

Complete Example

Creating a venv for gitingest:

# Check if exists
ls ~/.venvs/gitingest/bin/python 2>/dev/null && echo "EXISTS" || echo "NOT_FOUND"

# Create venv (if NOT_FOUND)
python3 -m venv ~/.venvs/gitingest

# Install package
~/.venvs/gitingest/bin/pip install gitingest

# Verify installation
~/.venvs/gitingest/bin/gitingest --version

# Use it
~/.venvs/gitingest/bin/gitingest https://github.com/owner/repo -o output.txt

For Other Skills

If you're a skill that needs Python packages:

  1. Ask the user how they want to install the package
  2. If user chooses "create a venv for me", follow the conventions in this skill
  3. Use ~/.venvs/<package-name>/ as the location
  4. Run commands via ~/.venvs/<package-name>/bin/<command>

Listing Existing Venvs

To see what venvs exist:

ls -1 ~/.venvs/

Removing a Venv

To remove a venv (requires user confirmation):

rm -rf ~/.venvs/<name>

Always confirm with user before deleting.

使用示例

查看来源仓库中的使用示例与配置说明。

查看来源 ↗

来源历史

收录时间
2026-01-20
索引更新时间
2026-01-31
Branch
main

收录与同步日期属于本站记录。源码修改历史请查看来源仓库。

GitHub ↗

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!