ship

ship is a command for Claude Code from ShaheerKhawaja/ProductionOS. It costs 31 tokens per session (512 once invoked), scanned A, original, MIT.

A release command that prepares a code branch for delivery by merging the base branch, running tests, reviewing changes, updating the version and changelog, and creating a pull request.

In plain words
What is it for?
Testing and reviewing a branch, updating release metadata, committing and pushing changes, and opening a pull request.
Why use it?
It gathers the repeated release checks and repository updates into one workflow, and stops when tests or critical review checks fail.

Command for Claude Code

Written for Claude Code: arguments in frontmatter.

Part of the productionos plugin — 4 skills, 41 commands, 11 agents shipped together

Good fit Testing and reviewing a branch, updating release metadata, committing and pushing changes, and opening a pull request.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/shaheerkhawaja/productionos/ship
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.

Clone the repo
git clone --depth 1 https://github.com/ShaheerKhawaja/ProductionOS

Made for: Claude Code.

Or install productionos, the plugin that ships this one along with the rest of its 4 skills, 41 commands, 11 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 ship

README.md
[![agentmods](https://agentmods.dev/badge/commands/shaheerkhawaja/productionos/ship/github.svg)](https://agentmods.dev/commands/shaheerkhawaja/productionos/ship)
Your own site
<a href="https://agentmods.dev/commands/shaheerkhawaja/productionos/ship"><img src="https://agentmods.dev/badge/commands/shaheerkhawaja/productionos/ship/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 ship

Your own site · 80×15
<a href="https://agentmods.dev/commands/shaheerkhawaja/productionos/ship"><img src="https://agentmods.dev/badge/commands/shaheerkhawaja/productionos/ship.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 31 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 512 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.00031 $0.00512
Opus 5 $0.00015 $0.00256
Sonnet 5 $0.00006 $0.00102
Haiku 4.5 $0.00003 $0.00051

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

Security

Grade A, and why

ship 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 8d 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.

.claude/commands/ship.md · 67 lines

What it actually says

/ship — Ship Workflow

Merge base, test, review, version, changelog, commit, push, PR. One command to ship.

Step 0: Preamble

Run templates/PREAMBLE.md. Detect base branch.

Step 1: Merge Base Branch

git fetch origin
git merge origin/$(git symbolic-ref refs/remotes/origin/HEAD | sed 's@^refs/remotes/origin/@@') --no-edit

If conflicts: resolve or abort and report.

Step 2: Run Tests

bun test 2>&1 || npm test 2>&1 || pytest 2>&1

If tests fail: STOP. Do not ship broken code. Report failures.

Step 3: Review Diff

Run /review on the current branch diff. If CRITICAL issues found: STOP and report.

Step 4: Bump VERSION

Auto-detect bump type from commit messages:

  • feat: → minor
  • fix: → patch
  • BREAKING → major
  • Override with $ARGUMENTS.version_bump

Update VERSION file, package.json version, plugin.json version.

Step 5: Update CHANGELOG

Append entry with date, version, and summary of changes from git log.

Step 6: Self-Eval Gate

Run templates/SELF-EVAL-PROTOCOL.md. Score must be >= 8.0 to proceed. Questions: Are tests passing? Is the diff clean? Are there uncommitted changes?

Step 7: Commit

git add -A
git commit -m "release: v{new_version} — {summary}"

Step 8: Push + PR

git push origin HEAD
gh pr create --title "release: v{new_version}" --body "{changelog entry}"

Guardrails

  • NEVER push to main directly
  • NEVER ship with failing tests
  • NEVER ship with CRITICAL review findings
  • Self-eval must pass before push
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. 8d ago First seen · 67 lines · 31 tokens per session scan A 54d762d001ed

Subscribe to this mod's changes

ship is a command published in the GitHub repository ShaheerKhawaja/ProductionOS (8 stars, last pushed 4mo ago), licensed MIT. It adds 31 tokens to every session and 512 once invoked, about $0.0002 per session on Opus 5. 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-31.