git-squash-commits
Installation
SKILL.md
Git Squash Commits Skill
Overview
This skill helps you squash a range of git commits into a single commit with an automatically generated commit message that summarizes all the changes. It analyzes the commit history and file changes to create a comprehensive, well-structured commit message.
When to Use
- Cleaning up messy commit history before merging
- Consolidating multiple work-in-progress commits
- Preparing commits for code review or pull request
- Simplifying feature branch history
- Removing unnecessary intermediate commits
Prerequisites
IMPORTANT: Before invoking this skill, you MUST manually reset your branch to the parent of the earliest commit you want to squash. The skill will verify this and prompt you if needed.