Skip to content
Back to skills

Resolving Merge Conflicts

ASecurity

當你需要解決進行中的 git merge/rebase 衝突時使用。

  • 3 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 19, 2026
ai-agentsgit

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 19, 2026

npx -y skills add shumingyang-opencode/mattpocock-skills-zh-tw --skill resolving-merge-conflicts --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Resolving Merge Conflicts?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Resolving Merge Conflicts
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/shumingyang-opencode-resolving-merge-conflicts/badge)](https://www.skillsdirectory.com/skills/shumingyang-opencode-resolving-merge-conflicts)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: resolving-merge-conflicts
description: "當你需要解決進行中的 git merge/rebase 衝突時使用。"
---

1. **檢視目前狀態**,也就是 merge/rebase 的目前狀態。檢查 git 歷史與衝突檔案。

2. **為每個衝突找出主要來源**。深入理解每個變更為什麼被做,以及原始意圖是什麼。讀 commit 訊息、查 PR、查原始 issue/ticket。

3. **解決每個 hunk。** 盡可能保留兩邊的意圖。在不相容之處,選擇符合 merge 陳述目標的一方,並記下取捨。**不要**發明新行為。永遠解決;絕不 `--abort`。

4. 找出專案的**自動化檢查**並執行它們——通常是 typecheck,然後測試,然後格式。修好任何被 merge 弄壞的東西。

5. **完成 merge/rebase。** 把所有東西加入並 commit。如果是在 rebase,繼續 rebase 流程直到所有 commit 都 rebase 完。

Files in this skill

  • SKILL.md903 B
  • agents/openai.yaml113 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…