·uv-scripts
</>

uv-scripts

narumiruna/agent-skills

使用 uv 運行或編寫獨立的 Python 腳本時使用,特別是在選擇 Python 版本、添加一次性依賴項、使用無項目模式或嵌入內聯腳本元數據時。

4安裝·0熱度·@narumiruna

安裝

$npx skills add https://github.com/narumiruna/agent-skills --skill uv-scripts

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