package-management-python
Skill9 starsChanged 8 months agoMITView on GitHub
Manage Python packages, virtual environments, and dependencies using uv. Use when installing packages, creating virtual environments, initializing Python projects, resolving dependencies, or running Python scripts.
- Installs packages
In this repository31 other files it gives its agents.
- git-workflow-releaseSkill
- skill-authoring-generalSkill
- git-workflow-releaseSkill
- skill-authoring-generalSkill
- accessibility-generalSkill
- accessibility-react-nativeSkill
- architecture-generalSkill
- architecture-pythonSkill
- assistant-rocky-lti-assistSkill
- assistant-ucd-mobileSkill
- ci-cd-github-actionsSkill
- code-review-generalSkill
- code-review-pythonSkill
- code-review-typescriptSkill
- data-science-pythonSkill
- design-frontendSkill
- documentation-projectSkill
- documentation-readmeSkill
- git-workflow-generalSkill
- git-workflow-monorepoSkill
- git-workflow-pr-generatorSkill
- git-workflow-releaseSkill
- infrastructure-terraformSkill
- project-management-jiraSkill
- refactoring-typescriptSkill
- security-generalSkill
- skill-authoring-generalSkill
- testing-generalSkill
- testing-javaSkill
- testing-pythonSkill
- testing-typescriptSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 0 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
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
- Very specific: line 14
ALWAYS: use uv add <package> (for pyproject.toml-managed projects) or uv pip install <package> (for ad-hoc installs)
- Very specific: line 18
ALWAYS: use uv venv to create virtual environments
- Very specific: line 21
Use uv pip compile to generate lockfiles (requirements.txt or uv.lock) instead of pip freeze
- Very specific: line 24
Use uv init when initializing a new Python project
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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.
Files
Python Package Management with uv
This workspace exclusively uses uv for Python package management, dependency resolution, and virtual environment handling. Never fall back to pip or python -m venv unless uv explicitly fails.
Rules
Package Installation
- NEVER use
pip install - ALWAYS use
uv add <package>(forpyproject.toml-managed projects) oruv pip install <package>(for ad-hoc installs)
Virtual Environments
- NEVER use
python -m venv - ALWAYS use
uv venvto create virtual environments
Dependency Resolution
- Use
uv pip compileto generate lockfiles (requirements.txtoruv.lock) instead ofpip freeze
Project Initialization
- Use
uv initwhen initializing a new Python project
Performance
- Assume
uvis available; do not fall back topipunlessuvexplicitly fails
Command Reference
| Task | Command |
| Install / add a package | uv add <package> |
| Ad-hoc install (no pyproject.toml) | uv pip install <package> |
| Run a script | uv run <script.py> |
| Sync environment to lockfile | uv sync |
| Install a dev tool | uv tool install <tool> |
| Create a virtual environment | uv venv |
| Compile a lockfile | uv pip compile requirements.in -o requirements.txt |
| Initialize a new project | uv init |
Examples
Adding a dependency
# Good
uv add requests
# Bad — never do this
pip install requestsCreating a virtual environment
# Good
uv venv .venv
# Bad — never do this
python -m venv .venvRunning a script
uv run main.pySyncing dependencies after cloning a project
uv syncDoes 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
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.

