git-clean-history
Installation
SKILL.md
Git Rebase
Use this skill to reimplement the current branch on a new branch with a clean, narrative-quality git commit history suitable for reviewer comprehension.
Steps
-
Validate the source branch
- Ensure no uncommitted changes or merge conflicts
- Confirm it is up to date with
main
-
Analyze the diff
- Study all changes between source branch and
main - Form a clear understanding of the final intended state
- Study all changes between source branch and
-
Create the clean branch
- Create a new branch off of
mainusing the new branch name - Use the
{source_branch}-cleanname unless another name is provided by the user
- Create a new branch off of