merge-prs

Merge GitHub pull requests and close referenced issues via gh CLI.

8|2|Updated Feb 8, 2026
One-click install
npx skills add https://github.com/psaab/xpf --skill merge-prs
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: merge-prs
Source: https://github.com/psaab/xpf/tree/main/.claude/skills/merge-prs
Command: npx skills add https://github.com/psaab/xpf --skill merge-prs

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires gh, git.

What problem does it solve?

This Skill automates the repetitive and error-prone process of merging multiple pull requests and manually closing the associated issues they resolve.

Core Features & Use Cases

  • Bulk Merging: Efficiently merge all open pull requests or a specific subset with a single command.
  • Automated Issue Tracking: Automatically detects Fixes #N references in PR bodies and closes the corresponding issues upon successful merge.
  • Conflict Resolution: Includes a fallback mechanism to rebase conflicting branches on master before retrying the merge.

Quick Start

Invoke the merge-prs skill to process all currently open pull requests and close their linked issues.

Frequently Asked Questions about merge-prs

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate merging multiple GitHub pull requests at once?▼

Automating GitHub pull request merging is done via a bulk merge operation that processes all open PRs or a specific subset with a single command.

How does automated PR merging close referenced GitHub issues?▼

Automated PR merging detects 'Fixes #N' references in the pull request body and automatically closes the corresponding GitHub issues upon a successful merge.

Do I need the GitHub CLI and git configured to automate pull request merges?▼

Yes, automating pull request merges requires both the GitHub CLI (gh) and git configured with appropriate repository permissions.

How do merge conflicts get resolved during automated pull request merging?▼

During automated pull request merging, a fallback mechanism rebases conflicting branches on master before retrying the merge to resolve conflicts.

What is the best way to handle bulk pull request merges and repository maintenance?▼

Handling bulk pull request merges and repository maintenance is best achieved through an automated workflow that processes open PRs, resolves conflicts via rebase, and closes linked issues simultaneously.