shepherd
Shepherd PRs through CI and reviews to merge readiness, after the boundary settle completed the workflow. Harness work with no Remit call: reads PR, CI and…
от lvlup-sw★ 19 звёзд на GitHub
Установить shepherd в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Shepherd Skill
VCS Provider
Remit reads no PR, CI or review state, and it does no VCS write.
Read PR, CI and review state with your own tools: gh or the GitHub MCP server for GitHub, glab for GitLab, az repos for Azure DevOps.
The coordinator posts each comment, enables auto-merge and merges each PR through its harness, outside governance.
If your tools cannot do a read or the harness cannot do a write, stop and report. Do not fall back to a Remit action.
A PR merge in this skill is a remote operation that the coordinator runs through its harness. It is distinct from the integration merge. During delegation the coordinator lands each accepted head on the integration branch through its harness (
@skills/delegate/SKILL.md). Settle observes each landing by ancestry. This skill lands no integration commit.
Iterative loop that shepherds published PRs through CI checks and code reviews to merge readiness. You read the state of each PR with your own tools, fix failures and address feedback, until the stack is green.
Note: the settle that judged the synthesis boundary moved the workflow to
completedbefore the PRs opened. Shepherd is harness work after that settle. It makes no Remit call, and it records nothing in Remit.
Position in workflow:
boundary settle (completed) → synthesize → shepherd (assess → fix → resubmit → loop) → cleanup
^^^^^^^^ harness work, no Remit call
Default Objective
By default, shepherd seeks to address every piece of feedback on the PR — appending "address all feedback" to the invocation is redundant, because it is the default, not an opt-in. Each iteration drives toward zero outstanding items across all three feedback channels:
- CI / checks — every failing or pending check is fixed or resolved.
- Formal reviews — every
CHANGES_REQUESTEDreview is addressed. - Inline comments — every inline review comment (human, CodeRabbit, Sentry, bots) gets a fix and/or a reply, regardless of severity. A minor or nit-level comment is still feedback: address it, or reply explaining why it is intentionally declined. The goal is that a human scanning the PR sees every thread has a response.
A green CI run and an approved review do not make a PR ready while a minor comment-reply item remains. Do not treat them as license to skip it — only request approval once every comment-reply action item is addressed (fix or reply). "Address all feedback" is the standing default.
Triggers
Activate when:
- User runs
shepherdor says "shepherd", "tend PRs", "check CI" - PRs are published and need monitoring through the CI/review gauntlet
- After
synthesizecompletes and PRs are enqueued
Prerequisites
- PRs published by the synthesize skill, and their URLs
- PRs created and pushed (synthesize Step 3 already ran)
- A tool that reads PR, CI and review state for your VCS provider, such as
gh
Process
The shepherd loop repeats until all PRs are healthy or escalation criteria are met. Default: 5 iterations.
Step 1 — Assess
Read each PR in the stack with your own tools. For GitHub with gh:
gh pr view <number> --json number,url,state,headRefName,baseRefName,reviewDecision,autoMergeRequest
gh pr checks <number>
gh api --paginate repos/<owner>/<repo>/pulls/<number>/reviews
gh api --paginate repos/<owner>/<repo>/pulls/<number>/comments
The GitHub MCP server, glab and az repos give the same facts. references/assess-checklist.md gives the full read for each dimension:
- CI status of each check
- Formal review status (APPROVED / CHANGES_REQUESTED)
- Inline review comments and their replies (Sentry, CodeRabbit, humans)
- Stack health: the base of each PR and its open, merged or closed state
Read every page of each list. A read that fails or stops early is not "no items": stop the iteration and report.
Make one action item for each open issue that the reads show:
| Type | Source |
|---|---|
ci-fix |
A failing check |
review-address |
A CHANGES_REQUESTED review |
comment-reply |
An inline comment thread with no reply |
stack-fix |
A PR with the wrong base, or a branch behind its base |
Each action item holds type, pr, description, severity (critical, major or minor) and normalizedSeverity (HIGH, MEDIUM or LOW). A comment item also holds file, line, reviewer and threadId when the comment gives them.
Then decide the next step:
| Result of the reads | Action |
|---|---|
Every check passes, no CHANGES_REQUESTED review, every thread has a reply |
Skip to Step 4 |
| Any action item | Proceed to Step 2 |
| Checks still pending, no other action item | Inform user, pause, re-assess after delay |
| An escalation trigger | See references/escalation-criteria.md |
Step 2 — Fix
Anchor every change to the invariant catalog (evaluation-time Constraints). Before composing any code fi
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- references/assess-checklist.md
- references/escalation-criteria.md
- references/fix-strategies.md
FAQ
Что делает скилл shepherd?
Shepherd PRs through CI and reviews to merge readiness, after the boundary settle completed the workflow. Harness work with no Remit call: reads PR, CI and review state with the agent's own tools, fixes failures, addresses every comment, and requests approval. Triggers: 'shepherd', 'tend PRs', 'check CI', or /shepherd.
Как установить скилл shepherd?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл shepherd запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
AnthropicGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
academy-guide
AnthropicStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
internal-comms
AnthropicA set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
skill-development
AnthropicThis skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…