condense-branch

Group feature branch commits into readable history with backup and approval.

6|1|Updated Mar 23, 2026
One-click install
npx skills add https://github.com/kubuszok/sge --skill condense-branch
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: condense-branch
Source: https://github.com/kubuszok/sge/tree/main/.claude/skills/condense-branch
Command: npx skills add https://github.com/kubuszok/sge --skill condense-branch

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill streamlines the process of refactoring an extensive feature branch, merging together related commits and providing a backup, before rewriting history with a clean set of story-telling commits.

Core Features & Use Cases

  • Refactoring Commit History: Group and combine commits for better readability and maintainability.
  • Creating a Backup: Before altering the history, creates a backup of the branch to avoid losing data.
  • Non-Interference with Master: Ensures the master branch remains untouched during the operation.
  • Interactive Process: Allows users to review the proposed changes and give approval before execution.

Quick Start

/condense-branch feature-branch-name --auto

Frequently Asked Questions about condense-branch

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

FAQPage Schema
How do I simplify my git feature branch commit history?

To simplify a git feature branch commit history, this Skill groups related commits into fewer readable sequences by detecting logical patterns, proposing changes, and rewriting the branch history via interactive rebasing after user approval.

Can I rebase commits without losing my original branch data?

Yes, you can rebase commits safely because this Skill creates a backup branch before altering any history, ensuring your original feature branch data remains intact and recoverable throughout the refactoring process.

Does interactive rebasing affect the master branch?

No, interactive rebasing does not affect the master branch. The Skill ensures non-interference with master by isolating all commit grouping, condensing, and history rewriting operations strictly to the specified feature branch.

What is the best way to refactor messy commit history before a merge?

The best way to refactor messy commit history is to use an interactive process that proposes grouped commits for your review, creating a backup and executing the rebase only after you explicitly approve the proposed changes.

How do I automatically condense a feature branch in git?

You can automatically condense a feature branch in git by running the auto command, which detects logical commit sequences, proposes a readable grouping, creates a backup, and rewrites the history upon your approval.