/python-plugin:python-pypifrom python-plugin
Deep guidance for publishing Python packages to PyPI. Use when preparing a release, configuring `[project]` metadata for distribution, building wheels with `uv build`, publishing with `uv publish`, setting up Trusted Publishers / OIDC in GitHub Actions, picking version bump strategy, dealing with name collisions, or recovering from a botched release. Pairs with the unified `python` skill.
Ships in python-plugin. 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.
None: SKILL.md is the whole skill.
Use uv for build + publish. No twine, no flit-publish, no setup.py upload.
pyproject.toml must declare:
[project]
name = "your-package" # PyPI-unique; check availability first
version = "0.1.0" # PEP 440
description = "..." # one line, shown on PyPI listing
readme = "README.md"
requires-python = ">=3.11"
license = { text = "Apache-2.0" }
authors = [{ name = "...", email = "..." }]
keywords = ["..."]
classifiers = [
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
[project.urls]
Homepage = "https://github.com/owner/repo"
Source = "https://github.com/owner/repo"
Issues = "https://github.com/owner/repo/issues"
[build-system]
requires = ["setuptools>=68"]
build-backend = "setuptools.build_meta"
uv build # writes wheel + sdist to dist/
ls dist/ # sanity-check filenames
unzip -l dist/*.whl # eyeball wheel contents
uv publish # reads UV_PUBLISH_TOKEN or --token
Get a project-scoped token at https://pypi.org/manage/account/token/.
Store as UV_PUBLISH_TOKEN in your shell, never commit.
jobs:
publish:
runs-on: ubuntu-latest
environment: pypi
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v5
- run: uv build
- run: uv publish --trusted-publishing always
No tokens, no secrets. OIDC handshake authenticates the runner.
[project].version and tag the commit vX.Y.Z.MAJOR.MINOR.PATCH. Pre-releases: 0.1.0a1, 0.1.0rc1.bumpver or hatch version if manual bumping gets tedious.PyPI names are globally unique and case-insensitive. Check availability before you write the package:
curl -s https://pypi.org/pypi/<name>/json | head -c 200
If 404 the name is free. Common collision: anything resembling a
well-known framework. Pick a distinctive prefix
(<org>-<thing>, claude-<thing>).
pypi.org -> Manage -> Yank)
and publish a clean bump. Yank ≠ delete; the file remains downloadable
for users who pinned it.uv build succeeds, wheel + sdist look right.uv run python -m pytest green.uv run python -m mypy green.python -m readme_renderer).v<version>.What SKILL.md sets; muted values are Claude Code's defaults
python-plugin@cjhowe-us-marketplace is listed by cjhowe-us/marketplace — review the source before installing
npx claudepluginhub cjhowe-us/marketplace --plugin python-plugin6 skills in this plugin
/pythonUnified Python coding standard for projects in this workspace. Use this skill whenever reading, writing, editing, reviewing, or creating any `.py` file. Covers types (mypy --strict), lint/format (ruff), env + packaging (uv), tests (pytest), and publishing (PyPI). Per-tool deep dives live in sibling skills (`python-ruff`, `python-mypy`, `python-uv`, `python-pypi`, `python-pytest`) — load those for fine-grained guidance.
/python-mypyDeep guidance for mypy strict static typing. Use when configuring `[tool.mypy]`, debugging type errors, picking between `cast` / `assert isinstance` / TypeGuard, writing protocols vs ABCs, handling third-party libraries without stubs, dealing with pydantic plugin, silencing follow-imports for path-injected modules, or migrating an untyped codebase. Pairs with the unified `python` skill — load this one when the question is specifically about mypy.
/Other plugins' skills for the same job