AGENT SKILL

shipit

Release builds with the shipit CLI. Use when releasing or promoting a build to staging or prod, checking a release manifest, or rolling back a shipit deployment.

License 许可
MIT
最近更新
2026-11-02
Stars
★ 0
Forks
0

01 前言 Front Matter

name
shipit
description
Release builds with the shipit CLI. Use when releasing or promoting a build to staging or prod, checking a release manifest, or rolling back a shipit deployment.

02 资源文件 5

03 SKILL.md 正文

shipit

shipit publishes the current build to a target and keeps the previous release on each target so it can be rolled back. This skill covers the day-to-day commands; the full option list is at the end.

Before you start

Versions follow semantic versioning: a version number has the form MAJOR.MINOR.PATCH, where you increment MAJOR when you make incompatible API changes, MINOR when you add functionality in a backwards-compatible manner, and PATCH when you make backwards-compatible bug fixes. shipit reads the version from shipit.yaml in the current directory.

A dry run prints the plan without publishing anything.

Releasing

  1. Gate: run shipit check in the directory holding shipit.yaml, after your last edit to it. The gate passes only when the exit code is 0 and stderr does not contain no manifest. Any release command (--dry-run excepted) needs a passing gate from this session; on a failure, fix the manifest and rerun the check.
  2. For prod, run shipit release --target prod --dry-run and read the plan.
  3. Release to staging first, then prod: shipit release --target staging, then shipit release --target prod.
  4. Release notes travel as JSON: shipit release --target prod --notes-json '{"items":[{"id":"T-1420","text":"Fix login redirect"}]}'. The shape is exactly {"items":[{"id":..., "text":...}]}; a bare array, a notes key, or extra keys inside an item are rejected.

Checking

shipit check validates the manifest. It exits 0 when the manifest is missing and prints no manifest on stderr; treat that line as a failure, not a pass. The gate in Releasing step 1 is the only definition of a pass.

Rules

  • shipit purge deletes a release's artifacts from the remote store and cannot be undone. Run it only when the human names the release to purge, and pass --yes only after they confirm.
  • Read each command's output before deciding the next command.

Rollback

If a release fails:

  1. Run shipit status to see the active release on each target.
  2. Note the previous release id in the PREVIOUS column.
  3. Run shipit rollback --target <target>.
  4. Run shipit status again and confirm the previous id is now active.
  5. Run shipit check to confirm the manifest still validates.
  6. Tell the human which release is now active and which was rolled back.
  7. If the rollback itself fails, run it again with --retries 5.
  8. File the failed release id in the notes of the next release.

History

In March 2026 a release went to prod with a manifest that failed validation, and the outage lasted forty minutes because nobody had run the check. In October 2026 an agent ran shipit release --target prod without shipit check and shipped a broken manifest. The Releasing gate comes from these incidents. Earlier, in January, the team moved from a Makefile to shipit, which is why some older docs still mention make deploy.

Options

Global options:
  --verbose             Print each step as it runs
  --quiet               Print only errors
  --no-color            Disable colored output
  --timeout <seconds>   Give up on a remote call after this long (default 60)
  --retries <n>         Retry failed remote calls this many times (default 2)

Dry runs ignore --retries.

04 同仓库更多 Skills