idexal

Idexal Git Cleanup — Git skill for Claude Code

Git community

Safe recipes to squash messy branches, split a stalled commit, and prepare a clean pull request without losing work.

How to install Idexal Git Cleanup

Installs to ~/.claude/skills/idexal-extensions-catalog-idexal-git-cleanup/SKILL.md

Terminal
mkdir -p ~/.claude/skills/idexal-extensions-catalog-idexal-git-cleanup && curl -fsSL https://raw.githubusercontent.com/idexal/extensions-catalog/HEAD/skills/idexal-git-cleanup.md -o ~/.claude/skills/idexal-extensions-catalog-idexal-git-cleanup/SKILL.md

Restart Claude Code, or start a new session, for it to be picked up.

What Idexal Git Cleanup does


name: idexal-git-cleanup description: Safe recipes to squash messy branches, split a stalled commit, and prepare a clean pull request without losing work. Use before opening a PR or after a failed merge.

Git History Cleanup

Squash a messy branch into one commit

# Keep the exact branch tip as a backup tag first
git tag backup/ 

git checkout 
git checkout -b -clean
git merge --squash 
git commit

Split a stalled commit (keep the

Alternatives in Git

  • Prepare Commit — Comment out inappropriate logging before commit 1.6k ★
  • Cmt — When user uses /cmt slash command, commit current git changes using fast mode by default, or strict mode when 301 ★
  • Hybrid Complete — Complete Hybrid Ralph task in worktree, verify all stories complete, commit code changes (excluding planning f 123 ★

Full documentation available on GitHub

View Source Repository