From 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.
How this skill is triggered — by the user, by Claude, or both
Slash command
/git-hex:git-hex-conflict-resolutionThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Use this skill when a git-hex operation is paused due to conflicts — or when
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 |
Creates, edits, and verifies skills using a test-driven development approach with pressure scenarios and subagents.
npx claudepluginhub yaniv-golan/git-hex --plugin git-hex