smart-rebase - Plan partial rebases after squash merges
Analyzes branch history to identify squash-merged commits and outputs a rebase plan with a shell-quoted git rebase --onto command.
Tags
Updated: 2026-11-27Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Analyze branch history
- Detect squash-merged commits
- Identify keep/drop boundary
- Generate rebase plan
- Output shell-quoted command
- Verify resulting history
Inputs
- Git repository
- Current branch
- Target branch or remote
- Branch history
- Remote configuration
Outputs
- Rebase plan table
- Shell-quoted git rebase --onto command
- Prerequisite warnings
- History verification result
Requirements
- Git repository
- Clean working tree
- Attached HEAD
- Non-protected current branch
- Permission to read Git history
- Developer runs the rebase command
