ship

ship is a command for Claude Code from MartyBonacci/specswarm. It costs 17 tokens per session (4,822 once invoked), scanned A, original, MIT.

A command that performs final quality checks and merges a feature or bug fix into its parent Git branch.

In plain words
What is it for?
Use it to check the repository, run tests and quality analysis, apply configured thresholds, and optionally run a security audit before merging.
Why use it?
It helps prevent code that fails project quality standards from being merged.

Command for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: mentions subagents; names the AskUserQuestion tool; positional $N argument.

Part of the ss plugin — 10 skills, 34 commands, 6 agents, 4 hooks shipped together

Good fit Use it to check the repository, run tests and quality analysis, apply configured thresholds, and optionally run a security audit before merging.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/martybonacci/specswarm/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/MartyBonacci/specswarm

Made for: Claude Code.

Or install ss, the plugin that ships this one along with the rest of its 10 skills, 34 commands, 6 agents, 4 hooks.

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/martybonacci/specswarm/ship/github.svg)](https://agentmods.dev/commands/martybonacci/specswarm/ship)
Your own site
<a href="https://agentmods.dev/commands/martybonacci/specswarm/ship"><img src="https://agentmods.dev/badge/commands/martybonacci/specswarm/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/martybonacci/specswarm/ship"><img src="https://agentmods.dev/badge/commands/martybonacci/specswarm/ship.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 17 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 4,822 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.00017 $0.04822
Opus 5.5 $0.00007 $0.01929
Sonnet 5.5 $0.00003 $0.00964
Haiku 4.5 $0.00002 $0.00482

Measured yesterday against content hash 96e9078e3071, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 yesterday.

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.

plugins/ss/commands/ship.md · 494 lines

How it starts

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

User Input

$ARGUMENTS

You MUST consider the user input before proceeding (if not empty).

Goal

Execute final quality gate validation and merge to parent branch.

Purpose: Enforce quality standards before merging features/bugfixes, preventing low-quality code from entering the codebase.

Workflow: Quality Analysis → Threshold Check → Merge (if passing)

Quality Gates:

  • Default threshold: 80% quality score
  • Configurable via --force-quality flag
  • Reads .specswarm/quality-standards.md for project-specific thresholds

Pre-Flight Checks

# Ensure we're in a git repository
if ! git rev-parse --git-dir > /dev/null 2>&1; then
  echo "❌ Error: Not in a git repository"
  echo ""
  echo "This command must be run from within a git repository."
  exit 1
fi

# Get repository root
REPO_ROOT=$(git rev-parse --show-toplevel)
cd "$REPO_ROOT"

# Parse arguments
FORCE_QUALITY=""
SKIP_TESTS=false
RUN_SECURITY_AUDIT=false

for arg in $ARGUMENTS; do
  case "$arg" in
    --force-quality)
      shift
      FORCE_QUALITY="$1"
      ;;
    --skip-tests)
      SKIP_TESTS=true
      ;;
    --security-audit)
      RUN_SECURITY_AUDIT=true
      ;;
  esac
done

# Initialize audit logging
PLUGIN_DIR="$(dirname "$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")")"
if [ -f "${PLUGIN_DIR}/lib/audit-logger.sh" ]; then
  source "${PLUGIN_DIR}/lib/audit-logger.sh"
fi

Execution Steps

Step 1: Display Banner

echo "🚢 SpecSwarm Ship - Quality-Gated Merge"
echo "══════════════════════════════════════════"
echo ""
echo "This command enforces quality standards before merge:"
if [ "$RUN_SECURITY_AUDIT" = true ]; then
echo "  1. Runs comprehensive security audit"
echo "  2. Runs comprehensive quality analysis"
echo "  3. Checks quality score meets threshold"
echo "  4. If passing: merges to parent branch"
echo "  5. If failing: reports issues and blocks merge"
else
echo "  1. Runs comprehensive quality analysis"
echo "  2. Checks quality score meets threshold"
echo "  3. If passing: merges to parent branch"
echo "  4. If failing: reports issues and blocks merge"
fi
echo ""

CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD)
echo "📍 Current branch: $CURRENT_BRANCH"
echo ""

Read the full file on GitHub · 494 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. yesterday Changed · +1 tokens per session 96e9078e3071
  2. 3mo ago First seen · 494 lines · 16 tokens per session scan A 2061944dd0c5

Subscribe to this mod's changes

ship is a command published in the GitHub repository MartyBonacci/specswarm (67 stars, last pushed yesterday), licensed MIT. It adds 17 tokens to every session and 4,822 once invoked, about $0.0001 per session on Opus 5.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-30.

Related

ship compared with commands from other repositories

ship next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
shipMartyBonacci/specswarmCommand67yesterdayMITA17Claude Code
merge-conflict-analysisrjmurillo/ai-agentsCommand50todayApache-2.0A0GitHub Copilot
release-notesOpenHands/extensionsCommand190todayMITA44Claude Code
commitechoVic/blade-codeCommand18115d agoMITA8Claude Code
repo-audittractorjuice/arc-kitCommand2.3ktodaynoneA29Claude Code
codex-reviewoalders/kitchen-sinkCommand52d agoMITA41Claude Code
releaseparuff/uFawkesAICommand2todayMITA39Claude Code, Codex