Skip to content
Back to skills

Ship

ASecurity

Check the branch is ready, run the review its risk requires, and open a pull request in the standard format. Runs from any folder, given an issue (or a branch or PR), or nothing.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 18, 2026
ai-agentsrustgobashgitapi

Works with

  • api

Security analysis

A100/100

Scanned December 5, 2026

npx -y skills add cavallinilorenzo/agentic-engineering --skill ship --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ship?

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

Security grade badge for Ship
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/cavallinilorenzo-ship/badge)](https://www.skillsdirectory.com/skills/cavallinilorenzo-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: ship
description: "Check the branch is ready, run the review its risk requires, and open a pull request in the standard format. Runs from any folder, given an issue (or a branch or PR), or nothing."
argument-hint: "[issue | branch | PR]"
disable-model-invocation: true
---

# Ship

Open a PR a stranger could trust. Merging stays with the human.

Talk to the user in their language. Commits, PR text, issue text and code stay in English.

## Find the work

The user may run `/ship` from the main checkout, on any branch. Pin the branch to ship first:

- **An issue was named**, the usual case: the local branches and worktrees whose name carries its number, as `/build`, `/fix` and `/swarm` name them (`git worktree list`, `git branch --list '*<n>*'`); failing that, the branches whose commits mention `#<n>`.
- **A branch or PR was named:** that branch, or the PR's head branch when shipping again after review.
- **Nothing named, on a branch other than the default one:** that branch.
- **Nothing named, on the default branch:** the local branches with commits the default branch lacks and no PR yet.

One candidate goes ahead. Several: ask once, listing each with its last commit subject. None: stop and say what you searched.

Then work inside that branch's worktree, leaving the folder the user started in as it was: enter it with the harness's tool for an existing worktree, or run every command from its folder. A branch without a worktree gets one: `git worktree add .claude/worktrees/<topic> <branch>`.

## Gates

Work through these in order, cheapest first: each gate spares the dearer ones below it from running twice. A failing gate blocks the PR, except where it says otherwise. Fix what you can fix yourself and keep going. Ask the user only when a gate fails and cannot be fixed from the repo, then ask once, with your recommendation first. The repo answers the rest: the remote, the target repository (`gh repo view --json nameWithOwner`), the state of a worktree.

1. **Branch.** Not the default branch. Named `<type>/<topic>`, issue number first when there is one; if it has a `worktree-` name, rename it with `git branch -m`, keeping the number. Uncommitted changes on the branch are its own work: let gate 3 pass on them, then commit them.
2. **One theme.** Every commit serves one purpose. Move unrelated changes to their own branch.
3. **Fast checks.** Run the fast checks from `engineering.md` (format, lint, types, the tests of the touched files) and fix what fails. Seconds here save minutes at gate 5. Commit.
4. **Judge.** Call the Skill tool with `risk` once, then with `judge`, and pass the level on. Fix `critical` and `required` findings without asking, along with the optional ones that are cheap, axis by axis as each report returns, so a slow axis never holds up the fixes of a fast one. Commit once, then run gate 3 again. Put what remains in the PR's **Risk** section; do not stop to present the findings first.
5. **Receipt.** Last, because every earlier fix moves `HEAD` and voids the receipt. It must exist and be bound to `HEAD`:
   ```bash
   receipt="$(git rev-parse --git-path verification-receipt.md)"
   test -f "$receipt" && grep -qx "Commit: $(git rev-parse HEAD)" "$receipt"
   ```
   If this fails, dispatch the `verifier` agent: it re-verifies only what changed since the branch's last passing receipt, so a review fix costs minutes, not a full run. A failed verification blocks the PR: fix it, run gates 3 and 5 again, and run gate 4 again only when the fix touched behaviour a reviewer already cleared.

## Open the PR

1. Push, then write the title and body in English, keeping domain terms in the glossary's language.
2. **Title:** Conventional Commits, `type(scope): imperative subject`, at most 72 characters, no trailing period.
3. **Body:** the template below. Use `Closes #<n>` when the work comes from an issue.
4. `gh pr create`, marked ready.
5. **Screenshots**, when the UI changed. GitHub has no public upload API, so give the user the local paths to drag into the PR description, after confirming each image shows synthetic data. Host them nowhere yourself: a release, tag or branch made for them publishes something the repo's rules may reserve for humans.
6. **Watch CI.** Start `gh pr checks <pr> --watch --fail-fast` in the background, with `Monitor` where the harness has it, and resume when it ends. On a failure the branch caused, read the failing log (`gh run view <run-id> --log-failed`), fix it, run gate 3, commit, push and watch again. Run gate 5 again only when the fix changed behaviour, not for a fix confined to a test, a config or a workflow file. A failure the branch cannot cause (an outage, a missing secret, a flaky job that passes on rerun) goes to the user with the job link.

Done when the PR URL is shown and every required check is green, or a failure the branch cannot fix is reported with its job link. Finish by telling the user the next step: `/explain`. Once the PR is merged, the worktree cleaner removes its worktree and local branch.

## Body template

```markdown
Closes #<n>

## Why
The problem and approach, in 1-3 short sentences.

## What changed
1-3 bullets. Add the smallest diagram, diff sketch or call tree that makes the change clear.

## Scope
What this covers and what it deliberately leaves out.

## Risk
**Level:** <low|medium|high> (<reason>)
**Door:** <one-way|two-way>
**Blast radius:** <who or what it touches, and why that is safe or risky>

## Verification
**Commit:** `<full sha>`
- `<command>`: <result>
- <criterion>: <observed behaviour> (certainty <1-5>)

**Not verified:** <list, or None>

## Screenshots
<before/after images, only if the UI changed>
```

Drop empty optional sections, but keep **Risk** and **Verification** in every PR.

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.