Rewriting Git Commits

Rewrite git commit sequences into clean, logical histories.

Updated Oct 22, 2025
One-click install
npx skills add https://github.com/dherman/claude-plugins --skill rewriting-git-commits
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: Rewriting Git Commits
Source: https://github.com/dherman/claude-plugins/tree/main/plugins/historian/skills/rewriting-git-commits
Command: npx skills add https://github.com/dherman/claude-plugins --skill rewriting-git-commits

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill coordinates three agents (analyst, narrator, and scribe) to transform a chaotic git commit sequence into a clean, logical set of commits that are easy to review, understand, and merge.

Core Features & Use Cases

  • Automated commit planning: Analyze a changeset description and generate a structured plan of commits optimized for readability, traceability, and revertability.
  • Synchronized multi-agent workflow: The analyst, narrator, and scribe collaborate to produce a final, validated commit history with meaningful messages.
  • Use Case: Given a history with WIP commits, typos, and fixes, produce a coherent sequence of commits that tells a clear story for code review.

Quick Start

Provide your messy changeset description and run the skill to generate a clean, review-friendly commit history. Example: Changeset: "WIP: add feature, fix bug, update docs"

Frequently Asked Questions about Rewriting Git Commits

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

FAQPage Schema
How do I clean up messy git commits before code review?▼

Rewriting git commits transforms a chaotic sequence with WIP commits, typos, and fixes into a clean, logical history optimized for readability and review. This Skill analyzes your changeset and generates a structured plan coordinated across multiple agents to produce meaningful, cohesive commits that tell a clear story.

Can I automate organizing my git history for better traceability?▼

Yes. Automated commit planning analyzes your changeset description and generates an optimized commit sequence that improves traceability and revertability. The multi-agent workflow validates the final history to ensure each commit is meaningful and logically ordered.

What's the best way to prepare feature branch commits for collaborative review?▼

Structuring commits for readability and revertability is essential in collaborative workflows. This Skill coordinates synchronized agents to transform your raw changeset into a validated, review-friendly history with clear commit messages that enable reviewers to understand each logical change.

How do I turn WIP commits and bug fixes into a coherent commit history?▼

Provide your messy changeset description to this Skill, which applies structured analysis and multi-agent coordination to generate clean, logical commits. The workflow produces a JSON summary with the final validated history ready for merge.

Does this work with CI workflows and parallel task orchestration?▼

Yes. The Skill is designed to satisfy session management, parallel task orchestration, and sidechat coordination alongside result reporting. It produces a structured commit history suitable for integration into CI workflows and collaborative development environments.

What problem does rewriting commits solve in code review?▼

Rewriting commits solves the problem of reviewing unclear, hard-to-follow histories. By transforming chaotic sequences into clean, logical commits with meaningful messages, reviewers can understand changes faster, merge conflicts decrease, and reverting specific changes becomes straightforward.