troykelly/claude-skills/troykelly-claude-skills-conflict-resolution
Claude Code and agent skill by troykelly/claude-skills
- community
Checking that the SKILL.md file is still in the repository.
Use when encountering merge conflicts - handle conflicts cleanly, verify resolution, and maintain code integrity
Install
npx vskill@latest install troykelly/claude-skills/troykelly-claude-skills-conflict-resolutionSKILL.md
Conflict Resolution
Overview
Handle merge conflicts systematically to maintain code integrity.
Core principle: Conflicts require careful resolution, not just picking one side.
Announce at start: "I'm using conflict-resolution to handle these merge conflicts."
When Conflicts Occur
Conflicts happen when:
| Situation | Example | |
|---|---|---|
| Rebasing on updated main | git rebase origin/main | |
| Merging main into branch | git merge origin/main | |
| Cherry-picking commits | git cherry-pick [sha] | |
| Pulling with local changes | git pull |
The Resolution Process
Step 1: Understand the Conflict
See Conflicting Files
View the Conflict
Understand the History
Step 2: Analyze Both Versions
Questions to Answer
| Question | Consider | |
|---|---|---|
| What was the intent of your change? | Your feature/fix | |
| What was the intent of their change? | Their feature/fix | |
| Are they mutually exclusive? | Can both coexist? | |
| Which is more recent/correct? | Check issue references | |
| Do both need to be kept? | Merge the logic |
Compare Approaches
Step 3: Resolve the Conflict
Resolution Strategies
Keep Theirs (Main)
When main's version is correct:
Keep Ours (Your Branch)
When your version is correct:
Manual Merge (Both)
When both changes are needed:
Conflict Markers
Remove ALL conflict markers:
The final file should have NO conflict markers.
Step 4: Verify Resolution
Syntax Check
Run Tests
Visual Review
Step 5: Continue the Operation
After Rebase
After Merge
Abort if Needed
If resolution goes wrong:
Complex Conflicts
Multiple Files
Resolve one file at a time:
Semantic Conflicts
Sometimes code merges cleanly but is semantically broken:
Always run tests after resolution.
Conflicting Dependencies
Resolution:
- Choose the appropriate version
- Delete
pnpm-lock.yaml - Run
pnpm install - Commit the new lock file
Best Practices
Before Resolution
- Pull latest main frequently to minimize conflicts
- Keep branches short-lived
- Communicate about shared files
During Resolution
- Take your time
- Understand both changes
- Don't just pick "ours" or "theirs" blindly
- Test after resolution
After Resolution
- Run full test suite
- Review the merged result
- Commit with clear message
Conflict Message
When conflicts occur during PR:
Checklist
When resolving conflicts:
- [ ] All conflicting files identified
- [ ] Each conflict analyzed (understood both sides)
- [ ] Resolution chosen (ours/theirs/merge)
- [ ] Conflict markers removed
- [ ] Files staged (
git add) - [ ] Tests pass
- [ ] Build succeeds
- [ ] No remaining conflict markers
- [ ] Operation completed (rebase --continue / commit)
Integration
This skill is called when:
git rebaseencounters conflictsgit mergeencounters conflicts- PR shows conflicts
This skill ensures:
- Clean resolution
- No lost changes
- Working code after merge
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/conflict-resolution/SKILL.md
Popularity
- Repository stars
- 7
- 7-day trend score
- 10
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 4 May 2026, 6 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/troykelly/claude-skills/troykelly-claude-skills-conflict-resolution)