approve-merge

Community

Require explicit PR approval, then merge.

Authorme2resh
Version1.0.0
Installs0

System Documentation

What problem does it solve?

It prevents accidental or ambiguous merges by forcing an explicit, per-PR CEO approval moment before running the GitHub merge command.

Core Features & Use Cases

  • Records a structured CEO approval marker at .claude/session/reviews/<pr>-ceo.approved, binding the approval to the PR’s GitHub HEAD SHA (GitHub-reported).
  • Validates safety conditions before merging by checking PR state (OPEN only), mergeability (non-conflicting), and the existence of the corresponding Rex approval marker at the same PR HEAD.
  • Executes the merge in the same turn by default with gh pr merge <pr> --squash --delete-branch, while keeping the CEO marker on disk so you can retry after fixing any gate failures.
  • Use case: After you confirm a specific PR is ready, record CEO approval and immediately merge it with the correct enforcement that plan-level “go” is not sufficient.

Quick Start

Invoke approve-merge with the PR number you explicitly approved, optionally adding --no-merge if you want to record approval now but merge later.

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: approve-merge
Download link: https://github.com/me2resh/apexyard/archive/main.zip#approve-merge

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.