Claude-skill-registry egg-info-hygiene
Handle `src/*.egg-info` diffs in Python repos (uv-driven) to avoid committing generated metadata unintentionally.
install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/egg-info-hygiene" ~/.claude/skills/majiayu000-claude-skill-registry-egg-info-hygiene && rm -rf "$T"
manifest:
skills/data/egg-info-hygiene/SKILL.mdsource content
<!-- BEGIN:compound:skill-managed -->
Purpose
Keep commits/PRs clean when
src/*.egg-info/** changes appear.
When To Use
shows changes undergit diff
(for examplesrc/*.egg-info/**
,PKG-INFO
).requires.txt- You did not intentionally change packaging metadata (version, dependencies, build backend).
Procedure
- Identify intent:
- If you did change packaging metadata (dependencies, project metadata, versioning), keep investigating whether
is expected to be committed in this repo.*.egg-info - If you did not, treat
as generated output.*.egg-info
- If you did change packaging metadata (dependencies, project metadata, versioning), keep investigating whether
- Confirm scope:
- If diffs are only
, treat as no-op for feature work.src/*.egg-info/** - If diffs include real source changes plus
, keep the source changes and exclude the*.egg-info
changes.*.egg-info
- If diffs are only
- Normalize the working tree using the repo's standard setup/install workflow (for uv repos, typically
anduv sync --dev
) and re-check whether the egg-info diffs persist.uv pip install -e . - If egg-info remains tracked and noisy, document the repo policy explicitly in
(do not edit tool-managed fences) so future work treats these changes consistently.AGENTS.md
Notes
is commonly generated by editable installs and may change due to environment/tooling rather than code intent.src/*.egg-info/**- Do not let egg-info-only diffs drive a commit unless the repo explicitly treats them as source-controlled artifacts.
Manual notes
This section is preserved when the skill is updated. Put human notes, caveats, and exceptions here.