own-pr-shepherd

own-pr-shepherd is a skill for Claude Code from sonichi/sutando. It costs 135 tokens per session (2,114 once invoked), scanned A, original, MIT.

An automated workflow for reviewing the owner's open pull requests, which are proposed code changes shared for review. It classifies each one and takes the documented next step.

In plain words
What is it for?
Finding open non-draft pull requests, fixing eligible problems, asking for review, and identifying requests that are ready to merge.
Why use it?
It prevents the owner's pending changes from being forgotten when reviews, failed checks, conflicts, or missing reviewers need attention.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: mentions subagents.

Good fit Finding open non-draft pull requests, fixing eligible problems, asking for review, and identifying requests that are ready to merge.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sonichi/sutando/own-pr-shepherd
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add sonichi/sutando --skill own-pr-shepherd
Clone the repo
git clone --depth 1 https://github.com/sonichi/sutando

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for own-pr-shepherd

README.md
[![agentmods](https://agentmods.dev/badge/skills/sonichi/sutando/own-pr-shepherd/github.svg)](https://agentmods.dev/skills/sonichi/sutando/own-pr-shepherd)
Your own site
<a href="https://agentmods.dev/skills/sonichi/sutando/own-pr-shepherd"><img src="https://agentmods.dev/badge/skills/sonichi/sutando/own-pr-shepherd/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for own-pr-shepherd

Your own site · 80×15
<a href="https://agentmods.dev/skills/sonichi/sutando/own-pr-shepherd"><img src="https://agentmods.dev/badge/skills/sonichi/sutando/own-pr-shepherd.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 135 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,114 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00135 $0.02114
Opus 5.5 $0.00054 $0.00846
Sonnet 5.5 $0.00027 $0.00423
Haiku 4.5 $0.00014 $0.00211

Measured 14d ago against content hash be5696b79e39, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

own-pr-shepherd scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 14d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/own_prs.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/own-pr-shepherd/SKILL.md · 121 lines

How it starts

The opening of the file, as written. The whole thing — 121 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Own-PR shepherd

Once the owner turns this on, their open PRs are the agent's own queue: they move without the owner asking, and finishing a batch is not a stopping point. This pass is the backstop that makes that true even when no event arrived: it lists every PR, so none is forgotten.

0. Enable (owner's word only)

Off on every install. The own-pr-shepherd entry in crons.example.json is "opt_in": true, so the seeder never starts it. Add it to the host's crons.json only when the owner asks, and set OWN_PR_SHEPHERD_REPOS with them: an empty repo list makes the pass SKIP. Enable it on one host per owner email; the acted record is per host, so two hosts would each act once.

1. List

python3 skills/own-pr-shepherd/scripts/own_prs.py list

One line per PR, then a SUMMARY line:

PR o/r#123 class=changes_requested,ci_red next=fix acted=no head=1a2b3c4d sha=<40 hex> base=main failing=lint url=…
SUMMARY author=<login> email=<owner email> repos=1 prs=44 not_mine=3 due=12 complete=yes
  • Repos come from OWN_PR_SHEPHERD_REPOS (manifest config, env, or --repo); there is no default. The search author is OWN_PR_SHEPHERD_AUTHOR, else the signed-in gh login. Drafts are left out.
  • Whose PR it is. A login can be shared by several agents, so the login alone does not make a PR the owner's. A PR is listed only when its last non-merge commit's author email is OWN_PR_SHEPHERD_EMAIL (else git config user.email), the same rule pr-shepherd-contract's resolve_actor uses. Others are counted as not_mine and left alone.
  • SKIP … means no repo is configured, no owner email is known, or gh is not signed in: end the pass quietly.
  • QUOTA_LOW means fewer GraphQL points remain than OWN_PR_SHEPHERD_MIN_QUOTA (installs on one login share the budget). The listing stops there: act on nothing this pass.
  • complete=no (exit 1, with an INCOMPLETE line) means GitHub did not return every PR. Act on what was listed and say in the pass log that the listing was partial; never report it as the whole queue.
  • The --limit trap. gh pr list returns 30 PRs unless told otherwise, and says nothing about the rest. The script pages the search API to the end. When you list PRs by hand for this work, always pass --limit 1000 and compare the count with the total.
  • acted=yes means this class was already handled at sha (see step 3), or a reviewer ask for this PR was logged in state/review-asks.jsonl (by notify_reviewers.py, from this pass or any other path) after the last non-merge commit. Skip it. sha is the last non-merge commit, so a base merge (gh pr update-branch) re-asks no reviewer and not the owner; for conflicting, behind and ci_red it is the head, since the base moving again can need another merge or bring a new CI failure.

Read the full file on GitHub · 121 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 14d ago Changed · +1 lines be5696b79e39
  2. 15d ago First seen · 120 lines · 135 tokens per session scan A e7df30a568a3

Subscribe to this mod's changes

own-pr-shepherd is a skill published in the GitHub repository sonichi/sutando (413 stars, last pushed today), licensed MIT. It adds 135 tokens to every session and 2,114 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-15.

Related

own-pr-shepherd compared with skills from other repositories

own-pr-shepherd next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
own-pr-shepherdsonichi/sutandoSkill413todayMITA135Claude Code
vellum-github-app-setupvellum-ai/vellum-assistantSkill1.5k5d agoMITC61Claude Code, Codex
githubthewolffish/wolffish-appSkill52mo agoMITA48Claude Code, Codex
gmailvellum-ai/vellum-assistantSkill1.5k5d agoMITA20Claude Code, Codex
media-processingvellum-ai/vellum-assistantSkill1.5k5d agoMITA16Claude Code, Codex
fish-audiovellum-ai/vellum-assistantSkill1.5k5d agoMITA35Claude Code, Codex
llm-cost-optimizervellum-ai/vellum-assistantSkill1.5k5d agoMITA60Claude Code, Codex