Fix Merge Conflicts

作者 cursorccb5507cec15无许可证10K 个星标收录于 2026年10月8日更新于 2026年10月8日仓库今天更新

Resolve merge conflicts non-interactively, validate build and tests, and finalize conflict resolution

AI 生成的概览

以非交互方式解决 git 合并冲突,验证构建与测试,并总结解决结果。

功能
该技能指导智能体解决未处理的 git 合并冲突:根据 git status 和冲突标记检测冲突文件,以最小化且优先保证正确性的修改逐一解决,并使用包管理工具重新生成锁文件。随后运行编译、lint 和相关测试,暂存已解决的文件,并报告已解决的文件、值得注意的解决选择以及构建/测试结果。
适用场景
当分支存在未解决的合并冲突且需要可靠地达到可构建状态时使用。它适用于需要以非交互方式解决冲突并通过编译和测试加以验证的场景。
运行要求
需要存在未解决合并冲突的 git 仓库,以及用于验证结果的包管理器、编译器、linter 和测试工具。该技能不附带脚本,仅为说明性指令。

Fix merge conflicts

Trigger

Branch has unresolved merge conflicts and needs a reliable path to a buildable state.

Workflow

  1. Detect all conflicting files from git status and conflict markers.
  2. Resolve each conflict with minimal, correctness-first edits.
  3. Prefer preserving both sides when safe. Otherwise, choose the variant that compiles and keeps public behavior stable.
  4. Regenerate lockfiles with package manager tools instead of hand-editing.
  5. Run compile, lint, and relevant tests.
  6. Stage resolved files and summarize key decisions.

Guardrails

  • Keep changes minimal and readable.
  • Do not leave conflict markers in any file.
  • Avoid broad refactors while resolving conflicts.
  • Do not push or tag during conflict resolution.

Output

  • Files resolved
  • Notable resolution choices
  • Build/test outcome

来源与署名

来源:cursor/plugins位于cursor-team-kit/skills/fix-merge-conflicts提交ccb5507

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架