agentleFS
SantiagoVqzSantiagoVqz/claude-skills/skills/main-flow/ship/SKILL.md

ship

Skill2 starsChanged 2 months agoMITView on GitHub

Ship the current branch as a PR: rebase or merge the base, run the full suite, push, and open or update the PR with a body written by /pr. Use when every ticket of a spec is done (from /dispatch or by hand), or for any branch that is ready for review. Never merges.

  • Deletes or force-pushes
  • Commits and pushes

179 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use cso, setup-deploy and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • ayudaySkill

    cso

    Chief Security Officer mode. Performs OWASP Top 10 audit, STRIDE threat modeling, attack surface analysis, auth flow verification, secret detection, dependency CVE scanning, supply chain risk assessment, and data classification review. Use when: "security audit", "threat model", "pentest review", "OWASP", "CSO review".

    Also in 10 projects that use this

  • ayudaySkill

    setup-deploy

    Configure deployment settings for /land-and-deploy. Detects your deploy platform (Fly.io, Render, Vercel, Netlify, Heroku, GitHub Actions, custom), production URL, health check endpoints, and deploy status commands. Writes the configuration to CLAUDE.md so all future deploys are automatic. Use when: "setup deploy", "configure deployment", "set up land-and-deploy", "how do I deploy with gstack", "add deploy config".

    Also in 10 projects that use this

  • AICreator-WindSkill

    document-release

    技术作家工具。更新项目文档。

    Also in 10 projects that use this

  • Kit4SomeSkill

    unfreeze

    Also in 11 projects that use this

  • AICreator-WindSkill

    freeze

    文件编辑锁定工具。限制文件编辑范围。

    Also in 14 projects that use this

  • CodeWithBehnamSkill

    setup-browser-cookies

    Import cookies from your real browser (Comet, Chrome, Arc, Brave, Edge) into the headless browse session. Opens an interactive picker UI where you select which cookie domains to import. Use before QA testing authenticated pages.

    Also in 9 projects that use this

  • +2 more from AICreator-Wind
  • +1 more from ayuday

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 3 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 162 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    No PR: the branch is new; base = the trunk.

    line 30
  2. Distinctive:

    Run the repo's complete suite, plus typecheck and lint where the repo has them.

    line 47
  3. Distinctive:

    After a rebase: git push --force-with-lease.

    line 56

“Common” is measured: kept by at least 6 in 10 of the 162 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

ship — one branch, one PR

/ship lands a branch on the remote as a pull request. Ship owns the git that leaves the machine; /pr owns the body; the merge stays the human's. Post-merge teardown is /cleanup.

Vocabulary

  • Trunk: the branch the repo merges into (develop on a git-flow repo, main otherwise); same rule as /cleanup.
  • Base: the branch the PR targets. The trunk for a new PR, the PR's own baseRefName for one that exists.
  • Spec: $ARGUMENTS, or the <spec-number> in a <type>/<spec-number>-<slug> branch name, resolved on the tracker (docs/agents/issue-tracker.md). A branch with no spec ships as a plain change.

1. Preflight

  • Head is not the trunk or the default branch.
  • git status --porcelain is empty. Uncommitted work goes back to /implement, which commits.
  • With a spec: list its tickets from the tracker. Every ticket is closed (Status: done locally). Any open ticket stops the run and names it; /dispatch or the human finishes it first.

Completion: on a clean non-trunk branch, with every spec ticket closed.

2. Fetch and read the base

git fetch --all --prune. Then gh pr view --json number,url,baseRefName,state:

  • A PR exists: the branch is under review; base = its baseRefName.
  • No PR: the branch is new; base = the trunk.

Completion: one line states head ← base and whether the branch is new or under review.

3. Integrate the base

git rev-list --count HEAD..origin/<base> greater than zero means the base moved. Zero: skip to step 4.

  • New: git rebase origin/<base>. No review threads exist yet, so take the linear history.
  • Under review: git merge origin/<base>. A rebase discards review threads and approvals.

On conflict run /resolving-merge-conflicts; finish the operation, never abort it.

Completion: git rev-list --count HEAD..origin/<base> is zero.

4. Full suite

Run the repo's complete suite, plus typecheck and lint where the repo has them. Each ticket ran the suite on its own commit; this run proves the combination on top of the moved base.

Red: stop. Report the failing test and leave the branch unpushed. Fix on the branch, commit, and run /ship again.

Completion: green.

5. Push

  • No origin/<head> yet: git push -u origin <head>.
  • After a rebase: git push --force-with-lease. It aborts when the remote moved after the fetch.
  • Otherwise: git push.

Completion: origin/<head> equals local HEAD.

6. Write the body

Invoke the pr skill on git diff <base>...HEAD and git log <base>..HEAD. With a spec, add two things to what /pr produces:

  • Closes #<spec> under the Summary, so the spec issue closes on merge. /cleanup closes it by hand when the trunk is not the default branch.
  • A ## Tickets table after the Summary: one row per ticket with its ref, title, and closing commit (git log <base>..HEAD --grep '<ticket ref>').

Completion: a body with Summary, Evidence and Merge Danger, plus Tickets and the closing keyword when there is a spec.

7. Open or update the PR

  • New: gh pr create --base <base> --head <head> --title "<title>" --body-file <body>. Spec title: #<spec>: <spec title>. Otherwise the first commit subject.
  • Under review: gh pr edit <n> --body-file <body>. Keep the existing title.

Completion: exactly one open PR for head, targeting base, whose body is the record.

Report

<head> ← <base> · new or under review · rebased, merged, or already current · suite result · pushed · PR URL, created or updated.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.