pypi-publish

pypi-publish is a skill for Claude Code from queelius/claude-anvil. It costs 76 tokens per session (1,932 once invoked), scanned C, original, MIT.

A workflow for publishing a Python package to PyPI, the public index where Python packages are distributed. It checks package metadata, runs tests, builds packages, and tests the result on TestPyPI before publication.

In plain words
What is it for?
Use it to prepare a Python package, verify its tests and name, version, README, and dependencies, build distributions, and publish through PyPI.
Why use it?
It reduces mistakes in package configuration and gives a separate test publication step before sending a package to the main index.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the pub-pipeline plugin — 5 skills, 5 agents shipped together

Good fit Use it to prepare a Python package, verify its tests and name, version, README, and dependencies, build distributions, and publish through PyPI.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add queelius/claude-anvil
Claude Code
/plugin install pub-pipeline

Made for: Claude Code.

Or install pub-pipeline, the plugin that ships this one along with the rest of its 5 skills, 5 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for pypi-publish

README.md
[![agentmods](https://agentmods.dev/badge/skills/queelius/claude-anvil/pypi-publish/github.svg)](https://agentmods.dev/skills/queelius/claude-anvil/pypi-publish)
Your own site
<a href="https://agentmods.dev/skills/queelius/claude-anvil/pypi-publish"><img src="https://agentmods.dev/badge/skills/queelius/claude-anvil/pypi-publish/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for pypi-publish

Your own site · 80×15
<a href="https://agentmods.dev/skills/queelius/claude-anvil/pypi-publish"><img src="https://agentmods.dev/badge/skills/queelius/claude-anvil/pypi-publish.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 76 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,932 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 3 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00076 $0.01932
Opus 5.5 $0.00030 $0.00773
Sonnet 5.5 $0.00015 $0.00386
Haiku 4.5 $0.00008 $0.00193

Measured 1mo ago against content hash fb5e830b6d7d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

pypi-publish scanned grade C with 3 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Downloads and executes remote codemediumSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

curl -s https://pypi.org/pypi/<name>/json | python3 -c 'import json,sys; print(sorted(json.load(sys.stdin)["releases"]))'

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

Recursive force deletemediumDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

cd /path/to/package && rm -rf dist/* && python -m build && python -m twine check --strict dist/*

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -s https://pypi.org/pypi/<name>/json | python3 -c 'import json,sys; print(sorted(json.load(sys.stdin)["releases"]))'
pub-pipeline/skills/pypi-publish/SKILL.md · 129 lines

How it starts

The opening of the file, as written. The whole thing — 129 lines — stays where its author put it; the contents beside it link to each section on GitHub.

PyPI Package Publication

Audit, build, and publish a Python package to PyPI. The default publishing path is a trusted publisher: a GitHub Actions workflow authenticated by OIDC, triggered by a GitHub release, with no long-lived token. Every upload command here is non-interactive; never run anything that prompts for credentials.

Workflow

1. Locate the Package (Glob tool)

Package root: $ARGUMENTS if given, else the current directory. Look for pyproject.toml (preferred), setup.py, or setup.cfg. If there are none, say so: point to /pub-pipeline:r-publish when a DESCRIPTION file exists, or the papermill plugin for a .tex paper.

2. Load User Config (Read tool)

Read .claude/pub-pipeline.local.md if it exists (author metadata for authors). If missing, offer to create it from ${CLAUDE_PLUGIN_ROOT}/docs/user-config-template.md.

3. Audit Package Metadata (Read tool)

Field Check
name Present, follows PyPI naming rules (lowercase, hyphens/underscores only)
version Present, PEP 440 (e.g. "1.0.0", "0.1.0a1")
description Present, concise one-line summary
readme Points to an existing README file
license SPDX expression string (e.g. "MIT"), per PEP 639; the {text = ...} / {file = ...} table form is deprecated
license-files Globs for license files (e.g. ["LICENSE"]); each must match a file
authors or maintainers At least one with name and email
urls Homepage, documentation, repository, bug tracker
classifiers Development status, audience, Python versions. No License :: classifiers (deprecated by PEP 639; build tools may reject them alongside license)
requires-python Floor at a non-EOL release (">=3.11" as of 2026-10, when 3.10 reached end of life)

Recommended: keywords, dependencies, optional-dependencies (dev, test, docs).

4. Verify Tests Pass (Bash tool)

Run python -m pytest (or python -m unittest discover if pytest is not the runner). If tests fail, stop and report. Do not publish.

Read the full file on GitHub · 129 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · -139 lines · +23 tokens per session scan B → C fb5e830b6d7d
  2. 1mo ago First seen · 268 lines · 53 tokens per session scan B 7972ce45f63b

Subscribe to this mod's changes

pypi-publish is a skill published in the GitHub repository queelius/claude-anvil (3 stars, last pushed 1mo ago), licensed MIT. It adds 76 tokens to every session and 1,932 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it C with 3 findings (downloads and executes remote code, recursive force delete, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-19.

Related

pypi-publish compared with skills from other repositories

pypi-publish next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pypi-publishqueelius/claude-anvilSkill31mo agoMITC76Claude Code
python-servicesiliaal/whetstoneSkill37todayMITA48Claude Code, Codex
ia-python-servicesiliaal/whetstoneSkill37todayMITA56Claude Code
fastapi-expertSKB3002/agenthubSkill47mo agononeA37Claude Code
python-patternsSKB3002/agenthubSkill47mo agononeA30Claude Code
sqlalchemy-expertSKB3002/agenthubSkill47mo agononeA37Claude Code
shiny-py-optimizeposit-dev/skillsSkill58222d agoMITA105Claude Code