From essentials
Python environment and dependency management using uv. Use when working with Python projects — running scripts, adding dependencies, setting up projects, running tests, or managing tools. This skill enforces uv-only workflows. A PreToolUse hook blocks pip, poetry, pipenv, and bare python automatically.
npx claudepluginhub sherifattia/my-pluginsThis skill uses the workspace's default tool permissions.
Always use uv. Never use pip, poetry, pipenv, or bare python/python3.
Generates design tokens/docs from CSS/Tailwind/styled-components codebases, audits visual consistency across 10 dimensions, detects AI slop in UI.
Records polished WebM UI demo videos of web apps using Playwright with cursor overlay, natural pacing, and three-phase scripting. Activates for demo, walkthrough, screen recording, or tutorial requests.
Delivers idiomatic Kotlin patterns for null safety, immutability, sealed classes, coroutines, Flows, extensions, DSL builders, and Gradle DSL. Use when writing, reviewing, refactoring, or designing Kotlin code.
Always use uv. Never use pip, poetry, pipenv, or bare python/python3.
# Run a script
uv run script.py
# Run a module
uv run -m pytest
uv run -m http.server 8000
# Run with specific Python version
uv run --python 3.12 script.py
For one-off scripts, use --with to add dependencies inline. No project setup, no venv, no install step:
# Inline one-liner
uv run --with requests --with beautifulsoup4 python -c "
import requests
from bs4 import BeautifulSoup
html = requests.get('https://example.com').text
print(BeautifulSoup(html, 'html.parser').title.string)
"
# Heredoc for longer scripts
uv run --with pandas --with matplotlib python << 'EOF'
import pandas as pd
import matplotlib.pyplot as plt
df = pd.DataFrame({"x": range(10), "y": [i**2 for i in range(10)]})
df.plot(x="x", y="y")
plt.savefig("plot.png")
print("Saved plot.png")
EOF
Dependencies are cached by uv — repeat runs resolve instantly.
# Add a dependency
uv add requests
uv add 'pandas>=2.0'
uv add --dev pytest ruff mypy
# Remove a dependency
uv remove requests
# Sync from existing pyproject.toml
uv sync
# Update all dependencies
uv lock --upgrade
uv sync
# New project
uv init my-project
cd my-project
uv add fastapi uvicorn
# Existing project with pyproject.toml
uv sync
uv run pytest
uv run pytest tests/ -v --tb=short
uv run ruff check .
uv run ruff format .
uv run mypy src/
# Install tools globally (available everywhere)
uv tool install ruff
uv tool install ty
uv tool install pre-commit
# Run a tool without installing
uvx ruff check .
The PreToolUse hook will block these automatically, but for reference:
| Blocked | Use Instead |
|---|---|
pip install requests | uv add requests |
pip3 install requests | uv add requests |
uv pip install requests | uv add requests |
poetry add requests | uv add requests |
poetry install | uv sync |
pipenv install requests | uv add requests |
python script.py | uv run script.py |
python3 -m pytest | uv run -m pytest |
python -c "..." | uv run --with <deps> python -c "..." |
source .venv/bin/activate | Not needed — uv handles this |