merge
Skill1 starsChanged 19 days agoApache-2.0View on GitHub
Approve and squash-merge a GitHub PR with no extra comments. Use for \"/merge\", \"approve and merge\", \"merge this PR\".
62 other projects use a version of this.
Adopted by
Most recently taken up by
- alwqx/agent-skillstheir own version, first seen Nov 29, 2026
- mono0926/skillstheir own version, first seen Nov 26, 2026
- WItaZhang/codex-job-agenttheir own version, first seen Nov 22, 2026
- mo-cmyk/mazarbultheir own version, first seen Nov 22, 2026
- SprintsAI/lightsprint-claude-code-plugintheir own version, first seen Nov 22, 2026
- ToolJet/ToolJettheir own version, first seen Nov 19, 2026
Used with
Projects with it also use addskill, apply-firmware and 10 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.
ryanportfolioSkilladdskill
Create, import, update, or install repo or personal skills: runtime ownership, resources, discovery checks.
Also in 6 projects that use this
ryanportfolioSkillapply-firmware
Bring current folder (plain folder, existing repo, old or partial firmware copy) up to full Harness Firmware in place. Mirror external repo → adopt-repo.
Also in 6 projects that use this
- +10 more from ryanportfolio
Other versions62 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 62
- microsoft/vscode★ 196ksame name
- remotion-dev/remotion★ 76ksame name
- withastro/astro★ 64ksame name
- ToolJet/ToolJet★ 41ksame name
- Openpanel-dev/openpanel★ 7.3ksame name
- raine/workmux★ 3.1ksame name
- onetimesecret/onetimesecret★ 3ksame name
- jtenniswood/espcontrol★ 1.2ksame name
- K9i-0/ccpocket★ 1.1ksame name
- r1n7aro/Locus★ 759same name
52 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 repository20 other files it gives its agents.
- deep-code-reviewSkill
- feature-pipelineSkill
- github-updatesSkill
- idea-side-sessionSkill
- model-benchSkill
- prSkill
- repo-reviewSkill
- re-reviewSkill
- run-ledgerSkill
- rust-best-practicesSkill
- rust-reviewSkill
- stage-approveSkill
- stage-buildSkill
- stage-intakeSkill
- stage-reviewSkill
- stage-scopeSkill
- stage-spikeSkill
- startSkill
- submit-reviewSkill
- work-evaluationSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
22 rules. 0 are common, 13 are distinctive, and 9 are very specific to this project.
0
Common
Most of the 54 edited versions we read keep these.
13
Distinctive
This author's own choices. Worth a look.
9
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 8
Use this skill to approve a GitHub pull request without adding review comments, then squash-merge it through GitHub.
- Very specific: line 13
Treat /merge as explicit permission to approve and merge the target PR.
- Distinctive: line 14
Do not perform a fresh code review unless the user explicitly asks for one.
- Very specific: line 15
Use the GitHub CLI (gh) and GitHub's branch protection rules.
- Distinctive: line 17
Keep the PR clean: never add a top-level approval comment such as "LGTM" or a summary paragraph.
- Distinctive: line 19
Always use squash-and-merge.
- Distinctive: line 21
Ask a question only when the target PR is genuinely ambiguous.
- Very specific: line 33
If the user supplied a PR URL, PR number, or owner/repo#number, use it.
- Distinctive: line 40
If this fails because there is no PR for the current branch, ask the user which PR to merge.
- Distinctive: line 53
Stop and report clearly if the PR is closed, already merged, or still a draft.
- Distinctive: line 54
If checks are failing or GitHub reports conflicts, do not approve-and-merge.
- Very specific: line 63
Always merge with --squash.
- Distinctive: line 66
Check that squash merge is allowed:
- Very specific: line 72
If squash merge is not allowed for the repository, stop and report that blocker.
- Very specific: line 73
Do not fall back to --merge or --rebase.
- Very specific: line 83
Do not pass --body. If you need to use the API instead, send "body": "".
- Distinctive: line 85
If GitHub rejects the approval because the authenticated user authored the PR or has already approved it, do not invent a workaround …
- Distinctive: line 92
Use a non-interactive squash merge command:
- Distinctive: line 98
If GitHub refuses immediate merge only because required checks are still pending, enable squash auto-merge:
- Very specific: line 105
Do not pass --delete-branch.
- Very specific: line 108
Do not use --admin unless the user explicitly asked to bypass branch protection.
- Distinctive: line 122
Keep the response factual and short.
“Common” is measured: kept by at least 6 in 10 of the 54 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
Merge
Use this skill to approve a GitHub pull request without adding review comments, then squash-merge it through GitHub.
Operating Model
- Treat
/mergeas explicit permission to approve and merge the target PR. - Do not perform a fresh code review unless the user explicitly asks for one.
- Use the GitHub CLI (
gh) and GitHub's branch protection rules. Do not bypass protections with admin privileges unless the user explicitly requests it. - Keep the PR clean: never add a top-level approval comment such as "LGTM" or a summary paragraph. Approval is conveyed by the review event itself.
- Always use squash-and-merge. Do not use merge commits or rebase merges, and do not ask the user to choose a merge method.
- Ask a question only when the target PR is genuinely ambiguous.
Required Tools
ghCLI authenticated with permission to review and merge the target PRgitwhen resolving the current branch's PR- Network access to GitHub
Workflow
1. Resolve The Target PR
If the user supplied a PR URL, PR number, or owner/repo#number, use it. If they
only invoked /merge, resolve the PR from the current branch:
gh pr view --json number,url,title,state,isDraft,headRefName,baseRefNameIf this fails because there is no PR for the current branch, ask the user which PR to merge. If multiple repositories or PRs are plausible, ask for the exact target instead of guessing.
2. Inspect Merge Readiness
Fetch enough metadata to avoid surprising the user:
gh pr view <selector> \
--json number,url,title,state,isDraft,mergeable,mergeStateStatus,reviewDecision,statusCheckRollup,headRefOid,headRefName,baseRefNameStop and report clearly if the PR is closed, already merged, or still a draft. If checks are failing or GitHub reports conflicts, do not approve-and-merge; explain the blocker in the final response.
Pending required checks are different from failures. If GitHub will not merge immediately only because required checks are pending, enable auto-merge after approval instead of polling indefinitely.
3. Require Squash Merge
Always merge with --squash. This keeps /merge predictable and avoids changing
the repository history style from one invocation to the next.
Check that squash merge is allowed:
gh repo view --json squashMergeAllowedIf squash merge is not allowed for the repository, stop and report that blocker.
Do not fall back to --merge or --rebase.
4. Approve With No Comment
Submit an approval review with an empty body:
gh pr review <selector> --approveDo not pass --body. If you need to use the API instead, send "body": "".
If GitHub rejects the approval because the authenticated user authored the PR or has already approved it, do not invent a workaround comment. Continue to the merge step only if GitHub permits the merge, and tell the user exactly what happened.
5. Merge
Use a non-interactive squash merge command:
gh pr merge <selector> --squashIf GitHub refuses immediate merge only because required checks are still pending, enable squash auto-merge:
gh pr merge <selector> --squash --autoDo not pass --delete-branch. Branch cleanup is outside this skill's scope
because it adds an extra operation and can fail independently of the merge.
Do not use --admin unless the user explicitly asked to bypass branch
protection.
6. Confirm The Result
Return a concise final response with:
- PR title or number and link
- Whether approval was submitted, skipped because already present, or rejected by GitHub
- Whether the PR was merged immediately or auto-merge was enabled
- Squash merge was used
- That branch deletion was not attempted
Keep the response factual and short. Do not paste command transcripts unless the user asks for them.
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.

