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 從公開儲存庫中收錄這些內容。

檢舉或申請下架