github-pr-merge

github-pr-merge is a skill for Claude Code, Codex from myths-labs/muse. It costs 72 tokens per session (1,566 once invoked), scanned A, original, MIT.

A GitHub pull-request merging workflow that checks required tests, linting, continuous-integration results, and review comments before merging.

In plain words
What is it for?
Use it to validate and merge a pull request, confirm the merge with the user, delete the remote feature branch, and clean up the local branch.
Why use it?
It reduces the chance of merging unfinished or failing code and handles the cleanup steps afterward.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Codex.

Good fit Use it to validate and merge a pull request, confirm the merge with the user, delete the remote feature branch, and clean up the local branch.

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

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/myths-labs/muse/github-pr-merge/github.svg)](https://agentmods.dev/skills/myths-labs/muse/github-pr-merge)
Your own site
<a href="https://agentmods.dev/skills/myths-labs/muse/github-pr-merge"><img src="https://agentmods.dev/badge/skills/myths-labs/muse/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/myths-labs/muse/github-pr-merge"><img src="https://agentmods.dev/badge/skills/myths-labs/muse/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,566 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 142
    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.
  • medium Excessive Agency · line 189
    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.01566
Opus 5.5 $0.00029 $0.00626
Sonnet 5.5 $0.00014 $0.00313
Haiku 4.5 $0.00007 $0.00157

Measured 3mo ago against content hash 4e36449a8fff, 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 3mo 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/toolkit/github-pr-merge/SKILL.md · 211 lines

How it starts

The opening of the file, as written. The whole thing — 211 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.

Quick Start

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

# 2. Run pre-merge checklist
make test && make lint && gh pr checks $PR

# 3. Verify all comments replied
gh api repos/$REPO/pulls/$PR/comments --jq '[.[] | select(.in_reply_to_id == null)] | length'

# 4. Merge with concise message (--delete-branch auto-deletes remote)
gh pr merge $PR --merge --delete-branch --body "- Change 1
- Change 2

Reviews: N/N addressed
Tests: X passed (Y% cov)
Refs: Task N"

# 5. Post-merge cleanup (local only, remote already deleted)
git checkout develop && git pull && git branch -d feature/<name>

Pre-Merge Checklist

ALWAYS verify before merging:

Check Command Required
Tests passing make test Yes
Linting passing make lint or make check Yes
CI checks green gh pr checks $PR Yes
All comments replied Verify only, don't reply Yes
No unresolved threads Review PR page Yes

Core Workflow

1. Identify PR

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

2. Check Comments Status

# Count original comments (not replies)
ORIGINALS=$(gh api repos/$REPO/pulls/$PR/comments --jq '[.[] | select(.in_reply_to_id == null)] | length')

# Count comments that have at least one reply
REPLIED=$(gh api repos/$REPO/pulls/$PR/comments --jq '
  [.[] | select(.in_reply_to_id)] | [.[].in_reply_to_id] | unique | length
')

echo "Original comments: $ORIGINALS, With replies: $REPLIED"

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

Read the full file on GitHub · 211 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. 3mo ago First seen · 211 lines · 72 tokens per session scan A 4e36449a8fff

Subscribe to this mod's changes

github-pr-merge is a skill published in the GitHub repository myths-labs/muse (39 stars, last pushed 24d ago), licensed MIT. It adds 72 tokens to every session and 1,566 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

github-pr-merge compared with skills from other repositories

github-pr-merge next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
github-pr-mergemyths-labs/museSkill3924d agoMITA72Claude Code, Codex
git-workflow-and-versioningaddyosmani/agent-skillsSkill121k6d agoMITA131Claude Code
finishing-a-development-branchjnMetaCode/superpowers-zhSkill8.6k14d agoMITA25Claude Code
oma-dev-workflowfirst-fluke/oh-my-agentSkill1.5ktodayMITA29Claude Code
devops/changelog-generationechoVic/boss-skillSkill630todayMITA36Claude Code
githubcode-yeongyu/oh-my-openagentSkill71ktodaynoneA226Claude Code, Codex
get-unpublished-changescode-yeongyu/oh-my-openagentSkill71ktodaynoneA38Claude Code, Codex