maid-runner-mcp: Command for Claude Code

.claude/commands/pypi-release.md

pypi-release is a command for Claude Code from mamertofabian/maid-runner-mcp. It costs 11 tokens per session (979 once invoked), scanned C, original, MIT.

A command for preparing and publishing a Python package release to PyPI, the main public package index for Python software.

In plain words
What is it for?
Use it to choose a patch, minor, or major version bump, run linting and tests, update release files, and publish through GitHub Actions.
Why use it?
It organizes version changes, quality checks, changelog updates, package building, and publishing in one release process.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the TodoWrite tool.

This is mamertofabian/maid-runner-mcp's own configuration. It tells Claude Code how to work on maid-runner-mcp itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything maid-runner-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to mamertofabian/maid-runner-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/mamertofabian/maid-runner-mcp/main/.claude/commands/pypi-release.md
Clone the repo
git clone --depth 1 https://github.com/mamertofabian/maid-runner-mcp

Made for: Claude Code.

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-release

README.md
[![agentmods](https://agentmods.dev/badge/commands/mamertofabian/maid-runner-mcp/pypi-release/github.svg)](https://agentmods.dev/commands/mamertofabian/maid-runner-mcp/pypi-release)
Your own site
<a href="https://agentmods.dev/commands/mamertofabian/maid-runner-mcp/pypi-release"><img src="https://agentmods.dev/badge/commands/mamertofabian/maid-runner-mcp/pypi-release/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-release

Your own site · 80×15
<a href="https://agentmods.dev/commands/mamertofabian/maid-runner-mcp/pypi-release"><img src="https://agentmods.dev/badge/commands/mamertofabian/maid-runner-mcp/pypi-release.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 11 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 979 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. 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.00011 $0.00979
Opus 5 $0.00005 $0.00490
Sonnet 5 $0.00002 $0.00196
Haiku 4.5 $0.00001 $0.00098

Measured 10d ago against content hash 8e61e42e2d08, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade C, and why

pypi-release scanned grade C with 1 finding 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 10d 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.

Recursive force deletehighDestructive command

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

- Clean old artifacts: `rm -rf dist/ build/ *.egg-info`
.claude/commands/pypi-release.md · 103 lines

How it starts

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

PyPI Release Automation

Automate the complete PyPI release process including version bumping, changelog updates, building, and publishing via GitHub Actions.

Your Task

Prepare and publish a new PyPI release for this project. Follow these steps:

  1. Determine Version Number

    • Read current version from pyproject.toml
    • Check recent commits since last release: git log --oneline -20
    • Determine version bump type: $ARGUMENTS (default: patch)
      • patch (0.1.2 → 0.1.3): Bug fixes, documentation, minor changes
      • minor (0.1.2 → 0.2.0): New features, backward-compatible
      • major (0.1.2 → 1.0.0): Breaking changes
    • Calculate new version number
  2. Run Code Quality Checks

    • Run all quality checks FIRST:
      make lint        # Fix any linting errors first
      make format      # Format code
      make test        # Run all tests - MUST PASS
      
    • If any checks fail, STOP and report errors to user
    • Use TodoWrite to track progress
  3. Update Version and Changelog

    • Update version in pyproject.toml
    • Update CHANGELOG.md:
      • Add new version section with today's date (2025-11-29 format)
      • Categorize changes under: Fixed, Added, Changed, Removed
      • Update comparison links at bottom
    • Review git commits to write accurate changelog entries
  4. Build Distribution Packages

    • Clean old artifacts: rm -rf dist/ build/ *.egg-info
    • Build packages: python -m build
    • Verify artifacts: ls -lh dist/
    • Check contents: tar -tzf dist/*.tar.gz | head -30
    • Validate with twine: python -m twine check dist/*
  5. Automated Release via GitHub Actions

    • Stage and commit changes:
      git add pyproject.toml CHANGELOG.md
      git commit -m "chore: bump version to X.Y.Z for release
      
      - [Summary of key changes]
      - [One-line descriptions]"
      
    • Push to main: git push origin main
    • Create and push version tag:
      git tag vX.Y.Z
      git push origin vX.Y.Z
      
    • Monitor GitHub Actions workflow:
      gh run list --limit 2
      sleep 60 && gh run list --limit 2
      

Read the full file on GitHub · 103 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. 10d ago First seen · 103 lines · 11 tokens per session scan C 8e61e42e2d08

Subscribe to this mod's changes

pypi-release is a command published in the GitHub repository mamertofabian/maid-runner-mcp (0 stars, last pushed 5mo ago), licensed MIT. It adds 11 tokens to every session and 979 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.