Skip to main content

git-resolve-merge-conflicts

Resolve git merge conflicts by inspecting both sides, consulting recent local project context, applying safe resolutions, and completing the merge when the resolution is clear.

来源信息

仓库
lefant/agent-skills
最近来源活动
2026年3月27日 07:26
检测到的 SKILL.md 语言
英语
星标
1
分支
1

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
git-resolve-merge-conflicts
description
Resolve git merge conflicts by inspecting both sides, consulting recent local project context, applying safe resolutions, and completing the merge when the resolution is clear.
# Git Resolve Merge Conflicts Use this skill when the user asks for help resolving git merge conflicts. This skill is the replacement for the old `git_resolve_merge_conflicts` command. ## Workflow 1. Identify conflicted files with git 2. Inspect the conflict markers in each file 3. Gather context from both sides of the merge: - `git log --stat HEAD...MERGE_HEAD -- <files>` - `git log --stat MERGE_HEAD...HEAD -- <files>` 4. Consult recent local context when helpful: - recent devlogs - plans - specs - ADRs 5. Resolve each file according to intent 6. Stage resolved files 7. Complete the merge commit when the resolution is clear and the user has not asked to stop short ## Resolution Heuristics - Keep both sides when changes are complementary - Prefer the clearer implementation when both sides solve the same problem differently - Stay consistent on formatting-only conflicts - Ask the user when the conflict implies contradictory logic or business rules ## Autonomy Boundary Proceed autonomously through stage and commit when the correct merge is clear. Pause only when ambiguity could cause a logic bug, such as: - conflicting business rules - incompatible data model changes - deletions that may break dependencies ## Verification After resolving, run the relevant tests or checks if practical.
在 GitHub 查看