resolve-merge-conflicts

द्वारा warpdotdev

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 skills add https://github.com/warpdotdev/common-skills --skill resolve-merge-conflicts

Resolve Merge Conflicts

Overview

Resolve conflicts without opening full files unless the compact view is insufficient. Start with a summary, then inspect one conflicted file at a time.

Workflow

  1. Start with a summary.
python3 .agents/skills/resolve-merge-conflicts/scripts/extract_conflict_context.py

Use the summary to identify which files are unresolved, which index stages exist, and how many text hunks each file contains.

  1. Drill into one file.
python3 .agents/skills/resolve-merge-conflicts/scripts/extract_conflict_context.py --file path/to/file

Prefer 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.

  1. Resolve the file.
  • Take one side wholesale with git checkout --ours -- path/to/file or git checkout --theirs -- path/to/file when appropriate.
  • Otherwise edit the file directly and remove the conflict markers.
  • Read more of the file only if the compact output is not enough to decide the correct merge.
  1. Re-check unresolved files.
python3 .agents/skills/resolve-merge-conflicts/scripts/extract_conflict_context.py
git diff --name-only --diff-filter=U
  1. Validate the resolution.
  • Ensure no unmerged paths remain.
  • Ensure no <<<<<<<, =======, or >>>>>>> markers remain in the resolved files.
  • Run targeted tests, builds, or linters for the touched area.
  • Stage the resolved files.

Commands

Summary only

python3 .agents/skills/resolve-merge-conflicts/scripts/extract_conflict_context.py

Detailed view for one file

python3 .agents/skills/resolve-merge-conflicts/scripts/extract_conflict_context.py --file path/to/file

Detailed view for all conflicted files

python3 .agents/skills/resolve-merge-conflicts/scripts/extract_conflict_context.py --all

JSON output

python3 .agents/skills/resolve-merge-conflicts/scripts/extract_conflict_context.py --file path/to/file --json

Tune output size

python3 .agents/skills/resolve-merge-conflicts/scripts/extract_conflict_context.py \
  --file path/to/file \
  --context 3 \
  --max-lines 60

Notes

  • Use the script before opening conflicted files directly.
  • Resolve one file at a time to keep context small.
  • Expect marker-based text conflicts and index-only conflicts such as add/add or modify/delete. The script summarizes both, and it falls back to index-stage previews when the worktree file has no conflict markers.

warpdotdev की और Skills

council
warpdotdev
एक मॉडल-विविध उप-एजेंट परिषद चलाकर एक ही समस्या की विभिन्न दृष्टिकोणों से जांच करें, निष्कर्षों की तुलना करें, और अंतिम सिफारिश तैयार करें। इस कौशल का उपयोग तब करें जब उपयोगकर्ता परिषद, दूसरी राय, एक प्रश्न का मूल्यांकन करने के लिए कई एजेंट/मॉडल, समानांतर जांच, रेड-टीम/ब्लू-टीम तुलना, या प्रतिस्पर्धी तकनीकी दृष्टिकोणों के बीच निर्णय लेने में सहायता मांगे।
researchcommunicationproject-management
spec-driven-implementation
warpdotdev
बड़ी सुविधाओं के लिए स्पेक-प्रथम कार्यप्रवाह अपनाएँ: कार्यान्वयन से पहले PRODUCT.md लिखें, जब आवश्यक हो तो TECH.md लिखें, और कार्यान्वयन के विकास के साथ दोनों स्पेक्स को अद्यतन रखें। इसका उपयोग तब करें जब कोई महत्वपूर्ण सुविधा शुरू कर रहे हों, एजेंट-संचालित कार्यान्वयन की योजना बना रहे हों, या जब उपयोगकर्ता उत्पाद और तकनीकी स्पेक्स को स्रोत नियंत्रण में शामिल करना चाहता हो।
developmentdocumentproject-management
review-pr
warpdotdev
पुल रिक्वेस्ट डिफ की समीक्षा करें और वर्कफ़्लो को प्रकाशित करने के लिए review.json में संरचित फीडबैक लिखें। इसका उपयोग तब करें जब pr_diff.txt और pr_description.txt जैसे स्थानीय आर्टिफैक्ट से चेक-आउट किए गए PR की समीक्षा कर रहे हों और सीधे GitHub पर पोस्ट करने के बजाय मशीन-पठनीय समीक्षा आउटपुट तैयार कर रहे हों।
code-reviewdevelopment
create-pr
warpdotdev
वर्तमान शाखा के लिए warp रिपॉजिटरी में एक पुल रिक्वेस्ट बनाएँ। इसका उपयोग तब करें जब उपयोगकर्ता PR खोलने, पुल रिक्वेस्ट बनाने, समीक्षा के लिए परिवर्तन सबमिट करने, या मर्ज के लिए कोड तैयार करने का उल्लेख करे।
developmentcode-review
implement-specs
warpdotdev
PRODUCT.md और TECH.md से स्वीकृत सुविधा को लागू करें, स्पेक्स और कोड को उसी PR में संरेखित रखें जैसे-जैसे कार्यान्वयन विकसित होता है। उत्पाद और तकनीकी स्पेक्स स्वीकृत होने के बाद और अगला कदम सुविधा का निर्माण होने पर उपयोग करें।
developmentcode-reviewapi
cross-critique
warpdotdev
एक विवादित प्रश्न पर दूसरा दौर चलाएँ, प्रत्येक उप-एजेंट के स्वतंत्र प्रस्ताव को अन्य ल
resolve-merge-conflicts
warpdotdev
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.
developmentcode-review
brandalf
warpdotdev
Warp या Oz ब्रांडेड एसेट्स के निर्माण, संशोधन और समीक्षा का मार्गदर्शन करता है। लॉन्च पेजों, डॉक्स, HTML/CSS घटकों, UI मॉकअप्स, प्रॉम्प्ट्स, सोशल एसेट्स, कॉपी, प्रेजेंटेशन्स या किसी भी अन्य ब्रांडेड डिलिवरेबल पर काम करते समय उपयोग करें, जो निस्संदेह Warp या Oz जैसा दिखना और सुनाई देना चाहिए।
designcreativemarketing