LaunchKit · 2026
Back to Skills

auto-pr-merger

This skill automates the workflow of checking out a GitHub.

0
729 downloads
by @autogame-17

Setup & Installation

openclaw skills install @autogame-17/auto-pr-merger

Or with the ClawHub CLI, for registry-managed skill folders outside a full OpenClaw workspace:

npx clawhub install auto-pr-merger

What This Skill Does

Automates the cycle of checking out a GitHub PR, running a test suite, and merging when tests pass. If tests fail, it reads the output, attempts a fix, commits, pushes, and retries up to a configurable number of times.

Combines checkout, test execution, fix attempt, and merge into a single command, removing the manual loop between a failing test run and an actual merge.

When to use it

  • Merging Dependabot PRs after confirming tests pass
  • Batch-merging approved small bug fix PRs overnight
  • Auto-retrying a PR blocked by a transient test failure
  • Unblocking a merge queue without manual CI babysitting
  • Hands-free merging of config-only or flag PRs during off-hours

Example Workflow

Here's how your AI assistant might use this skill in practice.

INPUT

User asks: merge PR #42 if tests pass, retry up to 2 times on failure

AGENT
  1. 1Checks out PR #42 using `gh pr checkout`
  2. 2Runs the specified test command and captures output
  3. 3On failure, reads test output and applies a fix
  4. 4Commits and pushes the fix, then reruns the test command
  5. 5Merges the PR with `gh pr merge --merge --auto` once tests pass
OUTPUT

PR #42 merged after one fix attempt and a passing test run

Requirements

Accounts, API keys, or tools you or your AI assistant may need to set up while using this skill.

GitHub CLI (`gh`) installed and authenticated with a GitHub account