Smart Rebase

Smart partial rebase for squash-merge repositories. Auto-detect which commits to keep/drop when base branch was squash-merged into target. Use when: user says 'rebase', 'partial rebase', 'base already merged', 'smart rebase', or /smart-rebase. Not for: simple git rebase (the developer runs it — Claude never executes rebase), merge conflict resolution (use /merge-prep), branch switching (the developer runs git checkout). Output: rebase plan table + a shell-quoted git rebase --onto command for the developer to run after the ambiguity check in Step 5.

sd0xdev Updated

File contents

sd0xdev/sd0x-dev-flow/tree/main/skills/smart-rebase commit 37eff08358

Frequently asked questions

npx skillmds@latest add sd0xdev/smart-rebase