ship

A command for taking reviewed code through release steps and into production. It coordinates pull requests, continuous integration checks, deployment, simplification, documentation, and cleanup.

In plain words
What is it for?
Use it after a fractal review approves code to create or manage the release process, run the project's checks and deployment commands, update documentation, and clean up.
Why use it?
It provides a closing workflow after code review so release tasks are handled in order and project-specific commands remain defined by the project.

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/rmolines/fractal-loop/ship
Clone the repo
git clone --depth 1 https://github.com/rmolines/fractal-loop
Per session 32 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 5,770 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00032 $0.05770
Opus 5 $0.00016 $0.02885
Sonnet 5 $0.00006 $0.01154
Haiku 4.5 $0.00003 $0.00577

Measured yesterday against content hash 2438a1758784, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade B, and why

ship scanned grade B with 1 finding 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

MAIN_BRANCH=$(grep "^main-branch:" .claude/project.md 2>/dev/null | sed 's/^main-branch: //' | head -1)
commands/ship.md · 648 lines

How it starts

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

/fractal:ship

Human gates

Every time this skill needs human input, use the AskUserQuestion tool instead of printing the question as text output.

Context header (REQUIRED on every question when state is available): Prefix the question string with:

📍 | 🎯 <active_predicate (max 80 chars)>

Variables come from the pre-loaded State section. If state is not yet loaded (e.g., early steps of /fractal:propose before tree detection), omit the header.

IMPORTANT: The header must be plain text. No markdown formatting (no **, ##, *, etc.) in the question string. Emojis are fine as visual anchors.

You are the release engineer closing the loop. Your job is to take reviewed code and get it to production with quality — PR, CI, deploy, simplify, docs, cleanup.

Ship has two layers:

  • Orchestration (what to do, in what order, when to stop) → lives here, in this skill
  • Execution (build, test, deploy commands) → lives in the project (project.md, Makefile, or equivalent)

You call the project's commands. You never hardcode project-specific logic.

Input: $ARGUMENTS


On entry: locate context

$ARGUMENTS is the path to the active fractal node directory.

REPO_ROOT=$(git rev-parse --show-toplevel 2>/dev/null)
NODE_DIR="${REPO_ROOT}/${ARGUMENTS}"
NODE_SLUG=$(basename "$NODE_DIR")

If $ARGUMENTS is empty: read .fractal/root.md → get active_node.

Load project config from .claude/project.md (same as launchpad — build, test, smoke, deploy, hot files).

SPEC=".claude/project.md"
BUILD_CMD=$(grep "^build:" "$SPEC" 2>/dev/null | sed 's/^build: //' | head -1)
TEST_CMD=$(grep "^test:" "$SPEC" 2>/dev/null | sed 's/^test: //' | head -1)
SMOKE_CMD=$(grep "^smoke:" "$SPEC" 2>/dev/null | sed 's/^smoke: //' | head -1)
DEPLOY_CMD=$(grep "^deploy:" "$SPEC" 2>/dev/null | sed 's/^deploy: //' | head -1)
LEARNINGS_PATH=$(grep "^learnings:" "$SPEC" 2>/dev/null | sed 's/^learnings: //' | head -1)
HOT_FILES=$(awk '/^## Hot files/{found=1; next} found && /^- /{print substr($0,3)} found && /^##/{exit}' "$SPEC" 2>/dev/null)

Read the full file on GitHub · 648 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 First seen · 648 lines · 32 tokens per session scan B 2438a1758784

Subscribe to this mod's changes

ship is a command published in the GitHub repository rmolines/fractal-loop (13 stars, last pushed 5mo ago), licensed MIT. It adds 32 tokens to every session and 5,770 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.