/python-packaging:python-packagingfrom python-packaging
Builds and validates installable Python distributions and uv workflows, covering pyproject.toml build and metadata, dependency tables, package data, entry points, wheel and sdist checks, uv lock/sync in CI and Docker, and PyPI trusted publishing. Use when changing [build-system] or [project], uv.lock, console scripts, or a release workflow.
Ships in python-packaging. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Keep the repository's build backend (hatchling, setuptools, flit-core, pdm-backend, poetry-core, maturin, uv_build), resolver, layout, and release process. Don't migrate package managers or backends as part of packaging work. Use python for code and import behavior. Not for choosing libraries or for registry accounts and credentials; use dependency-vetting, if installed, to vet a new dependency.
pyproject.toml, backend-specific tables ([tool.hatch.*], [tool.setuptools.*], MANIFEST.in, etc.), the version source, and existing build or release scripts.requires-python, public modules, dependencies, extras, package data, entry points, and which artifacts ship.resolve-library-id, then query-docs) rather than borrowing another backend's keys.When the repo uses uv (uv.lock or [tool.uv]), read references/uv.md for the lock, sync, CI (--locked vs --frozen), Docker, index pinning, release cooldown, workspace, and Python-pin rules. It also covers uvx, PEP 723 scripts, uv export and uv audit.
[build-system].requires holds only what the backend needs to build.[project].dependencies holds only what every installation imports at runtime.[project.optional-dependencies]. Dev, test, lint, and release tools go in [dependency-groups] (PEP 735) or the tool's own dev mechanism, never in runtime dependencies.uv lock, poetry lock, pdm lock). Never hand-edit it.readme and its content type, license / license-files, classifiers, and URLs.version is dynamic (VCS tag, __about__.py), confirm the input is inside the sdist so the sdist can rebuild.src/ just for packaging.importlib.resources.files(pkg), not paths relative to __file__ or the checkout.[project.scripts] entries only for requested commands. Point them at a stable callable with a clear exit-code contract, and keep existing command names.__init__.py and a regular package.dist/), then build both artifacts with the project's frontend, typically uv build or python -m build.unzip -l dist/*.whl and tar tzf dist/*.tar.gz. The wheel needs its packages, data, METADATA, and entry_points.txt. The sdist needs every source, metadata, and version input required to rebuild.twine check dist/* validates metadata rendering when twine is available.A checkout import or editable install doesn't prove the distribution works.
uv venv /tmp/pkgcheck-whl) and install the wheel by path.cd out of the checkout, then import the package, run each changed entry point, and exercise any data lookup.Resolve dependencies through the project's normal index policy. Don't point at local source paths or production credentials to make validation pass. If artifacts can't be fetched offline, report the check as blocked.
When the repo has a supported Python matrix (tox, nox, CI), don't claim cross-version support from one interpreter.
dist/ output or credentials are staged.| Signal | Look first at | Avoid |
|---|---|---|
| Import works only in checkout | Installed wheel from outside the repo; discovery config | sys.path edits, editable-install evidence |
| Data file missing after install | Wheel and sdist listings; backend include rules | Reading from a checkout-relative path |
| sdist won't build | Files and dynamic-version inputs in the sdist | Shipping a wheel instead of fixing the sdist |
| Console script fails | entry_points.txt and the target callable | Testing only the callable from source |
| Unexpected dependency | Build/runtime/extra boundaries and markers | Moving dev tools into runtime deps |
| Namespace collision | Discovery and install order for each distribution | Namespace discovery for an ordinary package |
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub adminhead/claude-plugins --plugin python-packaging