What problem does it solve?
Prevents broken merges by enforcing a clean, non-shallow pre-merge state, explicit conflict resolution, and strict validation that no conflict markers or duplicate lines remain after the merge.
Core Features & Use Cases
- Pre-flight safety checks: Verifies a clean working directory and confirms the repository is not shallow before attempting the merge.
- Deterministic merge workflow: Uses a non-interactive merge approach and requires file-by-file conflict resolution when conflicts occur.
- Post-merge validation: Searches for Git conflict markers and performs deduplication checks to avoid duplicate imports, definitions, or repeated lines that can silently break builds.
- Use case: You’re integrating a feature branch into main and need a reliable, auditable process that avoids leaving
<<<<<<< markers and avoids accidentally duplicating code sections.
Quick Start
Load this skill and follow its steps to merge a branch while ensuring the working tree is clean, the repo is not shallow, and validation finds no conflict markers or duplicate lines.