shepherd
Skill1 starsChanged 40 days agoMITView on GitHub
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.
9 other projects use a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- mikemajara/skillstheir own version, first seen Nov 22, 2026
- MCKRUZ/shepherd-sdlctheir own version, first seen Oct 20, 2026
- harshanandak/forge-legacytheir own version, first seen Oct 17, 2026
- xiaosys/shepherd-skilltheir own version, first seen Sep 28, 2026
- CodeCaroS/MythOs_Aegistheir own version, first seen Aug 11, 2026
- hisazumi/paper-review-skillstheir own version, first seen Jul 3, 2026
Other versions9 projects use a version of this.
Word for word · 0
None found.
Edited · 1
- chrisbanes/skills★ 1.2k31% same
Wrote their own version · 8
- robinebers/skills★ 48same name
- MCKRUZ/shepherd-sdlc★ 9same name
- genomewalker/chitta★ 4same name
- harshanandak/forge-legacy★ 4same name
- hisazumi/paper-review-skills★ 4same name
- xiaosys/shepherd-skill★ 1same name
- CodeCaroS/MythOs_Aegis★ 0same name
- mikemajara/skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository34 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- android-benchmark-comparisonSkill
- build-and-verifySkill
- compose-animationsSkill
- compose-component-designSkill
- compose-focus-navigationSkill
- compose-performanceSkill
- compose-state-and-effectsSkill
- compose-ui-testing-patternsSkill
- deliver-specSkill
- diagnosing-bugsSkill
- domain-modelingSkill
- gradle-runSkill
- grillingSkill
- grounded-writingSkill
- implement-with-subagentsSkill
- kotlin-api-designSkill
- kotlin-architectureSkill
- kotlin-concurrency-and-flowSkill
- kotlin-control-flowSkill
- kotlin-skill-routerSkill
- new-featureSkill
- prototypeSkill
- release-kotlin-librarySkill
- researchSkill
- review-prSkill
- run-github-projectSkill
- run-on-deviceSkill
- setup-environmentSkill
- setup-issue-trackerSkill
- tddSkill
- to-planSkill
- triageSkill
- wayfinderSkill
The file
We split this skill into the rules it gives an agent
9 rules. 0 are common, 9 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 9 edited versions we read keep these.
9
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 10
Keep an authorized PR or MR moving with evidence, not noise: poll, act on new actionable items, batch each target's local fixes into one …
- Distinctive: line 16
Do not start persistent polling for a one-off inspection, no open targets, or an action requiring human judgment.
- Distinctive: line 30
After each poll record feedback IDs, CI state, and this controller's comments.
- Distinctive: line 36
When no retained workflow owner exists, the authorized controller may own in-scope repairs after verifying the target checkout/head and …
- Distinctive: line 42
Do not infer an owner handle from commit authorship.
- Distinctive: line 49
Before repeated polling, use one lowest-cost capable read-only evidence helper when available.
- Distinctive: line 75
Run focused checks during repair, reusing still-valid evidence, and required full checks on the meaningful integrated candidate before …
- Distinctive: line 82
Do not use CI as an iterative test runner or require full checks per slice commit.
- Distinctive: line 88
Do not combine heads, push after every comment, resolve a local-only fix, or comment when nothing changed.
“Common” is measured: kept by at least 6 in 10 of the 9 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Shepherd
Core principle
Keep an authorized PR or MR moving with evidence, not noise: poll, act on new actionable items, batch each target's local fixes into one push, then resolve addressed threads. Use affected local checks during repairs and required full checks on meaningful integrated candidates; use CI as confirmation. Never merge without explicit authority.
Do not start persistent polling for a one-off inspection, no open targets, or an action requiring human judgment; report the state and stop.
Procedure
- Detect the platform with
git remote get-url origin: useghfor GitHub andglabfor GitLab. If it is ambiguous or unavailable, stop and ask. When the host provides a PR monitor that wakes this session on PR events, such as Claude desktop'sccd_prtools, load those tools first if they are listed but deferred, then follow host-managed monitoring instead of polling. Project controllers and their ticket agents keep the Project waiting rules instead, because a session binds only one PR. - 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. Resolve reporting and repair ownership per target. Reuse a supplied delivery record and retained implementation owner. For a standalone PR without a delivery record, use its existing PR/reporting context and shepherd snapshot; hydrate source scope, base/head, prior verdicts, findings and dispositions from verified PR and repository evidence, marking missing evidence unknown. When no retained workflow owner exists, the authorized controller may own in-scope repairs after verifying the target checkout/head and absence of a competing writer; record that fallback before code writes or an implementation repair handoff. A read-only audit may inspect the verified frozen candidate while ownership or writer state is unresolved; report those gaps as material uncertainty, without granting write authority or clearing publication gates. Do not infer an owner handle from commit authorship. Preserve recorded owners; an unavailable owner, uncertain existing claim or unknown writer state holds code writes until reconciled, with writers quiescent before any explicit reassignment. This fallback supplies neither missing scope nor extra grants. Reconcile applicable current-head review initiation under PR review timing on acquisition and relevant wakes, even without repairs; one-off inspections stay read-only.
- Before repeated polling, use one lowest-cost capable read-only evidence helper when available. Select and brief it using the shared selection and handoff reference when available. Give it targets and the snapshot; require new feedback IDs, body, location, review state, non-manual CI state, failed jobs, and log references. It never mutates. Keep triage, repairs, replies, pushes, resolution, retries, and merging with the authorized controller. Skip it under host-managed monitoring.
- Poll with the platform CLI using provider commands, then compare complete review, comment, and CI state with the snapshot. Inspect failed logs only when needed. Do not reprocess old feedback or post a status-only update. Under host-managed monitoring, read once per wake; never start a timer, loop, or repeated poll.
- Triage new evidence before remote mutation. Fix clear requests and narrow formatting, lint, compile, or test failures; answer clear questions in-thread. Apply Behavioral review and repair for related boundary cases, the two-round convergence audit, review coverage and browser failure evidence. Use the reporting context and repair owner resolved in step 2; the authorized controller retains remote mutations. Escalate architectural or contradictory feedback, unfamiliar failures, non-obvious fixes, and out-of-scope conflicts. GitLab manual jobs are non-blocking unless instructed otherwise.
- Handle each target in its own head checkout and batch known actionable items. Inspect failing logs and identify applicable local equivalents from actual workflow/check configuration before repairing. If evidence is missing, obtain it before guessing a fix; report checks unavailable on this host honestly. Run focused checks during repair, reusing still-valid evidence, and required full checks on the meaningful integrated candidate before pushing, except where the PR's required CI runs the same full suite and no repository or provider rule requires a local run; then CI on the pushed head supplies that evidence before delivery acceptance or merge. Obtain or renew applicable independent review under PR review timing before push. Preserve stricter repository/provider rules; renew affected checks or broaden when impact is unknown. Do not use CI as an iterative test runner or require full checks per slice commit. Hold the push while checks required before push fail or lack evidence; a CI-supplied full suite gates acceptance or merge instead. Reassess evidence after each head change under PR review timing; renew affected independent review before pushing repairs. Reply after an addressed change or answer; resolve its thread only after the reply and required push succeed. Do not combine heads, push after every comment, resolve a local-only fix, or comment when nothing changed.
- Recheck CI after the verified repair push; return to step 6 on another code-related failure. Retry a suspected flaky GitLab job once without code changes; report a second failure. Poll pending checks every 2–5 minutes, active repair every 30–60 seconds, and after three or more unchanged cycles every 10+ minutes. Two unchanged cycles remain on the normal 2–5 minute cadence. Under host-managed monitoring, end the turn after the push instead.
- Refresh the exact head; merge only when all required checks, reviews and finding dispositions pass and apply to that head, conflicts are absent, and the user granted explicit or standing merge authority. Do not infer authority from approval. Under host-managed monitoring, green CI never wakes the session, so use PR review timing's verified enforcement rule for pending remote gates, and disable auto-merge this controller enabled when escalating.
Finish or escalate
Continue until the user stops monitoring, every target is merged or closed, or an escalation is needed. Report the target, current CI/review state, actions taken, checks actually run (say none when none ran), checks unavailable or unknown, and the next required human decision. Under host-managed monitoring, also name the events that monitor does not wake on. When describing a repair cycle, give this order: inspect the failed log (if missing, request the exact check name, log, PR diff, head and check configuration, and say which local equivalents are unidentified); batch the fix with that PR's clear review requests; run affected CI-equivalent checks on the required host; reuse still-valid evidence; complete integrated-candidate checks per step 6; push once; use CI as confirmation. Do not claim unrun steps happened. Escalate immediately for ambiguous platform/target selection, an unresolved conflict, material human judgment, conflicting reviewer direction, or a failure that remains after three repair cycles.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

