Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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от 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.md and each nested AGENTS.md for a directory in the diff.
  • Run git status and git branch --show-current. When the branch is main, create a branch first. Do not ship from main.
  • Run git fetch origin main. Get the change set with git diff --stat origin/main...HEAD and git 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.md with 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.

  1. Commit the finished work. Write the message in ASD-STE100 Simplified Technical English. Leave unrelated changes out of the commit.
  2. Review origin/main...HEAD for correctness, data loss, the non-negotiable rules in AGENTS.md, and reuse. Use the code-review skill when it is available, or a review subagent with the diff range.
  3. Triage each finding as babysit Step 2 says: fix only findings that you can prove. Record the others as not valid, with the reason.
  4. Run the narrowest relevant test file and biome check --write --max-diagnostics=none <changed paths>. Run one typecheck project for the code you changed, as AGENTS.md says. Do not run broad checks.
  5. 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

  1. Push the branch: git push -u origin HEAD.
  2. Write the body from .github/PULL_REQUEST_TEMPLATE.md. Fill ## What changed with the user-visible result and the surfaces the change touches. Fill ## Verification with the checks you ran and the checks you left to CI. Remove the sections the template says to remove.
  3. State the model and harness in the body.
  4. Create the PR: gh pr create --base main --title "<title>" --body-file <file>. Write the title as one imperative sentence, as recent main commits do.
  5. When the link_pull_request tool 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.

  1. Before each wait, and at each poll, run gh pr view <pr> --json mergeable,mergeStateStatus,headRefOid. Poll at most once each 2 minutes.
  2. UNKNOWN means that GitHub calculates the state. Query again at the next poll. Do not act on it.
  3. CONFLICTING or DIRTY means a merge conflict. Stop the wait. Go to Gate 4, step 5.
  4. When no Check or NorbiAI review status shows on the head SHA 10 minutes after a push, query mergeable first. Then read the runs with gh 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.

  1. Query mergeable first, 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 query mergeable at each wake. When the watch shows no checks, look for a merge conflict first.
  2. For each failed job, read only the failed log: gh run view <run-id> --log-failed. Find the cause.
  3. 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.
  4. When the failure is not related to the change, such as a network timeout, run gh run rerun <run-id> --failed once. When the same job fails again, stop and report it to the user.
  5. Do not update the branch only because main moved. When gh pr view <pr> --json mergeable
Полный SKILL.md на GitHub

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

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

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

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

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

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

Без ограничений — скилл может использовать любой инструмент.

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

agents/openai.yaml

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), без исполняемых скриптов.

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

Сравнить ship с