About fix-merge-conflicts
A skill for resolving Git merge conflicts with minimal, correctness-focused edits and checking that the result builds. It covers conflict detection, resolution, validation, and a summary of decisions.
Key features
- 01Find conflict files and markers
- 02Resolve conflicts with minimal edits
- 03Regenerate lockfiles with package tools
- 04Run compile, lint, and relevant tests
- 05Summarize resolutions and outcomes
Use cases
- 01Restoring a branch with unresolved conflicts
- 02Resolving package lockfile conflicts
- 03Checking a conflict resolution before handoff
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ ericlitman/ open-pstack --skill fix-merge-conflictsAfter installing, type/fix-merge-conflictsin Claude Code to confirm it loaded.
Details
From the project READMEFix merge conflicts
Trigger
Branch has unresolved merge conflicts and needs a reliable path to a buildable state.
Workflow
- Detect all conflicting files from git status and conflict markers.
- Resolve each conflict with minimal, correctness-first edits.
- Prefer preserving both sides when safe. Otherwise, choose the variant that compiles and keeps public behavior stable.
- Regenerate lockfiles with package manager tools instead of hand-editing.
- Run compile, lint, and relevant tests.
- 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
Comments
Markdown supported