with one click
python-uv-cli
UV command-line usage patterns for Python project management
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
UV command-line usage patterns for Python project management
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
Python import style guidelines for absolute and relative imports
Python naming conventions for variables, constants, files, and directories
Python pathlib usage guidelines for file and directory operations
Python refactoring triggers and guidelines for code size limits
UV command automation and project lifecycle management patterns powered by the uv-mcp server
Universal coding principles and best practices for maintainable software
| name | python-uv-cli |
| description | UV command-line usage patterns for Python project management |
| license | MIT |
| compatibility | opencode |
| metadata | {"related_uv_mcp":"For uv MCP automation tools, use skill `uv-mcp`","related_python_guidelines":"For general Python development standards, use skill `python-guidelines`"} |
Provide UV command-line patterns for Python project management. Use UV instead of virtualenv, venv, or pip directly.
# Create and sync virtual environment
uv sync --all-extras -U # Sync with all optional deps, update all
uv sync # Sync dependencies
# Run Python scripts
uv run python script.py # Run script in isolated environment
uv run python -c"code" # Run inline Python code
uv run pytest -v # Run tests
uv run --help # Show uv run options
# Add dependencies
uv add package-name # Production dependency
uv add package-name --dev # Development dependency (pytest, ruff, etc.)
# Remove dependencies
uv remove package-name # Remove production dependency
uv remove package-name --dev # Remove development dependency
# Build and distribute
uv build # Create wheel and sdist
Use this skill when:
--dev for dev dependencies - pytest, ruff, ty, etc.uv run - Never invoke python directly from .venvuv sync --all-extras -U - Full dependency update