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.
npx skills add sonichi/sutando --skill pr-shepherd-contractgit clone --depth 1 https://github.com/sonichi/sutandoWrote 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.
[](https://agentmods.dev/skills/sonichi/sutando/pr-shepherd-contract)<a href="https://agentmods.dev/skills/sonichi/sutando/pr-shepherd-contract"><img src="https://agentmods.dev/badge/skills/sonichi/sutando/pr-shepherd-contract/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.
<a href="https://agentmods.dev/skills/sonichi/sutando/pr-shepherd-contract"><img src="https://agentmods.dev/badge/skills/sonichi/sutando/pr-shepherd-contract.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00053 | $0.00446 |
| Opus 5.5 | $0.00021 | $0.00178 |
| Sonnet 5.5 | $0.00011 | $0.00089 |
| Haiku 4.5 | $0.00005 | $0.00045 |
Grade A, and why
pr-shepherd-contract 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 3mo ago.
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.
What it actually says
PR Shepherd Contract (GitHub adapter)
The GitHub binding for the provider-neutral shepherd contract
(src/shepherd_contract.py). The contract defines WHAT a shepherd task is
responsible for and WHICH observed events count; this skill supplies the
GitHub-specific half:
- Observation —
observe(repo, number)reads live PR state via the GitHub CLI (gh api) and emits oneObservedEvent(merged / closed unmerged / updated). - Actor resolution —
resolve_actor(repo, number)uses the last non-merge commit's author email (git.commit_author_email), not the account login, because several actors can push under one login. - Persistence —
save(task_id, scope, state)/load(task_id)/resume(task_id)keep the durable contract record under<workspace>/state/shepherd/, create-or-advance only (never rebind), so a different process can pick the objective up later.
Usage
Import from the skill's scripts directory (the module bootstraps src/ onto
sys.path itself):
import sys, pathlib
sys.path.insert(0, str(repo_root / "skills" / "pr-shepherd-contract" / "scripts"))
import shepherd_github as g
scope = g.scope_for("owner/repo", 123, g.resolve_actor("owner/repo", 123))
g.save("task-abc", scope, "waiting", "shepherding PR 123")
# ... later, any process:
state, why = g.resume("task-abc")
Tests: tests/shepherd-github-durability.test.py,
tests/shepherd-github-integrity.test.py (contract policy itself:
tests/shepherd-contract-admission.test.py).
What ships with it
1 file 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.
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.
- 3mo ago First seen · 43 lines · 53 tokens per session scan A cb506c9d4b61
pr-shepherd-contract is a skill published in the GitHub repository sonichi/sutando (413 stars, last pushed today), licensed MIT. It adds 53 tokens to every session and 446 once invoked, about $0.0002 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-08-30.
pr-shepherd-contract compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| pr-shepherd-contractsonichi/sutando | Skill | 413 | today | MIT | A | 53 | Claude Code, Codex |
| gmailvellum-ai/vellum-assistant | Skill | 1.5k | 6d ago | MIT | A | 20 | Claude Code, Codex |
| app-buildervellum-ai/vellum-assistant | Skill | 1.5k | 6d ago | MIT | A | 162 | Claude Code, Codex |
| assistant-migrationvellum-ai/vellum-assistant | Skill | 1.5k | 6d ago | MIT | A | 90 | Claude Code, Codex |
| guardian-verify-setupvellum-ai/vellum-assistant | Skill | 1.5k | 6d ago | MIT | A | 26 | Claude Code, Codex |
| stripe-link-walletvellum-ai/vellum-assistant | Skill | 1.5k | 6d ago | MIT | A | 52 | Claude Code, Codex |
| vellum-memory-v2-migrationvellum-ai/vellum-assistant | Skill | 1.5k | 6d ago | MIT | A | 34 | Claude Code, Codex |