首页/AI 开发工具与流程/resolving-merge-conflicts
R

resolving-merge-conflicts

by @mattpocockv
4.9(120)

此技能提供了一套系统化的方法来高效解决 Git 合并或变基(rebase)过程中出现的冲突。它指导开发者逐步检查历史、识别冲突根源、精确处理每个冲突块,并确保自动化检查通过,从而显著减少手动解决冲突的耗时和错误,保障代码库的整洁与项目的顺利推进。

gitmerge-conflictrebaseversion-controldeveloper-workflowGitHub
安装方式
npx skills add https://github.com/mattpocock/skills --skill resolving-merge-conflicts
compare_arrows

Before / After 效果对比

1 组
使用前

用户在没有明确指导的情况下,手动解决 Git 合并冲突时,往往耗时冗长,容易遗漏关键修改或引入新的错误,导致代码库不稳定,甚至需要多次返工,严重影响开发效率和团队协作。

使用后

该 Skill 提供清晰的步骤和最佳实践,帮助开发者快速定位并准确解决冲突。此技能确保每次冲突解决都遵循规范,减少了返工和错误,显著提升了代码合并的成功率和开发流程的顺畅度。

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 everything and commit. If rebasing, continue the rebase process until all commits are rebased.

用户评价 (0)

发表评价

效果
易用性
文档
兼容性

暂无评价

统计数据

安装量551.1K
评分4.9 / 5.0
版本
更新日期2026年10月20日
对比案例1 组

用户评分

4.9(120)
5
37%
4
43%
3
13%
2
5%
1
2%

为此 Skill 评分

0.0

兼容平台

🤖claude-code

时间线

创建2026年6月19日
最后更新2026年10月20日
🎁 Agent 知识卡片
调研问卷