merge-pr
Skill692 starsChanged 6 days agoApache-2.0View on GitHub
Merge a pull request into main, monitoring the merge queue,
17 other projects use a version of this.
Adopted by
Most recently taken up by
- mihai-dinculescu/tapotheir own version, first seen Nov 9, 2026
- ddnexus/pagytheir own version, first seen Nov 9, 2026
- ShareX/ShareXtheir own version, first seen Nov 8, 2026
- kdy1/kdy1-scriptstheir own version, first seen Nov 1, 2026
- r3bl-org/r3bl-open-coretheir own version, first seen Oct 17, 2026
- jsirish/workflow-skillstheir own version, first seen Oct 13, 2026
Used with
Projects with it also use implement-issue, create-issue and 1 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.
GoogleSkillimplement-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
sahinSkillcreate-issue
Also in 3 projects that use this
SentrySkillcommit
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
Other versions17 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 17
- ShareX/ShareX★ 41ksame name
- cube-js/cube★ 21ksame name
- ddnexus/pagy★ 5ksame name
- mihai-dinculescu/tapo★ 870same name
- kkokosa/dotLLM★ 528same name
- r3bl-org/r3bl-open-core★ 486same name
- tbhb/vale-ai-tells★ 118same name
- TermiX-official/cryptoclaw★ 100same name
- kdy1/kdy1-scripts★ 33same name
- neul-labs/openclawMU★ 33same name
7 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository13 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- analyze-ci-failureSkill
- buildkite-get-resultsSkill
- conversation-doneSkill
- create-newsSkill
- create-prSkill
- monitor-ci-resultsSkill
- process-dependabot-prsSkill
- retry-ci-jobSkill
- review-codeSkill
- rule-creatorSkill
- sync-git-branch-continuouslySkill
The file
We split this skill into the rules it gives an agent
9 rules. 0 are common, 1 is distinctive, and 8 are very specific to this project.
0
Common
Most of the 17 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 7
When the user asks to merge a pull request (e.g., "merge PR <number>", "merge this PR", or monitor its merge):
- Very specific: line 10
Enqueue for Merge: Run gh pr merge <pr_number> --repo bazel-contrib/rules_python --auto --squash.
- Very specific: line 12
Draft PRs: If the PR is a draft (isDraft: true), mark it ready for review first via gh pr ready <pr_number> --repo …
- Very specific: line 20
Never pass --admin while CI is pending or failing unless told to bypass CI.
- Very specific: line 22
No
--delete-branch(-d): Never pass -d or --delete-branch to gh pr merge. - Very specific: line 26
If a monitor_remote_ci.py <pr_number> background task is currently running in the parent conversation, stop it via manage_task first so …
- Very specific: line 38
Blocked Builds (CI Config Approval): When the PR changes a file under .bazelci/ or a .yml file outside .github/, Buildkite blocks the build …
- Very specific: line 46
When the PR is queued, actively discover the merge queue branch via gh api repos/:owner/:repo/branches --jq with '.[].name | …
- Very specific: line 51
Blocked Merge Queue Builds: If the PR changes a file under .bazelci/ or a .yml file outside .github/, the merge queue build is blocked …
“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.
Files
When the user asks to merge a pull request (e.g., "merge PR <number>", "merge
this PR", or monitor its merge):
- Enqueue for Merge: Run
gh pr merge <pr_number> --repo bazel-contrib/rules_python --auto --squash.- Draft PRs: If the PR is a draft (
isDraft: true), mark it ready for review first viagh pr ready <pr_number> --repo bazel-contrib/rules_python(otherwisegh pr mergefails withPull Request is still a draft). - Force / Admin Merge: CRITICAL: Only pass
--admin(e.g.,gh pr merge <pr_number> --repo bazel-contrib/rules_python --admin --squash) with explicit user consent ("force merge", "admin merge", or "merge immediately" once CI passes and onlyREVIEW_REQUIREDblocks). Never pass--adminwhile CI is pending or failing unless told to bypass CI. - No
--delete-branch(-d): Never pass-dor--delete-branchtogh pr merge; it fails when a merge queue is enabled on the repository.
- Draft PRs: If the PR is a draft (
- Invoke a Background Shepherd: Launch a background subagent with the role
Merge PR Shepherdto continuously watch the PR until it merges.- If a
monitor_remote_ci.py <pr_number>background task is currently running in the parent conversation, stop it viamanage_taskfirst soMerge PR Shepherdcan acquire.monitored_pr_<pr_number>.lockand receive CI failure notifications directly.
- If a
- Leverage Existing CI Skills:
- Have the subagent use the
monitor-ci-resultsskill to watch for CI check failures and generate analysis reports. - Have the subagent use the
retry-ci-jobskill (retry_ci_jobs.py --pr <pr_number>) to automatically retry any transient network flakes (e.g., HTTP 504 gateway timeouts, downloader errors,setup-bazelUnable to find Bazelisk versionerrors) and unblock manual approval steps. - Blocked Builds (CI Config Approval): When the PR changes a file under
.bazelci/or a.ymlfile outside.github/, Buildkite blocks the build until manually approved. Approve and unblock it immediately via./.agents/skills/retry-ci-job/scripts/retry_ci_jobs.py --pr <pr_number> --unblock(orbk job unblock <job_id> --no-input) so CI does not sit blocked indefinitely. - Soft-Failing Jobs: Experimental Buildkite jobs (e.g.
*rolling*Bazel) are non-blocking soft failures; do not treat them as merge blockers. - When the PR is queued, actively discover the merge queue branch via
gh api repos/:owner/:repo/branches --jqwith'.[].name | select(test("gh-readonly-queue/.*/pr-<pr_number>-"))'and monitor commit statuses/Buildkite builds running on that temporary branch. - Blocked Merge Queue Builds: If the PR changes a file under
.bazelci/or a.ymlfile outside.github/, the merge queue build is blocked again, even with thepresubmit-auto-runlabel, andmonitor_remote_ci.pydoesn't watch it. Find it withbk build list --pipeline bazel/rules-python-python --branch <queue_branch> --json | jq '.[] | {number, state, blocked}', then unblock it with./.agents/skills/retry-ci-job/scripts/retry_ci_jobs.py --buildkite-build bazel/rules-python-python/<build_number> --unblock.--pr <pr_number>resolves to the PR's build, not the queue build.
- Have the subagent use the
- Queue Shepherding: Periodically check
gh pr view <pr_number> --repo bazel-contrib/rules_python --json state,autoMergeRequest,mergeStateStatus,mergeable. Whilestateis"OPEN", ifautoMergeRequestisnulland nogh-readonly-queue/.*/pr-<pr_number>-branch exists, re-enqueue withgh pr merge <pr_number> --repo bazel-contrib/rules_python --auto --squashonce checks are green. - Completion Notification: Once
statebecomes"MERGED", send a high-priority message back to the parent conversation.
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
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.

