pr-merge-gates

pr-merge-gates is a skill for Claude Code from Weaverse/.agents. It costs 52 tokens per session (1,053 once invoked), scanned A, original, MIT.

A set of checks for deciding whether a GitHub pull request is genuinely ready to merge. It verifies that required jobs and reviews ran for the current commit, rather than trusting a green-looking status.

In plain words
What is it for?
Use it before approving or merging pull requests, especially when workflows have conditions, matrices, reruns, API changes, or automated review cycles.
Why use it?
Checks can be skipped, attached to an older commit, or absent because branch rules do not require them. This prevents merging without evidence that the relevant tests and policies ran.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it before approving or merging pull requests, especially when workflows have conditions, matrices, reruns, API changes, or automated review cycles.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/weaverse/.agents/pr-merge-gates
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 Weaverse/.agents --skill pr-merge-gates
Clone the repo
git clone --depth 1 https://github.com/Weaverse/.agents

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 pr-merge-gates

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/weaverse/.agents/pr-merge-gates"><img src="https://agentmods.dev/badge/skills/weaverse/.agents/pr-merge-gates.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,053 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.00052 $0.01053
Opus 5.5 $0.00021 $0.00421
Sonnet 5.5 $0.00010 $0.00211
Haiku 4.5 $0.00005 $0.00105

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

Security

Grade A, and why

pr-merge-gates 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 13d 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.

skills/pr-merge-gates/SKILL.md · 68 lines

How it starts

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

PR merge gates

Apparent green versus executed checks

  • gh pr checks can exit 0 when material jobs were skipped. Require completed/success results for each material job on the current head, and explain any intentionally absent job. "No checks reported" is absence, not green.
  • Marking a draft ready runs CI only if the workflow subscribes to ready_for_review or another matching event. Read on, branch/path filters and job conditions. Do not wait for a run that the workflow cannot create.
  • gh pr checks --required can report no required checks when branch protection enforces none. Read all checks and the actual protection/ruleset separately; policy may require more than GitHub enforces.
  • Re-runs and matrices can share names. Bind conclusions to the head, workflow/run ID, attempt and material job, not the first matching name or an old green row. Auto-merge waits only for enforced checks.
  • A setup/download failure did not run tests. Report it as unexecuted, then rerun the same failed run only within authority. A test count in the PR body needs execution evidence behind it.
  • For exported API changes, run any checked-in API/declaration report gate before review. A typecheck alone may trust an ambient declare module that only the production bundler will disprove.

Review identity

  • Read inline threads, formal review bodies and PR discussion. An empty body or COMMENTED state is not a pass. The fix-pr helper filters GraphQL threads by isResolved=false and isOutdated=false; flat comments cannot.
  • Wait for the repository's automated-review completion signal on this exact trigger and head. Multiple findings can arrive minutes apart. A reaction is sufficient only where the repository explicitly uses it as a verdict; require the configured reviewer's identity and creation after the latest trigger. Quiet time is not completion.
  • Match the configured reviewer's account on each API surface; app and bot identities can differ. Do not hardcode a person's handle or accept any user's reaction as the automated verdict.
  • Bind a remapped finding to original_commit_id and creation time, not only commit_id. Classify it against current source before rewriting a working fix. Severity labels inform, but do not replace, impact assessment.
  • A clean automated review does not waive required human approval or reviewDecision: REVIEW_REQUIRED.
  • If a finding disproves the PR description, correct the claim as well as the code. A failed or partial review is not a review pass; findings from a previous SHA remain historical until rechecked.

Read the full file on GitHub · 68 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. 13d ago First seen · 68 lines · 52 tokens per session scan A 858619c48b4d

Subscribe to this mod's changes

pr-merge-gates is a skill published in the GitHub repository Weaverse/.agents (0 stars, last pushed 13d ago), licensed MIT. It adds 52 tokens to every session and 1,053 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-11.

Related

pr-merge-gates compared with skills from other repositories

pr-merge-gates next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pr-merge-gatesWeaverse/.agentsSkill013d agoMITA52Claude Code
review-prImran-ml/claude-skillsSkill48mo agononeA56Claude Code
audit-prgtrabanco/agentic-workflowSkill25todayMITA71Claude Code
audit-vs-fix-disciplinestuartshields/claude-setupSkill25mo agoMITA79Claude Code, Codex
module-depth-reviewstuartshields/claude-setupSkill25mo agoMITA121Claude Code, Codex
swift-concurrency-reviewstuartshields/claude-setupSkill25mo agoMITA112Claude Code, Codex
clean-worktreesstuartshields/claude-setupSkill25mo agoMITB34Claude Code