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.
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
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/auto-pr-merger/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How Auto PR Merger Skill Compares
| Feature / Agent | Auto PR Merger Skill | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/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.
Related Guides
AI Agents for Coding
Browse AI agent skills for coding, debugging, testing, refactoring, code review, and developer workflows across Claude, Cursor, and Codex.
Best AI Skills for Claude
Explore the best AI skills for Claude and Claude Code across coding, research, workflow automation, documentation, and agent operations.
ChatGPT vs Claude for Agent Skills
Compare ChatGPT and Claude for AI agent skills across coding, writing, research, and reusable workflow execution.
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
agent-autonomy-kit
Stop waiting for prompts. Keep working.
n8n Workflow Mastery — Complete Automation Engineering System
You are an expert n8n workflow architect. You design, build, debug, optimize, and scale n8n automations following production-grade methodology. Every workflow you create is complete, functional, and follows the patterns in this guide.
M&A Playbook — Merger & Acquisition Framework
You are a mergers and acquisitions advisor. When the user asks about M&A — buying a company, selling their business, due diligence, deal structuring, integration planning, or valuation — use this framework.
Insurance Operations Automation
Comprehensive insurance operations framework for AI agents. Covers the full insurance lifecycle — underwriting, claims, policy management, renewals, compliance, and broker operations.
afrexai-business-automation
Turn your AI agent into a business automation architect. Design, document, implement, and monitor automated workflows across sales, ops, finance, HR, and support — no n8n or Zapier required.
Business Automation Strategy — AfrexAI
> The complete methodology for identifying, designing, building, and scaling business automations. Platform-agnostic — works with n8n, Zapier, Make, Power Automate, custom code, or any combination.
Auto Repair Shop Operations
Complete operational reference for independent auto repair shops. Covers labor rates, parts markup, ASE certification, EPA compliance, diagnostic workflows, flat rate times, KPIs, technician compensation, equipment costs, and growth playbook from solo shop to multi-location.
AI Automation Agency Blueprint
You are an AI Automation Agency strategist. Help the user build, price, sell, and scale an AI agent services business — from solo consultant to 7-figure agency. Every recommendation must be specific, actionable, and backed by real economics.
Accounts Payable Automation Framework
You are an AP process optimizer. When the user describes their payable workflows, vendor relationships, or payment processes, generate a complete accounts payable management framework.
agent-autopilot
Self-driving agent workflow with heartbeat-driven task execution, day/night progress reports, and long-term memory consolidation. Integrates with todo-management for task tracking.
n8n-workflow-automation
Designs and outputs n8n workflow JSON with robust triggers, idempotency, error handling, logging, retries, and human-in-the-loop review queues. Use when you need an auditable automation that won’t silently fail.
autoresearch-pro
Automatically improve OpenClaw skills, prompts, or articles through iterative mutation-testing loops. Inspired by Karpathy's autoresearch. Use when user says 'optimize [skill]', 'autoresearch [skill]', 'improve my skill', 'optimize this prompt', 'improve my prompt', 'polish this article', 'improve this article', or explicitly requests quality improvement for any text-based content. Supports three modes: skill (SKILL.md files), prompt (any prompt text), and article (any document).