Claude-skill-registry git-hex-conflict-resolution
install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/git-hex-conflict-resolution" ~/.claude/skills/majiayu000-claude-skill-registry-git-hex-conflict-resolution && rm -rf "$T"
manifest:
skills/data/git-hex-conflict-resolution/SKILL.mdsource content
Git-hex Conflict Resolution
When to use this Skill
This skill should be used when:
- A git-hex tool reports that an operation is paused because of conflicts.
- The user says a rebase or cherry-pick is "stuck", "paused", or "in conflict".
- You need to see which files conflict and decide whether to continue or abort.
Trigger phrases include: "rebase conflict", "cherry-pick conflict", "merge conflict", "stuck on conflicts", "continue the rebase", "abort the cherry-pick".
Workflow
-
Inspect conflict state
- Call
to determine:git-hex-getConflictStatus- Whether a rebase/merge/cherry-pick/revert is in progress.
- Which files are conflicting and the overall operation type (
,rebase
,merge
, orcherry-pick
).revert
- Use
only when necessary to inspect base/ours/theirs content for specific text files.includeContent: true
- Call
-
Resolve conflicts per file
- For text files:
- Propose or apply edits based on
,base
, andours
.theirs - Ensure conflict markers are removed before resolving.
- Call
with the file path (andgit-hex-resolveConflict
for delete conflicts when appropriate).resolution: "delete"
- Propose or apply edits based on
- For text files:
- For delete conflicts, use the
parameter to choose whether to keep or remove the file.resolution
-
Continue or abort the operation
- When all conflicts are resolved (or
shows no remaining conflicting files but the operation is still paused), callgetConflictStatus
.git-hex-continueOperation - If the user decides to give up on the rebase or cherry-pick, call
to restore the pre-operation state.git-hex-abortOperation
- When all conflicts are resolved (or
-
Escalate if needed
- If the final result after continuing is not what the user wanted, suggest
using
from the branch cleanup Skill to revert.git-hex-undoLast
- If the final result after continuing is not what the user wanted, suggest
using
Tools to prefer
- Inspection:
git-hex-getConflictStatus - Resolution:
git-hex-resolveConflict - Control:
,git-hex-continueOperationgit-hex-abortOperation - Recovery:
(via the branch cleanup Skill)git-hex-undoLast
Conflict types
Operation-level
- Interactive rebase paused"rebase"
- Merge in progress"merge"
- Cherry-pick paused"cherry-pick"
- Revert paused (detected but"revert"
/continueOperation
are not supported; useabortOperation
orgit revert --continue
directly)--abort
File-level
- Both sides modified the file"both_modified"
- We deleted, they modified"deleted_by_us"
- We modified, they deleted"deleted_by_them"
- Both sides added different versions"added_by_both"
Delete conflict handling
// To keep the file (must exist on disk): { "file": "path/to/file", "resolution": "keep" } // To accept deletion: { "file": "path/to/file", "resolution": "delete" }