Git.Rebase
БесплатноБез исполняемых скриптовНе проверенRebase the current branch on master and resolve the conflicts
от gpsaggese★ 158 звёзд на GitHubОб этом скилле
Goal
- Rebase the current branch on
masterwithi git_rebase_master, resolve every conflict, and rungit rebase --continueuntil the rebase finishes
Plan Only (--only_plan)
- With
--only_plan, follow.claude/skills/skill.rules.mdsection "Create Only a Plan with--only_plan" - Write the plan to
git.rebase.md, then stop without executing the skill- Do not start the rebase: find the likely conflicts with
git logandgit diff
- Do not start the rebase: find the likely conflicts with
Workflow
Check the Starting State
- Confirm no rebase is already in progress:
> ls -a .git | grep -E "rebase-merge|rebase-apply"- If a rebase is in progress, skip to
## Resolve the Conflicts
- If a rebase is in progress, skip to
- Confirm the current branch is not
master:> git branch --show-current
Start the Rebase
- Run the invoke task:
> i git_rebase_master - If the task finishes without conflicts, go to
# Verification - If the task stops with conflicts, go to
## Resolve the Conflicts - If the task does not exist or fails for another reason, stop and report the error to the user
Resolve the Conflicts
- List the files with conflicts:
> git diff --name-only --diff-filter=U
Ignore the helpers_root Conflict
helpers_rootis a submodule, so Git reports a conflict on its pointer- Do not resolve it, do not update the submodule, and keep it as it is in the
working tree:
> git add helpers_root - Do this only for the path
helpers_root, never for files inside it
Resolve the Other Conflicts
- For every other file with conflicts, follow
.claude/skills/git.merge_conflicts/SKILL.md- The operation in progress is a
rebase - Skip its step
## Finalize the Operation: this skill runsgit rebase --continuebelow - Keep its rule to ask the user when a conflict is ambiguous
- The operation in progress is a
- Note: in a rebase,
<SOURCE>is the branch being replayed (the user's commits) and<TARGET>ismaster
Continue the Rebase
- Once no file has conflicts, continue without opening an editor:
> GIT_EDITOR=true git rebase --continue - Calling this skill is the user's permission to run
git rebase --continue - If Git stops again on the next commit with new conflicts, go back to
## Resolve the Conflicts - Repeat until
git statusreports that no rebase is in progress
Constraints
- Do not run
git rebase --abortorgit rebase --skipunless the user asks - Do not skip hooks (e.g.,
--no-verify) - Do not push: a rebase rewrites history, so tell the user that the next push
needs
--force-with-lease - Do not commit anything other than what
git rebase --continuecreates
Verification
-
--only_plan(check only this item): the plan is ingit.rebase.mdin the current dir, has theGenerated byline, and nothing was executed - No rebase is in progress:
> ls -a .git | grep -E "rebase-merge|rebase-apply" - No conflict markers remain:
> git grep -n '^<<<<<<<\|^>>>>>>>' - The working tree is clean, apart from files that were not clean before the
rebase:
> git status - The branch contains the tip of
master:> git log --oneline -1 master > git merge-base --is-ancestor master HEAD && echo OK
Установить Git.Rebase в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл Git.Rebase?
Rebase the current branch on master and resolve the conflicts
Как установить скилл Git.Rebase?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Git.Rebase запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic