setup-env

Create Python virtual environments and install dependencies with uv.

Updated Jan 15, 2026
One-click install
npx skills add https://github.com/KaiserWhoLearns/skillsbench --skill setup-env-kaiserwholearns
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: setup-env
Source: https://github.com/KaiserWhoLearns/skillsbench/tree/main/tasks/setup-fuzzing-py/environment/skills/setup-env
Command: npx skills add https://github.com/KaiserWhoLearns/skillsbench --skill setup-env-kaiserwholearns

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Managing Python project environments can be error-prone and time-consuming. This Skill standardizes creating virtual environments, installing dependencies, and running project scripts to ensure reproducible setups.

Core Features & Use Cases

  • Create a virtual environment in the project root (.venv) to isolate dependencies.
  • Install dependencies via pyproject.toml (via uv sync) or requirements.txt (via uv pip install -r).
  • Run scripts or commands inside the configured project environment using uv run.

Quick Start

Run uv venv to create the environment, then use uv sync or uv pip install as needed, and finally run your Python scripts with uv run.

Frequently Asked Questions about setup-env

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up a Python virtual environment using uv?

You can set up a Python project environment with uv by running uv venv to create a virtual environment, then installing dependencies from pyproject.toml or requirements.txt, and finally running scripts using uv run.

How does uv handle dependencies from a pyproject.toml file?

uv handles dependencies from a pyproject.toml file by executing the uv sync command, which automatically resolves and installs the specified project packages into the local .venv environment.

Can I install dependencies from requirements.txt with uv?

Yes, you can install dependencies from a requirements.txt file with uv by running the uv pip install -r requirements.txt command inside your configured virtual environment.

What is the best way to run Python scripts in an isolated uv environment?

The best way to run Python scripts in an isolated uv environment is to use the uv run command, which automatically executes your scripts within the configured project environment and its dependencies.

Does uv work with both pyproject.toml and requirements.txt for environment management?

uv works with both pyproject.toml and requirements.txt for environment management by applying uv sync for pyproject.toml configurations and uv pip install -r for standard requirements.txt files.