github-pr-merge

github-pr-merge is a skill for Claude Code from fvadicamo/dev-agent-skills. It costs 72 tokens per session (1,802 once invoked), scanned A, original, MIT.

A GitHub workflow for checking a pull request before merging it and completing the merge afterward. A pull request is a proposed set of code changes submitted for review.

In plain words
What is it for?
Use it to validate tests, linting, CI, comments, milestones, and other pre-merge requirements, then merge the pull request after confirmation.
Why use it?
It helps prevent merging while review comments are unanswered or required checks are incomplete. It also keeps the merge process and cleanup consistent.

Skill for Claude Code

Written for Claude Code: dynamic context !`command`. Also seen: mentions Codex.

Part of the github-workflow plugin — 4 skills shipped together

Good fit Use it to validate tests, linting, CI, comments, milestones, and other pre-merge requirements, then merge the pull request after confirmation.

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

Made for: Claude Code.

Or install github-workflow, 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 github-pr-merge

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/fvadicamo/dev-agent-skills/github-pr-merge"><img src="https://agentmods.dev/badge/skills/fvadicamo/dev-agent-skills/github-pr-merge.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 72 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,802 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: 1 finding, 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 186
    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.00072 $0.01802
Opus 5.5 $0.00029 $0.00721
Sonnet 5.5 $0.00014 $0.00360
Haiku 4.5 $0.00007 $0.00180

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

Security

Grade A, and why

github-pr-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 1mo 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/github-workflow/skills/github-pr-merge/SKILL.md · 190 lines

How it starts

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

GitHub PR merge

Merges Pull Requests after validating pre-merge checklist and handling post-merge cleanup.

Current PR

!gh pr view --json number,title,state -q '"PR #\(.number): \(.title) (\(.state))"' 2>/dev/null

Core workflow

1. Check comments status

Verify all review comments have at least one reply:

REPO=$(gh repo view --json nameWithOwner -q '.nameWithOwner')
PR=$(gh pr view --json number -q '.number')

# Find unreplied comment IDs
gh api repos/$REPO/pulls/$PR/comments --jq '
  [.[] | select(.in_reply_to_id) | .in_reply_to_id] as $replied |
  [.[] | select(.in_reply_to_id == null) | select(.id | IN($replied[]) | not) | .id]
'

If unreplied comments exist:

  • STOP the merge process
  • Inform user: "Found unreplied comments: [IDs]. Run github-pr-review first."
  • NEVER reply to comments from this skill

2. Check milestone

gh pr view $PR --json milestone -q '.milestone.title // "none"'
  • If milestone is assigned: include it in the checklist summary (step 5)
  • If no milestone: check for open milestones and warn the user
gh api repos/$REPO/milestones --jq '[.[] | select(.state=="open")] | length'

If open milestones exist but the PR has none, surface a warning in the checklist: - Milestone: ⚠ not assigned (open milestones exist)

Do NOT block the merge for a missing milestone. It is a warning only.

3. Run validation

Run tests, linting, and verify CI checks. All MUST pass before proceeding.

gh pr checks $PR

4. Verify changelog completeness

Skip if the repo has no CHANGELOG.md. Otherwise make sure every commit this merge will publish is reflected in the changelog, so a release-promotion merge (develop → main) never leaves commits unlogged.

List the commits this PR brings into the base, and the changelog lines it adds:

BASE=$(gh pr view $PR --json baseRefName -q .baseRefName)
HEAD=$(gh pr view $PR --json headRefName -q .headRefName)
git log --oneline origin/$BASE..origin/$HEAD
git diff origin/$BASE...origin/$HEAD -- CHANGELOG.md

Read the full file on GitHub · 190 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. 1mo ago First seen · 190 lines · 72 tokens per session scan A db3faebbf1dd

Subscribe to this mod's changes

github-pr-merge is a skill published in the GitHub repository fvadicamo/dev-agent-skills (72 stars, last pushed 1mo ago), licensed MIT. It adds 72 tokens to every session and 1,802 once invoked, about $0.0003 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

Other skills, from other repositories

merge

Absorb one or more feature branches into the base branch. One branch: recommends merge vs rebase. Two or more (or --batch for any number): batch landing through one integration branch off base — a conflict on derived output only settles by the repo's declared regenerate command, one verify on the integrated tree (red…

RockyHong/super-bootstrap · 130 tokens

release

Prepare a version release — bump version files, commit, and tag. Just run /release with no arguments.

RockyHong/super-bootstrap · 24 tokens

release-init

Detect project type and generate a tailored project-level /release skill. Run once per project to set up releasing.

RockyHong/super-bootstrap · 25 tokens

stage

Use when committing work from the current session to stage ONLY hunks the session touched, not the entire file. Prevents accidentally staging unrelated uncommitted changes from other work.

photostructure/coding-skills · 37 tokens

find

Find the local coding-agent session that wrote the uncommitted changes in a file, or in a pasted snippet of changed code or comment text, and give a one-line command that resumes it. Prefers the session that authored the change over a review session. Use when asked which session, chat, thread, or agent made an edit…

photostructure/coding-skills · 82 tokens

commit

Commit the current session's changes only, gateway-inline. Session-isolated (never -A, never stages into the shared index; what commits is read back against the session list), doc-sync-gated. The gateway runs the commit inline — it already holds the diff, session file list, and change intent; on a mechanical gate hit…

RockyHong/super-bootstrap · 133 tokens