merge-shepherd

merge-shepherd is a skill for Claude Code, Codex from ivanarama/onebase. It costs 64 tokens per session (450 once invoked), scanned A, original, MIT.

A merge-queue step for the ivanarama/onebase software project. It updates and merges pull requests one at a time, but only when a human has marked them ship and they have no hold label.

In plain words
What is it for?
It helps maintain a strict merge order, update pull-request branches, wait for CI checks, merge approved changes, and report what happened.
Why use it?
It prevents unapproved pull requests from being merged and ensures continuous-integration checks finish before each merge. A pull request is a proposed code change awaiting review; continuous integration automatically builds and tests it.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads .claude/ paths; installed under .agents/ (shared by several agents); mentions Codex.

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.

agentmods
npx agentmods add skills/ivanarama/onebase/merge-shepherd
Any agent
npx skills add ivanarama/onebase --skill merge-shepherd
Clone the repo
git clone --depth 1 https://github.com/ivanarama/onebase

Made for: Claude Code, Codex.

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 merge-shepherd

README.md
[![agentmods](https://agentmods.dev/badge/skills/ivanarama/onebase/merge-shepherd.svg)](https://agentmods.dev/skills/ivanarama/onebase/merge-shepherd)
Your own site
<a href="https://agentmods.dev/skills/ivanarama/onebase/merge-shepherd"><img src="https://agentmods.dev/badge/skills/ivanarama/onebase/merge-shepherd.svg" alt="Measured on agentmods" height="20"></a>
Per session 64 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 450 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00064 $0.00450
Opus 5 $0.00032 $0.00225
Sonnet 5 $0.00013 $0.00090
Haiku 4.5 $0.00006 $0.00045

Measured 2d ago against content hash d1689edcd99c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

merge-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 2d 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.

.agents/skills/merge-shepherd/SKILL.md · 17 lines

What it actually says

Codex-адаптер мерж-очереди

  1. Сначала прочитать короткий общий маршрут .claude/skills/merge-shepherd/SKILL.md и использовать pipelinectl из задачи.
  2. Следовать ей с обычным приоритетом инструкций Codex: слово headless не отменяет системные ограничения, безопасность или необходимость сообщить настоящий блокер.
  3. До записи в GitHub проверить доступность gh, действующую аутентификацию и gh api user --jq .login. Писать разрешено только от ivanarama; иначе остановиться без изменений. Перед каждым изменением перечитать состояние PR; параллельный планировщик не считается заблокированным автоматически.
  4. Считать $merge-shepherd Codex-эквивалентом /merge-shepherd. Упоминания следующих этапов — только описание маршрута, не разрешение запускать их автоматически.
  5. Разрешать пути от корня репозитория. Создавать worktree только по уникальному проверенному абсолютному пути и удалять лишь worktree текущего прогона; локальный main не трогать.
  6. На Windows переводить &&, sleep и REST-конвейеры в безопасные PowerShell-эквиваленты. Ожидать CI порциями не более 60 секунд и регулярно сообщать прогресс.
  7. Полную процедуру references/legacy-protocol.md читать только при action=fallback; не загружать её в обычном tool-пути.

Детерминированная механика обычного пути живёт в pipelinectl; сложные состояния остаются в fallback-процедуре.

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. 2d ago Changed · -103 lines · -1 tokens per session d1689edcd99c
  2. 6d ago First seen · 120 lines · 65 tokens per session scan A 0b009218375b

Subscribe to this mod's changes

merge-shepherd is a skill published in the GitHub repository ivanarama/onebase (90 stars, last pushed yesterday), licensed MIT. It adds 64 tokens to every session and 450 once invoked, about $0.0003 per session on Opus 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.

Related

Other skills, from other repositories

streamsql

当需要创建实时数据聚合/窗口统计、流式过滤转换、变化检测(CDC)、生命周期累计、元数据富化(流-表 JOIN)、CEP 模式识别(MATCHRECOGNIZE)等规则链时使用,或当使用 x/streamAggregator 和 x/streamTransform 组件时使用。包含 SQL 语法、窗口、分析函数、JOIN、CEP 和配置示例.

rulego/rulego · 90 tokens

editing-model-diagrams

Creates, edits, reviews, and regenerates C4 architecture diagrams written with goa.design/model and the mdl CLI. Use when changing Model DSL, model.go or views.go files, system landscape, context, container, component, dynamic, or deployment views, element relationships, boundaries, layout, or generated SVG diagrams.

goadesign/model · 69 tokens

release-neva

Prepare a Neva GitHub release draft from merged PRs, previous release style, and local multi-platform artifacts. Use this for monthly release preparation in nevalang/neva.

nevalang/neva · 40 tokens

release

Use when preparing or publishing an NGINX UI release, including version bumping with version.sh, release note drafting, release-prep commits, annotated tags, pushing dev and tags, and creating GitHub Releases with Announcements discussions.

0xJacky/nginx-ui · 49 tokens

gh-prerelease

Cut a GitHub prerelease off a specific commit — branch, bump version with just update-version, tag, push, and publish a prerelease.

TracecatHQ/tracecat · 35 tokens

release-kirocc

Guide the kirocc release process step by step: create release branch, write release notes, open PR, tag, and sync GitHub Release. Use this skill whenever the user wants to release a new version, cut a release, create a tag, bump version, or says /release-kirocc. Takes a version argument like /release-kirocc v0.1.0.

d-kuro/kirocc · 87 tokens