merge-one

merge-one is a skill for Claude Code, Codex from tony/skills. It costs 38 tokens per session (1,723 once invoked), scanned A, original, MIT.

A procedure for merging one GitHub pull request after checking that it is ready. It uses the GitHub command-line tool and follows the repository's preferred merge style.

In plain words
What is it for?
Use it to identify the relevant pull request, check its review and build status, wait for required checks, merge it, and bring the main branch up to date.
Why use it?
It prevents an unready, conflicting, or unchecked change from being merged. It reports only conditions verified during the run.

Skill for Claude CodeCodex

Written for Claude Code and Codex: allowed-tools in frontmatter, but also agents/openai.yaml present. Also seen: names the AskUserQuestion tool.

Part of the merge-pr plugin — 4 skills shipped together

Good fit Use it to identify the relevant pull request, check its review and build status, wait for required checks, merge it, and bring the main branch up to date.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tony/skills/merge-one
View source ↗ tony/skills
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 tony/skills --skill merge-one
Clone the repo
git clone --depth 1 https://github.com/tony/skills

Made for: Claude Code, Codex.

Or install merge-pr, the plugin that ships this one along with the rest of its 4 skills.

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-one

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/tony/skills/merge-one"><img src="https://agentmods.dev/badge/skills/tony/skills/merge-one.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,723 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.00038 $0.01723
Opus 5.5 $0.00015 $0.00689
Sonnet 5.5 $0.00008 $0.00345
Haiku 4.5 $0.00004 $0.00172

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

Security

Grade A, and why

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

plugins/merge-pr/skills/merge-one/SKILL.md · 183 lines

How it starts

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

Merge One PR

Merge a single pull request (the one this conversation is about, or the one the current branch belongs to) via gh pr merge. Nothing merges until the readiness gate passes. Report only what a command in this run verified.

Read ../../references/merge-readiness.md before touching the PR.

User arguments: $ARGUMENTS

Procedure

1. Identify the PR

Precedence: an explicit argument (number or URL) > the PR this conversation has been working on > the current branch's PR. If the candidates disagree, ask via AskUserQuestion before proceeding; without a question tool, halt and list them.

With no argument and no conversation PR, run git branch --show-current and gh pr view --json number to find the current branch's PR.

Gather the PR's state. A failure here means no PR exists for the branch or gh is unavailable or unauthenticated: report it and stop. The readiness gate reuses this read. When the user passed --repo, add it to this command and every other gh call, and check the repo scope as the reference describes.

$ gh pr view <n> --json number,title,url,state,isDraft,baseRefName,headRefOid,mergeable,mergeStateStatus,reviewDecision

Trunk is the PR's baseRefName.

2. Run the readiness gate

Apply the readiness gate from the reference. If the PR is BEHIND or DIRTY and the repo scope is local, confirm with the user, then follow the reference's rebase procedure. Without a question tool, halt instead of rebasing. With scope remote, halt: the rebase cannot run here.

3. Compose the merge commit message

Check the repo allows the strategy, per the reference's strategy section. Then follow its merge-commit-message section, which also says when to skip it (--rebase, or a message flag from the user). Write the message per ../../references/prose-rules.md. The message carries no Co-Authored-By, no "Generated with" or other tool trailer, and no emoji.

4. Merge

Pass the user's gh pr merge flags through verbatim, with the strategy flag and the reference's --match-head-commit <sha> pin. Pass the composed message through the reference's merge_pr.py merge command, never inside a shell string. Use --admin only within the reference's policy.

Read the full file on GitHub · 183 lines

Files

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.

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. 7d ago Changed · +3 lines 424b4afa5b51
  2. 1mo ago First seen · 180 lines · 38 tokens per session scan A 38bbd1a9a310

Subscribe to this mod's changes

merge-one is a skill published in the GitHub repository tony/skills (0 stars, last pushed 5d ago), licensed MIT. It adds 38 tokens to every session and 1,723 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-11-01.

Related

merge-one compared with skills from other repositories

merge-one next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
merge-onetony/skillsSkill05d agoMITA38Claude Code, Codex
review-implement-phaseprisma/ormSkill48ktodayApache-2.0A38Claude Code
github-pr-workflowpaperclipai/paperclipSkill120ktodayMITA39Claude Code, Codex
review-deltatirth8205/code-review-graphSkill33k18d agoMITA24Claude Code
github-contributordaymade/claude-code-skillsSkill1.6ktodayMITA105Claude Code, Codex
git-pr-workflows-git-workflowrmyndharis/antigravity-skillsSkill2.2k3d agoMITA37Claude Code, Codex
dyl-reviewcursor/pluginsSkill22ktodaynoneA80Claude Code, Cursor