smart-rebase

Installation
SKILL.md

Smart Rebase — Partial Rebase for Squash-Merge Repos

Analyze branch history → identify squash-merged commits → generate precise git rebase --onto command.

When NOT to Use

  • Simple git rebase without squash-merge complexity (use git directly)
  • Merge conflict resolution (use /merge-prep)
  • Branch management or switching (use git commands)
  • Cherry-picking specific commits (use git cherry-pick)

Core Problem

In squash-merge repositories, when a feature branch is based on another branch that was already squash-merged:

main:    A ─── S (squash merge of B1+B2+B3) ─── ...
feature: A ─ B1 ─ B2 ─ B3 ─ F1 ─ F2 ─ F3
Related skills

More from sd0xdev/sd0x-dev-flow

Installs
6
GitHub Stars
155
First Seen
Mar 9, 2026