pr-shepherd
БесплатноБез исполняемых скриптовНе проверенTakes a finished eve branch from review to merge. Opens the PR early, runs fresh-context review and simplification subagents, fixes critical findings and…
от vercel★ 6 166 звёзд на GitHubОб этом скилле
PR shepherd
Start after the first implementation is complete and checked locally. Finish when the PR has no unresolved review threads, no unanswered comments, and green CI on the latest head commit, and it is merged or set to auto-merge.
Open the PR first. Review bots and teammates comment while the rest of the work runs, so an early PR gets more feedback in each round.
1. Open the PR
- Make sure the branch is committed with
git commit -sand that commits are signed (seeAGENTS.md). Add a changeset if the change touches the publishedevepackage. - Run the fast checks from
AGENTS.md:pnpm fmt,pnpm lint,pnpm typecheck, plus the narrowest relevant unit tests. - Push the branch, then open the PR. Use the
gh-pr-descriptionskill for the body and pass it with--body-file. Open it ready for review, not as a draft, unless the user asks for a draft. - Record the PR number. Every later step uses it.
If a PR already exists for the branch (gh pr view --json number,url), reuse it.
2. Fresh-context review and simplification
Spawn two read-only subagents in parallel, each with no conversation history. Give them the PR number and branch, not your reasoning. Fresh eyes catch both bugs the author explains away and bolted-on complexity from iterating on the branch.
Correctness reviewer:
Review PR #
in this repository ( gh pr view <n>,gh pr diff <n>). ReadAGENTS.mdfirst and apply its coding, security, testing, docs, and changeset rules. Read surrounding code as needed to verify behavior. Do not edit files. Report findings ordered by severity (critical, important, minor). For each finding, give the file and line, the concrete failure or risk, and a suggested fix. Say plainly when you find nothing critical.Simplifier (delegates to
pr-simplify):Follow
.agents/skills/pr-simplify/SKILL.mdin report-only mode for PR #in this repository. Read AGENTS.mdand surrounding code as needed to verify callers and existing utilities. Do not edit files. Return the structured simplification report.
While both subagents run, you can already collect PR comments (step 3).
Triage findings from both subagents together against the code before you edit, so you do not patch a bug inside a duplicated or dead path you are about to collapse or delete, and do not simplify away a guard needed for a correctness finding.
- Correctness:
- Fix: correctness bugs, races, security or data-loss risks, broken public behavior or docs, missing tests for changed behavior, a missing changeset, and invariant violations.
- Skip: style nits and scope creep.
- Simplification: apply the triage bar in
pr-simplify—this is a line-reduction pass, so production simplifications must reduce production LOC; apply verified dead-code removals, canonical path unifications, simpler internal designs that preserve all outcomes, and removal or consolidation of low-value tests; skip changes that grow production LOC, style nits, leaky abstractions, and unrelated refactors; ask the user before changing public APIs or semver boundaries.
Mention notable skipped items from either pass in the final report.
3. Address PR comments
Collect all feedback.
Unresolved inline review threads, with the IDs you need to reply and resolve:
gh api graphql -F owner='{owner}' -F repo='{repo}' -F number=<n> -f query='
query($owner: String!, $repo: String!, $number: Int!) {
repository(owner: $owner, name: $repo) {
pullRequest(number: $number) {
reviewThreads(first: 100) {
nodes {
id isResolved isOutdated path line
comments(first: 50) { nodes { author { login } body url } }
}
}
}
}
}' --jq '.data.repository.pullRequest.reviewThreads.nodes[] | select(.isResolved | not)'
Top-level comments and review summaries (these cannot be resolved):
gh pr view <n> --json comments,reviews \
--jq '.comments[], .reviews[] | select(.body != "") | {author: .author.login, body}'
Expect two review bots:
roboeve[bot]reviews once, on the commit that opened the PR, usually within 2–15 minutes. It does not review later pushes.- Vercel Agent Review (
vercel[bot]) runs as a check on every push and can post new threads on later commits. It re-checks its own threads after a fix and resolves them itself, so skip threads it already resolved.
Ignore informational bot posts such as Vercel deployment and bundle analysis comments, unless they report a problem this PR caused.
For each thread, decide: fix, decline with a reason, or defer to a follow-up. Apply the same triage bar as step 2. Bot suggestions get the same scrutiny as human ones; confirm the problem is real before you change code. If a comment needs a product or design decision only
Установить pr-shepherd в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл pr-shepherd?
Takes a finished eve branch from review to merge. Opens the PR early, runs fresh-context review and simplification subagents, fixes critical findings and applies simplifications, addresses, replies to, and resolves review comments, pushes, monitors CI (rerunning flaky jobs or fixing real failures), then squash-merges or enables auto-merge. Follow only when the user explicitly asks to shepherd, babysit, land, or merge a PR, or to "get a PR green". Do not start it on your own after finishing an implementation or when only asked to open a PR.
Как установить скилл pr-shepherd?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл pr-shepherd запускает скрипты?
Нет, скилл состоит только из инструкций (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