---
name: ship-it
description: Use when user sends a terse landing command — "push", "push deploy", "commit and push", "ship it", "land this", "clean up the worktree and branch", "wrap up" — and expects the full gate→commit→land→deploy→cleanup chain without spelling it out. Runs verification gates, commits, lands per project rule, deploys where push=deploy, cleans worktrees.
---

# Ship-It — Terse Landing Command → Full Chain

Audience: AI coding agents first.

"push" from user = the WHOLE chain, not `git push` alone. Rule: **gate before commit, land per project rule, verify deploy, clean up. Every signal addressed before next link.**

## Chain (ordered; a failed link BLOCKS the rest — fix or report, never skip)

1. **Gate**: project `gate.sh` if present, else typecheck && build && test. Every warning/error fixed or explicitly justified benign (CLAUDE.md "No ignored signals"). Security-gate prevent-band lines = MUST-address.
2. **Commit**: local, caveman:ultra one-sentence message, Conventional Commits. NEVER co-author. Verify HEAD is YOUR commit before any `--amend` (concurrent-writer footgun).
3. **Land**: project memory/CLAUDE.md owns HOW work lands — read it first. Project silent → PR-gated default: push feature branch, open PR, NEVER direct push to main. Direct push ONLY where project establishes it (push=deploy e.g. Cloudflare Pages; solo-dev trunk). Branch finishing + worktree mechanics → `finishing-a-development-branch` skill.
4. **Deploy** (only when project is push=deploy or user said "deploy"): Cloudflare → `cloudflareops` skill. Verify live: probe deployed URL/endpoint, not just green CLI exit.
5. **Cleanup**: remove worktree + delete merged branch ONLY for branches this chain landed. DO NOT prune other in-flight worktrees.

## Report

One final message: gate result, commit SHA, land action (PR URL or push target), deploy probe result, cleanup done. Failures quoted exact.

## Boundaries

- User said "commit" only → steps 1–2, stop. "push" → 1–3. "push deploy" → 1–5.
- DO NOT merge/push to main unless step-3 rule permits — landing is a SEPARATE act, never implied by "completed".
