-
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 命令。

Testing Strategy
anthropics
设计测试策略与测试计划,涵盖测试类型、覆盖率目标与示例测试用例。

Tech Debt
anthropics
识别、分类并排序技术债务,产出评分后的待办清单与分阶段整改计划。

System Design
anthropics
通过需求、高层设计、深入设计、扩展与权衡分析来指导系统与架构设计。