post-merge-sync
CommunityClean up after merges and know what’s next
Software Engineering#git#branch hygiene#squash merge safety#post-merge cleanup#stash restore#pull request follow-ups#release trunk sync
AuthorElvinOuyang
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Post-merge workflows often leave developers with stale local branches, leftover stashes, and an unclear list of follow-ups after a PR lands on the trunk, causing silent drift and repeated manual cleanup.
Core Features & Use Cases
- Safe trunk fast-forward: Detects the repo’s actual trunk branch, fetches/prunes, and fast-forwards the remote-trunk state without forceful history rewriting.
- Stash-safe recovery: Stashes uncommitted work when needed and restores it on the originating feature branch or on a new branch—avoiding dangerous “stash pop on trunk” mistakes.
- Merge-informed punch list: Scans the merged PR’s implications using living docs, rebasable open PRs, TODO/follow-up markers, and a merge-commit-based diff range to produce a quick “what’s left” summary.
- Squash/rebase aware branch handling: Avoids unsafe deletion patterns and requires explicit opt-in before any force-delete when local-only commits may become unreachable.
Quick Start
After you merge a PR (e.g., “I just merged the OA signed PR into master”), run post-merge-sync to fast-forward the trunk safely, restore your WIP on the right branch, and generate a punch list of follow-ups implied by the merge.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: post-merge-sync Download link: https://github.com/ElvinOuyang/claude-skill-collection/archive/main.zip#post-merge-sync Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.