fix-merge-conflicts

Resolve git merge conflicts and validate the build with tests.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/namhoangg/agent-starter-kit --skill fix-merge-conflicts-namhoangg
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fix-merge-conflicts
Source: https://github.com/namhoangg/agent-starter-kit/tree/main/cursor/skills/fix-merge-conflicts
Command: npx skills add https://github.com/namhoangg/agent-starter-kit --skill fix-merge-conflicts-namhoangg

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automatically resolves git merge conflicts non-interactively and ensures the resulting codebase is build-clean and ready for commit.

Core Features & Use Cases

  • Detects conflicting files and conflict markers with git status.
  • Applies minimal, correctness-first edits that preserve both sides when safe, then regenerates lockfiles as needed.
  • Runs compile, lint, and tests, and summarizes the resolution decisions for review.
  • Use Case: When long-running feature branches diverge and automated resolution is preferred to maintain CI stability.

Quick Start

Trigger the skill on a branch with unresolved conflicts to automatically resolve them and validate the build.

Frequently Asked Questions about fix-merge-conflicts

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automatically resolve git merge conflicts across multiple files?

To automatically resolve git merge conflicts, this skill detects conflicting files and conflict markers, then applies minimal, correctness-first edits that preserve both sides when safe to produce a clean, buildable state.

Can I non-interactively fix merge conflicts and still ensure my code compiles?

Yes, you can non-interactively fix merge conflicts while ensuring code compiles by applying safe edits, regenerating lockfiles as needed, and running compile, lint, and test suites to validate the resulting codebase.

What's the best way to handle divergent feature branches and maintain CI stability?

The best way to handle divergent feature branches and maintain CI stability is using automated conflict resolution that applies minimal edits, regenerates lockfiles, and validates the build to ensure the codebase passes CI tests.

Does automated conflict resolution work with lockfile regeneration and test suites?

Yes, automated conflict resolution works with lockfile regeneration and test suites by requiring tooling to regenerate lockfiles, run compile and test suites, and summarize resolution decisions for review before committing.

How does this approach handle conflict markers and summarize resolution decisions?

This approach handles conflict markers by detecting them with git status, applying correctness-first edits to resolve them, and summarizing the resolution decisions so the resulting codebase is ready for commit review.

When should I avoid automated merge conflict resolution for my software project?

You should avoid automated merge conflict resolution when conflicts require complex semantic logic that cannot be safely resolved with minimal, correctness-first edits or when lockfile regeneration and CI test validation are not available.