Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIMuseMuseDotsDots+22 more

    python venv

    1

    Automates pyenv-based virtual environment creation and enforces local binary usage for Python projects.

    Free

    Security scanned
    python venv

    python venv

    Example session with this skill installed

    Set up this Python project and install the dependencies from requirements.txt.

    • Read your context and instructions
    • Compiled the python venv

    I have initialized a local Python environment for this project. I detected no existing virtual environment, so I created a new one using the version pinned in .python-version.

    Environment Setup Log

    ActionCommand / DetailStatus
    Check pyenvpyenv --versionSuccess (2.3.35)
    Version SyncFound 3.11.5 in .python-versionPinned
    Create Venvpyenv exec python -m venv .venvCreated
    Git IgnoreAdded .venv/ to .gitignoreUpdated
    Install Deps.venv/bin/pip install -r requirements.txt12 packages installed
    
    # Example of how I will run your code:
    .venv/bin/python main.py
    

    Next steps

    • I will now use .venv/bin/python for all script executions.
    • If you add new packages, tell me to update the environment.
    • You can now run the application by asking me to start main.py.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Managing Python environments manually leads to broken system dependencies and "it works on my machine" bugs. This skill automates the creation and usage of isolated virtual environments to keep your project clean and reproducible.

    What it does

    • Environment detection identifies existing .venv, venv, or env directories to prevent redundant setups.
    • Dependency pinning uses pyenv to manage Python versions instead of relying on the system interpreter.
    • Path management executes commands using absolute paths to environment binaries, avoiding activation issues in non-interactive shells.
    • Automated installation parses requirements.txt, pyproject.toml, or setup.py to bootstrap the environment.
    • Git hygiene automatically adds environment folders to .gitignore to prevent committing local binaries.

    How it works

    1. Scan the project root for existing virtual environments and the appropriate dependency manifest.
    2. Verify pyenv availability and install or select the correct Python version based on .python-version.
    3. Initialize the .venv and install all required packages using the local pip binary.
    4. Execute all subsequent Python scripts or tests using the specific .venv/bin/python path.

    Frameworks & tools

    This skill works with pyenv, pip, and standard Python packaging manifests including requirements.txt, setup.py, and pyproject.toml.

    Why this beats prompting it yourself

    Manual prompts often result in the AI using sudo pip install or generic python3 commands that pollute your global namespace. This skill enforces a strict execution path using the local virtual environment's binaries every single time.

    Use cases

    • Initialize a fresh repository with a version-pinned local environment.
    • Run scripts in a legacy project without manually sourcing activation files.
    • Ensure CI/CD or automated agents don't break system-level Python packages.
    • Standardize environment setup across a team using pyenv.

    Known limitations

    Requires pyenv to be pre-installed on the host system. It does not support Conda or Poetry-specific environment management.

    How to use

    Skills on Agensi run inside your AI agent. Copy the prompt, paste it into your agent, and it connects to Agensi and installs this skill for you. If a payment is needed, your agent shows it to you first.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill passes our trust checks below.

    Security scanned

    Passed our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Free forever

    No account required to browse

    Trust & safety

    Security scanned

    Verified clean 2 days ago

    • Free to download with an account

    Requires

    Python

    Listed2 days ago

    What's inside

    Frequently Asked Questions