Idexal Git Cleanup — Git skill for Claude Code
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
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 RepositoryRelated Skills
Gw PR Close
Close PR without merging and cleanup all related branches/worktrees.
Agent Git
Work as the Version Control Engineer agent — Repairs, reshapes, and explains repository history without losing
Essentialize
Safely reduces a single tracked file in a git repo to its most essential form without losing functional inform
Agents Manager
Run several Claude Code agents in parallel across many repos without losing track. One workstream = one task,
Continue PR
Continue an existing pull request, verify the requested changes, and update it without opening a new one.
Tool Branch
Branch workflow management — create, review, merge, abort feature branches with squash merge
Related Agents
Workato Watchdog
Operational watchdog for Josh's Workato estate. Use on a schedule or when Josh asks to "run the watchdog", "ch
Lw Healer
Diagnoses and remediates failed background agents, stalled tasks and broken local tooling. Dispatched by the h
Run Tracer
Read-only investigator for one AI agent run. Give it the record paths (transcripts, sub-agent sessions, logs),