0xBigBoss

Rewrite History — Git skill for Claude Code

Git community

Reimplement the current branch with a clean, narrative-quality git commit history suitable for reviewer comprehension.

How to install Rewrite History

Installs to ~/.claude/skills/0xbigboss-claude-code-rewrite-history/SKILL.md

Terminal
mkdir -p ~/.claude/skills/0xbigboss-claude-code-rewrite-history && curl -fsSL https://raw.githubusercontent.com/0xBigBoss/claude-code/HEAD/commands/rewrite-history.md -o ~/.claude/skills/0xbigboss-claude-code-rewrite-history/SKILL.md

Restart Claude Code, or start a new session, for it to be picked up.

What Rewrite History does

Reimplement the current branch with a clean, narrative-quality git commit history suitable for reviewer comprehension. Execute each step fully before proceeding to the next.

Determine Branch Name

First, determine the current branch name: !git branch --show-current

Store this value and use it wherever `{branch_name}` appears in subsequent steps.

Determine Default Branch

First, determine the repository's default branch: !gh repo view --json defaultBranchRef --jq '.defaultBranchRef.name'

Alternatives in Git

  • Claude Code Safety Net — A Claude Code plugin that acts as a safety net, catching destructive git and filesystem commands before they e 1.2k ★
  • Husky — by evmts - Sets up and manages Husky Git hooks by configuring pre-commit hooks, establishing commit message st 440 ★
  • Code Analysis — by kingler - Provides a menu of advanced code analysis commands for deep inspection, including knowledge graph 232 ★

Full documentation available on GitHub

View Source Repository