From pr-shepherd
Iterate a GitHub pull request to completion with pr-shepherd. Use for requests like "use pr-shepherd", "iterate PR #123", or "run pr-shepherd until this PR is ready".
How this skill is triggered — by the user, by Claude, or both
Slash command
/pr-shepherd:pr-shepherd [PR number or URL][PR number or URL]This skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Poll dispatcher for iterating a PR to completion.
Poll dispatcher for iterating a PR to completion.
Resolve the PR number ($N): use the number or URL in $ARGUMENTS; otherwise infer it with gh pr view --json number --jq .number. If none is found, report an error and stop.
Define the poll command once: pr-shepherd $N --interval 60s --timeout 4.5m --quiet-status. Do not forward $ARGUMENTS as extra flags. Run pr-shepherd --help to inspect supported options.
Loop: Run the poll, print its full output, and follow its ## Instructions section exactly. Then run the poll again. Repeat until the CLI emits [CANCEL] or [ESCALATE], unless the human directs you to stop. Every other action ([WAIT], [MARK_READY], [FIX_CODE]) is non-terminal: do its instructions, then poll again. The poll already bounds each wait via --interval/--timeout; do not add manual sleeps between ticks.
Nonzero exit codes: Treat a nonzero poll exit as PR state only when the output contains a matching # PR #$N [ACTION] heading. Exit 1 can also mean a command or validation failure; if there is no [ACTION] heading, surface the error and stop instead of looping.
Terminal states (stop):
[CANCEL] — ready-delay completed, or PR merged/closed.[ESCALATE] — needs human direction (includes stall-timeout for repeated unchanged CI failures or CI that never starts).Guides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.
npx claudepluginhub jonathanong/pr-shepherd --plugin pr-shepherd