pr-pilot
БесплатноБез исполняемых скриптовНе проверенPush a branch, open a change request, iterate on reviews until clean, then squash-merge. Runs /pr-review-fixer in a loop until no blockers/critical/major…
от ArjenSchwarz★ 20 звёзд на GitHubОб этом скилле
PR Pilot
Push a branch, open a change request (CR), loop through reviews until clean, then squash-merge.
This skill is forge-aware: the repo may be on GitHub (gh) or GitLab (glab).
It does not hard-code either CLI — it follows the shared operation contract and the
adapter for whichever forge the repo uses. Local reviews can run in independent
native subagents; a Claude installation or subscription is not required when that
route works. /pr-review-fixer handles the resulting findings on either forge.
Forge setup (do this first)
- Read
~/.claude/forge-adapters/CONTRACT.mdfor the neutral terms and operations. - Run
PREFLIGHTto determineFORGEand confirm the CLI is authenticated. If not, stop and tell the user how to authenticate. - Read the matching adapter
~/.claude/forge-adapters/<FORGE>.md. Every concrete command comes from there — do not improvisegh/glabcommands.
Input
Works in the current working directory (or a specified worktree path). It needs:
- A branch with committed changes ready to push
- Optionally a Transit ticket reference (
T-{id}) for status tracking - Optionally an existing CR id (skips push and CR creation)
If invoked with arguments, parse them for:
T-{number}— Transit ticket to track- a CR id (
#123/!1/ bare number) — existing CR to work with - A path — working directory override
Workflow
1. Push and Open the CR
If no existing CR id was provided, run CR_CREATE with target = main (pass a
title that includes the T-{number} prefix if the branch name carries one). Keep
the returned id as <id>.
If an existing CR id was provided, fetch its details with CR_VIEW instead.
1.5 Select a Reviewer
Use an independent reviewer, separate from the agent implementing fixes:
- Native subagent (preferred): start a fresh reviewer using the host's agent
tools. In Claude Code, the registered
local-reviewagent can fill this role; in Codex or another host, spawn a fresh review-only subagent with the brief in references/review.md. Supply the repository/worktree, CR id, forge adapter paths, and the head SHA fromCR_VIEW. Do not seed it with the implementer's conclusions or use an agent that authored the changes. - Claude fallback: if independent native subagents are unavailable, use the
existing
local-reviewagent through an available, authenticated Claude runtime, with the same review brief. Do not require Claude login before trying a working native route. Honour an explicit user choice of reviewer. - If neither route can complete, report the missing capability/authentication and stop before merge. The implementer's own reread cannot satisfy this gate.
Read the review brief before dispatch. Both routes must inspect the full current
CR diff and project instructions, return a verdict with grounded findings, and post
one review note via CR_COMMENT. A native reviewer may return the complete body to
its parent to post if it lacks posting tools; preserve its verdict and findings.
Use the compatibility sentinel <!-- claude-local-review --> even for native
reviews so /pr-review-fixer recognises them; state the actual reviewer/runtime in
visible text rather than claiming every review is Claude.
Run local review up front unless AUTO_REVIEWER_DETECT == 1. Detection only avoids
an up-front duplicate: a successful automated job alone never satisfies review.
2. Review Loop
2.1 Obtain and Verify Review Evidence
Before starting the round, fetch CR_VIEW for HEAD_SHA and CR_NOTES_LIST for the
baseline note ids. Run the selected local reviewer if no automated reviewer is
expected. Wait up to 10 minutes for checks/review input when CI exists; when there
is no CI, proceed as soon as a completed review note is verified.
Accept a round only when a new note id, absent from the baseline, contains a
completed independent review of HEAD_SHA: an explicit reviewed SHA, verdict, and
findings (or an explicit no-findings result). For local reviews, verify the sentinel
and actual reviewer identity too. Automated reviews must also demonstrably cover
that SHA and the review scope in the brief. Author matches, note counts, job success,
and fixer overview comments alone are insufficient evidence.
If no qualifying review landed, run the selected local reviewer as a fallback at most once per round, regardless of automated-review detection, then re-fetch notes and verify the same evidence. If the selected backend failed (including Claude auth failure), use an available independent alternative from step 1.5 for this fallback; do not treat failure as a clean review. If posting had an uncertain outcome, inspect notes before retrying to avoid duplicates. If evidence is still absent, incomplete, or failed, stop and report the blocker. Do not continue to the fixer or merge.
Re-fetch CR_VIEW after the review: if the head changed during review, inva
Установить pr-pilot в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл pr-pilot?
Push a branch, open a change request, iterate on reviews until clean, then squash-merge. Runs /pr-review-fixer in a loop until no blockers/critical/major issues remain, rebases onto latest origin/main, and squash-merges. Works on both GitHub (gh) and GitLab (glab) — it detects the forge from the git remote. Works with or without Transit tickets. Use when you want to shepherd a PR/MR from push to merge, e.g. "push and merge this", "get this merged", "review-fix-merge loop".
Как установить скилл pr-pilot?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл pr-pilot запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic