Skip to content
Development
Skill

/resolving-merge-conflicts

适用于需要解决正在进行的 git merge/rebase 冲突时。

From plugin
vinvcn-mattpocock-skills
4.3k29 skills
Install
$ npx -y skills add vinvcn/mattpocock-skills-zh-cn --skill resolving-merge-conflicts --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/resolving-merge-conflicts

Context preview

The summary Claude sees to decide when to auto-load this skill.

适用于需要解决正在进行的 git merge/rebase 冲突时。

SKILL.md

resolving-merge-conflicts.SKILL.md
name: resolving-merge-conflicts
description: "适用于需要解决正在进行的 git merge/rebase 冲突时。"

1. **查看当前 merge/rebase 状态**。检查 git history 和冲突文件。

2. **为每个冲突找到 primary sources**。深入理解每个变更为什么产生,以及原始意图是什么。阅读 commit messages,检查 PRs,检查原始 issues/tickets。

3. **解决每个 hunk。** 尽可能保留双方意图。若二者不兼容,选择符合本次 merge 目标的一方,并记录 trade-off。**不要**发明新行为。始终解决冲突;不要 `--abort`。

4. 发现项目的 **automated checks** 并运行它们,通常是 typecheck、tests、format。修复 merge 引入的问题。

5. **完成 merge/rebase。** Stage 所有内容并 commit。若正在 rebase,继续 rebase 流程直到所有 commits 都完成。

Ships withvinvcn-mattpocock-skills

这是 mattpocock/skills 的简体中文本地化版本。

Get the whole plugin
Stats
4,327
Stars
347
Forks
Active
Maintenance
JavaScript
Language
MIT
License
4d ago
Last commit
4mo ago
Created

Repo: vinvcn/mattpocock-skills-zh-cn

Other skills on vinvcn-mattpocock-skills.

code-review
Skill

code-review

从固定点(commit、branch、tag 或 merge-base)开始,按 Standards(代码是否符合本仓库记录的编码标准?)和 Spec(代码是否符合来源 issue/spec 的要求?)两个轴线审查变更。两个审查会在并行子代理中运行,并并排报告。适用于用户想审查…