Fix Merge Conflicts
UTILITY SKILL. INVOKES: git, filesystem reads, targeted file edits. FOR SINGLE OPERATIONS: active merge conflict repair only.
Use this skill for active local merge-conflict repair.
Read merge resolution workflow before editing conflicted files.
USE FOR:
- In-progress
git mergestates with unmerged paths. - Resolving obvious conflicts, staging resolutions, and completing the merge.
- Asking the user only when the correct resolution is genuinely ambiguous.
DO NOT USE FOR:
- Rebases, cherry-picks, amends, or commit-only requests.
- PR monitoring or remote merge-conflict detection.
- Generic dirty worktree cleanup when no merge is in progress.
- CI failures after a merge commit already exists.
Examples
fix the merge conflictsresolve this merge and continue
Required Checks
- Confirm a merge is in progress with git status and merge-state files.
- Use git's unmerged path list as the worklist.
- Read each conflicted file in context before resolving it.
- Stage only intentional conflict resolutions.
- Stop if unrelated staged paths would be swept into the merge commit.
- Complete with
GIT_EDITOR=true git merge --continue; update.git/MERGE_MSGfor#CIonly when the prompt explicitly asks to include a CI marker on the merge commit. Use a separate empty#CItrigger commit for ordinary requests to trigger actions or run GitHub Actions after the merge commit is published.
Troubleshooting
- If no merge is in progress, report that there is nothing to continue.
- If the right resolution depends on product, rollout, or business intent, ask one concise question and wait.
- Never use blanket
--oursor--theirsacross all files.
Output
Report whether a merge was in progress, resolved files, whether user input was needed, the final merge commit subject, and whether git merge --continue completed.