Command Palette

Search for a command to run...

UnylyUnyly
Back to skills

shepherd

FreeNo executable scriptsNot checked

Use when asked to shepherd, babysit, monitor, or poll open pull requests or merge requests, including triaging review feedback, CI failures, and routine…

chrisbanesby chrisbanes★ 1,172 GitHub stars

About this skill

Shepherd

Core principle

Batch each target's actionable feedback into one verified push. Resolve addressed threads after replying and pushing. Merge only with authority.

Procedure

  1. Identify the platform from git remote get-url origin. Use gh for GitHub or glab for GitLab. Escalate ambiguous targets or platforms. For a one-off inspection or no open targets, report the state and stop. Project controllers and ticket agents follow Project waiting rules. Otherwise, when the host offers PR event wakes, load its monitor tools (including deferred tools such as Claude Desktop's ccd_pr) and follow host-managed monitoring.

  2. Establish targets and a handled-ID snapshot. Every external comment, review, or thread absent from that snapshot is new, including pre-session feedback. After each poll record feedback IDs, CI state, and this controller's comments. For a deliver-issue PR, send the finding, current head and delivery record to delivery to resume implement-with-subagents. Use the reviewed repair for the next push. Return scope changes for replanning. For other PRs, retain the implementation owner and reuse the delivery record or PR snapshot. Verify scope, base/head, prior verdicts, findings and dispositions. Mark missing evidence unknown. Only when no workflow owner exists may the authorized controller take a repair. Verify the target checkout, head and absence of competing writers, then record that decision before edits or handoff. Never infer ownership from commit authorship. Hold writes on an unresolved claim or unavailable owner until prior work is reconciled and writers are quiescent. A read-only audit can inspect the frozen candidate meanwhile. Report uncertainty and preserve publication gates. Reconcile applicable current-head review initiation under PR review timing on acquisition and relevant wakes, even without repairs; one-off inspections stay read-only.

  3. Read routine evidence in the controller. Delegate only a specific diagnostic question about a large failed CI log to a read-only helper. Use the handoff reference. Supply the target, head, failed job, log and question. Request a diagnosis with log references and uncertainty. Keep monitoring and remote actions with the authorized controller.

  4. Compare complete reviews, comments and checks against the snapshot using provider commands. Under host monitoring, read once per wake. Act only on new evidence and skip status-only comments.

  5. Triage new evidence before remote mutation. Verify review comments as hypotheses rather than treating bot severity labels as mandatory inline fixes. Fix verified in-scope defects and narrow formatting, lint, compile, or test failures; answer clear questions in-thread. Apply Behavioral review and repair for hypothesis dispositions, pre-patch altitude checks, related boundary cases, convergence audits, rethink routing, review coverage and browser failure evidence. Use the reporting context and repair owner resolved in step 2; the authorized controller retains remote mutations. Escalate material maintainer direction, architectural or contradictory feedback, unfamiliar failures, non-obvious fixes, and out-of-scope conflicts. Classify GitLab manual jobs using the provider's candidate checks in step 4.

  6. Repair each target in its own head checkout, in this order:

    • Inspect the failed log and identify local equivalents from the check configuration. If evidence is missing, request the exact check name, log, PR diff, head and configuration. Identify unavailable or unknown checks.
    • Batch the fix with that target's clear review requests. Run affected CI-equivalent checks on the required host and reuse still-valid evidence. Broaden checks when impact is unknown.
    • Run required full checks on the integrated candidate. Required CI on the pushed head may supply the same suite when repository and provider rules allow it. That CI gates acceptance and merge. Use focused checks for slice commits unless a wider check is required there. Use CI to confirm the locally verified integrated repair, never as an iterative test runner.
    • Renew affected checks and independent review on each changed head under PR review timing. Push once all pre-push requirements pass. Use CI to confirm the repair. Reply to the finding and resolve only after the reply and any required push succeed. Resolve automated bot threads declined or deferred with primary evidence the same way; for a declined or deferred human reviewer thread, reply with the evidence and leave the thread unresolve
Full SKILL.md on GitHub

Install shepherd in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

Allowed tools

Tools this skill is permitted to call.

No restriction — this skill can use any tool.

Bundled files

agents/openai.yamlreferences/pr-review-timing.mdreferences/provider-commands.md

FAQ

What does the shepherd skill do?

Use when asked to shepherd, babysit, monitor, or poll open pull requests or merge requests, including triaging review feedback, CI failures, and routine follow-up.

How do I install the shepherd skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the shepherd skill run scripts?

No, this skill is instructions only (SKILL.md) with no executable scripts.

Related skills

Compare shepherd with