返回 Skill 列表
extension
分类: 开发与工程无需 API Key

uv-expert

uv Python包管理器的专业指导。在安装包、管理虚拟环境、设置Python项目、配置pyproject.toml、从pip或poetry迁移,或者固定Python版本时使用此技能——对于任何与uv相关的任务,优先选择它而非通用的pip建议。

person作者: jakexiaohubgithub

Execute the uv related task described in $ARGUMENTS.

Steps

  1. If $ARGUMENTS is empty, report an error requesting a description of the desired Python project setup or dependency task.
  2. Read $SKILL_DIR/references/QUICK_REFERENCE.md for essential uv commands, migration cheatsheets, and project structure.
  3. If the task involves a concrete workflow (web project, data science, workspaces, migration), consult $SKILL_DIR/references/EXAMPLES.md for step-by-step examples.
  4. Execute the appropriate uv commands using the bash tool to accomplish the user's goal.
  5. Verify the environment or dependencies have been set up correctly.

Output

A summary of the executed uv commands and the final state of the project or environment.

Examples

User Request: "Initialize a new Python project with pytest using uv." Response: Run uv init my-project, cd my-project, and uv add pytest --dev. Inform the user that the project is ready.

Troubleshooting

  • If cache corruption occurs, run uv cache clean.
  • If there are Python version conflicts, use uv python pin to set the correct version.