Borrowing it
Nothing to install: this file belongs to circuit-synth/kicad-sch-api. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/circuit-synth/kicad-sch-api/main/.claude/commands/dev/publish-pypi.mdgit clone --depth 1 https://github.com/circuit-synth/kicad-sch-apiWrote 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.
[](https://agentmods.dev/commands/circuit-synth/kicad-sch-api/publish-pypi)<a href="https://agentmods.dev/commands/circuit-synth/kicad-sch-api/publish-pypi"><img src="https://agentmods.dev/badge/commands/circuit-synth/kicad-sch-api/publish-pypi/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.
<a href="https://agentmods.dev/commands/circuit-synth/kicad-sch-api/publish-pypi"><img src="https://agentmods.dev/badge/commands/circuit-synth/kicad-sch-api/publish-pypi.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.05446 |
| Opus 5 | $0.00000 | $0.02723 |
| Sonnet 5 | $0.00000 | $0.01089 |
| Haiku 4.5 | $0.00000 | $0.00545 |
Grade D, and why
publish-pypi scanned grade D with 2 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 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.
Asks for rootmediumPrivilege escalation
A mod that escalates privileges can change anything on the machine, not only the project.
- Set proper file permissions: `chmod 600 ~/.pypirc` Recursive force deletehighDestructive command
rm -rf with a variable or a broad path is one typo away from removing the wrong tree.
rm -rf build/ dist/ *.egg-info/ kicad_sch_api.egg-info/ How it starts
The opening of the file, as written. The whole thing — 711 lines — stays where its author put it; the contents beside it link to each section on GitHub.
PyPI Release Command - kicad-sch-api
Usage
/publish-pypi <version> [--test-only] [--check-only]
⚠️ CRITICAL: Version number is MANDATORY - command will fail if not provided!
Description
Complete PyPI release pipeline - from testing to tagging to publishing. This command handles version management, git operations, comprehensive testing, and PyPI publication.
Parameters
version- REQUIRED Version number (e.g., "0.4.1", "1.0.0", "0.5.0-beta.1")--test-only: Publish to Test PyPI only (for validation)--check-only: Run all checks without publishing
What This Command Does
This command automates the complete release process:
1. Pre-Release Validation
- Check branch status - Ensure we're on main branch
- Validate version format - Semantic versioning check
- Check for uncommitted changes - Ensure clean working directory
- Sync with remote - Fetch latest changes from origin
- Version conflict check - Ensure version doesn't already exist on PyPI or git tags
2. Version Management
- Update pyproject.toml - Set new version number
- Commit version changes - Clean commit for version bump
- Show version comparison - Display current vs new version
3. Testing and Validation
- Run full test suite - All tests must pass
- Code quality checks - Black, isort, mypy, flake8
- Format preservation tests - Critical for KiCAD compatibility
- Build package - Create wheel and sdist
- Test installation - Verify package installs correctly
- Import validation - Ensure package imports work
4. Git Operations
- Create release tag - Tag commit with version number
- Push release tag - Push tag to origin
- Create GitHub release - Generate release notes and publish
5. PyPI Publication
- Build distributions - Create wheel and sdist
- Upload to PyPI - Publish to registry
- Verify upload - Check package is available
6. Post-Release Verification
- Test installation from PyPI - Verify package works
- Display release summary - Show URLs and next steps
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.
- 10d ago First seen · 711 lines · 0 tokens per session scan D f72c259e9d62
publish-pypi is a command published in the GitHub repository circuit-synth/kicad-sch-api (52 stars, last pushed 9mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 5,446 tokens. A static security scan graded it D with 2 findings (asks for root, recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other commands, from other repositories
changelog
Generate a changelog entry from git commits since the last tag using conventional commit format.
pr
Create a GitHub PR from current branch with unpushed commits — discovers templates, analyzes changes, pushes.
pre-release
Parallel pre-release check — fires release-captain + security-reviewer + code-reviewer simultaneously. Go/no-go in one command before you ship.
ship
A release command for preparing code changes as separate Git commits, creating release notes, and adding a version tag. Git is a system for tracking code changes, and a tag marks a specific release.
release
Verify, sweep docs, cut a version — then hand the release sequence back.
release
Prepare and publish a GitHub release.