From git-helpers
Use this skill when the user needs to rebase onto a branch with rewritten history. Triggers on phrases like "rebase onto rewritten", "base branch was force pushed", "squash merged base", "cherry-pick my commits", or when normal rebase fails due to history rewriting.
How this skill is triggered — by the user, by Claude, or both
Slash command
/git-helpers:rebase-onto-rewrittenThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Help rebase the current branch onto a base branch that has rewritten its history (e.g., through squash-and-merge or force-push).
Help rebase the current branch onto a base branch that has rewritten its history (e.g., through squash-and-merge or force-push).
Analyze the situation:
Create a backup:
<branch>-backup-<timestamp>)Prepare for rebase:
Cherry-pick commits:
Finalize:
When cherry-picking multiple commits at once (e.g., git cherry-pick A..B), Git may fail to properly track directory renames and file moves across commits, causing unnecessary conflicts. Applying commits individually allows Git to correctly recognize and apply each structural change sequentially.
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.
npx claudepluginhub choplin/my-claude-marketplace --plugin git-helpers