/python-plugin:python-uvfrom python-plugin
Deep guidance for uv as the Python env + dep + tool runner. Use when setting up a venv, declaring dependencies in pyproject.toml, maintaining uv.lock, choosing between `uv run` / `uv tool` / `uvx`, pinning Python versions, debugging resolver conflicts, or migrating from pip / pip-tools / poetry. Pairs with the unified `python` skill.
Ships in python-plugin. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
uv is the only Python toolchain manager in this workspace. No pyenv, no poetry, no pip-tools, no virtualenv-wrapper.
project/
pyproject.toml # source of truth for deps + tool config
uv.lock # committed, machine-managed
.venv/ # gitignored, recreated on demand
| Goal | Command |
|---|---|
| Create venv with project Python | uv venv |
| Install everything from lock | uv sync |
| Install with dev extras | uv sync --extra dev |
| Add a dependency | uv add httpx |
| Add a dev dependency | uv add --dev pytest |
| Run a script in the venv | uv run python script.py |
| Run a tool ephemerally | uvx ruff check . |
| Install a tool globally | uv tool install ruff |
| Pin Python version | uv python pin 3.12 |
| Re-lock without upgrading | uv lock |
| Re-lock and upgrade everything | uv lock --upgrade |
| Re-lock and upgrade one dep | uv lock --upgrade-package httpx |
| Build wheel + sdist | uv build |
| Publish to PyPI | uv publish |
uv run <cmd> — run from the project's venv. Equivalent to activating
the venv first, but stateless.uvx <cmd> — run an ephemeral isolated tool. Doesn't pollute the
project's deps. Right for one-off ruff, mypy, bumpver.uv tool install — install a tool to the user's global tool dir.
Right for things you call from any cwd: ruff, pre-commit.[project]
dependencies = [
"httpx>=0.27,<1",
"pydantic>=2",
]
[project.optional-dependencies]
dev = ["pytest>=8", "ruff>=0.7", "mypy>=1.11"]
[tool.uv]
dev-dependencies = ["ipython"] # not exposed as an extra
[tool.uv].dev-dependencies is the modern home for dev-only deps. The
older [project.optional-dependencies].dev still works and is more
portable across non-uv tools (pip).
uv.lock. Reproducible installs depend on it.uv lock is non-destructive: it preserves existing pins.pyproject.toml changes (the
posttooluse-uv-lock hook does this automatically).uv sync --frozen to fail on drift.When uv add reports a conflict:
>= rather than ==), or drop the offender.[project].dependencies to override.requires-python = ">=3.11" in [project].uv python install 3.12 to fetch a managed interpreter.uv python pin 3.12 to record the project's default; uv writes
.python-version.uv add each line, delete requirements.txt.uv init --bare, copy [tool.poetry.dependencies] into
[project].dependencies, delete poetry.lock.requirements.in / requirements.txt; use uv.lock.What SKILL.md sets; muted values are Claude Code's defaults
python-plugin@cjhowe-us-marketplace is listed by cjhowe-us/marketplace — review the source before installing
npx claudepluginhub cjhowe-us/marketplace --plugin python-plugin6 skills in this plugin
/pythonUnified Python coding standard for projects in this workspace. Use this skill whenever reading, writing, editing, reviewing, or creating any `.py` file. Covers types (mypy --strict), lint/format (ruff), env + packaging (uv), tests (pytest), and publishing (PyPI). Per-tool deep dives live in sibling skills (`python-ruff`, `python-mypy`, `python-uv`, `python-pypi`, `python-pytest`) — load those for fine-grained guidance.
/python-mypyDeep guidance for mypy strict static typing. Use when configuring `[tool.mypy]`, debugging type errors, picking between `cast` / `assert isinstance` / TypeGuard, writing protocols vs ABCs, handling third-party libraries without stubs, dealing with pydantic plugin, silencing follow-imports for path-injected modules, or migrating an untyped codebase. Pairs with the unified `python` skill — load this one when the question is specifically about mypy.
/Other plugins' skills for the same job