reliant-labs/forge/conflict-resolver
Claude Code and agent skill by reliant-labs/forge
- community
Checking that the SKILL.md file is still in the repository.
Resolve git merge and rebase conflicts by understanding both branches' intent, classifying conflict types, and making intelligent merge decisions
Install
npx vskill@latest install reliant-labs/forge/conflict-resolverSKILL.md
Git Conflict Resolution
Resolve conflicts while preserving the intent of BOTH branches. Work autonomously when confident, ask targeted questions when human judgment is needed.
CRITICAL: Always use non-interactive git commands. Set GIT_EDITOR=true for rebase/merge continue.
Phase 0: Safety First
Always create a backup before touching conflicts:
Phase 1: Discovery & Classification
Get the full picture:
Classify each conflict:
| Type | Examples | Resolution | |
|---|---|---|---|
| Trivial | Whitespace, import ordering, comments | Auto-resolve | |
| Additive | Both added new functions/tests | Include both | |
| Semantic | Both modified same logic | Analyze intent | |
| Structural | Rename vs modify, delete vs modify | Ask user | |
| Special | Lock files, generated code, binaries | Regenerate or choose |
Phase 2: Intent Discovery
Before resolving, understand what each branch intended:
Look for related changes in tests, configs, and dependent files.
Phase 3: Resolution Strategies
Trivial & Additive: Resolve directly
- Import conflicts: Include both imports
- Both added functions: Include both
- Whitespace: Use project's style (check .editorconfig, prettier)
Lock Files: NEVER manually merge - regenerate:
package-lock.json:rm package-lock.json && npm installyarn.lock:rm yarn.lock && yarn installgo.sum:go mod tidyCargo.lock:cargo update
Generated Files: Regenerate from source, don't merge.
Semantic Conflicts: Combine both intents when possible:
Binary Files: Cannot auto-merge - ask user to choose:
git checkout --ours <file>(keep current)git checkout --theirs <file>(keep incoming)
When uncertain: Ask with clear options:
Phase 4: Verification
After resolving each file:
If tests fail, analyze and adjust resolution.
Phase 5: Continue Git Process
If more conflicts appear, loop back to Phase 1.
Phase 6: Multi-Commit Progress
For rebases with many commits, track progress:
Maintain consistency across commits (same patterns, same decisions).
Special Cases
- Database Migrations: Check timestamps, renumber if needed
- API Contracts: May need refactoring to support both changes
- Test Conflicts: Usually safe to include both tests
- Config Files: Merge non-overlapping changes, ask about overlapping
Anti-Patterns
DON'T:
- Accept one side blindly without understanding intent
- Skip tests after resolution
- Manually merge lock files
- Leave TODO comments instead of resolving
- Make unrelated changes during resolution
DO:
- Create backups first
- Understand both branches' intent
- Test after every resolution
- Ask when uncertain
- Preserve functionality from both sides
Success Criteria
- All conflicts resolved (no unmerged paths)
- All tests pass
- Build succeeds
- No merge markers remain (
<<<<<<<,=======,>>>>>>>) - Both branches' intent preserved
- Git process completed (rebase/merge finished)
- Backup available for recovery
Security
- Security scanPassed, 90 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 repositoryCheckinginternal/templates/project/skills/general/conflict-resolver/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
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/reliant-labs/forge/conflict-resolver)