Agent skill
python-egg-info-hygiene
Handle noisy git diffs from src/*.egg-info generated by editable installs (uv) and decide whether to commit or ignore.
Stars
163
Forks
31
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/python-egg-info-hygiene
Metadata
Additional technical details for this skill
- version
- 1
- created at
- 2026-01-30T00:40:06.910Z
- updated at
- 2026-01-30T00:40:06.910Z
SKILL.md
Purpose
Reduce churn from auto-generated src/*.egg-info changes (ex: PKG-INFO, requires.txt).
When To Use
git status/ diff shows onlysrc/*.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.
- Do not commit unless the repo intentionally tracks
- 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.
- Verify the repo convention (historical commits include
- If the user wants to clean the workspace (local-only):
- Recommend removing
src/*.egg-infoand re-runninguv pip install -e .to regenerate.
- Recommend removing
Notes
*.egg-infois typically build/install output; committing it often creates noisy diffs.
Manual notes
This section is preserved when the skill is updated. Put human notes, caveats, and exceptions here.
Didn't find tool you were looking for?