Resolve Git merge conflicts by extracting only unresolved paths, conflict hunks, and compact diffs instead of loading whole files into context. Use when a merge, rebase, cherry-pick, or stash pop stops on conflicts, when `git status` shows unmerged paths, or when files contain conflict markers.
77
96%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
Resolve conflicts without opening full files unless the compact view is insufficient. Start with a summary, then inspect one conflicted file at a time.
python3 .agents/skills/resolve-merge-conflicts/scripts/extract_conflict_context.pyUse the summary to identify which files are unresolved, which index stages exist, and how many text hunks each file contains.
python3 .agents/skills/resolve-merge-conflicts/scripts/extract_conflict_context.py --file path/to/filePrefer this over reading the whole file. The script prints only nearby context, the ours / base / theirs sections for each hunk, and a compact unified diff between ours and theirs.
git checkout --ours -- path/to/file or git checkout --theirs -- path/to/file when appropriate.python3 .agents/skills/resolve-merge-conflicts/scripts/extract_conflict_context.py
git diff --name-only --diff-filter=U<<<<<<<, =======, or >>>>>>> markers remain in the resolved files.python3 .agents/skills/resolve-merge-conflicts/scripts/extract_conflict_context.pypython3 .agents/skills/resolve-merge-conflicts/scripts/extract_conflict_context.py --file path/to/filepython3 .agents/skills/resolve-merge-conflicts/scripts/extract_conflict_context.py --allpython3 .agents/skills/resolve-merge-conflicts/scripts/extract_conflict_context.py --file path/to/file --jsonpython3 .agents/skills/resolve-merge-conflicts/scripts/extract_conflict_context.py \
--file path/to/file \
--context 3 \
--max-lines 6069b4753
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.