AgentSkillsCN

running-python

使用uv运行Python脚本并管理项目。当被要求运行Python脚本、执行Python代码、运行pytest或安装软件包时使用。始终使用uv而非pip或纯Python。

SKILL.md
--- frontmatter
name: running-python
description: Runs Python scripts and manages projects using uv. Use when asked to run a python script, execute python code, run pytest, or install packages. Always uses uv instead of pip or bare python.
version: 2.0.0

Python with uv

Always use uv - faster and more reliable than pip/poetry.

Commands

bash
# Run scripts - ALWAYS use uv run
uv run python script.py
uv run pytest

# Dependencies
uv add numpy
uv sync

Rules

  1. Never python script.py - always uv run python script.py
  2. Never pip install - always uv add or uv sync