Skip to content
Back to skills

Uv Python Workflow

ASecurity

Use uv as the exclusive Python package and environment manager. Use this skill when installing packages, syncing environments, running scripts, writing Dockerfiles, or doing any Python dependency management — never pip, pip-compile, or virtualenv directly.

  • 5 stars
  • 0 votes
  • 0 copies
  • 7 views
  • Added September 8, 2026
devopspythongobashdocker

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro shows the line behind each finding and how to fix it

Scanned October 4, 2026

npx -y skills add mitodl/agent-kit --skill uv-python-workflow --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Uv Python Workflow?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Uv Python Workflow
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/mitodl-uv-python-workflow/badge)](https://www.skillsdirectory.com/skills/mitodl-uv-python-workflow)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: uv-python-workflow
description: >
  Use uv as the exclusive Python package and environment manager. Use this skill
  when installing packages, syncing environments, running scripts, writing
  Dockerfiles, or doing any Python dependency management — never pip, pip-compile,
  or virtualenv directly.
license: BSD-3-Clause
metadata:
  category: python
---

# uv Python Workflow

All Python dependency and environment management in this codebase uses **`uv`** exclusively.

## Package management

- Add dependencies: `uv add <package>`
- Remove dependencies: `uv remove <package>`
- Install/sync the current project: `uv sync`
- Run a command inside the project environment: `uv run <command>`
- Never use `pip install`, `pip-compile`, or bare `python -m venv`.

## Workspace layout

Projects may be organized as a `uv` workspace. Code locations managed by `dg`
do **not** use `uv` workspaces — they rely on the `dg` workspace instead.

## Docker / container images

When building a Python app inside a Docker image, create a *relocatable* virtual
environment so it works after the image layers are assembled:

```dockerfile
RUN uv venv --relocatable /app/.venv
RUN uv sync --frozen --no-dev
```

Do **not** mount `ol-orchestrate-lib` (or any shared library) as a volume at
runtime. Shared libraries are installed as build-time dependencies only.

## Running hooks and type checks

```bash
uv run prek run --all-files
uv run mypy <package>
```

`prek` is pinned in the project's `prek` dependency group, which `dev`
includes, so `uv sync` installs it. A project that still declares
`pre-commit` instead runs `uv run pre-commit run --all-files`.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in devops →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.