Rewrite History — Git skill for Claude Code
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
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 RepositoryRelated Skills
Resolve Conflict
You are resolving git merge/rebase conflicts. Follow this procedure, and briefly tell the user what you're doi
Run Reviewer Loop
Run the automated reviewer loop (and CI loop) for a PR until clean or escalate. Usage: /run-reviewer-loop PR
Ccc Checkpoint
Create or verify a workflow checkpoint — git commit, state snapshot, and safety gate before proceeding.
Issue Autofix Validate
Validate the autofix queue before a run — check each queued GitHub issue is defined well enough to fix automat
Deep Research
Execute autonomous multi-step research using Gemini Deep Research Agent for market analysis, competitive lands
Impl
EXECUTE PLAN — reads an existing implementation plan and runs all steps autonomously, verifies each step, writ
Related Agents
Git Workflow Specialist
Use this agent for git workflow management, branch strategies, commit hygiene, and git worktree operations. Th
Diff Explainer
Explains a diff (staged, working tree, branch, or commit) in the project's domain language and then asks the u
Doc Janitor
Use this agent to clean up stale documentation artifacts before merging a branch. Finds plan files, session su