resolving-merge-conflicts

仓库创建 2026年7月6日最近提交 22 天前SkillHot 收录 22 天前
▸ 精选理由

能把繁琐的冲突定位与逐块合并流程交给代理执行。

▸ 风险提示

需要对仓库有读写权限(可能会提交/推送更改)

这个 Skill 做什么

在进行中的 git merge/rebase 冲突中定位并按意图逐段解决冲突。

在进行中的 git merge 或 rebase 冲突里,帮你逐个冲突块定位来源、理解各方意图,然后按意图逐段解决或合并改动。适合手头正卡在冲突、要看提交历史、PR 或 issue 来判断哪边对的时候用。特别强调保留各方意图、查证上下游来源,而不是盲目选择一侧。

▸ 展开 SKILL.md 英文原文

Use when you need to resolve an in-progress git merge/rebase conflict.

开发编程合并冲突git代码修复通用
0
Stars
0
Forks
38
仓库内 Skill
+0
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/K3639284/skills/main/skills/engineering/resolving-merge-conflicts/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/K3639284/skills/main/skills/engineering/resolving-merge-conflicts/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
1. **See the current state** of the merge/rebase. Check git history, and the conflicting files.

2. **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.

3. **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`.

4. Discover the project's **automated checks** and run them — typically typecheck, then tests, then format. Fix anything the merge broke.

5. **Finish the merge/rebase.** Stage eve
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有