-
See the current state of the merge/rebase. Check git history, and the conflicting files.
-
Find the primary sources for each conflict. Understand deeply why each change was made, and what the original intent was. Read the commit messages, check the PRs, check original issues/tickets.
-
Resolve each hunk. Preserve both intents where possible. Where incompatible, pick the one matching the merge's stated goal and note the trade-off. Do not invent new behaviour. Always resolve; never
--abort. -
Discover the project's automated checks and run them, typically typecheck, then tests, then format. Fix anything the merge broke.
-
Finish the merge/rebase. Stage everything and commit. If rebasing, continue the rebase process until all commits are rebased.

Resolving Merge Conflicts
作者 mattpocockc55ee46073ed無授權條款收錄於 2026年10月8日更新於 2026年10月8日
Use when you need to resolve an in-progress git merge/rebase conflict.
引導代理逐步解決進行中的 git 合併或重定基底衝突。
- 功能
- 此技能提供一套五步流程,用來解決進行中的 git 合併或重定基底衝突。內容涵蓋檢查目前狀態與衝突檔案、透過提交訊息、提取要求與票據追溯每處衝突的原始意圖、在可能時保留雙方意圖逐段解決衝突、執行專案的自動化檢查,以及透過暫存與提交完成合併或重定基底。它僅包含指示,產出的是已完成並提交的合併或重定基底,而非檔案成品。
- 適用情境
- 適用於 git 合併或重定基底已在進行中,並留下待解決衝突檔案的情況。也適合代理需要判斷如何協調相互衝突的變更,並以專案本身的檢查驗證結果時使用。
- 執行需求
- 需要一個有進行中合併或重定基底的 git 儲存庫,並能存取 git 歷史、提交訊息、提取要求與票據。執行專案的自動化檢查需要專案所用的工具,例如型別檢查器、測試套件與格式化工具。此技能不附帶指令碼,僅為指示。
來源與署名
來源:mattpocock/skills位於skills/engineering/resolving-merge-conflicts提交c55ee46
授權條款: 無授權條款
內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。
更多來自 mattpocock/skills 的技能

Chief Of Staff
mattpocock
在單一工作階段中協調子代理與排程,推進長期目標。

Writing For Agents
mattpocock
一份關於撰寫供 AI 代理閱讀之文件(例如技能、AGENTS.md 與 CLAUDE.md)的參考指南。

Wait What
mattpocock
以簡化技術英語和專案通用語言重新表述令人困惑的訊息。

To Questionnaire
mattpocock
把使用者無法獨自回答的決策轉換成一份 Markdown 問卷,交給他人填寫。

Teach
mattpocock
透過多次工作階段教使用者學習某個主題,在工作區中產出 HTML 課程、參考文件與學習紀錄。

Handoff
mattpocock
將目前對話壓縮成一份交接文件,讓新的代理能接手繼續工作。
更多Software Development技能

Playground
anthropics
建立自成一體的互動式 HTML 遊樂場,包含控制項、即時預覽與可複製的提示詞輸出。

M5 Onboard
anthropics
透過 USB 偵測 M5Stack ESP32 開發板,燒錄 UIFlow 2.0 韌體並安裝 MicroPython 應用程式套件。

Cardputer Buddy
anthropics
指導迭代 Cardputer-Adv 的 MicroPython 應用程式套件:新增應用程式、透過 USB 序列埠推送檔案、查看日誌並執行 REPL 指令。

Dpop Adoption
指導為 Google OAuth 平台實作 OAuth 2.0 DPoP(RFC 9449)傳送方約束的更新權杖。

Gemini Live Api
產生 Gemini Live API WebSocket 用戶端類別、測試、文件,以及用於雙向串流的示範介面。

Gemini Api
說明如何在 Google Agent Platform 上使用 Gen AI SDK 呼叫 Gemini API,涵蓋多種語言與多項功能。