resolving-merge-conflicts
解决 Git 合并冲突
合并和 rebase 冲突会打断交付,并可能掩盖丢失的意图。此技能指导源码审查、hunk 解决、检查以及最终的 Git 继续操作。
使用我的智能体安装
将此请求复制给你的智能体,其中包含权威 Skill 页面和清单。
Review the Skillstore skill "resolving-merge-conflicts" from https://skillstore.io/skills/mattpocock-resolving-merge-conflicts.md and its manifest at https://skillstore.io/api/skills/mattpocock-resolving-merge-conflicts/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.你的智能体仍应展示其计划,并按安全策略请求必要确认。
Agent 可读资源
当 AI Agent、爬虫或脚本需要干净上下文,而不是读取完整页面时,请使用这些链接。
测试它
正在使用“resolving-merge-conflicts”。 一名开发者请求帮助解决服务文件及其测试中的冲突。
预期结果:
- 报告当前合并状态并指出冲突文件。
- 使用历史记录和相关讨论总结双方意图。
- 推荐 hunk 决策,然后要求运行测试和格式化。
正在使用“resolving-merge-conflicts”。 一名维护者正在 rebase 过程中处理反复出现的冲突。
预期结果:
- 识别下一个冲突以及引入各方更改的提交。
- 建议保留兼容行为,并记录任何权衡。
- 暂存已解决的文件,并在检查通过后继续 rebase。
正在使用“resolving-merge-conflicts”。 一名发布工程师在切分支前遇到冲突。
预期结果:
- 在不兼容更改之间做选择前,先聚焦发布目标。
- 解决后运行仓库检查。
- 在提交前突出显示任何有风险的权衡,以供最终审查。
安全审计
中风险The static alert is a false positive because line 10 uses Markdown backticks around a Git option, not Ruby or shell execution. No prompt injection or data-exfiltration intent was found. However, unconditional instructions to never abort and to stage everything can capture unrelated changes or remove a safe recovery option.
已确认安全问题 (1)
风险因素
⚙️ 外部命令 (1)
分享与引用此报告
分享版本化评估报告、中性徽章、嵌入卡片和引用。Skillstore 只报告证据,不判断该 Skill 是否安全。
复制报告链接
https://skillstore.io/skills/mattpocock-resolving-merge-conflicts/audits/4?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown 徽章
[](https://skillstore.io/skills/mattpocock-resolving-merge-conflicts?utm_source=security_passport_badge)HTML 徽章
<a href="https://skillstore.io/skills/mattpocock-resolving-merge-conflicts?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/mattpocock-resolving-merge-conflicts/security.svg" alt="Skillstore security assessment" loading="lazy"></a>嵌入卡片
<iframe src="https://skillstore.io/embed/skills/mattpocock-resolving-merge-conflicts.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>学术引用 (APA · BibTeX · CFF)
APA 引用
mattpocock. (2026). resolving-merge-conflicts security audit report (audit version 4) [Author version unspecified]. Skillstore. https://skillstore.io/skills/mattpocock-resolving-merge-conflicts/audits/4BibTeX 引用
@techreport{mattpocock-mattpocock-resolving-merge-conflicts-2026,
author = {mattpocock},
title = {resolving-merge-conflicts security audit report (audit version 4)},
institution = {Skillstore},
year = {2026},
number = {4},
url = {https://skillstore.io/skills/mattpocock-resolving-merge-conflicts/audits/4},
note = {Author version unspecified}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "resolving-merge-conflicts security audit report (audit version 4)"
version: "unspecified"
type: report
authors:
- name: "mattpocock"
date-released: "2026-07-23"
url: "https://skillstore.io/skills/mattpocock-resolving-merge-conflicts/audits/4"
identifiers:
- type: other
value: "skillstore:mattpocock-resolving-merge-conflicts:audit:4"
description: "Skillstore immutable audit report identifier"
Skillstore 评分
评分依据 证据置信度: 中你能构建什么
合并功能分支
解决功能分支与 main 之间的冲突,同时保留双方实现意图。
Rebase 补丁序列
通过源码审查和最终的 rebase 继续操作,处理反复出现的 rebase 冲突。
准备发布分支
解决发布后期冲突,运行项目检查,并在提交前记录权衡。
试试这些提示
我正在处理一个 Git 合并冲突。检查当前状态,列出冲突文件,并告诉我应该先阅读什么。
帮我解决 [file] 中的冲突。解释双方的意图,然后提出最安全的 hunk 决策。
找出此仓库的项目检查。按正确顺序运行 typecheck、tests 和 format,然后帮我修复与合并相关的失败。
我正在 rebase,冲突不断出现。对于每个冲突,追踪原始意图,解决冲突,暂存更改,并继续 rebase。
最佳实践
- 在修改冲突 hunk 前,阅读历史记录和关联的项目上下文。
- 当双方更改意图兼容时,保留两者。
- 解决后运行检查,并修复由合并导致的失败。
避免
- 在不了解双方更改为何存在的情况下,直接选择冲突的一方。
- 在解决冲突时添加新行为。
- 编辑冲突文件后跳过测试、typecheck 或格式化。
常见问题
这个技能能帮我做什么?
它会自动编辑文件吗?
它能在 rebase 期间提供帮助吗?
它如何在冲突更改之间做选择?
我应该运行哪些检查?
这是一个安全敏感技能吗?
开发者详情
作者
mattpocock许可证
MIT
Skillstore 修订
r2
版本提示
作者未声明版本。
引用
ebdfe608f5de2b66ff37ab4af12af8ac4f5e8006
维护新鲜度
2026/7/25
使用量
5 次下载 · 0 次浏览
文件结构
📄 SKILL.md