
Pull Changes Resolve Conflicts
Pull or merge main on multi-contributor repos (including Flows apps) with explicit conflict analysis and user-approved resolutions before committing.
Install
npx skills add https://github.com/cognitedata/builder-skills --skill pull-changes-resolve-conflictsWhat is this skill?
- Mandatory workflow: fetch/merge or rebase context before touching conflict markers
- Lists unmerged paths and analyzes ours (HEAD) vs theirs (MERGE_HEAD) with git show :2/:3
- Prioritized recommendations from conversation history and repo context before any Write
- User approval gate before git add and merge commit with structured message template
- Documented abort paths: git merge --abort and git rebase --abort
Adoption & trust: 1k installs on skills.sh; 4 GitHub stars; 3/3 security scanners passed (skills.sh audits); trending (+100% hot-view momentum).
Recommended Skills
Journey fit
Canonical shelf is Build because sync-and-merge is part of day-to-day implementation work, even though the same ritual appears before ship and during operate iteration. Git branch integration is treated as repo/integration workflow adjacent to backend and tooling changes, not a standalone launch or grow activity.
Common Questions / FAQ
Is Pull Changes Resolve Conflicts safe to install?
skills.sh reports 3 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.
SKILL.md
READMESKILL.md - Pull Changes Resolve Conflicts
# Reference: git commands & merge stages ## Useful commands ```bash git status git diff --name-only --diff-filter=U git diff path/to/file git show :2:path/to/file # ours (HEAD) during merge git show :3:path/to/file # theirs (MERGE_HEAD) during merge git log --oneline -5 HEAD MERGE_HEAD ``` ## Abort ```bash git merge --abort git rebase --abort ``` ## After user approves resolution ```bash git add <resolved-files> git commit # completes merge; use message that states target branch ``` ## Suggested merge commit message shape ``` Merge origin/main into <branch> <one line: what was integrated> Conflict resolutions: <brief list or "per user direction in chat">. ``` --- name: pull-changes-resolve-conflicts description: >- 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 paths, both modified, integrate branch, sync with main, git merge abort, resolve conflicts, UU status, theirs vs ours, feat branch update. allowed-tools: Read, Glob, Grep, Shell, Write metadata: argument-hint: "" --- # Pull changes & resolve merge conflicts Use this skill whenever integrating another branch (usually `main`) into the current feature branch, or when `git status` shows unmerged paths after a merge or rebase. Applies to any Git-based team workflow; Flows/React apps are a common case where conflicts cluster in app shells and shared libraries. ## Goals - Preserve intentional work on the current branch; **do not assume** “main wins” or “ours wins” without analysis. - Make trade-offs **visible** to the user **before** any conflict resolution edits. - Order discussion by **impact**: structural / feature / API / data-model changes before styling, copy, or spacing. ## Hard rules 1. **No silent resolution** — Do not remove `<<<<<<<` / `=======` / `>>>>>>>` or run `git add` on conflicted files until the user has agreed to the plan (or explicitly says “use your recommendations”). 2. **Stop at conflicts** — If a merge or rebase introduces conflicts, **pause** and report; do not bulldoze through large files by picking one side wholesale unless the user explicitly requests that. 3. **Prioritize impact** — When presenting conflicts, group and order roughly as: - **P0 — Structural / product:** removed routes, deleted modules, dropped features, changed data or API contracts, SDK or schema changes, auth or routing shell. - **P1 — Behavior:** logic, hooks, queries, filters, error handling, loading states. - **P2 — UI structure:** layout regions, new or removed sections, navigation. - **P3 — Presentation:** tokens, spacing, class names, copy tweaks. ## Workflow ### 1. Fetch and integrate (or diagnose) - Prefer `git fetch` then `git merge origin/main` (or the named branch) unless the user asked for rebase. - If merge is already in progress, run `git status` and list **every** unmerged file. ### 2. Report conflicts to the user (explicit) Output a clear list: - **Branch state:** current branch, target branch (e.g. `origin/main`), merge vs rebase. - **Unmerged files:** paths only, then optionally `git diff --name-only --diff-filter=U`. - **Per file (short):** one line on *what* diverged (e.g. “`AlertsPage` — layout + new data scope”) if inferable from paths and `git diff` **without** resolving. ### 3. Analyze before editing Use **all** of: - **Conversation history** — What was the user or team trying to ship on this branch? - **Repo signals** — Product or architecture docs if present (e.g. `PRD.md`), recent commits on the current branch, file ownership (e.g. large feature module