Repo Cleanup Conflict Resolution Patterns

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

vamseeachanta Updated

File contents

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

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

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

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

# Find and remove exact duplicates (verify first)
md5sum .Codex/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

vamseeachanta/workspace-hub/tree/main/.agents/skills/_internal/meta/repo-cleanup/conflict-resolution-patterns commit 0e553d0f74

Frequently asked questions

npx skillmds@latest add vamseeachanta/repo-cleanup-conflict-resolution-patterns