merge-pr

Squash-merge GitHub pull requests and delete remote and local branches.

8|5|Updated Feb 18, 2026
One-click install
npx skills add https://github.com/shenxingy/Clade --skill merge-pr-shenxingy
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: merge-pr
Source: https://github.com/shenxingy/Clade/tree/main/configs/skills/merge-pr
Command: npx skills add https://github.com/shenxingy/Clade --skill merge-pr-shenxingy

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It removes the repetitive, error-prone work of reviewing a PR’s status, performing a squash merge, and cleaning up both the remote and local branches afterward.

Core Features & Use Cases

  • Resolves the target PR from context or input: Uses the current branch’s PR when no argument is provided, accepts a PR number, or accepts a full PR URL.
  • Checks CI checks before merging: Reads required check results and blocks merging when required checks are failing, while warning on pending checks.
  • Squash-merges and deletes branches: Performs a squash merge with remote branch deletion, then safely deletes the local branch and refreshes the main branch.

Use Case: After a PR is approved and CI is green, merge it as a single clean commit while automatically closing the loop by deleting the remote feature branch and removing the local branch.

Quick Start

Ask the AI to merge and squash-merge the pull request for the current branch, deleting the remote and cleaning the local branch after CI checks pass.

Frequently Asked Questions about merge-pr

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

FAQPage Schema
How do I squash-merge a GitHub pull request and automatically delete the remote branch?

You can squash-merge a GitHub pull request and delete the remote branch by providing a PR number, PR URL, or using the current branch context. The tool performs the squash merge and automatically deletes the remote feature branch.

Can I merge a pull request from a specific PR URL or number?

Yes, you can merge a pull request from a specific PR URL or number. The skill resolves the target PR from direct input like a full PR URL, a PR number, or automatically by using the current branch context.

Does this tool check CI status before performing a squash merge?

Yes, this tool checks CI status before performing a squash merge. It reads required check results, blocks the merge when required CI checks are failing, and issues warnings for any pending checks.

What is the best way to automate GitHub branch cleanup after a squash merge?

The best way to automate GitHub branch cleanup after a squash merge is using a command automation tool that deletes the remote feature branch during the merge, then safely removes the local branch and refreshes main.

Do I need GitHub CLI installed to automate pull request merging and branch deletion?

Yes, you need GitHub CLI installed to automate pull request merging and branch deletion. The skill requires running GitHub CLI to fetch PR metadata, evaluate CI check statuses, and execute the squash merge.