# Repo Cleanup Conflict Resolution Patterns

> Sub-skill of repo-cleanup: Conflict Resolution Patterns (+2).

- Skill: `vamseeachanta/repo-cleanup-conflict-resolution-patterns-2` (Agent Skill)
- Install (CLI): `npx skillmds@latest add vamseeachanta/repo-cleanup-conflict-resolution-patterns-2`
- Raw SKILL.md: https://api.skillmd.com/api/skills/vamseeachanta/repo-cleanup-conflict-resolution-patterns-2/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: vamseeachanta (https://skillmd.com/u/vamseeachanta)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/vamseeachanta/repo-cleanup-conflict-resolution-patterns-2

---


# Conflict Resolution Patterns (+2)

## Conflict Resolution Patterns


| Conflict Type | Strategy | Example |
|--------------|----------|---------|
| Same filename | Rename with suffix | `README.md` -> `README-legacy.md` |
| Similar content | Use subdirectory | `commands/` -> `commands/legacy-scripts/` |
| Unique content | Preserve in dedicated folder | Keep `implementation-history/` |
| Clear duplicates | Delete after verification | Remove exact copies |

## Merge Commands


```bash
# Rename conflicting files before merge
mv .agent-os/README.md .agent-os/README-legacy.md

# Create legacy subdirectory for scripts
mkdir -p .claude/commands/legacy-scripts
git mv .agent-os/commands/* .claude/commands/legacy-scripts/

# Preserve unique historical content
git mv .agent-os/implementation-history/ .claude/docs/implementation-history/

# Find and remove exact duplicates (verify first)
md5sum .claude/agents/*.md .agent-os/agents/*.md | sort | uniq -w32 -d
```

## Pre-Merge Checklist


- [ ] Compare file lists between source and target
- [ ] Identify naming conflicts
- [ ] Decide rename vs. subdirectory strategy
- [ ] Document unique content to preserve
- [ ] Verify duplicates before deletion

