Skip to content

python

Context skill for Python projects managed with uv, covering workspaces, ML tracking, distributed compute, GPU kernels, and service architecture.

Requirements

  • uv — Python package and project manager (curl -LsSf https://astral.sh/uv/install.sh | sh)

Philosophy

uv is the only package manager — pip and bare python invocations are never used; all commands go through uv run. Every project commits pyproject.toml, uv.lock, and .python-version together, and multi-package workspaces share a single uv.lock. All packages use a src/<package>/ layout. Heavy or optional imports (GPU backends, Ray, Warp) are deferred to function bodies to avoid breaking hosts that lack those backends. Domain types crossing JSON or IPC boundaries use Pydantic v2 BaseModel; internal argument bundles use @dataclass.

Recipes

References

Released under the MIT License.