uvsh

Execute Python in Bash via uv run with here-strings and step annotations.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/raystyle/skills --skill uvsh
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: uvsh
Source: https://github.com/raystyle/skills/tree/main/skills/uvsh
Command: npx skills add https://github.com/raystyle/skills --skill uvsh

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Enable Python execution inside Bash using uv run with here-strings, avoiding direct Python invocation.

Core Features & Use Cases

  • Enforces a consistent constraint: Python code runs only via uv run with here-strings.
  • Supports multi-line code blocks, controlled library usage, and structured task+step annotations.
  • Use Case: embed lightweight Python tasks in shell pipelines for quick data parsing or API interactions.

Quick Start

Run a simple Python snippet via uv run and a here-string to demonstrate the execution flow.

Frequently Asked Questions about uvsh

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

FAQPage Schema
How do I run Python code inside a Bash script without invoking Python directly?

You can run Python code inside Bash by passing it through uv run with here-strings, avoiding direct Python invocation while enabling quick data processing and lightweight computations.

Can I execute multi-line Python scripts in shell pipelines using uv?

Yes, uv supports executing multi-line Python scripts in shell pipelines using here-strings, allowing you to embed structured tasks with controlled library usage for quick data parsing or API interactions.

What is the best way to structure Python execution steps in Bash for error handling?

The best way to structure Python execution in Bash is by using explicit # task and # step annotations within uv run here-strings, which helps organize execution steps and enforce error handling.

Do I need to install Python separately to use uv run in my shell scripts?

No, you do not need to install Python separately because uv run handles the Python execution environment directly, allowing you to run here-strings and manage library constraints without direct invocation.

Why should I use here-strings instead of direct Python commands in Bash?

You should use here-strings instead of direct Python commands to enforce a consistent execution constraint, ensuring safe Python scripting with structured task and step annotations within your shell workflows.

What are the limitations of running Python with uv run in Bash pipelines?

Limitations include enforced library usage constraints and the requirement to format all Python code as here-strings with explicit # task and # step annotations, restricting unstructured script execution.