Command Palette

Search for a command to run...

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

pr-ship

End-to-end PR review pipeline. Detects the PR on the current branch, then runs pr-triage → pr-execute → pr-verify in sequence. Supports resume: if artifacts…

БесплатноБез исполняемых скриптов
CERTCCот CERTCC★ 22 звезды на GitHub

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

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

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

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

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

Skill: PR Ship

Purpose

Single entry point for the full triage → execute → verify pipeline. Run this after pushing a branch with an open PR and let it complete. The only expected pauses are in execute: the two gates, a defer-ask (may I defer this?) and an inversion-halt (a premise was overturned), and a decision a fix needs (completeness-doctrine.md § "Ask, Then Finish"). All other steps run unattended.

Quick Start

# Run full pipeline for the current branch's PR
/pr-ship

# Run full pipeline for a specific PR number
/pr-ship 1234

Preconditions

  1. An open PR must exist for the current branch (or an explicit PR number is provided).
  2. The working tree must be clean (git status --porcelain returns empty). Execute will commit fixes — a dirty worktree creates ambiguity about which changes are pre-existing. Stop and report if the worktree is dirty.
  3. .claude/pr-*.json files must be gitignored (see below). Stop and warn if not, before writing any artifact.

Gitignore Check

Before Phase 1, verify that .claude/pr-*.json is covered by .gitignore.

git check-ignore -q .claude/pr-1-triage.json 2>/dev/null

If the check fails (exit non-zero), add the pattern and note it:

echo '.claude/pr-*.json' >> .gitignore

Do not commit this change as part of pr-ship — leave it as an uncommitted one-liner for the user to include in whatever commit makes sense, or as a standalone commit if it would otherwise be lost.

Resume Behavior

Before running any phase, check for existing artifacts:

Condition Action
No artifacts exist Run full pipeline: triage → execute → verify
pr-{N}-triage.json exists, pr-{N}-execute.json absent Skip triage; start at execute
Both artifacts exist AND last verify verdict was not GAPS-FOUND / CONFLICTS-FOUND Skip triage and execute; start at verify
Both artifacts exist AND last verify verdict was GAPS-FOUND Delete .claude/pr-{N}-execute.json; re-run execute then verify
Both artifacts exist AND last verify verdict was CONFLICTS-FOUND Delete .claude/pr-{N}-execute.json; re-run execute then verify — execute Phase 5 (CI Loop) owns the resolution
Both artifacts exist AND last verify verdict was PENDING-MERGE-CHECK Skip triage and execute; re-run verify only (GitHub just needed time)
Both artifacts exist AND last verify verdict was PENDING-CI Skip triage and execute; re-run verify only (CI timed out last run; try again now)
Verify ran and cleaned up (no artifacts) Pipeline already completed; report last comment URL if available

When resuming, print which phase is being skipped and why.

A pre-push artifact (named for the branch, written by build's fresh-agent review) is not a pr-{N}-triage.json and skips nothing: triage still runs, in delta mode, and the PR still enters Triage (PAD-17-002).

Resume caveat: an execute artifact can be stale about merge state even when it is complete — the base branch may have moved since. That is fine and needs no special handling here: verify re-checks mergeability live in its Phase 2, so a resume that skips straight to verify still catches a newly-conflicted branch and sends the pipeline back through execute. A base that moved without creating a conflict sends nothing back: verify does not require the base tip (PAD-18-005).

Execution Model

Run all steps in a single uninterrupted pass. Do not end your turn or wait for user input between steps. When a sub-skill returns, proceed immediately to the next step without pausing. The only valid mid-pipeline stops are inside pr-execute: its two gate prompts, defer-ask and inversion-halt, and a decision a fix needs. Every other step transition is automatic.

Workflow

Step 1 — Detect PR

gh pr view --json number,title,headRefName,baseRefName,state,isDraft,mergeable,mergeStateStatus

Confirm state is OPEN. If no PR exists, stop:

❌ No open PR found for branch <head_ref>.
Create a PR first, then re-run /pr-ship.

Print the base branch and merge state alongside the PR title. Do not stop on a conflicting or draft PR — resolving conflicts is exactly what the pipeline is for. pr-execute Phase 5 (CI Loop) syncs and resolves; pr-verify Phase 2 gates the verdict. A conflicted PR at this point is a normal input, not an error. Neither is a PR that is merely behind its base: the pipeline merges the base locally only on conflict, and clears GitHub's BEHIND with gh pr update-branch (PAD-18-004, PAD-18-014). File overlap is left to the merger (PAD-18-019).

A draft is the normal input. create-pr opens every implementation PR as a draft, because no full suite has run on the branch when it is first pushed (PAD-18-028). pr-execute's CI-green step marks it ready once CI's run on its head has finished and passed — that is owed, not optional, so the pipeline hands pr-verify a non-draft PR (PAD-18-029). A draft carrying the `needs

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

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

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

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

FAQ

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

End-to-end PR review pipeline. Detects the PR on the current branch, then runs pr-triage → pr-execute → pr-verify in sequence. Supports resume: if artifacts already exist from a prior run, skips forward to the right phase. No user prompts except pr-execute's gate pauses (defer-ask, inversion-halt) and decision asks. Precondition: an open PR must exist for the current branch (or provide an explicit PR number).

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

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

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

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

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

Сравнить pr-ship с