nyann:ship

A command that opens a GitHub pull request and merges it. GitHub can merge it automatically after required reviews and checks pass, or the command can wait for checks itself.

In plain words
What is it for?
Use it when a completed branch should be submitted and merged, provided the GitHub command-line tool is installed and authenticated.
Why use it?
It combines the final delivery steps and reports whether the change was queued, shipped, failed checks, timed out, or could not be merged.

Command

Part of the nyann plugin — 15 skills, 41 commands, 3 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/thettwe/nyann/ship
Clone the repo
git clone --depth 1 https://github.com/thettwe/nyann

Or install nyann, the plugin that ships this one along with the rest of its 15 skills, 41 commands, 3 hooks.

Per session 63 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 895 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.00063 $0.00895
Opus 5 $0.00032 $0.00447
Sonnet 5 $0.00013 $0.00179
Haiku 4.5 $0.00006 $0.00089

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

Security

Grade A, and why

nyann: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 3d 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/ship.md · 71 lines

What it actually says

Plugin root: This is a Claude Code plugin, NOT a CLI tool. Do NOT search via which, npm list, pip list, or brew list. This file is at <plugin_root>/commands/. All scripts: <plugin_root>/bin/. Read the matching skills/*/SKILL.md for the full flow.

/nyann:ship

Wraps bin/ship.sh. Combines bin/pr.sh create + (auto-merge OR bin/wait-for-pr-checks.sh + gh pr merge --delete-branch) into one invocation that emits a ShipResult JSON (schemas/ship-result.schema.json).

Outcome Mode Exit Meaning
queued auto-merge 0 GitHub will merge server-side when checks + reviews pass
shipped client-side 0 Wait completed, merge call succeeded, branch deleted
ci-failed client-side 3 At least one check failed; loop bailed early
ci-timeout client-side 3 Deadline hit, some still in progress
merge-failed either 3 auto-merge couldn't be enabled, or gh pr merge failed
pr-failed either 3 bin/pr.sh died before producing a URL
skipped either 0 gh missing/unauthed (nothing created)

When to invoke

  • "ship this PR" / "open and merge" → run this (auto-merge default).
  • "ship it and block until merged" → run this with --client-side.
  • "create the PR and auto-merge it on green CI" → run this (default).

When NOT to invoke

  • The user wants only the PR opened, not merged → /nyann:pr.
  • The user wants to wait for CI but not merge → /nyann:wait-for-pr-checks.
  • The PR already exists and they want to merge it → just gh pr merge <num> --auto directly; ship is for PR-creation + merge.
  • The user wants to tag a release after merge → /nyann:release (run after ship reports shipped or after the auto-merge lands).

See skills/ship/SKILL.md for the full title/body synthesis flow, mode-selection guidance, and outcome interpretation.

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. 3d ago First seen · 71 lines · 63 tokens per session scan A 9292bef3aba6

Subscribe to this mod's changes

nyann:ship is a command published in the GitHub repository thettwe/nyann (6 stars, last pushed 4d ago), licensed MIT. It adds 63 tokens to every session and 895 once invoked, about $0.0003 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.