merging-prs

merging-prs is a skill for Claude Code, Codex from PostHog/posthog-foss. It costs 186 tokens per session (4,617 once invoked), scanned A, original, MIT.

A procedure for merging a pull request, a proposed code change, into the master branch through Trunk's merge queue. The merge queue checks the change before it is added to the shared branch.

In plain words
What is it for?
Use it when asked to enqueue and watch a pull request until it is merged, or to report why Trunk removed it from the queue. It can inspect the pull request and monitor its checks and final state.
Why use it?
It prevents developers from using merge methods blocked by the repository's branch rules. It also requires explicit approval before an action that could make the pull request land and tells the agent to monitor the result.

Skill for Claude CodeCodex

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

Good fit Use it when asked to enqueue and watch a pull request until it is merged, or to report why Trunk removed it from the queue. It can inspect the pull request and monitor its checks and final state.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/posthog/posthog-foss/merging-prs
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 PostHog/posthog-foss --skill merging-prs
Clone the repo
git clone --depth 1 https://github.com/PostHog/posthog-foss

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 merging-prs

README.md
[![agentmods](https://agentmods.dev/badge/skills/posthog/posthog-foss/merging-prs/github.svg)](https://agentmods.dev/skills/posthog/posthog-foss/merging-prs)
Your own site
<a href="https://agentmods.dev/skills/posthog/posthog-foss/merging-prs"><img src="https://agentmods.dev/badge/skills/posthog/posthog-foss/merging-prs/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 merging-prs

Your own site · 80×15
<a href="https://agentmods.dev/skills/posthog/posthog-foss/merging-prs"><img src="https://agentmods.dev/badge/skills/posthog/posthog-foss/merging-prs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 186 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,617 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00186 $0.04617
Opus 5.5 $0.00074 $0.01847
Sonnet 5.5 $0.00037 $0.00923
Haiku 4.5 $0.00019 $0.00462

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

Security

Grade A, and why

merging-prs 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 yesterday.

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/merging-prs/SKILL.md · 216 lines

How it starts

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

Merge a PR through the Trunk merge queue

Merges into master go exclusively through the Trunk merge queue. gh pr merge and the GitHub merge button are blocked by branch ruleset. To merge, you enqueue the PR with the trunk CLI, then watch it until Trunk lands it. Use the trunk CLI for queue actions (enqueue, status, cancel). Post a /trunk ... comment on the PR only when the CLI is not available, or for an option the CLI does not have (see step 2). The CLI talks to Trunk over an authenticated session and reports the result at once. A comment adds noise to the PR thread, and you only learn whether Trunk took it from the bot's reply.

Required user approval

Before posting /trunk merge, invoking trunk merge, or re-enqueueing, obtain explicit user approval in the current conversation for the identified PR or stack. These actions can cause a PR to land. Never infer approval from a request to prepare a PR, move it toward merge, make it ready, resolve blockers, monitor it, or babysit it. You may inspect status, address reviews and CI, request a stamphog review when approval is missing, and report that the PR is ready; then wait for a direct instruction to merge or enqueue it.

<n> below is the PR number. Resolve the repo slug once if you need it: REPO=$(gh repo view --json nameWithOwner -q .nameWithOwner).

1. Preflight

gh pr view <n> --json state,isDraft,mergeable,reviewDecision,statusCheckRollup,baseRefName,isCrossRepository
  • Not open (already merged/closed) → report and stop.
  • Draft → it can't be merged. Ask the developer to confirm, then gh pr ready <n> before continuing. Don't un-draft silently.
  • Cancelled runs on the head → check for these before the failing-checks stop below, because a cancelled run also turns statusCheckRollup to FAILURE. A push can start two runs of a workflow for one head, and the concurrency group cancels one. GitHub keeps both runs' checks, and a newer green check with the same name does not clear them. A cancelled run that carries a required check (a workflow's ... Tests Pass gate, or the org-level semgrep workflow) keeps the merge box blocked and Trunk at "Not ready". Rerun every cancelled run rather than working out which ones carry one. Reruns need the developer's permission.

Read the full file on GitHub · 216 lines

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. yesterday Changed fa7132b808e9
  2. 2d ago Changed · +2 tokens per session 005e763e8813
  3. 6d ago Changed · +2 lines 5a65379e22f4
  4. 16d ago Changed 5cc28df15e80
  5. 1mo ago Changed 6b2849cb4dfe
  6. 1mo ago Changed · +8 lines b822d4c62c05
  7. 1mo ago Changed · +12 lines · +10 tokens per session ee7eece1e51c
  8. 2mo ago Changed · +16 lines 2d531877ed44
  9. 2mo ago Changed · +5 lines · +12 tokens per session f94d0e5ba37e
  10. 2mo ago First seen · 173 lines · 162 tokens per session scan A 0ba639d79dc8

Subscribe to this mod's changes

merging-prs is a skill published in the GitHub repository PostHog/posthog-foss (736 stars, last pushed today), licensed MIT. It adds 186 tokens to every session and 4,617 once invoked, about $0.0007 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.

Related

merging-prs compared with skills from other repositories

merging-prs next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
merging-prsPostHog/posthog-fossSkill736todayMITA186Claude Code, Codex
merge-batchdiegosouzapw/OmniRouteSkill91k4d agoMITA46Claude Code
prowler-commitprowler-cloud/prowlerSkill15ktodayApache-2.0A44Claude Code, Codex
gh-auth-isolationgithub/gh-awSkill5.8ktodayMITA20Claude Code, Codex
github-skillzeenie-ai/OpenCompanySkill1.1k2d agoMITA51Claude Code
comet-githubrpamis/cometSkill3.3ktodayMITA72Claude Code, Codex
re0-mergeLilMGenius/paperthinSkill1.5ktodayMITA51Claude Code, Codex