Skip to content
Agentmart
Submit a tool

automerge

Opt a repo into pr-autopilot safe auto-merge.

Skill by MarcinSufa

IndexedMIT★ 1
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/marcinsufa-automerge

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Opt a repo into pr-autopilot safe auto-merge. Use /pr-autopilot:automerge <owner/repo> (or no arg for the current repo). When the loop reaches SUCCESS, autopilot queues a squash merge to the integration branch (dev) — never to master/main/production, always CI-gated. Separate from /pr-autopilot:allow.

Use cases: devops

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/automerge

What's inside

Skill name
automerge
Description
Opt a repo into pr-autopilot safe auto-merge. Use /pr-autopilot:automerge <owner/repo> (or no arg for the current repo). When the loop reaches SUCCESS, autopilot queues a squash merge to the integration branch (dev) — never to master/main/production, always CI-gated. Separate from /pr-autopilot:allow.
License
MIT
Instructions
26 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# /pr-autopilot:automerge [owner/repo]

Adds a repository to `~/.pr-autopilot/automerge-repos` so that when the review loop reaches SUCCESS on a PR there, autopilot queues a **safe auto-merge** to the integration branch instead of just notifying.

**This is a standing "explicit ask" to auto-merge.** It is opt-in, **dev-only**, **CI-gated**, and **never merges to `master`/`main`/`production`** (those stay manual via `/land-and-deploy`). Default (repo not listed) = auto-merge OFF, behavior identical to v0.3 (notify-and-stop). This allowlist is **separate** from v0.3's `~/.pr-autopilot/allowed-repos` (auto-trigger). For a fully hands-off repo you need BOTH `/pr-autopilot:allow` (auto-start the loop) AND `/pr-autopilot:automerge` (auto-merge at the end).

## Steps

1. Determine the target repo:
   - If an argument `<owner/repo>` was given, use it.
   - Else resolve the current repo: `git remote get-url origin` → parse `owner/repo` (strip `github.com[:/]` prefix and `.git` suffix). If no origin remote, STOP: "Not in a git repo with a github origin — pass an explicit owner/repo."
2. Validate it exists AND get the canonical-cased name: `gh repo view <owner/repo> --json nameWithOwner -q .nameWithOwner`. If it fails, STOP: "Repo <owner/repo> not found or not accessible — check the name / your gh auth." **Use the returned `nameWithOwner` (GitHub's canonical casing) as the value to store** — NOT the raw user-typed argument. The auto-merge Gate 1 matches the allowlist **case-insensitively** (same matching as `/pr-autopilot:allow`), so casing differences are tolerated; storing the canonical `nameWithOwner` keeps the file clean.
3. Ensure the file and dedupe (write the canonical `nameWithOwner` from step 2):
   ```bash
   mkdir -p ~/.pr-autopilot
   touch ~/.pr-autopilot/automerge-repos
   # $CANON is the nameWithOwner from step 2 (e.g. octo-org/my-repo), not the raw input
   grep -qxF "$CANON" ~/.pr-autopilot/automerge-repos || echo "$CANON" >> ~/.pr-autopilot/automerge-repos
   ```
4. Confirm to the user: "Auto-merge enabled for <owner/repo>. When the loop reaches SUCCESS on a PR targeting `dev`, autopilot will queue a squash merge (never to master/main/production; CI-gated). Pause anytime with /pr-autopilot:pause." Show the current allowlist: `cat ~/.pr-autopilot/automerge-repos`.

Idempotent: re-running for an already-listed repo is a no-op.

**Removal** is a documented manual edit: `$EDITOR ~/.pr-autopilot/automerge-repos` (delete the line). Add-only by design, mirroring `/pr-autopilot:allow`.

From MarcinSufa/claude-pr-autopilot, MIT.

Signals

Stars
1
Forks
0
Open issues
0
Last commit (this folder)
May 25, 2026 (5 months ago)
Last release
May 28, 2026 (5 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from MarcinSufa

Cite this page

automerge skill. Agent Mart. https://agentmart.dev/skills/marcinsufa-automerge (last updated 2026-10-24)