cancel-ship

cancel-ship is a command for Claude Code from Joncik91/ucai. It costs 4 tokens per session (378 once invoked), scanned A, original, MIT.

A command that stops an active software delivery pipeline by removing its saved state file.

In plain words
What is it for?
Use it when a delivery pipeline should be cancelled. It also checks for leftover worktrees, pushed branches, or pull requests and warns you about them.
Why use it?
It ends the pipeline without automatically deleting related worktrees, branches, or pull requests, so you can decide what to keep.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the ucai plugin — 8 skills, 10 commands, 8 agents, 8 hooks shipped together

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/joncik91/ucai/cancel-ship
Clone the repo
git clone --depth 1 https://github.com/Joncik91/ucai

Made for: Claude Code.

Or install ucai, the plugin that ships this one along with the rest of its 8 skills, 10 commands, 8 agents, 8 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 cancel-ship

README.md
[![agentmods](https://agentmods.dev/badge/commands/joncik91/ucai/cancel-ship.svg)](https://agentmods.dev/commands/joncik91/ucai/cancel-ship)
Your own site
<a href="https://agentmods.dev/commands/joncik91/ucai/cancel-ship"><img src="https://agentmods.dev/badge/commands/joncik91/ucai/cancel-ship.svg" alt="Measured on agentmods" height="20"></a>
Per session 4 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 378 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.1 $0.00004 $0.00378
Opus 5 $0.00002 $0.00189
Sonnet 5 $0.00001 $0.00076
Haiku 4.5 $0.00000 $0.00038

Measured 6d ago against content hash 0cb2e9a10147, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

cancel-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 6d 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.

commands/cancel-ship.md · 26 lines

What it actually says

Cancel Ship

To cancel the ship pipeline:

  1. Check if .claude/ucai-ship.local.md exists using Bash: test -f .claude/ucai-ship.local.md && echo "EXISTS" || echo "NOT_FOUND"

  2. If NOT_FOUND: Say "No active ship pipeline found."

  3. If EXISTS:

    • Read .claude/ucai-ship.local.md to get the current phase, milestone, and any worktree/branch info
    • Remove the file using Bash: rm .claude/ucai-ship.local.md
    • Report: "Cancelled ship pipeline (was at Phase N: PhaseName, milestone: M)"
  4. Cleanup warnings (check each, report what applies):

    • Run git worktree list — if a ship worktree exists, warn: "Ship worktree still exists at [path]. Run git worktree remove [path] to clean up, or inspect it first."
    • If the state file mentioned a branch that was pushed, warn: "Remote branch [name] may still exist. Run git push origin --delete [name] if you want to remove it."
    • If a PR was created, warn: "A PR may have been created. Check your GitHub repo and close it if no longer needed."
  5. Do NOT auto-delete worktrees, branches, or PRs — the user decides what to keep.

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. 6d ago First seen · 26 lines · 4 tokens per session scan A 0cb2e9a10147

Subscribe to this mod's changes

cancel-ship is a command published in the GitHub repository Joncik91/ucai (29 stars, last pushed 10d ago), licensed MIT. It adds 4 tokens to every session and 378 once invoked, about $0.0000 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-30.