Automates syncing feature branches with upstream changes and resolving conflicts.

Install

mkdir -p .claude/skills/pull-sid2baker && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/18677" && unzip -o skill.zip -d .claude/skills/pull-sid2baker && rm skill.zip

Installs to .claude/skills/pull-sid2baker

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Pull latest origin/main into the current local branch and resolve merge conflicts (aka update-branch). Use when Codex needs to sync a feature branch with origin, perform a merge-based update (not rebase), and guide conflict resolution.
235 chars✓ has a “when” trigger
Intermediate

Key capabilities

  • Verify git status before merging
  • Fetch latest changes from origin
  • Merge origin/main into the current branch
  • Resolve merge conflicts
  • Verify changes with compilation and tests
  • Summarize merge conflicts and resolutions

How it works

The skill fetches changes from origin, merges origin/main into the current branch, and guides conflict resolution.

Inputs & outputs

You give it
Local git repository with a feature branch and an origin remote
You get back
Current local branch updated with origin/main and resolved conflicts

When to use pull

  • Syncing branch with main
  • Resolving merge conflicts
  • Updating local feature branch

About this skill

Pull

Workflow

  1. Verify git status is clean or commit/stash changes before merging.
  2. Ensure rerere is enabled locally:
    git config rerere.enabled true
    git config rerere.autoupdate true
    
  3. Confirm remotes and branches:
    • Ensure the origin remote exists.
    • Ensure the current branch is the one to receive the merge.
  4. Fetch latest refs:
    git fetch origin
    
  5. Sync the remote feature branch first:
    git pull --ff-only origin $(git branch --show-current)
    
  6. Merge origin/main:
    git -c merge.conflictstyle=zdiff3 merge origin/main
    
  7. If conflicts appear, resolve them (see guidance below), then:
    git add <files>
    git commit   # or: git merge --continue
    
  8. Verify:
    mix compile --warnings-as-errors && mix test
    
  9. Summarize the merge: call out the most challenging conflicts and how they were resolved.

Conflict Resolution Guidance

  • Use git status to list conflicted files, git diff to see conflict hunks.
  • With merge.conflictstyle=zdiff3, markers are: <<<<<<< ours, ||||||| base, =======, >>>>>>> theirs.
  • Summarize intent of both sides before editing. Decide the correct outcome first; write code second.
  • Resolve one file at a time; rerun tests after each batch.
  • Repo-specific rules apply during conflict resolution — the same AGENTS.md rules govern merged code:
    • No import Bitwise; binary pattern matching for bit fields.
    • gen_statem enter callbacks may not transition state.
  • After resolving, confirm no conflict markers remain: git diff --check

When To Ask The User

Only when the correct resolution depends on product intent not inferable from code, tests, or context files. Otherwise, make a best-effort decision, document the rationale, and proceed.

When not to use it

  • When a rebase-based update is required
  • When the current branch is not intended to receive the merge
  • When the user does not want to resolve merge conflicts

Limitations

  • Performs a merge-based update, not rebase
  • Requires manual intervention for conflict resolution
  • Assumes `origin/main` as the source for updates

How it compares

This skill automates the merge process and provides structured guidance for conflict resolution, unlike a manual git merge.

Compared to similar skills

pull side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
pull (this skill)04moReviewIntermediate
resolve-conflicts818moReviewIntermediate
openspec-onboard105moReviewBeginner
codex-cli-bridge99moReviewIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry