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★ 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 intomainlocally (fast-forward) and clean up. Use this when there's no PR gate; useshipwhen 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, viaship-tag.azure-devops— the deep REST/MCP toolbox (WIQL, batch updates, pipelines, comment threads).shipcalls only the thin slice it needs; reach forazure-devopsfor 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-apiand@octokit/rest. Runbun installin 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/untrackedcounts, andscope_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 unconfirmedfalseis exactly the scope-creep miss this exists to catch. - Note the platform from
ship-detect.ts. If it saysunknown(e.g. a custom SSH host alias), setSHIP_PLATFORM=azureorSHIP_PLATFORM=githubfor 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:
This keeps unpublished commits and working-tree changes; it does not reset the local base branch.git switch -c feature/<slug> - 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
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
- 01
Bash - 02
Read
Вложенные файлы
- .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 запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…