# Python Egg Info Hygiene

> Handle noisy git diffs from src/*.egg-info generated by editable installs (uv) and decide whether to commit or ignore. Use when this capability is needed.

- Skill: `tomevault-io/python-egg-info-hygiene` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/python-egg-info-hygiene`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/python-egg-info-hygiene/raw
- Safety review: pending
- 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/python-egg-info-hygiene

---

<!-- BEGIN:compound:skill-managed -->
# Purpose
Reduce churn from auto-generated `src/*.egg-info` changes (ex: `PKG-INFO`, `requires.txt`).

# When To Use
- `git status` / diff shows only `src/*.egg-info/**` modifications.
- The churn appears after `uv sync`, `uv pip install -e .`, or packaging metadata updates.

# Checklist
- Confirm scope: changes are limited to `src/*.egg-info/**`.
- Treat as generated by default:
  - Do not commit unless the repo intentionally tracks `*.egg-info`.
  - Call out that editable installs can rewrite these files.
- If a commit is requested anyway:
  - Verify the repo convention (historical commits include `src/*.egg-info/**`).
  - Ensure the underlying source of truth (ex: `pyproject.toml`) was actually updated.
  - Prefer committing the source-of-truth change over committing generated metadata.
- If the user wants to clean the workspace (local-only):
  - Recommend removing `src/*.egg-info` and re-running `uv pip install -e .` to regenerate.

# Notes
- `*.egg-info` is typically build/install output; committing it often creates noisy diffs.
<!-- END:compound:skill-managed -->

## Manual notes

_This section is preserved when the skill is updated. Put human notes, caveats, and exceptions here._

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

