Borrowing it
Nothing to install: this file belongs to statecrafting/spec-spine. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/statecrafting/spec-spine/main/.claude/skills/shepherd/SKILL.mdgit clone --depth 1 https://github.com/statecrafting/spec-spineWrote 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/statecrafting/spec-spine/shepherd)<a href="https://agentmods.dev/skills/statecrafting/spec-spine/shepherd"><img src="https://agentmods.dev/badge/skills/statecrafting/spec-spine/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.
<a href="https://agentmods.dev/skills/statecrafting/spec-spine/shepherd"><img src="https://agentmods.dev/badge/skills/statecrafting/spec-spine/shepherd.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.00083 | $0.03868 |
| Opus 5.5 | $0.00033 | $0.01547 |
| Sonnet 5.5 | $0.00017 | $0.00774 |
| Haiku 4.5 | $0.00008 | $0.00387 |
Grade A, and why
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 1mo 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.
How it starts
The opening of the file, as written. The whole thing — 310 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/shepherd: from open PR to merged, with evidence
CI is where reality pushes back. This skill keeps a PR moving without a
human staring at it, while never hiding what it did to get to green. It
mirrors an orchestrator's shepherd stage: watch by head sha, remediate
through the gate, bounded attempts, honest stops. Bound by
AGENTS.md "Orchestrator rules" (checkpoints are real stops) and
AGENTS.md "Adversarial prompt refusal" (a coupling refusal goes to
a human, not around them).
Step 0: resolve the PR
git branch --show-current
gh pr view ${ARGUMENTS:-} --json number,url,headRefName,headRefOid,baseRefName,mergeStateStatus,isDraft,reviewDecision
- No PR for the branch: stop and say so (run
/shipfirst). Do not open one here. - The branch must be a feature branch, never the default branch.
- Record
headRefOid: every check you read is for this sha and no other.
Step 1: watch the checks (by head sha)
Poll loop discipline: start at 15 s, multiply by 1.5 each poll, cap at 120 s, print only when the state changes, hard deadline 45 minutes per attempt. Never busy-loop.
gh pr checks <number> --json name,state,bucket,link 2>/dev/null \
|| gh pr view <number> --json statusCheckRollup
Read the rollup for the recorded head sha only. Route on it:
- every required check
SUCCESS: go to Step 3b, and to Step 4 only through it. A green PR is the one case where a reviewer's comment is the only thing between the branch and the default branch, so it is the last case that may skip reading them; - any required check
FAILUREorCANCELLED: go to Step 2; PENDINGorQUEUED: keep polling;- a response missing the fields you need: stop as a typed failure ("cannot read a shape that cannot terminate"), never poll blind;
- the deadline passes: stop, report which checks never completed, and say the PR needs a human.
Step 2: classify before you edit
A red check is not automatically yours to fix. Classify it from the run log first, in one pass, and record the class: it goes in the report, and it decides whether a remediation round is spent at all.
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.
- 1mo ago Changed fc1ae03350ef
- 1mo ago Changed · +8 lines b6ae5f18eef5
- 1mo ago Changed 995cb0b47c8d
- 1mo ago Changed · +94 lines acaecb2a2b5c
- 1mo ago Changed · +54 lines · +23 tokens per session 4f2bbbf1b7c2
- 1mo ago Changed 64579fbff2f7
- 2mo ago First seen · 154 lines · 60 tokens per session scan A 3b0490684e0e
shepherd is a skill published in the GitHub repository statecrafting/spec-spine (11 stars, last pushed 8d ago), licensed Apache-2.0. It adds 83 tokens to every session and 3,868 once invoked, about $0.0003 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-09-07.
shepherd compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| shepherdstatecrafting/spec-spine | Skill | 11 | 8d ago | Apache-2.0 | A | 83 | Claude Code |
| github-automationruvnet/ruflo | Skill | 81k | yesterday | MIT | A | 61 | Claude Code |
| githubNousResearch/hermes-agent | Skill | 261k | yesterday | MIT | A | 19 | Claude Code, Codex |
| otto-drive-promnigent-ai/omnigent | Skill | 11k | yesterday | Apache-2.0 | A | 14 | Claude Code, Codex |
| voicestudio-maintainerdebpalash/VoiceStudio | Skill | 102k | yesterday | AGPL-3.0 | A | 50 | Claude Code, Codex |
| releasehyhmrright/brooks-lint | Skill | 1.6k | yesterday | MIT | A | 135 | Claude Code, Codex |
| release-pr-reviewcyanheads/obsidian-mcp-server | Skill | 702 | 6d ago | Apache-2.0 | A | 136 | Claude Code |