github-pr-merge-cleanup

Official

Safely merge and clean up PR branches.

AuthorCareCard-ca
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Reducing the risk and manual effort involved in merging a GitHub pull request by handling mergeability checks, conflict prevention, required validations, and post-merge cleanup.

Core Features & Use Cases

  • Mergeability validation and conflict detection: Verifies merge state and detects merge conflicts before altering history.
  • Conditional rebase for conflict recovery: Rebases the target branch onto the fresh base when conflicts are detected, aborting if rebase fails.
  • Protected-branch-aware merge and cleanup: Merges with GitHub CLI, optionally deletes the remote branch only when it is not protected, and cleans local state afterward.

Quick Start

Ask the AI to merge your open GitHub pull request (from your current target branch) into origin/development only if the user explicitly requested remote PR merge and cleanup work.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: github-pr-merge-cleanup
Download link: https://github.com/CareCard-ca/pkg-auth-util/archive/main.zip#github-pr-merge-cleanup

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.