cursor avatar

Fix Merge Conflicts

When you're staring down merge conflicts and just need to get back to a clean build, this skill handles the resolution non-interactively. It detects conflicting files, resolves them with minimal edits that prioritize correctness, and validates everything compiles and passes tests before staging. The approach is pragmatic: preserve both sides when safe, otherwise pick what keeps things stable. It'll regenerate lockfiles properly instead of making you hand-edit them, and it won't leave conflict markers behind or try to sneak in refactors. The real value is in the workflow discipline: it forces validation before you finalize, which is exactly what you want when you're rushing to unblock a branch.

skills.sh installs
2.8K
GitHub stars
15.9K
last updated
Aug 21, 2026

Install

$ npx -y skills add cursor/plugins --skill fix-merge-conflicts --agent claude-code

Installs into .claude/skills of the current project.

Files

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

Sponsors

Details

Repository
github.com/cursor/plugins
Categories
DevOps & CI/CD, Git & Pull Requests, Debugging
First seen
Jun 3, 2026

More from cursor/plugins

All 47
1mantinedev avatarmantine-formmantinedev/skillsBuild forms using @mantine/form in the mantine-9 repository. Use this skill when: (1) setting up a form with useForm, (2) adding validation rules or async valid2.8Kskills.sh installs
2dynatrace avatardt-obs-frontendsdynatrace/dynatrace-for-aiReal User Monitoring (RUM) on Dynatrace — web and mobile frontends. Core Web Vitals, user sessions, page performance, mobile crashes, frontend errors, and front2.8Kskills.sh installs
3minimax-ai avatarandroid-native-devminimax-ai/skillsAndroid native application development and UI design guide. Covers Material Design 3, Kotlin/Compose development, project configuration, accessibility, and buil2.7Kskills.sh installs
4owl-listener avatarcolor-systemowl-listener/designer-skillsBuild a comprehensive color system with palette generation, semantic mapping, and accessibility compliance.2.7Kskills.sh installs
5deanpeters avatarai-shaped-readiness-advisordeanpeters/product-manager-skillsAssess whether your product work is AI-first or AI-shaped. Use when evaluating AI maturity and choosing the next team capability to build.2.7Kskills.sh installs
6nvidia avatarcuopt-developernvidia/skillsModify, build, test, debug, and contribute to NVIDIA cuOpt (C++/CUDA, Python, server, CI). Use for solver internals, PRs, DCO, and code conventions.2.7Kskills.sh installs