uv-scripts
✓使用 uv 运行或编写独立的 Python 脚本时使用,特别是在选择 Python 版本、添加一次性依赖项、使用无项目模式或嵌入内联脚本元数据时。
SKILL.md
Overview Use uv run to execute standalone scripts with automatic dependency management. Prefer inline metadata for self-contained scripts and --no-project when you are inside a project but do not need project code.
| Run a script | uv run script.py | | Run module | uv run -m http.server 8000 | | Run from stdin | uv run - | | Here-doc | uv run - <<EOF ... EOF | | Skip project install | uv run --no-project script.py | | One-off deps | uv run --with requests --with rich script.py | | Pick Python | uv run --python 3.12 script.py |
| Init script metadata | uv init --script script.py --python 3.12 | | Add script deps | uv add --script script.py requests rich | | Lock script deps | uv lock --script script.py |
可引用信息
为搜索与 AI 引用准备的稳定字段与命令。
- 安装命令
npx skills add https://github.com/narumiruna/agent-skills --skill uv-scripts- 分类
- </>开发工具
- 认证
- ✓
- 收录时间
- 2026-02-01
- 更新时间
- 2026-02-18
快速解答
什么是 uv-scripts?
使用 uv 运行或编写独立的 Python 脚本时使用,特别是在选择 Python 版本、添加一次性依赖项、使用无项目模式或嵌入内联脚本元数据时。 来源:narumiruna/agent-skills。
如何安装 uv-scripts?
打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/narumiruna/agent-skills --skill uv-scripts 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code 或 Cursor 中使用
这个 Skill 的源码在哪?
https://github.com/narumiruna/agent-skills
详情
- 分类
- </>开发工具
- 来源
- skills.sh
- 收录时间
- 2026-02-01