python-environment

Manage Python environments and dependencies using the uv tool.

Updated Mar 6, 2026
One-click install
npx skills add https://github.com/ryan-ressmeyer/llm-skills --skill python-environment
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: python-environment
Source: https://github.com/ryan-ressmeyer/llm-skills/tree/main/python-environment
Command: npx skills add https://github.com/ryan-ressmeyer/llm-skills --skill python-environment

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill ensures consistent and reproducible Python environments by enforcing the use of uv for all Python execution, preventing conflicts with system Python and managing project dependencies effectively.

Core Features & Use Cases

  • Environment Enforcement: Guarantees that all Python scripts and commands run within a managed environment, not the system's.
  • Dependency Management: Facilitates adding and managing project dependencies using uv add and uv sync.
  • Script Execution: Provides a standardized way to run Python scripts and tools (uv run python script.py, uv run pytest).
  • Use Case: When starting work on a new Python project, this skill ensures you set up a clean, isolated environment using uv init and manage all subsequent package installations and script executions through uv run.

Quick Start

Ensure all Python commands are prefixed with uv run.

Frequently Asked Questions about python-environment

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

FAQPage Schema
How do I manage Python dependencies for reproducible environments?

Manage Python dependencies for reproducible environments by using the `uv` tool to isolate project packages. It enforces project-specific environments over system Python, requiring commands like `uv add` and `uv sync` to handle dependencies.

How do I run Python scripts in an isolated environment?

Run Python scripts in an isolated environment by prefixing commands with `uv run`, such as `uv run python script.py`. This ensures execution occurs within a managed environment rather than the system's Python.

What is the best way to isolate Python project dependencies from the system Python?

The best way to isolate Python project dependencies is using `uv init` to create a clean environment and managing it via `uv run`. This prevents conflicts with system Python and ensures reproducibility across all development workflows.

Do I need uv installed to execute Python commands with this environment setup?

Yes, you need `uv` installed to execute Python commands with this environment setup. The Skill requires `uv` to be installed and used for all Python-related commands, enforcing reproducible, project-specific environments over system Python.

Can I use uv for testing workflows like running pytest?

Yes, you can use `uv` for testing workflows like running pytest by executing `uv run pytest`. This applies to all Python development workflows, ensuring tests run within a managed, isolated environment for reproducibility.