running-python
运行 Python 脚本并使用 uv 管理项目。在需要运行 Python 脚本、执行 Python 代码、运行 pytest 或安装包时使用。始终使用 uv 而不是 pip 或裸 Python。
📖 中文导读:运行 Python 脚本并使用 uv 管理项目。在需要运行 Python 脚本、执行 Python 代码、运行 pytest 或安装包时使用。始终使用 uv 而不是 pip 或裸 Python。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。
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
# Run scripts - ALWAYS use uv run
uv run python script.py
uv run pytest
# Dependencies
uv add numpy
uv sync
Rules
- Never
python script.py- alwaysuv run python script.py - Never
pip install- alwaysuv addoruv sync