pull-changes-resolve-conflicts
Standard workflow for pulling updates from main or other branches on multi-contributor projects (including Flows apps) without silently discarding work. Guides fetching/merging, requires listing merge conflicts explicitly, analyzing ours vs theirs using conversation history and repo context, presenting prioritized recommendations, and obtaining user answers before editing conflict markers or completing the merge. Triggers: pull main, merge main, merge origin, rebase, merge conflict, unmerged pat
Security Assessment
About pull-changes-resolve-conflicts
A guided workflow for integrating one branch into another (typically pulling or merging main into a feature branch) on multi-contributor projects without silently discarding intentional work. It applies to any Git-based team workflow, with Flows/React apps called out as a common case where conflicts tend to cluster in app shells, top navigation, route modules, and shared lib/ or hooks/ directories. The central principle is that conflict resolution should never assume "main wins" or "ours wins" before analysis, and that trade-offs must be made visible to the user before any conflict markers are edited.
The workflow proceeds in stages: fetch and integrate (preferring git fetch followed by git merge origin/main unless rebase was requested), then explicitly report every unmerged file with a short note on what diverged, then analyze using conversation history, repo signals (such as a PRD.md or recent commits), and the conflict hunks themselves via git show :2:path (ours) versus git show :3:path (theirs). Conflicts are classified as orthogonal (safe to combine), overlapping (must choose or merge by hand), or corruption risk (duplicated blocks from bad merges). Findings are then presented as prioritized recommendations and explicit questions, ordered P0 (structural/product changes like removed routes, dropped features, changed data or API contracts) through P3 (presentation tweaks like spacing and class names).
Hard rules enforce no silent resolution: conflict markers are not removed and git add is not run until the user agrees to the plan or explicitly defers to the recommendations. The skill stops at conflicts rather than bulldozing through large files, and supports aborting via git merge --abort or git rebase --abort. It also lists anti-patterns to avoid, such as picking --ours or --theirs across the whole repo, or hiding a conflict list inside a long code dump without a short executive summary. Optional command snippets and a merge message template live in an accompanying reference.md.
FAQ
When should I use this skill?
Whenever you integrate another branch (usually main) into your current feature branch, or when git status shows unmerged paths after a merge or rebase. It applies to any Git-based team workflow, with Flows/React apps being a common case.
Will it resolve conflicts automatically without asking me?
No. A hard rule prohibits silent resolution: it will not remove conflict markers or run git add until you agree to the plan or explicitly say to use its recommendations. It pauses at conflicts and reports them first.
How does it decide which conflicts to discuss first?
Conflicts are ordered by impact, from P0 (structural/product changes such as removed routes, dropped features, or changed data and API contracts) down to P3 (presentation tweaks like spacing, class names, and copy).
What information does it use to analyze a conflict before editing?
It uses conversation history about what the branch was shipping, repo signals such as a PRD.md or recent commits and file ownership, and the conflict hunks themselves via git show :2:path for ours and git show :3:path for theirs.
What if I just want to abort the merge?
The skill supports running git merge --abort or git rebase --abort as appropriate, and confirms that you lose the in-progress integration state for that operation.
Install pull-changes-resolve-conflicts
Quick Setup:
- Copy the skill folder to
.claude/skills/ - Claude will automatically detect and use the skill
Repository
cognitedata/builder-skills