From vibe-extras
Rewrites Git branch history into clean, narrative-quality commits for code review. Creates backup branch, reimplements changes from main diff, verifies byte-identical, replaces original.
How this skill is triggered — by the user, by Claude, or both
Slash command
/vibe-extras:rewrite-historyThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Rewrite the current branch's history into clean, narrative-quality commits suitable for code review.
Rewrite the current branch's history into clean, narrative-quality commits suitable for code review.
Transform messy development history into a logical story reviewers can follow commit-by-commit. Original branch is rewritten; backup preserved for rollback.
$ARGUMENTS = optional flags (--auto skips interactive approval)
Abort with clear error if:
{branch}-backup-{timestamp} — permanent until manually deleted--no-verify for intermediate commitsgit diff {original-branch} MUST be empty—abort if any difference--force-with-leaseThe byte-identical check is non-negotiable. If git diff {backup-branch} shows ANY difference after reimplementation:
type(scope): description--force-with-lease for push (never --force)Unless $ARGUMENTS contains --auto:
If anything goes wrong: git reset --hard {branch}-backup-{timestamp}
Report commit count, backup branch name, and the new commit log.
npx claudepluginhub doodledood/claude-code-plugins --plugin vibe-extrasRewrites a feature branch's messy commit history into clean, conventional commits that tell a progressive, linear story. Handles backup, soft reset, and atomic recommit.
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.