resolve-conflicts

Create structured Git merge conflict resolution plans and execute user-approved steps.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/gahoccode/PRDs --skill resolve-conflicts
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: resolve-conflicts
Source: https://github.com/gahoccode/PRDs/tree/main/skills/resolve-conflicts
Command: npx skills add https://github.com/gahoccode/PRDs --skill resolve-conflicts

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides a structured framework for merging conflicts (imports, tests, lock files, configs, and deleted-modified files) with backup and analysis steps, avoiding ad-hoc merges.

Core Features & Use Cases

  • Plan-first approach with explicit resolution plan
  • Separate phases for deleted-modified, generated, imports, tests, and code
  • Generated file regeneration and test coverage preservation
  • Clear decision prompts when inputs are unclear

Quick Start

Present a merge plan to the user, await approval, then execute conflict resolution steps with traceable decisions.

Frequently Asked Questions about resolve-conflicts

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

FAQPage Schema
How do I resolve Git merge conflicts automatically without losing code?

Merge conflicts occur when Git cannot automatically combine changes from two branches. This Skill creates a structured resolution plan that assesses all conflicts—imports, tests, lock files, deleted-modified cases—applies appropriate merge strategies (prefer both changes, regenerate locks, backup originals), and validates the result with tests to preserve intent across regular, generated, and binary files.

Can I handle merge conflicts in generated files and lock files safely?

Yes. This Skill distinguishes between generated artifacts, lock files, imports, tests, and code conflicts. For generated files it regenerates from source; for lock files it applies merge strategies with backups. Each phase—deleted-modified, generated, imports, tests, code—follows separate rules and relocation analysis to ensure consistency.

What's the best way to resolve import conflicts and test failures during a merge?

A plan-first approach structures the resolution: assess all conflict types upfront, generate an explicit plan with decision prompts, obtain your approval before execution, then apply targeted strategies (merge imports intelligently, preserve test coverage, validate with test runs). This avoids ad-hoc merges and ensures decisions are traceable.

How do I merge when files are deleted in one branch but modified in another?

Deleted-modified conflicts are handled as a distinct phase in the resolution plan. The Skill analyzes whether the deletion or modification better serves the merge intent, applies the chosen strategy with backup, and validates the outcome so you can make an informed decision before committing.

Does this work with configuration files and binary files in Git?

Yes. The Skill's scope includes configuration files, regenerated artifacts, and binary files. It applies appropriate merge strategies for each type—backups ensure originals are preserved—and provides traceable explanations so you understand how each conflict was resolved.

What happens if the merge plan doesn't match my project's intent?

The Skill presents the plan for explicit approval before execution. If the proposed resolution doesn't align with your intent, you can reject it, modify decisions at clear prompts, and guide a new resolution that matches your requirements before any changes are applied.