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.zipInstalls 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.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
When to use pull
- →Syncing branch with main
- →Resolving merge conflicts
- →Updating local feature branch
About this skill
Pull
Workflow
- Verify git status is clean or commit/stash changes before merging.
- Ensure rerere is enabled locally:
git config rerere.enabled true git config rerere.autoupdate true - Confirm remotes and branches:
- Ensure the
originremote exists. - Ensure the current branch is the one to receive the merge.
- Ensure the
- Fetch latest refs:
git fetch origin - Sync the remote feature branch first:
git pull --ff-only origin $(git branch --show-current) - Merge origin/main:
git -c merge.conflictstyle=zdiff3 merge origin/main - If conflicts appear, resolve them (see guidance below), then:
git add <files> git commit # or: git merge --continue - Verify:
mix compile --warnings-as-errors && mix test - Summarize the merge: call out the most challenging conflicts and how they were resolved.
Conflict Resolution Guidance
- Use
git statusto list conflicted files,git diffto 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.
- No
- 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.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| pull (this skill) | 0 | 4mo | Review | Intermediate |
| resolve-conflicts | 81 | 8mo | Review | Intermediate |
| openspec-onboard | 10 | 5mo | Review | Beginner |
| codex-cli-bridge | 9 | 9mo | Review | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
You might also like
resolve-conflicts
antinomyhq
Use this skill immediately when the user mentions merge conflicts that need to be resolved. Do not attempt to resolve conflicts directly - invoke this skill first. This skill specializes in providing a structured framework for merging imports, tests, lock files (regeneration), configuration files, and handling deleted-but-modified files with backup and analysis.
openspec-onboard
studyzy
Guided onboarding for OpenSpec - walk through a complete workflow cycle with narration and real codebase work.
codex-cli-bridge
alirezarezvani
Bridge between Claude Code and OpenAI Codex CLI - generates AGENTS.md from CLAUDE.md, provides Codex CLI execution helpers, and enables seamless interoperability between both tools
skill-sync
KyleKing
Syncs Claude Skills with other AI coding tools like Cursor, Copilot, and Codeium by creating cross-references and shared knowledge bases. Invoke when user wants to leverage skills across multiple tools or create unified AI context.
github-workflow-automation
ruvnet
Advanced GitHub Actions workflow automation with AI swarm coordination, intelligent CI/CD pipelines, and comprehensive repository management
git-advanced-workflows
wshobson
Master advanced Git workflows including rebasing, cherry-picking, bisect, worktrees, and reflog to maintain clean history and recover from any situation. Use when managing complex Git histories, collaborating on feature branches, or troubleshooting repository issues.