clean-history
Installation
SKILL.md
Contains Shell Commands
This skill contains shell command directives (!`command`) that may execute system commands. Review carefully before installing.
Clean History
Reimplement the current branch on a new branch with a clean, narrative-quality git commit history.
Context
- Source branch: !
git branch --show-current - Git status: !
git status --short - Default branch: !
git symbolic-ref refs/remotes/origin/HEAD 2>/dev/null | sed 's@^refs/remotes/origin/@@' || git config init.defaultBranch || echo main - Remote branches: !
git branch -r --list 'origin/main' 'origin/master' 2>/dev/null | head -1 | sed 's/.*origin\///'
Task
Reimplement the current branch on a new branch with a clean, narrative-quality git commit history suitable for reviewer comprehension.
New Branch Name: Use $ARGUMENTS if provided, otherwise {source_branch}-clean.