PR Post Merge — Git skill for Claude Code
Clean up after a PR is merged — close fork issue, update local branch, delete issue branch.
How to install PR Post Merge
Installs to ~/.claude/commands/ibm-granite-granite.build-pr-post-merge.md
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/ibm-granite/granite.build/HEAD/.claude/commands/pr-post-merge.md -o ~/.claude/commands/ibm-granite-granite.build-pr-post-merge.md Restart Claude Code, or start a new session, for it to be picked up.
What PR Post Merge does
Clean up after a PR is merged — close fork issue, update local branch, delete issue branch.
Alternatives in Git
- Clean Worktrees (Automatic) — Automatically remove all worktrees for branches merged into master 25.5k ★
- GitHub Review PR — Use when a PR needs full review — resolves merge conflicts with the base first, then fixes CI failures, then a 1.5k ★
- Merge Command — Finalize worktree work: update docs, commit, merge to main, clean up 1.3k ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
PR Merged
Post-merge cleanup — checkout main, pull latest, delete the feature branch, and close the linked work item.
Clean After Merged
Switch to the repo's main branch, pull, and delete the just-merged local branch.
Dip
Post-merge cleanup — switch to base branch, pull latest, delete the merged feature branch, restore any stash.
Finish PR
Post-merge cleanup -- verify merge state, sync dev, delete branch, close issue
Git Contribute Finish
Clean up after your claude-harness pull request merged, by updating master and deleting the feature branch loc
CloseBranch
Close out a branch after its PR is merged/closed - switches to the PR's base branch (main, or the todo's arc b
Related Agents
Branch Janitor
Post-merge cleanup agent — after the human confirms a PR/branch merge, removes stale agent worktrees, deletes
Merger
Reviews, validates, and merges arc-agents PRs. Sole authority for destructive git ops (rebase, push, merge, br
Branch Gardener
Triages local branches and stashes in a managed repo (merged, stale, superseded, unpushed) and proposes deleti