ship
БесплатноБез исполняемых скриптовНе проверенShip the current branch to main. Review the diff, fix findings, open the pull request, babysit the NorbiAI review and CI until green, then squash-merge. Use…
от nightly-labs★ 13 288 звёзд на GitHubОб этом скилле
Ship
Move one finished branch to main through five gates: local review, pull
request, NorbiAI review, CI, merge. Do each gate in sequence. Do not skip a
gate to go faster.
When the user invokes this skill, they approve the merge at the end, but only when every gate is green. Stop and ask when a gate needs a product decision, a force-push, or a bypass.
Before you start
- Read
AGENTS.mdand each nestedAGENTS.mdfor a directory in the diff. - Run
git statusandgit branch --show-current. When the branch ismain, create a branch first. Do not ship frommain. - Run
git fetch origin main. Get the change set withgit diff --stat origin/main...HEADandgit status --short. - When a pull request for the branch exists (
gh pr view --json number,state,url), continue from the first gate that is not done. - Keep a checklist in
TASKS.mdwith one item for each gate.
Gate 1 — Review the diff locally
A local review is less expensive than a NorbiAI round. Find the problems before the push.
- Commit the finished work. Write the message in ASD-STE100 Simplified Technical English. Leave unrelated changes out of the commit.
- Review
origin/main...HEADfor correctness, data loss, the non-negotiable rules inAGENTS.md, and reuse. Use thecode-reviewskill when it is available, or a review subagent with the diff range. - Triage each finding as
babysitStep 2 says: fix only findings that you can prove. Record the others as not valid, with the reason. - Run the narrowest relevant test file and
biome check --write --max-diagnostics=none <changed paths>. Run one typecheck project for the code you changed, asAGENTS.mdsays. Do not run broad checks. - Commit the fixes. The pre-commit hook runs its own checks. Do not use
--no-verify. When the hook fails, fix the cause and commit again.
For a UI change, run the smoke skill and take before and after
screenshots. When the change is a flow or has motion, also run the
record-demo skill. Upload them with gh pr create --attach or
gh pr edit --attach (gh 2.101 or later; run gh --version). Do not
commit them.
Gate 2 — Open the pull request
- Push the branch:
git push -u origin HEAD. - Write the body from
.github/PULL_REQUEST_TEMPLATE.md. Fill## What changedwith the user-visible result and the surfaces the change touches. Fill## Verificationwith the checks you ran and the checks you left to CI. Remove the sections the template says to remove. - State the model and harness in the body.
- Create the PR:
gh pr create --base main --title "<title>" --body-file <file>. Write the title as one imperative sentence, as recentmaincommits do. - When the
link_pull_requesttool is available, link the PR URL.
While you wait
Gates 3 to 5 wait for a long time. main can move during the wait and
cause a merge conflict. GitHub does not run pull_request workflows on a
PR with a merge conflict. Thus Check and NorbiAI review do not start,
and a wait for them does not end.
- Before each wait, and at each poll, run
gh pr view <pr> --json mergeable,mergeStateStatus,headRefOid. Poll at most once each 2 minutes. UNKNOWNmeans that GitHub calculates the state. Query again at the next poll. Do not act on it.CONFLICTINGorDIRTYmeans a merge conflict. Stop the wait. Go to Gate 4, step 5.- When no
CheckorNorbiAI reviewstatus shows on the head SHA 10 minutes after a push, querymergeablefirst. Then read the runs withgh run list --branch <branch> --limit 5. Do not continue the wait with no signal.
Gate 3 — Babysit the NorbiAI review
Run the babysit skill on the PR. It owns the review loop: triage, fixes,
rebuttals, and re-review requests. Continue to Gate 4 only when the
NorbiAI review status on the head SHA is success. During each babysit
wait, do the checks in "While you wait".
Gate 4 — Make CI green
The branch protection on main requires the Check status and resolved
conversations. It does not require the branch to be up to date with main:
a PR that is behind main can merge when it has no merge conflict.
- Query
mergeablefirst, as "While you wait" says. Then watch the checks on the head SHA:gh pr checks <pr> --watch --interval 120. Run it in the background, and querymergeableat each wake. When the watch shows no checks, look for a merge conflict first. - For each failed job, read only the failed log:
gh run view <run-id> --log-failed. Find the cause. - When the failure comes from the change, fix it, commit, and push. Each push starts a new NorbiAI review. Go back to Gate 3 for that review.
- When the failure is not related to the change, such as a network
timeout, run
gh run rerun <run-id> --failedonce. When the same job fails again, stop and report it to the user. - Do not update the branch only because
mainmoved. Whengh pr view <pr> --json mergeable
Установить ship в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл ship?
Ship the current branch to main. Review the diff, fix findings, open the pull request, babysit the NorbiAI review and CI until green, then squash-merge. Use when a feature is done and the user asks to ship it, open and merge a PR, or get the change to main.
Как установить скилл ship?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл ship запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
ci-review
The scan that the plugin's GitHub Action runs.
от Anthropicazure-static-web-apps
Helps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
от GitHubai-ready
Make any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
от GitHubaws-cdk-python-setup
Setup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…
от GitHub