← Back to Skills Marketplace
132
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install pr-auto-merger
Description
Autonomous PR merge agent. Scans repos for approved + CI-passing PRs and merges them automatically. Supports dry-run mode, squash/merge options, and min-appr...
Usage Guidance
This skill appears to do exactly what it says: it needs a system-installed, authenticated GitHub CLI (gh) with repo permissions and will call gh to list and merge PRs. Before enabling it: 1) Test thoroughly in dry-run mode (default) and on a non-critical repo. 2) Verify how you install the GitHub CLI — the GH Actions example recommending `pip install gh` is misleading; prefer the official gh installers or package managers. 3) Confirm the token used by gh has only the permissions you intend (repo scope is required to merge). 4) Review and adjust min-approvals and squash/merge options, and consider scheduling only for repos you trust the automation on. 5) If you plan to let an autonomous agent run this regularly, restrict which repos it can target and audit runs/logs to avoid unintended merges.
Capability Analysis
Type: OpenClaw Skill
Name: pr-auto-merger
Version: 1.0.0
The skill is a legitimate automation tool for managing GitHub pull requests using the 'gh' CLI. The Python script (scripts/auto_merge.py) implements logic to filter and merge PRs based on CI status and approvals, defaulting to a safe dry-run mode. While there is a minor logic bug in the merge_pr function that would cause the 'gh' command to be invoked incorrectly (as 'gh gh'), there is no evidence of malicious intent, data exfiltration, or prompt injection.
Capability Assessment
Purpose & Capability
The skill only uses the GitHub CLI (gh) via subprocess calls to list and merge PRs and includes a small Python script that implements the described filtering and merge behavior. No unrelated credentials, binaries, or services are requested — this aligns with the stated purpose.
Instruction Scope
Instructions are narrowly scoped to calling gh pr list and gh pr merge; the script does not read arbitrary files or environment variables. Minor issues: the GH Actions example suggests `pip install gh` (the GitHub CLI is usually installed via package managers or GitHub releases, not pip); SKILL.md and function defaults have small inconsistencies (min-approvals default documented as 1 but get_prs_to_merge has a default of 2 in its signature, though main() passes the CLI value). The script enforces only APPROVED reviewDecision, which matches the description.
Install Mechanism
No install spec is provided and the skill is instruction-only with a single, readable script. Nothing is downloaded or executed from external URLs, and included code isn't obfuscated.
Credentials
No environment variables or secrets are requested by the skill itself; it relies on the system-installed gh CLI and the user's authenticated gh session (which must have a token with repo scope). That requirement is proportionate to the task of merging PRs.
Persistence & Privilege
always is false and the skill does not request permanent or elevated platform privileges. It can be invoked by the agent (the normal default), which is expected for an automation skill that may be scheduled or called by an agent.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install pr-auto-merger - After installation, invoke the skill by name or use
/pr-auto-merger - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
- Initial release of pr-auto-merger.
- Scans GitHub repositories for PRs that are approved, CI-passing, and mergeable, then merges them automatically.
- Supports dry-run mode, configurable minimum approval counts, and options for squash or merge.
- Requires only Python stdlib and the GitHub CLI (`gh`); no external dependencies.
- Includes guides for quick start, GitHub Actions integration, and cron task setup.
Metadata
Frequently Asked Questions
What is PR Auto-Merge Agent?
Autonomous PR merge agent. Scans repos for approved + CI-passing PRs and merges them automatically. Supports dry-run mode, squash/merge options, and min-appr... It is an AI Agent Skill for Claude Code / OpenClaw, with 132 downloads so far.
How do I install PR Auto-Merge Agent?
Run "/install pr-auto-merger" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is PR Auto-Merge Agent free?
Yes, PR Auto-Merge Agent is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does PR Auto-Merge Agent support?
PR Auto-Merge Agent is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created PR Auto-Merge Agent?
It is built and maintained by lanxevo3 (@lanxevo3); the current version is v1.0.0.
More Skills