Loading...
Loading...
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.
npx skill4agent add warpdotdev/common-skills resolve-merge-conflictspython3 .agents/skills/resolve-merge-conflicts/scripts/extract_conflict_context.pypython3 .agents/skills/resolve-merge-conflicts/scripts/extract_conflict_context.py --file path/to/fileoursbasetheirsourstheirsgit checkout --ours -- path/to/filegit checkout --theirs -- path/to/filepython3 .agents/skills/resolve-merge-conflicts/scripts/extract_conflict_context.py
git diff --name-only --diff-filter=U<<<<<<<=======>>>>>>>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 60