rebase-conflict-resolution
Rebase or resolve Git conflicts by preserving both sides' intended behavior, understanding commit context, validating the resolved result, and keeping a…
от Dadmin88★ 52 звезды на GitHub
Установить rebase-conflict-resolution в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Rebase and Conflict Resolution
Use when replaying commits onto a new base or resolving merge/rebase/cherry-pick conflicts between independently changed lines or files.
Procedure
- Inspect repository status, current branch/HEAD, operation state, remotes, worktrees, and uncommitted changes before starting or continuing. Create a recoverable checkpoint or stop if local state could be lost.
- Understand the purpose of the commits being replayed and the relevant changes on the new base. Read commit messages/diffs and adjacent code rather than treating conflict markers as the entire context.
- For each conflict, identify the behavior each side intended and whether the new base already supersedes, renames, moves, or restructures part of the older change.
- Resolve semantically. Do not automatically choose “ours,” “theirs,” or both text blocks when that would duplicate behavior, reintroduce removed code, or discard a required change.
- Check non-conflicting nearby changes too. Git can merge text cleanly while producing a semantic conflict through changed types, APIs, imports, assumptions, generated files, or migration order.
- Stage only resolved paths after reviewing their diff. Continue the rebase/cherry-pick/merge one step at a time and inspect any subsequent conflict in its new parent context.
- If the resolution becomes uncertain or the operation is based on the wrong assumptions, abort back to the recoverable starting state rather than pushing through blindly.
- After the operation, compare the resulting commits/diff to the intended change and new base. Run relevant tests/builds/static checks and inspect generated/migration behavior where conflicts touched them.
- Verify branch divergence and remote state before pushing. Use force-with-lease rather than unconditional force only when history rewriting is authorized and the remote branch must be updated.
Decision rules
- Conflict resolution is behavior integration, not marker deletion.
- Clean textual merge does not guarantee semantic compatibility.
- Preserve authors' intended outcomes where they remain valid, but the newer accepted architecture/API may require adapting older code rather than preserving old syntax.
- Never force-push shared or protected history without explicit authority and a verified remote expectation.
Quality gate
The operation is complete when the replayed history expresses the intended behavior on the new base, semantic as well as textual conflicts have been checked, validation passes for affected areas, a recoverable path existed throughout, and any rewritten remote update is authorized and verified.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл rebase-conflict-resolution?
Rebase or resolve Git conflicts by preserving both sides' intended behavior, understanding commit context, validating the resolved result, and keeping a recoverable path throughout the operation.
Как установить скилл rebase-conflict-resolution?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл rebase-conflict-resolution запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…