fix-merge-conflicts

Resolves git merge conflicts and validates builds with compile, lint, and tests.

Updated May 18, 2025
One-click install
npx skills add https://github.com/nthpaul/dotfiles --skill fix-merge-conflicts-nthpaul
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fix-merge-conflicts
Source: https://github.com/nthpaul/dotfiles/tree/main/cursor/.cursor/plugins/cache/cursor-public/cursor-team-kit/d1cdb88a9eb33cf392395c87e3fd76419fc1010e/skills/fix-merge-conflicts
Command: npx skills add https://github.com/nthpaul/dotfiles --skill fix-merge-conflicts-nthpaul

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It helps you recover from an unresolved git merge conflict state so you can reach a clean, buildable, testable result without leaving broken conflict markers behind.

Core Features & Use Cases

  • Non-interactive conflict resolution workflow: Detects conflicting files, resolves each conflict with minimal and correctness-first edits, and avoids risky broad refactors.
  • Correctness-first decisioning: Preserves both sides when safe, otherwise selects the variant most likely to compile while keeping public behavior stable.
  • Repeatable build validation: Regenerates lockfiles via package manager tooling, then runs compile/lint/tests and stages the final resolved set with a decision summary.

Quick Start

Tell the AI to resolve the current repository’s unresolved merge conflicts, regenerate any affected lockfiles, run the project’s compile/lint/tests, and provide a summary of the key resolution choices.

Frequently Asked Questions about fix-merge-conflicts

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

FAQPage Schema
How do I resolve git merge conflicts and ensure the repository builds cleanly?

To resolve git merge conflicts reliably, conflicting files are detected and corrected with minimal, correctness-first edits. The repository is then validated by regenerating lockfiles and running compile, lint, and test verifications before staging the final resolved files.

What is the best way to handle unresolved git conflict markers left after a branch rebase?

Handling unresolved git conflict markers after a rebase requires deterministic, correctness-first finalization. The process eliminates conflict markers by preserving both sides when safe or selecting the variant most likely to compile, ensuring public behavior remains stable.

How does lockfile regeneration work during merge conflict resolution?

Lockfile regeneration during merge conflict resolution involves using package manager tooling to rebuild affected lockfiles after eliminating conflict markers. This ensures dependencies are synchronized before running compile, lint, and test validation to reach a buildable state.

Can I use automated conflict resolution without triggering risky broad refactors?

Automated conflict resolution can be performed without risky broad refactors by applying minimal readable edits to conflicting files. It prioritizes correctness-first decisioning to preserve both sides of a conflict when safe, otherwise selecting the variant most likely to compile.

Why does my repository fail build validation after manually fixing git merge conflicts?

Build validation fails after manually fixing git merge conflicts when lockfiles are not regenerated or conflict markers remain. A clean, buildable state requires regenerating lockfiles via package manager tools and verifying compile, lint, and test outcomes before staging.