resolving-merge-conflicts
适用于需要解决正在进行的 git merge/rebase 冲突时。
Security Assessment
About resolving-merge-conflicts
This skill is a concise, procedural guide (written in Chinese) for resolving in-progress git merge or rebase conflicts. It addresses the common and error-prone situation where a developer is mid-merge or mid-rebase with conflicting hunks and needs a disciplined process to reconcile changes correctly rather than guessing or aborting.
The workflow is a five-step checklist: first inspect the current merge or rebase state, git history, and the conflicted files; second, find the primary source for each conflict by understanding why each change was made, reading commit messages, and checking the associated PRs and issues; third, resolve each hunk while preserving both sides' intent where possible, choosing the side that matches the merge goal and documenting the trade-off when they are incompatible, without inventing new behavior and without using --abort; fourth, discover and run the project's automated checks such as typecheck, tests, and formatting, and fix any problems the merge introduced; and fifth, complete the merge or rebase by staging everything, committing, and continuing the rebase until all commits are applied.
The target users are software engineers and AI coding agents that need a reliable, intent-preserving method for finishing a conflicted merge or rebase. Because it is a short methodology document with no bundled code beyond an empty agents configuration file, it functions primarily as a workflow reference rather than an automated tool.
FAQ
When should this skill be used?
When you need to resolve conflicts during an in-progress git merge or rebase.
What are the main steps?
Inspect the merge/rebase state, find the primary source and intent behind each conflicting change, resolve each hunk preserving both sides' intent, run the project's automated checks, then complete the merge or rebase with a commit.
Does it recommend aborting on difficult conflicts?
No. It explicitly says to always resolve conflicts and not use --abort, and to not invent new behavior.
How does it decide between two conflicting changes?
Preserve both intents where possible; when they are incompatible, choose the side that matches the goal of the merge and document the trade-off.
What language is the guide written in?
It is a Chinese-language (zh-cn) translation of a merge-conflict resolution skill, with technical terms kept in English.
Install resolving-merge-conflicts
Quick Setup:
- Copy the skill folder to
.claude/skills/ - Claude will automatically detect and use the skill
Repository
vinvcn/mattpocock-skills-zh-cn