agentleFS
EnjoyoerEnjoyoer/loadout/skills/engineering/uv-python/SKILL.md

uv-python

Skill0 starsChanged 25 days agoMITView on GitHub

Manage Python dependencies while preserving the project's existing workflow. Prefer uv for new projects and use it for an existing project when requested or needed for the scoped task; do not migrate requirements.txt-only projects merely because dependencies were touched.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 2 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Commit pyproject.toml and uv.lock.

    line 21
  2. Very specific:

    After editing pyproject.toml or changing dependencies:

    line 25
  3. Very specific:

    Remove or archive requirements.txt only after the user-approved migration is committed and the new lockfile reproduces the required …

    line 51
  4. Very specific:

    Prefer uv add <package> over manual pyproject.toml edits in uv-managed projects when possible.

    line 55
  5. Distinctive:

    Run the existing project's required lock and sync/install checks after dependency changes.

    line 56
  6. Distinctive:

    Do not replace a working existing dependency workflow with uv without an explicit request or a concrete scoped necessity.

    line 58

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Python dependencies

First identify the project's existing dependency workflow from its committed files and documented commands. Preserve that workflow for existing projects. Prefer uv for new projects, and use it for an existing project only when the user requests migration or the scoped task genuinely requires it.

New project

uv init
uv add <package>

Commit pyproject.toml and uv.lock. Add .venv/ to .gitignore if missing.

Existing uv project

After editing pyproject.toml or changing dependencies:

uv lock
uv sync

On clone or a new machine, use the project's documented setup, normally:

uv sync

Existing non-uv project

Keep its current requirements, lockfile, package manager, and setup commands. Do not add pyproject.toml, create uv.lock, or remove requirements.txt automatically. If the user requests migration, or the scoped task cannot be completed without it, agree the migration boundary first and preserve the existing dependency set while moving it to uv.

For a requested or necessary requirements.txt migration:

uv init
uv add -r requirements.txt
uv lock
uv sync

Remove or archive requirements.txt only after the user-approved migration is committed and the new lockfile reproduces the required environment.

Rules

  • Prefer uv add <package> over manual pyproject.toml edits in uv-managed projects when possible.
  • Run the existing project's required lock and sync/install checks after dependency changes.
  • Never commit .venv/.
  • Do not replace a working existing dependency workflow with uv without an explicit request or a concrete scoped necessity.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.