archibate/dotfiles-opencode / skills/uv
uv
FlaggedUse this skill when using UV (Python package manager), needs to set up Python virtual environments, install/manage Python CLI tools, migrate from pip/pipx to UV, Python version management, or troubleshoot UV-related issues.
examples/migrations.md
View on GitHub# Migration Examples
## Overview
Migration guides from other Python tools to UV.
## From pip to UV
**Before (pip):**
```bash
# Old workflow
pip install requests pandas numpy
pip freeze > requirements.txt
# Problems:
# - Slow installation
# - Dependency conflicts
# - No isolation
```
**After (UV):**
```bash
# New workflow
python -m venv .venv
. .venv/Scripts/activate
uv pip install requests pandas numpy
uv pip freeze > requirements.txt
# Benefits:
# - 10-100x faster
# - Better dependency resolution
# - Virtual environment isolation
```
## From pipx to UV tool
**Before (pipx):**
```bash
# Old tool management
pipx install black
pipx install flake8
pipx install pytest
pipx upgrade-all
```
**After (UV tool):**
```bash
# New tool management
uv tool install black
uv tool install flake8
uv tool install pytest
uv tool upgrade --all
# Migration:
pipx list --short > tools.txt
cat tools.txt | xargs -n1 uv tool install
```
## From poetry to UV
**Before (poetry):**
```bash
# Old project management
poetry new my-project
cd my-project
poetry add requests
poetry install
poetry run python script.py
```
**After (UV):**
```bash
# New project management
uv init my-project
cd my-project
uv add requests
uv sync
uv run python script.py
# Migration from existing poetry project:
poetry export -f requirements.txt -o requirements.txt
python -m venv .venv
. .venv/Scripts/activate
uv pip install -r requirements.txt
```
## Related Documentation
- [Installation and Setup Reference](../references/installation-and-setup.md)
- [Tool Management](../references/tool-management.md)
- [Python Environment Management](../references/python-environment.md)
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 468k | Updated | Claude CodeCodex | Unverified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 319k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 319k | Updated | Claude CodeCodex | Verified | Install |
| executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available | Stars: 319k | Updated | Claude CodeCodex | Verified | Install |