Skip to content
Back to skills

Auto Ship

ASecurity

Use this skill to deliver local Git engineering changes with brief compilation, digest-bound verification and review, and lossless cross-session or cross-host (Codex <-> Antigravity) handoffs backed by the auto-ship Node.js 24 CLI.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 1, 2026
ai-agentsgoshellnodegitsecurity

Works with

  • terminal
  • cli

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned December 1, 2026

npx -y skills add DmiyDing/auto-ship --skill auto-ship --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Auto Ship?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Auto Ship
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/dmiyding-auto-ship/badge)](https://www.skillsdirectory.com/skills/dmiyding-auto-ship)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: auto-ship
description: >-
  Use this skill to deliver local Git engineering changes with brief compilation,
  digest-bound verification and review, and lossless cross-session or cross-host
  (Codex <-> Antigravity) handoffs backed by the auto-ship Node.js 24 CLI.
---

# auto-ship (Antigravity Adapter — L1 CLI-Enforced)

Host-agnostic engineering delivery protocol backed by the zero-dependency Node.js (>=20.11 LTS) CLI (`runtime/core/bin/auto-ship.mjs` when installed, or `core/bin/auto-ship.mjs` in the repository).

## Assurance Boundaries (Honest Declaration)

- **Layer 1 (Skill instructions):** Token-lean `checkpoint`/`batch` bookkeeping, concise choices, serial build/E2E, labeled ≤6-line continuation prompt.
- **Layer 2 (`core/` State CLI):** Deterministic enforcement of strict JSON, CAS `revision`, brief confirmation gate, `head + digest` candidate binding, automatic review invalidation on code edits, `unknown` effect reconciliation, monotonic cross-session budgets, atomic `batch` state transitions, pre-validated one-shot `checkpoint` commands, atomic single-winner handoff claims, and anti-hijacking.
- **Layer 3 (Host):** Antigravity native sandbox and approvals. Standalone skill installation does **not** claim local token telemetry or bundled `PreToolUse` tool hooks (see [capabilities.json](./capabilities.json)).

## 1. Startup & Anti-Hijacking (1 Shell Call)

1. Run read-only startup inspection in **one** shell call (never split `doctor`/`workspace`/`policy`/`brief` into separate turns; never auto-loads historical checkpoints):
   ```sh
   node <skill-dir>/runtime/core/bin/auto-ship.mjs startup --cwd <repo> --request "<user request>"
   ```
   - Propagate `doctor.envHint.childCommandPrefix` (fixed Node `PATH` + isolated `ZDOTDIR` when zsh is slow) into long verification runs and any independent reviewer commands so toolchains never drift.
   - Avoid symlinking `node_modules` in isolated temp checkouts (`doctor` flags `node-modules-symlink`); use independent copies or `npm ci`.
2. **Task identity first:** If the user starts a new task or cites a checkpoint path only as background/reference, never read historical `state.json`. Confirm with `state check-resume <abs-state.json> --new-task`.
3. Resume only on explicit resume requests (`--explicit-resume`) or exact `goal` + canonical `checkout` matches on an in-progress task (`active` / `review`).

## 2. Brief Compiler (Colloquial → Task Card)

Run `brief assess --cwd <repo> --request "<user request>"` before modifying code:
- **`mode: "direct"`:** Clear, bounded, low-risk local work. Initialize state (`brief.status: "auto-clear"`) and execute directly.
- **`mode: "confirm-brief"`:** Vague or high-risk request. Present 1–2 concise multiple-choice questions using Antigravity's native choice UI (`ask_question`) when appropriate, plus the compiled Task Card (`Goal / Scope / Acceptance / Prohibitions / Delivery Gate / Stop Points`). Initialize state in `brief-pending`; run `state confirm-brief --compact` only after explicit user confirmation.

## 3. Token-Lean Bookkeeping & Verifiable Delivery

- **Never hand-edit `state.json`.** Always pass `--expected-revision N` (use `--compact` on routine `state` mutations; read full `state show` on takeover to inspect brief, prohibitions, and effects).
- **1-Call Bookkeeping Rule:** Use **`checkpoint`** (`--rev <N>` or `--expected-revision <N>`, pre-validated before state commit, atomic state batch, compact summary receipt) or **`batch --compact`** to combine `confirmBrief`, `resumePaused`, `syncCandidate` (`sync-candidate`), `writerState`, `evidence`, `review` (with optional `reviewerRequests`/`reviewerTokens`), `effects`, `progress`, `pack`, and `handoff prepare` into a single CLI call instead of separate model turns.
- Any code edit (including uncommitted changes) updates `candidate.digest` and automatically invalidates unmerged `approved` reviews to `stale`.
- Record external actions (`push`, `pr`, `patch`, `merge`) as `pending` → `done`, or `unknown` if a receipt is lost. Never blindly retry `unknown → pending`; reconcile externally first.
- On recoverable env/permission blockers, pause via `checkpoint` (`"pause": {"reason": "..."}`) — never set terminal `phase: "stopped"`.
- Finish through `checkpoint` (`"complete": {"summary": "..."}`) or `state complete --compact` bound to `deliveryGate`.

## 4. Checkpoints & Cross-Host Relay (Codex ↔ Antigravity)

Use the host-prefixed session ID `antigravity:<conversation-id>` for every ownership and handoff command. Clearly label any returned continuation block as **Local Same-Machine Continuation** vs **Cross-Machine Git/Relay Handoff**. See [references/cross-host-relay.md](./references/cross-host-relay.md) for the exact step-by-step protocol and [resources/handoff-template.md](./resources/handoff-template.md) for the compact `resume-pack.md` layout (≤3,000 UTF-8 bytes).

## Explicit Milestones & Budget Reserve

- **Visible takeover protocol (mandatory):** After `handoff claim` or `authorize-round`, the FIRST LINE of the FIRST visible reply MUST display the returned `handoverBanner` / `displayBanner`. For structured `handoverBanner`, render its source/successor, candidate, approved modules, and next action clearly. Include the `timeline.md` path and `auto-ship status <abs-state.json> [--tail <N>]` entry point in that reply. Desktop notifications are best effort and do not replace this visible reply.
- At key milestones and every cross-session takeover, show the returned `displayBanner` to the user. On `handoff claim`, also show `handoverBanner`: source and successor sessions, exact `head + digest`, approved modules, and remaining `nextAction`.
- Point to the returned `timelinePath` (`timeline.md` beside `state.json`, normally `.auto-ship/tasks/<task-id>/timeline.md`). This local-only timeline records init, checkpoint, handoff prepare/claim, and authorize-round events; keep it inside the private ignored state directory.
- When a receipt contains `budgetWarning`, proactively save a clean `paused` checkpoint (sync candidate, stop writer, record progress and a concise resume pack) BEFORE starting long tests, heavy re-verification, or a new independent review. Preserve round totals; request explicit user authorization only if a new round is needed.
- `progress` accepts partial totals: `{ "steps": 4 }` preserves requests and `{ "requests": 20 }` preserves steps. Supplied counters must remain monotonic. Fix all errors listed by checkpoint preflight in one retry.

## 5. Quota-Lean Independent Review (省额分级审核纪律)

- **Tiered review (`light` vs `standard`):** Follow `brief.reviewPolicy.tier` returned by `startup` / `brief assess`:
  - **`light`** (test-only, docs-only, or tiny copy edits with zero high-risk tags): use a single small-context diff review; avoid multi-round subagent ceremony.
  - **`standard`** (production logic, state machines, security/auth, or release boundaries): run an independent read-only reviewer bound to the exact `head + digest`.
  - For purely mechanical release/packaging/install/regression scripts, run the repository script directly without wrapping it in an `auto-ship` state machine.
- **Reuse digest-bound receipts (do NOT re-run full tests in review):** Pass `head + digest`, exact `git diff <base>..HEAD`, and verified test/E2E receipts to the independent reviewer. Instruct the reviewer to inspect only the diff, necessary callers, and receipt integrity — **NEVER re-run already-passed full test or E2E suites** unless a receipt is missing, stale, or suspect.
- **Built-in P1/P2 blocking redline:** Every independent review prompt MUST explicitly state: block **ONLY** on real P1/P2 behavior, state, security, or regression defects; mark pure wording or style preferences as **non-blocking P3** so tasks do not burn quota on whack-a-mole micro-fix loops.
- **Mandatory cost visibility:** Always pass `reviewerRequests` (and `reviewerTokens` when available) into `checkpoint.review`, and include the returned `displayBanner` in the final delivery reply (as well as on takeovers and pauses).

## Anti-Whack-a-Mole Micro-Fix (防打地鼠微修纪律)

- When fixing re-review P2 findings, audit adjacent equivalent boundaries in the same file, regex, or component in the SAME batch: Chinese/English punctuation, optional spaces, possessives/variants, truncated states, and disabled-state copy. Search the shared pattern and fix the relevant family before requesting re-review.
- Validate first with targeted unit tests and the repository's existing `typecheck` (when available). Re-run full E2E only after the batch is stable or when integration risk requires it; never burn the budget by repeating full E2E after every tiny fix.
- Preserve cumulative `microFixAttempts` and reviewer usage in checkpoints. Re-review the final candidate digest, and pause with a clear remaining-work summary if the round budget cannot cover verification.

Files in this skill

  • SKILL.md8.8 KB
  • references/cross-host-relay.md1.8 KB
  • resources/handoff-template.md777 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.