merge-pr
Skill486 starsChanged 15 days agoApache-2.0View on GitHub
This skill codifies the workflow for taking a completed local task branch, pushing it to GitHub, creating a Pull Request, and merging it via rebase. Use this skill when the user asks to "close the pr by rebasing and merging to main" or explicitly invokes /merge-pr.
- Deletes or force-pushes
- Commits and pushes
We split this skill into the rules it gives an agent
4 rules. 0 are common, 1 is distinctive, and 3 are very specific to this project.
0
Common
Most of the 14 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 13
Use this skill when the user asks to "close the pr by rebasing and merging to main" or explicitly invokes /merge-pr.
- Distinctive: line 19
Verify the git working tree is clean.
- Very specific: line 32
Delete the local task branch you just merged: git branch -D <branch-name>.
- Very specific: line 33
If working in a linked worktree, clean it up from the main repository: git worktree remove <worktree-path>.
“Common” is measured: kept by at least 6 in 10 of the 14 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 PR Workflow
This skill codifies the workflow for taking a completed local task branch, pushing it to GitHub, creating a Pull Request, and merging it via rebase.
When to Use
Use this skill when the user asks to "close the pr by rebasing and merging to main" or explicitly invokes /merge-pr.
The Workflow
Step 1: Ensure Clean State & Push
- Verify the git working tree is clean. If not, ask the user to commit or stash changes.
- Push the current branch to origin using
git push -f origin HEAD. We use-fbecause local commits are frequently amended during code reviews.
Step 2: Merge via Rebase
- Merge the existing PR into main using the rebase strategy and delete the remote branch:
gh pr merge --rebase --delete-branch. - This ensures a linear commit history on the main branch without ugly merge commits.
Step 3: Cleanup
- Switch back to the main branch:
git checkout main. - Pull the latest changes to sync up with origin:
git pull. - Prune stale remote tracking branches:
git fetch --prune. - Delete the local task branch you just merged:
git branch -D <branch-name>. - If working in a linked worktree, clean it up from the main repository:
git worktree remove <worktree-path>.
Other versions14 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 14
- cube-js/cube★ 21ksame name
- bazel-contrib/rules_python★ 687same name
- kkokosa/dotLLM★ 522same name
- tbhb/vale-ai-tells★ 118same name
- TermiX-official/cryptoclaw★ 100same name
- kdy1/kdy1-scripts★ 33same name
- neul-labs/openclawMU★ 33same name
- developerz-ai/open-mmorpg★ 15same name
- phmatray/ai-migration-kit★ 4same name
- phmatray/tagout★ 4same name
4 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.
Used alongsideProjects with it also use implement-issue and create-issue.
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
In this repository30 other files it gives its agents.
- .agents/AGENTS.mdAGENTS.md
- AGENTS.mdAGENTS.md
- build-infra/AGENTS.mdAGENTS.md
- rust-analyzer-mcp-server/AGENTS.mdAGENTS.md
- task/AGENTS.mdAGENTS.md
- llms.txtllms.txt
- analyze-log-filesSkill
- analyze-performanceSkill
- audit-taskSkill
- batch-refactor-with-sub-agentsSkill
- check-bounds-safetySkill
- check-code-qualitySkill
- check-test-coverageSkill
- code-reviewSkill
- concurrency-safetySkill
- create-commit-messageSkill
- create-prSkill
- design-philosophySkill
- fast-string-allocationsSkill
- fix-issueSkill
- organize-modulesSkill
- organize-testsSkill
- release-crateSkill
- remove-crate-prefixSkill
- review-prSkill
- run-clippySkill
- safe-renamingSkill
- test-cross-platformSkill
- write-documentationSkill
- write-structured-tracingSkill
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.

