测试与安全

fix-merge-conflicts

cursor/plugins

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

  • 2704 次安装
  • 1.5万 星标
  • 收录于

安装命令

npx skills add https://github.com/cursor/plugins --skill fix-merge-conflicts

SKILL.md

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