fix-merge-conflicts
Installation
SKILL.md
Fix merge conflicts
Workflow
- Detect all conflicting files from git status and conflict markers.
- For each conflict, check whether one side deleted or moved the text (split file, rename, extraction). If so, resolve the file to that side, find the text's new home (
grepfor its heading, route or symbol in the new files), and apply the other side's change there. - Resolve the remaining conflicts 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.
- If the branch has a PR, check its description for paths and SHAs the merge made stale.
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.