publish

publish is a command for coding agents from Automattic/pressship. It costs 0 tokens per session (486 once invoked), scanned A, original, MIT.

A command for publishing WordPress plugins to WordPress.org, the official directory for WordPress extensions. It chooses or lets you choose whether to submit a plugin for review or release an approved plugin.

In plain words
What is it for?
Submitting plugins for review, releasing approved plugins, validating packages, and controlling publishing options from the command line.
Why use it?
It removes the need to manually decide and run the correct publishing process, while offering checks and dry runs before uploading.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/automattic/pressship/publish
Clone the repo
git clone --depth 1 https://github.com/Automattic/pressship

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/automattic/pressship/publish.svg)](https://agentmods.dev/commands/automattic/pressship/publish)
Your own site
<a href="https://agentmods.dev/commands/automattic/pressship/publish"><img src="https://agentmods.dev/badge/commands/automattic/pressship/publish.svg" alt="Measured on agentmods" 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 486 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00000 $0.00486
Opus 5 $0.00000 $0.00243
Sonnet 5 $0.00000 $0.00097
Haiku 4.5 $0.00000 $0.00049

Measured 5d ago against content hash 725ede55fe2f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

publish 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 5d 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.

website/docs/commands/publish.md · 51 lines

How it starts

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

Publish

pressship publish ./my-plugin

publish is the modernized happy path for WordPress.org plugins. It discovers the plugin and chooses the best publishing flow:

  • use release when running inside a WordPress.org SVN checkout from pressship get;
  • use submit when a matching WordPress.org review submission is pending or reuploadable;
  • use release when the plugin has an approved WordPress.org SVN repository and no pending review submission is found;
  • ask whether to submit or release when Pressship cannot confidently choose.

Options

pressship publish ./my-plugin --dry-run
pressship publish ./my-plugin --submit
pressship publish ./my-plugin --release --username WpOrgUser
pressship publish ./my-plugin --no-verify
pressship publish ./my-plugin --skip-plugin-check
pressship publish ./my-plugin --skip-readme-validator
pressship publish ./my-plugin --wp-path /path/to/wordpress
pressship publish ./my-plugin --ignore "assets/**/*.mp4"
pressship publish ./my-plugin --yes
pressship publish ./my-plugin --release --no-install-svn

Use --submit for review upload and --release for approved-plugin SVN release when you want to force the route.

Before uploading or committing an SVN release, publish verifies the plugin with readme validation and Plugin Check. Use --no-verify only when you intentionally want to bypass both checks.

From an SVN checkout root, Pressship treats trunk/ as the plugin directory:

pressship get my-plugin ./my-plugin
cd ./my-plugin
pressship version patch
pressship publish

For SVN releases, Pressship can infer the username from the saved WordPress.org login. On the first real release commit, it will ask for a generated WordPress.org SVN password and save it locally for later releases.

When the selected release version already exists in SVN as tags/<version>, Pressship stops with a “No version change detected” message. Bump the plugin version before publishing again.

If svn is missing during a release, Pressship can detect your operating system and ask before installing Subversion. Use --no-install-svn to skip that helper.

Read the full file on GitHub · 51 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. 5d ago First seen · 51 lines · 0 tokens per session scan A 725ede55fe2f

Subscribe to this mod's changes

publish is a command published in the GitHub repository Automattic/pressship (51 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 486 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-08-30.