Auto PR Merger Skill

Check out, test, fix, and merge GitHub pull requests via the gh CLI.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/WangK0221/OpenClaw_Shrimp --skill auto-pr-merger-skill-wangk0221
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Auto PR Merger Skill
Source: https://github.com/WangK0221/OpenClaw_Shrimp/tree/main/skills/auto-pr-merger
Command: npx skills add https://github.com/WangK0221/OpenClaw_Shrimp --skill auto-pr-merger-skill-wangk0221

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 release cycle.

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 opens a PR. This skill automatically checks it out, runs npm test, and if it fails, tries to fix the code using an LLM. If successful, it merges the PR.

Quick Start

Use the auto-pr-merger skill to checkout and test pull request number 42 with the command 'npm run 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 pull request testing and merging?

Automate GitHub pull request testing and merging by using a skill that checks out PRs via the gh CLI, executes user-defined test commands, attempts AI-suggested fixes for failures, and merges the code upon success.

Can I automatically fix failing tests in a pull request before merging?

Yes, you can automatically fix failing tests in a pull request. The skill uses an LLM to suggest code fixes for test failures, commits the changes, and retries the tests before attempting to merge the PR.

What is needed to automate PR checkout and testing with gh CLI?

To automate PR checkout and testing with gh CLI, you need the GitHub CLI installed and a specified test command. The skill uses these dependencies to clone the pull request and validate the code changes automatically.

Does automated PR merging respect GitHub branch protection rules?

Yes, automated PR merging respects GitHub branch protection rules. The skill attempts both auto-merge and immediate merge strategies only after all specified user-defined tests pass successfully.

What happens when an automated AI test fix fails for a pull request?

When an automated AI test fix fails, the skill manages retries by attempting additional fixes. If the tests still fail after these retries, the pull request is not merged to prevent breaking the codebase.

Is there a way to run a custom test command against a checked out pull request?

Yes, you can run a custom test command against a checked out pull request. The skill executes user-defined test commands like npm run test against the PR code to validate changes before merging.