Agent skill

setup-env

When given a Python project codebase, this skill helps the agent to set up virtual environments, install dependencies, and run scripts.

Stars 897
Forks 232

Install this agent skill to your Project

npx add-skill https://github.com/benchflow-ai/skillsbench/tree/main/tasks-no-skills/setup-fuzzing-py/environment/skills/setup-env

SKILL.md

Skill: Use uv to manage Python environments

Scope

  1. Create a virtual environment
  2. Install dependencies
  3. Run Python scripts/commands

Assume uv is already available on PATH.


Workflow selection

  • If pyproject.toml exists: use project workflow (uv sync, uv run)
  • Else if requirements.txt exists: use pip workflow (uv venv, uv pip install -r ..., .venv/bin/python ...)
  • Else: stop with an error ("No pyproject.toml or requirements.txt found.")

Project workflow (pyproject.toml)

Create venv + install dependencies

From the repo root (where pyproject.toml is):

  • uv sync

Notes:

  • uv maintains a persistent project environment at .venv and installs deps there.

Run scripts / commands (preferred)

Always run within the project environment:

  • uv run -- python <script.py> [args...]
  • uv run -- python -m <module> [args...]

Notes:

  • uv run executes inside the project environment and ensures it is up-to-date.

Pip workflow (requirements.txt)

Create venv

From the repo root:

  • uv venv # creates .venv by default

Install dependencies

  • uv pip install -r requirements.txt

Run scripts / commands

Run using the venv interpreter directly (no activation required):

  • .venv/bin/python <script.py> [args...]
  • .venv/bin/python -m <module> [args...]

(uv will also automatically find and use the default .venv in subsequent invocations when you use uv pip ... commands.)


Minimal sanity checks (optional)

  • test -x .venv/bin/python
  • uv pip list (verify packages installed)

Expand your agent's capabilities with these related and highly-rated skills.

benchflow-ai/skillsbench

csv-processing

Use this skill when reading sensor data from CSV files, writing simulation results to CSV, processing time-series data with pandas, or handling missing values in datasets.

897 232
Explore
benchflow-ai/skillsbench

pid-controller

Use this skill when implementing PID control loops for adaptive cruise control, vehicle speed regulation, throttle/brake management, or any feedback control system requiring proportional-integral-derivative control.

897 232
Explore
benchflow-ai/skillsbench

yaml-config

Use this skill when reading or writing YAML configuration files, loading vehicle parameters, or handling config file parsing with proper error handling.

897 232
Explore
benchflow-ai/skillsbench

simulation-metrics

Use this skill when calculating control system performance metrics such as rise time, overshoot percentage, steady-state error, or settling time for evaluating simulation results.

897 232
Explore
benchflow-ai/skillsbench

vehicle-dynamics

Use this skill when simulating vehicle motion, calculating safe following distances, time-to-collision, speed/position updates, or implementing vehicle state machines for cruise control modes.

897 232
Explore
benchflow-ai/skillsbench

web-interface-guidelines

Vercel's comprehensive UI guidelines for building accessible, performant web interfaces. Use this skill when reviewing or building UI components for compliance with best practices around accessibility, performance, animations, and visual stability.

897 232
Explore

Didn't find tool you were looking for?

Be as detailed as possible for better results