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.
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
Branch Cleanup
Clean up merged, stale, and orphaned git branches. Protects main/develop/release/ automatically. Supports --dr
Git.Merge
Merge the current branch's PR, switch to the default branch, and clean up all merged/gone local and remote bra
Review With Codex
Run the current branch through automated Codex review cycles until it's clean or cycles are exhausted. Unlike
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
Sprint Closer
Gathers sprint close context and executes sprint close (mark complete, archive, commit, merge run branch) for