Skip to content
Back to skills

Egg Info Hygiene

ASecurity

Handle `src/*.egg-info` diffs in Python repos (uv-driven) to avoid committing generated metadata unintentionally.

  • 755 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added February 8, 2026
developmentpythongitbackend

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro shows the line behind each finding and how to fix it

Scanned February 12, 2026

npx -y skills add majiayu000/claude-skill-registry --skill egg-info-hygiene --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Egg Info Hygiene?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Egg Info Hygiene
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-egg-info-hygiene/badge)](https://www.skillsdirectory.com/skills/majiayu000-egg-info-hygiene)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: egg-info-hygiene
description: Handle `src/*.egg-info` diffs in Python repos (uv-driven) to avoid committing generated metadata unintentionally.
license: MIT
compatibility: opencode,claude
metadata:
  created_at: "2026-01-30T00:47:20.147Z"
  updated_at: "2026-01-30T00:47:20.147Z"
  version: "1"
---
<!-- BEGIN:compound:skill-managed -->
# Purpose
Keep commits/PRs clean when `src/*.egg-info/**` changes appear.

# When To Use
- `git diff` shows changes under `src/*.egg-info/**` (for example `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 `*.egg-info` is expected to be committed in this repo.
  - If you did not, treat `*.egg-info` as generated output.
- Confirm scope:
  - If diffs are only `src/*.egg-info/**`, treat as no-op for feature work.
  - If diffs include real source changes plus `*.egg-info`, keep the source changes and exclude the `*.egg-info` changes.
- Normalize the working tree using the repo's standard setup/install workflow (for uv repos, typically `uv sync --dev` and `uv pip install -e .`) and re-check whether the egg-info diffs persist.
- If egg-info remains tracked and noisy, document the repo policy explicitly in `AGENTS.md` (do not edit tool-managed fences) so future work treats these changes consistently.

# Notes
- `src/*.egg-info/**` is commonly generated by editable installs and may change due to environment/tooling rather than code intent.
- Do not let egg-info-only diffs drive a commit unless the repo explicitly treats them as source-controlled artifacts.
<!-- END:compound:skill-managed -->

## Manual notes

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

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.