cleanup-commits

Reorganize messy Git commits into logical sequences for PR reviews.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/tomkis/liftcoach --skill cleanup-commits-tomkis
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cleanup-commits
Source: https://github.com/tomkis/liftcoach/tree/main/.agents/skills/cleanup-commits
Command: npx skills add https://github.com/tomkis/liftcoach --skill cleanup-commits-tomkis

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Reorganize messy commits on the current branch into clean, logical sequences for PR reviews.

Core Features & Use Cases

  • Group related changes into cohesive commits based on logical features, fixes, or refactors.
  • Safely plan, preview, and execute an interactive or scripted rebase workflow to squash or reorder commits without losing changes.
  • Enforce guardrails through a plan-and-verify loop, ensuring branches remain attached to the base branch and that history remains readable.

Quick Start

Reorganize messy commits on the current branch into clean, logical sequences for PR reviews.

Frequently Asked Questions about cleanup-commits

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I reorganize messy Git commits into a clean sequence for PR review?

To reorganize messy Git commits for PR review, this Skill groups related changes into cohesive commits and executes a scripted rebase workflow to squash or reorder commits without losing changes. It uses a plan-and-verify loop to ensure history remains readable and branches stay attached to the base branch.

What is the best way to squash commits on a local feature branch before merging?

The best way to squash commits on a local feature branch is using a plan-and-apply workflow that safely previews and executes an interactive rebase. This Skill groups related changes into logical commits and applies guardrails to prevent data loss while preserving readable history.

Can I use an interactive rebase workflow without losing my current changes?

Yes, you can use an interactive rebase workflow without losing changes because this Skill enforces guardrails through a plan-and-verify loop. It safely plans, previews, and executes squashing or reordering to ensure branches remain attached to the base branch and history is preserved.

How do I group related code changes into cohesive commits for version control?

To group related code changes into cohesive commits for version control, this Skill reorganizes messy commits based on logical features, fixes, or refactors. It supports a base-branch parameter and uses a scripted rebase to deliberately group commits into a clean, PR-ready sequence.

Does this commit cleanup workflow support specifying a custom base branch?

Yes, this commit cleanup workflow supports specifying a custom base branch parameter to ensure your reorganized commits remain properly attached. The plan-and-apply workflow uses this parameter to enforce guardrails and maintain readable history during the rebase process.

When should I avoid rebasing commits on my current Git branch?

You should avoid rebasing commits manually when you need to preserve history without guardrails against data loss. This Skill provides a safer alternative by using a plan-and-verify loop to prevent detached branches, but standard rebasing limitations regarding already-pushed shared branches still apply.