Command Palette

Search for a command to run...

Назад к скиллам
скилл № 72106

ship

Ship a branch on GitHub or Azure Repos: commit, push, open a pull request and link or create Azure Boards work items. Use for "ship it", "open a PR", "send…

БесплатноЗапускает вложенные скрипты
julianobarbosaот julianobarbosa★ 18 звёзд на GitHub

Установить ship в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Ship

ship takes a finished branch the last mile: commit it cleanly, push it (working around Azure DevOps auth when needed), open a pull request, link it to its work item, and — once it's merged — tear down the branch and worktree. It auto-detects whether you're on Azure Repos or GitHub and follows the matching path, so the same command works at your organization and in a github.com repo.

Workflow routing

Request Where to start Where to stop
ship, open a PR, send for review The delivery flow below Report the PR URL. Leave merging to the reviewers.
ship and merge, take PR 123 to completion Complete a pull request; reuse an existing PR, or open one with step 4 Platform-confirmed merge and commit SHA, or the specific blocker
Prepare commits locally, resolve PR conflicts, triage a review round, or stop at ready The requested part of PR completion The named stopping point; a narrower request does not authorize landing

When to use this vs. neighbors

  • ship — the PR-based delivery flow: push → PR → (merge happens via the platform) → cleanup.
  • commit — just stage + commit + push the current branch, no PR.
  • merge — merge a branch into main locally (fast-forward) and clean up. Use this when there's no PR gate; use ship when changes must go through review/policy.
  • ship-tag — versioned releases and packages. An ADO PR tag is a label (ship-tag.ts, step 4b); a requested release tag belongs on the verified merge commit, via ship-tag.
  • azure-devops — the deep REST/MCP toolbox (WIQL, batch updates, pipelines, comment threads). ship calls only the thin slice it needs; reach for azure-devops for anything richer.

The flow

Run bun scripts/ship-detect.ts first — it prints the platform, the Azure org/project/repo (if any), the branch, and an inferred work-item id. Everything below branches on that.

One-time setup: the scripts depend on azure-devops-node-api and @octokit/rest. Run bun install in the skill dir (~/.claude/skills/ship/) once before first use.

On a bare "ship" — just run it

A terse ship / ship it means "do the delivery," not "explain it to me." Run the flow with minimal narration: the preflight scope result (only if it's not clean), the pr_url, any created work-item ids, and the cleanup confirm. Don't recap session state, re-derive the plan out loud, or list every step before doing it — over-narrating a terse command is its own failure mode. The one thing that does warrant stopping is a scope_clean=false from preflight (step 0).

0. Preflight

bun scripts/ship-preflight.ts     # anything to deliver? + working-tree scope audit
  • It prints commits_ahead_of_upstream, staged/unstaged/untracked counts, and scope_clean=true|false.
  • If scope_clean=false, stop and surface the listed files to the user before committing — confirm they're intentionally excluded. This is the PR #192 guard: a changed file in another directory left unstaged gets silently dropped from the PR. The check is advisory (it never blocks), but an unconfirmed false is exactly the scope-creep miss this exists to catch.
  • Note the platform from ship-detect.ts. If it says unknown (e.g. a custom SSH host alias), set SHIP_PLATFORM=azure or SHIP_PLATFORM=github for the session.

1. Commit — as the author, never as the tool

Stage only files for this task and commit. Never add AI attribution — no Generated with Claude, no Co-Authored-By: Claude. Commits are authored by the human; tooling provenance does not belong in git history (this repo's commit-msg hook strips trailers as a backstop, but don't rely on it — don't write them in the first place). Run required hooks, including the staged secret scan, and sign off when the repository requires DCO. Fix task-caused failures; report an unavailable hook or unrelated failure with its actual error.

2. Branch posture

  • On a feature branch → good, continue.
  • On main/master → create a feature branch at the current commit before pushing:
    git switch -c feature/<slug>
    
    This keeps unpublished commits and working-tree changes; it does not reset the local base branch.
  • A blocked direct push to main (branch policy) is the signal to take the PR path — not to force-push or bypass the policy.

3. Push

bun scripts/ship-push.ts         # pushes current branch, sets upstream

On Azure DevOps, the push authenticates with an az account get-access-token Bearer header first (push_ok=oauth-bearer), and falls back to the stored git credential only when az is not logged in (push_ok=normal). See references/azure-devops.md for the mechanics.

4. Open the PR (+ ensure/link work item, + transition state)

Invariant — never ask the user for the work item id. Resolv

Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

  1. 01Bash
  2. 02Read

Вложенные файлы

  • .gitignore
  • Cargo.lock
  • Cargo.toml
  • DISTRIBUTION.md
  • HTTP-CLIENT.md
  • PARITY.md
  • PR-COMPLETION-LICENSE.txt
  • Workflows/CompletePullRequest.md
  • assets/pr-template.md
  • examples/parity.rs
  • install.sh
  • package.json
  • references/azure-devops.md
  • references/github.md
  • scripts/pr_land.py
  • scripts/pr_watch.py
  • scripts/ship-detect.ts
  • scripts/ship-lib.test.ts
  • scripts/ship-lib.ts
  • scripts/ship-open.ts
  • scripts/ship-pr.ts
  • scripts/ship-preflight.ts
  • scripts/ship-push.ts
  • scripts/ship-snapshot.ts
  • scripts/ship-tag.ts
  • src/azure.rs
  • src/detect.rs
  • src/git.rs
  • src/github.rs
  • src/http.rs
  • src/lib.rs
  • src/main.rs
  • src/open.rs
  • src/pr.rs
  • src/preflight.rs
  • src/push.rs
  • src/snapshot.rs
  • src/tag.rs
  • tsconfig.json

FAQ

Что делает скилл ship?

Ship a branch on GitHub or Azure Repos: commit, push, open a pull request and link or create Azure Boards work items. Use for "ship it", "open a PR", "send this for review", or a blocked direct push to main. For "take this PR to completion", "merge this PR" or "ship and merge", repair CI, triage review feedback, resolve conflicts and verify the protected merge. Honor local-only and stop-at-ready requests. Also use to manage PR tags/labels, open a PR in a chosen Edge/Chrome account, or save the current state as an annotated git checkpoint. Versioned release tags and packages belong to ship-tag.

Как установить скилл ship?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл ship запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить ship с