publish-pack

publish-pack is a command for Claude Code from gosha70/code-copilot-team. It costs 0 tokens per session (404 once invoked), scanned A, original, MIT.

A coordinated release command for publishing the same pack to Maven Central, a public Java package repository, and PyPI, the main public Python package repository.

In plain words
What is it for?
It helps release Java and Python packages together through GitHub Actions and avoids reusing a failed release version.
Why use it?
It checks versions, tests, release notes, licenses, signing, and publishing credentials before creating a release tag.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md). Also seen: positional $N argument.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is bash scripts/publish.sh.

Good fit It helps release Java and Python packages together through GitHub Actions and avoids reusing a failed release version.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/gosha70/code-copilot-team
agentmods
npx agentmods add commands/gosha70/code-copilot-team/publish-pack

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 publish-pack

README.md
[![agentmods](https://agentmods.dev/badge/commands/gosha70/code-copilot-team/publish-pack/github.svg)](https://agentmods.dev/commands/gosha70/code-copilot-team/publish-pack)
Your own site
<a href="https://agentmods.dev/commands/gosha70/code-copilot-team/publish-pack"><img src="https://agentmods.dev/badge/commands/gosha70/code-copilot-team/publish-pack/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 publish-pack

Your own site · 80×15
<a href="https://agentmods.dev/commands/gosha70/code-copilot-team/publish-pack"><img src="https://agentmods.dev/badge/commands/gosha70/code-copilot-team/publish-pack.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 404 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 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.00000 $0.00404
Opus 5.5 $0.00000 $0.00162
Sonnet 5.5 $0.00000 $0.00081
Haiku 4.5 $0.00000 $0.00040

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

Security

Grade A, and why

publish-pack scanned grade A with 0 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

shared/templates/domain-pack/commands/publish-pack.md · 37 lines

What it actually says

/publish-pack

Cut a coordinated release to Maven Central + PyPI.

Pre-release checklist

  • content/manifest.yaml version bumped per SemVer (major if entries removed/renamed, minor if additive, patch otherwise).
  • Both wrappers' test suites pass on master/main.
  • CHANGELOG (or release notes) updated with the same version.
  • License-data file in content/ reviewed if sources changed.
  • Required secrets configured in the GitHub repo: SIGNING_KEY, SIGNING_PASSWORD, OSSRH_USERNAME, OSSRH_TOKEN, and PyPI trusted publishing OR PYPI_TOKEN.

Cut the release

# Tag the release (must match content/manifest.yaml)
v=$(awk -F': *' '/^version:/ { gsub(/"/, "", $2); print $2; exit }' content/manifest.yaml)
git tag -a "v$v" -m "Release v$v"
git push origin "v$v"

The pack-publish.yml workflow:

  1. preflight — verifies the tag matches content/manifest.yaml.
  2. publish-jvm — builds, signs, and publishes to Maven Central (skipped with a notice if SIGNING_KEY is empty).
  3. publish-pypi — builds sdist + wheel, publishes via PyPI trusted publishing.

If either publish step fails, do not retag with the same version — bump patch and retry. Maven Central rejects re-publishes of the same coordinates; PyPI yanks but does not allow overwrites.

Local dry run

bash scripts/publish.sh

Uses publishToMavenLocal for the JVM side so you can verify artifact shape without touching Central. PyPI side requires PYPI_TOKEN or it will prompt.

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 First seen · 37 lines · 0 tokens per session scan A b496ef9924be

Subscribe to this mod's changes

publish-pack is a command published in the GitHub repository gosha70/code-copilot-team (7 stars, last pushed 17d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 404 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.