using-uv
Python package and project management with UV. Use when creating Python scripts, initializing projects, or managing dependencies.
- License 许可
- Unlicense
- 所属仓库
- saski/arnesto
- 最近更新
- 2026-11-12
- Stars
- ★ 6
- Forks
- 0
01 前言 Front Matter
- name
- using-uv
- description
- Python package and project management with UV. Use when creating Python scripts, initializing projects, or managing dependencies.
02 资源文件 2
- 参考文档references/projects.md4.0 KB
- 参考文档references/scripts.md2.5 KB
03 SKILL.md 正文
UV
UV is a fast Python package manager. Two modes:
Scripts vs Projects
Use scripts when:
- Single .py file
- Quick utility, one-off task
- No shared dependencies across files
Use projects when:
- Multiple files, modules, or packages
- Team collaboration
- Need reproducible environments
- Building a library or application
Scripts
Standalone Python files with inline dependencies (PEP 723).
#!/usr/bin/env -S uv run --script
# /// script
# requires-python = ">=3.12"
# dependencies = ["requests", "rich"]
# ///
import requests
from rich import print
Run: uv run script.py
See references/scripts.md for full guide.
Projects
Structured Python with pyproject.toml and lockfile.
uv init myproject
cd myproject
uv add requests
uv run python main.py
Key files:
pyproject.toml- metadata and dependenciesuv.lock- exact versions for reproducibility.python-version- Python version
See references/projects.md for full guide.
Common Patterns
uv run pytest # Run in project env
uv add --dev pytest # Dev dependency
uvx ruff check . # One-off tool execution
uv run --with rich script.py # Script with ad-hoc dep
04 同仓库更多 Skills
visualize
Use /visualize for creating compact charts, diagrams, or other visuals inline as part of the conversation itself. It chooses among Markdown tables, Mermaid, inline HTML, and other supported in-transcript forms. Use Canvas for durable artifacts outside the transcript that users may revisit, refine, or share.
update-cursor-settings
Modify Cursor/VSCode user settings in settings.json. Use when you want to change editor settings, preferences, configuration, themes, font size, tab size, format on save, auto save, keybindings, or any settings.json values.
update-cli-config
View and modify Cursor CLI configuration settings in ~/.cursor/cli-config.json. Use when the user wants to change CLI settings, configure permissions, switch approval mode, enable vim mode, toggle display options, configure sandbox, or manage any CLI preferences.
statusline
Configure a custom status line in the CLI. Use when the user mentions status line, statusline, statusLine, CLI status bar, prompt footer customization, or wants to add session context above the prompt.
split-to-prs
Split current work into small reviewable PRs. Use when the user asks to split a chat, set of changes, branch, or PR.
shell
Runs the rest of a /shell request as a literal shell command. Use only when the user explicitly invokes /shell and wants the following text executed directly in the terminal.