/git-hex:git-hex-conflict-resolutionfrom git-hex
Use whenever a git operation is mid-flight and needs help finishing. Triggers: "continue the rebase", "abort the rebase", "conflicts in files", "rebase stopped/stuck/paused", "cherry-pick conflict", "revert has conflicts", "merge conflict", git status showing unmerged paths, or any git-hex tool returning paused/conflict/conflictingFiles status. Helps resolve conflicting files one by one, then continue or abort the operation. Applies to rebase, merge, cherry-pick, and revert — but only when already in progress. NOT for starting new rebases, creating PRs, squashing, fixup commits, undoing completed operations, or git-hex setup.
Ships in git-hex. 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.
None: SKILL.md is the whole skill.
Use this skill when a git-hex operation is paused due to conflicts — or when the user reports being stuck in a rebase, merge, cherry-pick, or revert.
Call git-hex-getConflictStatus to determine:
rebase, merge,
cherry-pick, revert)currentStep / totalSteps progressWhen to use includeContent: true:
isBinary: true) or when
you just need to see the list of conflicting files.maxContentSize (default 10000) to limit large files. Content is
truncated per-file and marked with truncated: true.Important: inConflict: true can persist even after all files are resolved
if the operation is still paused. Check conflictingFiles length, not just
inConflict.
For text files (both_modified, added_by_both):
getConflictStatus
response or by reading the file directly.resolveConflict with resolution: "keep" will reject the file
if any <<<<<<<, =======, >>>>>>>, or ||||||| markers remain.git-hex-resolveConflict with file and resolution: "keep".For delete conflicts (deleted_by_us, deleted_by_them):
resolution: "keep" — restores the file (from theirs if deleted_by_us,
from ours if deleted_by_them).resolution: "delete" — accepts the deletion.Path rules: The file parameter must be a POSIX repo-relative path. No
absolute paths, no ../ traversal, no drive letters.
After each resolution, resolveConflict returns remainingConflicts — the
count of files still in conflict.
Continue — when all conflicts are resolved (remainingConflicts: 0) or
getConflictStatus shows no remaining conflicting files:
git-hex-continueOperation.paused: true again if the next commit in a rebase also
conflicts. Go back to step 1 in that case.git revert --continue / git bisect reset directly.Abort — if the user wants to abandon the operation:
git-hex-abortOperation. This restores the pre-operation state.git-hex-undoLast is also available
as recovery after the operation completes (if the result wasn't what the
user wanted).After continueOperation reports completed: true, confirm the state:
git-hex-getRebasePlan or git log to show the user the final history.git-hex-undoLast to roll back.| Type | Meaning |
|---|---|
rebase | Interactive rebase paused mid-apply |
merge | Merge in progress |
cherry-pick | Cherry-pick paused |
revert | Revert paused (limited tool support — see above) |
| Type | Meaning | Typical resolution |
|---|---|---|
both_modified | Both sides changed the file | Edit to merge, then keep |
deleted_by_us | We deleted, they modified | keep (restore) or delete |
deleted_by_them | We modified, they deleted | keep (restore) or delete |
added_by_both | Both sides added different versions | Edit to merge, then keep |
What SKILL.md sets; muted values are Claude Code's defaults
3 skills in this plugin
/git-hex-branch-cleanupRewrite git branch history. Invoke for any commit manipulation: squash, reword, reorder, drop, split, fold fixups, amend, or rebase onto main. Handles "clean up my commits", "squash before PR", "fix commit message typo", "make branch reviewable", "fold in fixup commits", "drop a commit", "rebase my branch". Operates on existing commits using git-hex MCP tools — no interactive rebase needed. NOT for: merge conflicts, cherry-picks across branches, conflict checking, git concepts, or hooks setup.
/git-hex-pr-workflowTrigger whenever the user's message contains "PR", "pull request", or "review feedback" — regardless of what else they ask for. This includes: "open a PR", "create a PR", "prepare for PR", "update my PR", "clean up and open a pull request", "address review comments", "reviewer wants", "PR #number". Even if the request also involves squashing, rebasing, or fixing commits, trigger this skill as long as a PR or review is part of the goal. Do NOT trigger for local-only git work (squash, amend, cherry-pick, rebase, conflict resolution) where no pull request or code review is mentioned. Do NOT trigger for branch protection rules or repo settings.
Other plugins' skills for the same job
npx claudepluginhub yaniv-golan/git-hex --plugin git-hex