shepherd

Monitors open pull requests and merge requests, triaging review comments and fixing CI failures.

Updated Jul 1, 2026
One-click install
npx skills add https://github.com/w0lzard/Wolzard-s-Marketplace --skill shepherd-w0lzard
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: shepherd
Source: https://github.com/w0lzard/Wolzard-s-Marketplace/tree/main/plugins/personal-skills/skills/shepherd
Command: npx skills add https://github.com/w0lzard/Wolzard-s-Marketplace --skill shepherd-w0lzard

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Open pull requests and merge requests stall when review comments pile up or CI checks fail, forcing developers to manually poll, triage feedback, and chase green pipelines instead of doing focused work. ## Core Features & Use Cases - Continuous PR/MR Polling: Loops over open GitHub PRs and GitLab MRs using gh or glab, tracking which comments have already been processed to avoid duplicate work. - Comment Triage: Classifies review feedback (approvals, change requests, nits, questions, CI reminders, merge conflicts) and acts on each type appropriately. - CI Fix Workflow: Diagnoses failing checks from logs, applies small obvious fixes (lint, formatting, trivial test breakage), pushes with [autofix] prefixes, and escalates ambiguous failures to the user. - Use Case: You open three PRs before lunch and ask the agent to shepherd them — it watches for reviewer comments, answers questions, fixes a lint failure, and merges each PR once approvals and green CI are in place. ## Quick Start Shepherd my open pull requests and keep them moving until they are merged.

Frequently Asked Questions about shepherd

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automatically monitor open pull requests for review comments?

Use a polling loop that lists open PRs with gh pr list or glab mr list, then checks each for new comments by comparing timestamps against the previous poll. Triage each comment by type — approvals, change requests, nits, or questions — and act accordingly.

How to fix failing CI checks on a GitHub PR automatically?

Fetch failing check logs with gh run view --log-failed, diagnose the root cause, and only push fixes that are small and obvious, such as lint or formatting errors. If the failure is ambiguous or requires domain knowledge, report it to the user instead of guessing.

Does this work with GitLab merge requests as well as GitHub PRs?

Yes, the workflow detects the platform from the git remote URL and uses glab for GitLab and gh for GitHub. GitLab pipelines are inspected with glab ci list and glab ci trace, and manual pipeline stages are skipped.

When should automated PR shepherding stop and hand back to a human?

Stop when a CI failure repeats across three cycles, a reviewer requests architectural changes, merge conflicts involve unfamiliar files, or reviewers contradict each other. The user explicitly saying stop also always overrides the loop.

Can the agent merge a pull request on its own?

Only when all reviewers have approved, all CI checks are green, there are no conflicts, and the user gave explicit merge permission or standing merge authority. Approval alone without green CI is never sufficient.