Auto PR Merger Skill

Check out GitHub pull requests, run tests, apply AI fixes, and merge.

26|5|Updated Feb 19, 2026
One-click install
npx skills add https://github.com/kunwl123456/zeroclaw-skills-collection --skill auto-pr-merger-skill-kunwl123456
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Auto PR Merger Skill
Source: https://github.com/kunwl123456/zeroclaw-skills-collection/tree/main/auto-pr-merger
Command: npx skills add https://github.com/kunwl123456/zeroclaw-skills-collection --skill auto-pr-merger-skill-kunwl123456

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires minimist, and includes scripts (resource) components.

What problem does it solve?

This skill automates the tedious process of manually checking out, testing, and merging GitHub pull requests, reducing developer overhead and speeding up the CI/CD pipeline.

Core Features & Use Cases

  • Automated Checkout: Clones and checks out a specified GitHub Pull Request.
  • Automated Testing: Executes a user-defined test command against the PR's code.
  • Automated Fixing: Attempts to fix failing tests using AI, commits the fix, and retries.
  • Automated Merging: Merges the PR if all tests pass, respecting branch protection rules.
  • Use Case: A developer submits a PR. This skill automatically checks it out, runs npm test, and if it fails, uses an LLM to suggest and apply a fix before re-running tests and merging if successful.

Quick Start

Use the auto-pr-merger skill to checkout PR number 123 and run 'npm test'.

Frequently Asked Questions about Auto PR Merger Skill

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

FAQPage Schema
How do I automate GitHub PR testing and merging?

Automate GitHub PR testing and merging by using a skill that checks out the pull request, runs your specified test command, and merges it upon success. It handles the entire checkout, test, and merge cycle automatically.

Can AI automatically fix failing tests in a pull request?

AI can automatically fix failing tests in a pull request by analyzing the test failures, suggesting and applying code fixes via an LLM, committing the changes, and iteratively retrying the tests until they pass.

Do I need the gh CLI and Node.js to automate pull request merges?

You need the gh CLI and Node.js installed to automate pull request merges. These dependencies are required to interact with GitHub repositories, check out branches, execute test commands, and perform the automated merge.

How are merge conflicts handled during automated PR merging?

Merge conflicts during automated PR merging are handled through iterative retries and LLM assistance. The automation attempts AI-driven fixes for failures and conflicts before proceeding with the final pull request merge.

What is the best way to run custom test commands on a GitHub PR before merging?

The best way to run custom test commands on a GitHub PR is to use an automation script that checks out the PR and executes your user-defined test command. If tests pass, the PR is merged automatically respecting branch protection.