# Uv Rules

> Rules and guidelines for using uv as the Python package manager in this project. Use when managing dependencies, running commands, or troubleshooting the venv. Use when this capability is needed.

- Skill: `tomevault-io/uv-rules` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/uv-rules`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/uv-rules/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/uv-rules

---


# uv Rules

This project uses **uv** as its Python package and project manager. Follow these rules strictly.

## Commands

- **Add dependency**: `uv add <package>` (or `uv add --dev <package>`)
- **Remove dependency**: `uv remove <package>`
- **Run commands**: `uv run <command>`
- **Install dependencies**: `uv sync --all-extras --dev`
- **CI lockfile check**: `uv sync --locked`

## Rules

- **Never** edit `pyproject.toml` dependencies by hand — always use `uv add`/`uv remove` so the lockfile stays in sync.
- **Never** use `pip install`, `python -m pip`, or `uv pip`. Mixing `uv pip` with `uv sync` corrupts the editable install and breaks the venv.
- `uv.lock` is auto-managed. Do not manually edit it.
- **If the venv breaks**: `rm -rf .venv && uv sync --all-extras --dev` to recreate from scratch.

---
> Converted and distributed by [TomeVault](https://tomevault.io/claim/dantsai0903) — claim your Tome and manage your conversions.
<!-- tomevault:4.0:skill_md:2026-04-11 -->

