Resolves merge, rebase, or cherry-pick conflicts by reconstructing both sides' intent and validating with project checks. Not for integrating many branches.
Ships in resolve-merge-conflicts. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Resolve conflicts stopped during a merge, rebase, or cherry-pick from intent, not from picking whichever side makes markers disappear. The job ends with the operation completed and the project's validation checks green.
See conflict matrix for operation detection, the rebase ours/theirs reversal, and resolution patterns across conflict types (content, modify/delete, rename, binary, submodule, and lockfiles).
Arguments are passed in the user invocation message. Interpret them structurally from the prompt:
/skill:resolve-merge-conflicts [--checks auto|command] [--continue|--no-continue]
/skill:resolve-merge-conflicts/skill:resolve-merge-conflicts --checks "npm test"/skill:resolve-merge-conflicts --no-continue--checks <auto|command>: Validation checks execution mode.
auto (default): Detects and runs test, typecheck, and lint commands from the repository (CI workflows, Makefile, package manifests).<command>: Custom shell command to run for verification (e.g. npm test, cargo check).--continue|--no-continue: Whether to complete the in-flight operation after resolution and validation.
--continue (default): Runs the operation's continue command (git merge --continue, git rebase --continue, or git cherry-pick --continue).--no-continue: Leaves resolved files staged in the index and stops without executing the continue command.[!IMPORTANT] Execute steps directly; do not declare task boards or write artifact files. Run discrete git commands sequentially; never nest commands inside
$(...)command substitutions or subshells.
Identify the in-flight operation per conflict matrix:
.git/MERGE_HEAD exists. HEAD is ours (target branch), MERGE_HEAD is theirs (incoming branch)..git/rebase-merge or .git/rebase-apply exists.
[!WARNING] In
git rebase,--oursand--theirsare reversed!
HEAD("ours") is the upstream branch being rebased onto.REBASE_HEAD("theirs") is your branch commit being replayed.
.git/CHERRY_PICK_HEAD exists. HEAD is target branch, CHERRY_PICK_HEAD is commit being cherry-picked.Query all unmerged paths:
git diff --name-only --diff-filter=U
For each conflicting file, determine why each side modified the code:
# In merge:
git log --oneline HEAD..MERGE_HEAD -- <file>
git log --oneline MERGE_HEAD..HEAD -- <file>
# In rebase:
git log -1 REBASE_HEAD -- <file>
Handle each file according to its conflict class:
ask_user. Verify no markers remain:
grep -rn "<<<<<<<\|>>>>>>>" <files>
git checkout --ours / --theirs) or rebuild asset from source.git diff --submodule and submodule history.npm install --package-lock-only, pnpm install --lockfile-only, cargo check, uv lock).Stage resolved files: git add <files>.
Run the validation suite determined by --checks:
auto: execute detected typecheck, tests, and linter.<command>: execute the specified validation command.If --no-continue was specified:
If --continue is active (default):
git merge --continue (or git commit)git rebase --continuegit cherry-pick --continuegit merge --abort, git rebase --abort, or git cherry-pick --abort) and verify the tree returns to clean pre-operation state.Summarize:
--ours or --theirs wholesale without reading both sides.<<<<<<< or >>>>>>> markers in any committed file.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/resolve-merge-conflicts:resolve-merge-conflictsfrom resolve-merge-conflicts
npx claudepluginhub panstudio/pancode --plugin resolve-merge-conflictsOther plugins' skills for the same job