Auto PR Merger Skill for Openclaw

The Auto PR Merger Skill is a powerful automation tool designed to handle the end-to-end lifecycle of GitHub pull requests, from testing to merging.

autogame-17
v1.0.0
Feb 17, 2026
0
963
10

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install auto-pr-merger

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install auto-pr-merger using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Auto PR Merger Skill?

The Auto PR Merger Skill is an essential utility within the Openclaw Skills ecosystem designed to streamline the developer experience. By automating the repetitive steps of checking out code, running test suites, and handling merges, it allows teams to focus on writing code rather than managing branch logistics. This skill acts as a localized CI/CD agent that can be triggered directly from your environment.

Utilizing Openclaw Skills like this one ensures that your repository maintains high standards of code quality. It integrates directly with your existing command-line tools to provide a seamless bridge between a proposed change and its final integration into the main codebase. Whether you are managing a solo project or a large-scale enterprise repository, this tool provides the reliability needed for modern software development.

Auto PR Merger Skill Use Cases

  • Automatically verifying and merging dependency updates or small patches.
  • Implementing a self-healing CI loop that attempts to fix minor linting or test failures.
  • Reducing the manual burden on maintainers by offloading the checkout and test verification process.
  • Standardizing the PR review and merge workflow across teams using Openclaw Skills.

How Auto PR Merger Skill Works

  1. The skill accepts a PR number or URL and uses the GitHub CLI to perform an automated checkout of the branch.
  2. It executes a user-defined test command, such as npm test or pytest, to verify the PR contents.
  3. If tests fail, the skill enters a retry loop where it analyzes the output and attempts to apply corrective fixes.
  4. Corrective commits are pushed back to the repository to update the pull request automatically.
  5. Once the tests pass successfully, the skill triggers the GitHub merge command to finalize the contribution.

Auto PR Merger Skill Setup

To get started with this component of Openclaw Skills, ensure you have the GitHub CLI (gh) installed and authenticated on your machine along with a Node.js environment.

# Run the skill using node
node skills/auto-pr-merger/index.js --pr <PR_NUMBER_OR_URL> --test "npm test"

You can optionally specify the number of retries for automated fixes using the --retries flag.

Auto PR Merger Skill Data Schema & Taxonomy

The Auto PR Merger Skill processes repository metadata and execution logs to determine the state of a pull request. It organizes data as follows:

Attribute Type Description
pr String The target GitHub PR number or full URL.
test String The shell command used to validate the code.
retries Number Maximum number of fix-and-test cycles allowed.
logs String Captured stdout/stderr used for diagnostic fixing.

Auto PR Merger Skill Advanced Features

  • Intelligent retry mechanism for self-correcting code during the testing phase.
  • Full compatibility with GitHub's auto-merge feature for repositories with branch protection rules.
  • Support for custom test runners and complex shell commands within the Openclaw Skills framework.
  • Automated commit and push cycles to handle iterative improvements without manual input.
  • CLI-based configuration that allows for easy integration into larger automation scripts.

SKILL.md


Loading

Related Openclaw Skills

Featured*