Agent skill
uv-lockfile-hygiene
Triage unexpected uv.lock changes and generated src/*.egg-info diffs in uv-driven Python repos.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/uv-lockfile-hygiene
Metadata
Additional technical details for this skill
- version
- 1
- created at
- 2026-01-30T04:44:58.018Z
- updated at
- 2026-01-30T04:44:58.018Z
SKILL.md
Purpose
Keep dependency diffs clean and intentional in uv-driven repos.
When To Use
git diffshowsuv.lockchanges you did not expect.git diffalso showssrc/*.egg-info/**changes afteruv pip install -e ./uv run ....
Procedure
- Identify why
uv.lockchanged:- Check whether
pyproject.tomldependency constraints changed. - Re-run the intended install step (usually
uv sync --dev) and confirm the lock diff is stable.
- Check whether
- Decide what to commit:
- Commit
uv.lockonly when the dependency change is intentional (new/updated dependency, resolver behavior change, platform marker update). - Treat
src/*.egg-info/as generated metadata; do not commit by default.
- Commit
- If
src/*.egg-info/is untracked noise:- Prefer ignoring it via
.gitignore(src/*.egg-info/) rather than committing.
- Prefer ignoring it via
- If
src/*.egg-info/is already tracked:- Only commit it when doing explicit packaging/version metadata work; otherwise keep it out of feature commits.
Notes
uv.lockis the dependency source of truth;src/*.egg-info/is typically a local artifact of editable installs.
Manual notes
This section is preserved when the skill is updated. Put human notes, caveats, and exceptions here.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?