agentleFS
cloverinkcloverink/shipwright/skills/merge-pr/SKILL.md

merge-pr

Skill0 starsChanged 49 days agoMITView on GitHub

Merge current PR after CI passes. Waits for all checks, squash merges, deletes branch, switches to main.

17 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use implement-issue, create-pr and 2 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • GoogleSkill

    implement-issue

    Implement a Site Kit GitHub issue end-to-end from its implementation brief. Use when the user asks to implement, build, or work on a GitHub issue / feature by number (e.g. "implement issue #12345", "build the feature in issue 12345", "follow the implementation brief for #12345") in the google/site-kit-wp repo.

    Also in 3 projects that use this

  • SentrySkill

    create-pr

    Create pull requests following Sentry conventions. Use when opening PRs, writing PR descriptions, or preparing changes for review. Follows Sentry's code review guidelines.

    Also in 7 projects that use this

  • sahinSkill

    create-issue

    Also in 3 projects that use this

  • SentrySkill

    commit

    Create commit messages following Sentry conventions. Use when committing code changes, writing commit messages, or formatting git history. Follows conventional commits with Sentry-specific issue references.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 2 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 17 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Wait for CI, then merge cleanly.

    line 9
  2. Distinctive:

    Never merges with failing CI: if checks fail, report which ones and stop

    line 22
  3. Very specific:

    Always deletes branch: no stale branches (remove --delete-branch if you want to keep them)

    line 24

“Common” is measured: kept by at least 6 in 10 of the 17 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

/merge-pr

Wait for CI, then merge cleanly.

Workflow

  1. Get current PR: gh pr view on current branch
  2. Wait for CI: poll every 15s until all checks pass
  3. Squash merge: gh pr merge --squash --delete-branch
  4. Switch to main: git checkout main && git pull --rebase
  5. Report: confirm merge succeeded

Rules

<!-- CONFIGURE: Change merge strategy (--squash, --merge, --rebase) and branch cleanup to match your workflow -->
  • Never merges with failing CI: if checks fail, report which ones and stop
  • Always squash merge: keeps main history clean (change to --merge or --rebase if preferred)
  • Always deletes branch: no stale branches (remove --delete-branch if you want to keep them)
  • Never merges to non-default branch: PR must target main (or your default branch)

Usage

/merge-pr          # Merge current branch's PR

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.