Skip to content
Back to skills

Auto Pr Merger

ASecurity

Auto Pr Merger

  • 33 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 5, 2026
toolsbashnodegit

Works with

  • cli

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned September 5, 2026

npx -y skills add dvcrn/openclaw-skills-marketplace --skill auto-pr-merger --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Auto Pr Merger?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Auto Pr Merger
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/dvcrn-auto-pr-merger/badge)](https://www.skillsdirectory.com/skills/dvcrn-auto-pr-merger)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: auto-pr-merger
description: "Auto Pr Merger"
---

# 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`.

Files in this skill

  • SKILL.md1 KB
  • index.js11.3 KB
  • package-lock.json616 B
  • package.json276 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…