Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By ArefMozafariv1.0.0MITIn 1 marketplace
Confirms the merge from the remote, squash merges included, then removes the worktree and branch, reverts churn, fast-forwards the default branch, and retires notes that still call the work open.
Claude loads one when your task matches it, or you run it by name.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Close out a merged pull request: branch, worktree, and stale notes.
An Agent Skills skill: the merge confirmed from the remote, squash merges included, before anything is deleted.
[![Validate][badge-validate]][link-validate] [![Release][badge-release]][link-releases] ![License][badge-license] ![Agent Skills][badge-agent-skills]
![Claude Code][badge-claude-code] ![Codex][badge-codex] ![Gemini CLI][badge-gemini-cli] ![GitHub Copilot][badge-github-copilot] ![Cursor][badge-cursor] ![Windsurf][badge-windsurf] ![Cline][badge-cline]
| Rule | Why |
|---|---|
| Confirm the merge from the remote, never from memory or the user's word | Deleting an unmerged branch loses work |
| Diff the branch's files against the default branch | A squash merge never shows up in git branch --merged |
| Stop on anything untracked or ignored in the worktree | A worktree can hold files that exist nowhere else |
| Remove the worktree and branch, revert churn, fast-forward default | The main checkout ends where the remote is |
| Retire notes that still call the work open, keeping only what the repo does not record | Stale notes mislead the next session |
| Four short lists as the report, plus what was assumed | You see what went, and what was not checked |
Merges are confirmed on GitHub through gh and on GitLab through glab; the rest is plain git.
flowchart TD
fetch[git fetch --prune] --> merged{Gone on the remote and content on default?}
merged -- no --> stopCommits[Name the commits and stop]
merged -- yes --> clean{Worktree clean?}
clean -- no --> stopFiles[Name the files and stop]
clean -- yes --> confirm[List what goes, wait for your word]
confirm --> remove[Remove worktree and branch]
remove --> pull[git pull --ff-only]
pull --> notes[Retire stale notes]
notes --> report[Report]
The report the skill ends with:
Removed
- Worktree
../app-login-redirectand branchfix/login-redirect- Churn in
package-lock.jsonin the main checkout, revertednotes/fix-login-redirect.mdmainmoved froma1b2c3dtoe4f5a6bFolded
- The auth mock resets between tests, into
notes/testing.mdDropped
- "Add a redirect test", already on
mainattest/login.test.ts:12Seen, not touched
notes/deploy.mdstill names the old staging hostAssumed rather than read: nothing.
| Agent | Command |
|---|---|
| ![Claude Code][badge-claude-code] | /plugin marketplace add ArefMozafari/post-merge-cleanup/plugin install post-merge-cleanup@post-merge-cleanup |
| ![Gemini CLI][badge-gemini-cli] | gemini extensions install https://github.com/ArefMozafari/post-merge-cleanup |
| ![GitHub Copilot CLI][badge-github-copilot-cli] | copilot plugin marketplace add ArefMozafari/post-merge-cleanupcopilot plugin install post-merge-cleanup@post-merge-cleanup |
| ![Cursor][badge-cursor] | agent plugin marketplace add https://github.com/ArefMozafari/post-merge-cleanupthen /plugins in agent and install post-merge-cleanup |
| ![Codex][badge-codex] ![Cursor][badge-cursor] ![Windsurf][badge-windsurf] ![Cline][badge-cline] and more | npx skills add ArefMozafari/post-merge-cleanup |
| ![GitHub CLI][badge-github-cli] for Copilot and other agents | gh skill install ArefMozafari/post-merge-cleanup |
Copy the skills/post-merge-cleanup folder into your agent's skills directory:
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub arefmozafari/post-merge-cleanup --plugin post-merge-cleanupPlugins from other owners that cover similar ground