ready-to-merge

ready-to-merge is a skill for Claude Code from flurdy/agent-skills. It costs 59 tokens per session (6,000 once invoked), scanned A, original, MIT.

A pre-merge check for a pull request, which is a proposed set of code changes. It verifies that the request is passing, approved, up to date with its target branch, and free of obvious risks, then can squash-merge it after explicit approval.

In plain words
What is it for?
Use it to check the current branch's pull request, review its status and scope, run relevant contract checks, and merge it safely when approved.
Why use it?
It collects the checks needed before merging code into one concise decision, reducing the chance of merging an incomplete or risky change.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: model in frontmatter; names the AskUserQuestion tool.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is Read,Grep,Glob,Bash(git:*),Bash(gh pr list:*),Bash(gh pr view:*),Bash(gh pr merge:*),Bash(gh repo view:*),Bash(~/.agents/skills/ready-to-merge/scripts/gh-branch.

Good fit Use it to check the current branch's pull request, review its status and scope, run relevant contract checks, and merge it safely when approved.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/flurdy/agent-skills
agentmods
npx agentmods add skills/flurdy/agent-skills/ready-to-merge

Made for: Claude Code.

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 ready-to-merge

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/flurdy/agent-skills/ready-to-merge"><img src="https://agentmods.dev/badge/skills/flurdy/agent-skills/ready-to-merge.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 59 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,000 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 warn 7 Sept 2026
SkillSpector: 2 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Excessive Agency · line 6
    Skill selects an external model or provider that may use a different account or billing plan than the operator expects. Undisclosed model switches can cause unexpected cost or quota consumption.
    Fix: Remove the model/provider override or disclose it prominently and require explicit operator approval before invoking an external coding CLI or billed model.
  • medium Excessive Agency · line 73
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
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.00059 $0.06000
Opus 5.5 $0.00024 $0.02400
Sonnet 5.5 $0.00012 $0.01200
Haiku 4.5 $0.00006 $0.00600

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

Security

Grade A, and why

ready-to-merge 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 12d ago.

The scan reads SKILL.md. This mod also ships 10 executable files (scripts/default-sync.py, scripts/gh-branch-delete.py, scripts/gh-branch-view.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/ready-to-merge/SKILL.md · 428 lines

How it starts

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

Ready to Merge — Pre-Merge Gate

Verify a PR is safe to merge, present a terse readout, and — only after explicit user approval — squash-merge it.

This skill is a synthesis layer: it calls into /pr-status's scripts, optionally /contract-check, and reuses /review-pr's view/diff scripts. It does NOT reimplement those skills.

Relationship to other skills

  • /pr-status — passive multi-PR dashboard. This skill is single-PR, decision-oriented, and ends with an action.
  • /review-pr — deep AC-vs-diff review. Linked but not auto-invoked. Suggest it if the diff is large or AC fit is unclear.
  • /contract-check — read-only contract health audit. Auto-invoked only when pacts are present in the repo, and scoped to status (summary only).
  • /contract-test — contract test runner (generate → sync → verify). Never auto-invoked here — CI already ran the tests on push. Surfaced as a remediation pointer when /contract-check flags stale or uncommitted pacts.
  • tracking-auditor (agent) — branch-vs-ticket scope check. Suggest it if the diff looks broader than the ticket.

Usage

/ready-to-merge              # PR for current branch
/ready-to-merge 5753         # explicit PR number
/ready-to-merge --no-merge   # report only, never offer to merge

Merge timing policy

Optional and opt-in: without a policy, timing is never checked or rendered. A policy is the nearest merge-timing.toml in a directory above the repository's top level, for example ~/Code/{client}/merge-timing.toml. A file inside the repository is ignored and reported, so a PR cannot relax its own restriction. A candidate inside another checkout of the same repository is unknown, not trusted. The nearest trusted file wins; there are no built-in defaults.

timezone = "Europe/London"          # IANA name; never the machine's timezone

[[rule]]
name = "business-hours"
enforcement = "required"           # blocks the merge offer; only for explicit client policy
days = ["mon", "tue", "wed", "thu", "fri"]   # allowed days; omit for every day
start = "09:00"                    # earliest merge time; omit for 00:00
end = "17:30"                      # merge before this time; omit for 24:00

[[rule]]
name = "late-afternoon"
enforcement = "advisory"           # caution only; normal confirmation still applies
end = "16:00"
end_by_day = { fri = "12:00" }     # day-specific cutoffs replace end

Read the full file on GitHub · 428 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. 12d ago Changed 40ddf289c4ad
  2. 25d ago Changed · +9 lines f26bdf009040
  3. 1mo ago Changed · +6 lines a408c51afa0f
  4. 1mo ago Changed · +75 lines cb96ebbb4761
  5. 1mo ago Changed · +43 lines 66d7d8a63781
  6. 2mo ago Changed 8b496175eb51
  7. 3mo ago First seen · 295 lines · 59 tokens per session scan A 12e04b8fa665

Subscribe to this mod's changes

ready-to-merge is a skill published in the GitHub repository flurdy/agent-skills (10 stars, last pushed yesterday), licensed MIT. It adds 59 tokens to every session and 6,000 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-31.

Related

ready-to-merge compared with skills from other repositories

ready-to-merge next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ready-to-mergeflurdy/agent-skillsSkill10yesterdayMITA59Claude Code
prYeachan-Heo/oh-my-claudecodeSkill41kyesterdayMITA47Claude Code
merge-batchdiegosouzapw/OmniRouteSkill91k5d agoMITA46Claude Code
otto-pr-review-loopomnigent-ai/omnigentSkill12ktodayApache-2.0A17Claude Code, Codex
engram-branch-prGentleman-Programming/engramSkill8.4k10d agoMITA37Claude Code, Codex
github-contributordaymade/claude-code-skillsSkill1.6kyesterdayMITA105Claude Code, Codex
revdiffumputun/revdiffSkill9772d agoMITA254Claude Code