Auto PR Merger Skill

This skill automates the workflow of checking out a GitHub PR, running tests, attempting to fix failures, and merging if successful.

7 stars

Best use case

Auto PR Merger Skill is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

This skill automates the workflow of checking out a GitHub PR, running tests, attempting to fix failures, and merging if successful.

Teams using Auto PR Merger Skill should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/auto-pr-merger/SKILL.md --create-dirs "https://raw.githubusercontent.com/Demerzels-lab/elsamultiskillagent/main/public/skills/autogame-17/auto-pr-merger/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/auto-pr-merger/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How Auto PR Merger Skill Compares

Feature / AgentAuto PR Merger SkillStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

This skill automates the workflow of checking out a GitHub PR, running tests, attempting to fix failures, and merging if successful.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# Auto PR Merger Skill

This skill automates the workflow of checking out a GitHub PR, running tests, attempting to fix failures, and merging if successful.

## Usage

```bash
node skills/auto-pr-merger/index.js --pr <PR_NUMBER_OR_URL> --test "<TEST_COMMAND>" [--retries <NUMBER>]
```

## Arguments

- `--pr`: The PR number or URL (e.g., `123` or `https://github.com/owner/repo/pull/123`).
- `--test`: The command to run tests (e.g., `npm test`, `pytest`).
- `--retries`: (Optional) Number of times to attempt fixing the code if tests fail. Default: 3.

## Requirements

- `gh` CLI installed and authenticated.
- Node.js environment.

## Logic

1.  Checks out the PR using `gh pr checkout`.
2.  Runs the specified test command.
3.  If tests fail:
    *   Reads the output.
    *   Attempts a fix (Currently a placeholder/mock fix logic).
    *   Commits and pushes the fix.
    *   Retries the test command.
4.  If tests pass:
    *   Merges the PR using `gh pr merge --merge --auto`.

Related Skills

BTC15 Autonomous Prediction Market

7
from Demerzels-lab/elsamultiskillagent

A fully autonomous BTC prediction market powered by three cooperating agents using USDC.

autonomous-agent

7
from Demerzels-lab/elsamultiskillagent

CreditNexus x402 agent. Use when the user wants stock predictions, backtests, bank linking, or agent/borrower scores. Payment-protected MCP tools (run_prediction, run_backtest, link_bank_account, get_agent_reputation_score, get_borrower_score, and by-email variants) with x402 flow (Aptos + Base). Agent handles 402 → pay → retry autonomously. Supports wallet attestation (signing) for onboarding.

automation-workflows

7
from Demerzels-lab/elsamultiskillagent

Design and implement automation workflows to save.

ahc-automator

7
from Demerzels-lab/elsamultiskillagent

Custom automation workflows for Alan Harper Composites.

telegram-auto-topic

7
from Demerzels-lab/elsamultiskillagent

Add `/topic` to the start of any message in a Telegram forum group to auto-create a new topic from it. A title is generated automatically from the message content. Github: https://github.com/itstauq/telegram-auto-topic

autonomous-executor

7
from Demerzels-lab/elsamultiskillagent

Self-healing, error-recovering task execution with full autonomy.

autotask-mcp

7
from Demerzels-lab/elsamultiskillagent

Use when you need to interact with Datto/Kaseya Autotask PSA via an MCP server (tickets, companies, contacts.

auto-context-manager

7
from Demerzels-lab/elsamultiskillagent

AI-powered automatic project context management.

auto-updater

7
from Demerzels-lab/elsamultiskillagent

Automatically update Clawdbot and all installed skills once daily. Runs via cron, checks for updates, applies them, and messages the user with a summary of what changed.

x-automation

7
from Demerzels-lab/elsamultiskillagent

Automates the process of identifying trends on X (Twitter), generating opinionated/engaging content, and posting it. Use when asked to post to X, run X automation, or check trends for content creation.

agent-autonomy-primitives

7
from Demerzels-lab/elsamultiskillagent

Build long-running autonomous agent loops using ClawVault primitives (tasks, projects, memory types, templates.

web-automation-apify

7
from Demerzels-lab/elsamultiskillagent

This skill enables Claude to automate web interactions — filling forms, testing UIs,.