commit-cleanup

Analyze branch commits and propose an optimized rebase order.

Updated Feb 28, 2019
One-click install
npx skills add https://github.com/rjschie/dotfiles --skill commit-cleanup
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: commit-cleanup
Source: https://github.com/rjschie/dotfiles/tree/main/files/claude/skills/commit-cleanup
Command: npx skills add https://github.com/rjschie/dotfiles --skill commit-cleanup

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires Agent, Bash(git status:*), Bash(git rebase:*), and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the analysis of branch commits to suggest an optimized rebase ordering that groups like-work together, improving commit readability and workflow efficiency.

Core Features & Use Cases

  • Commit Analysis: Automatically identifies related commits for rebasing.
  • Rebase Proposal: Generates a suggested rebase order, grouped by logical commit sequences.
  • Interactive Output: Provides a visual comparison of the current and proposed commit orders, facilitating user approval.

Quick Start

Use the commit-cleanup skill to suggest a rebase order for the current branch.

Frequently Asked Questions about commit-cleanup

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

FAQPage Schema
How do I group related git commits together before merging?

Grouping related git commits together requires analyzing branch history and suggesting an optimized rebase order. This Skill automates that analysis, proposing a logical sequence that clusters related changes for easier code management.

What is the best way to organize a messy git branch history?

Organizing a messy git branch history involves identifying related commits and proposing a rebase order. This Skill analyzes your current branch state and generates a visual comparison of current and proposed commit orders.

How does automated commit analysis work for collaborative coding workflows?

Automated commit analysis for collaborative coding workflows works by evaluating current branch commits and identifying related changes. It then suggests an optimized rebase ordering to group like-work together, reducing manual analysis.

Can I use an analysis agent to suggest a rebase order for my current branch?

Yes, you can use a capable analysis agent to suggest a rebase order. This Skill requires access to your current branch state and leverages the agent to automatically identify related commits and propose a grouped rebase sequence.

Do I need specific git permissions to run an interactive rebase proposal?

You need git status and git rebase permissions to execute an interactive rebase proposal. This Skill specifically requires Bash access to run git status and git rebase commands to analyze and suggest the optimized commit order.

What are the limitations of automating git rebase ordering?

Automating git rebase ordering is limited by the need for a capable analysis agent and direct access to the current branch state. It proposes an optimized order for approval rather than executing the rebase automatically, ensuring user control.