
Pull main
Pull origin main into your branch and resolve any merge conflicts
Pull main is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.
- Scripts
- None
- Platforms
- Claude Code, Codex, Cursor
- GitHub stars
- 39
- Last commit
- License
- MIT
- Listing updated
Similar skills
About Pull main
This skill gives the agent a single instruction: run git pull origin main --ff to bring the latest main branch into the current working branch. The --ff flag allows a fast-forward when one is possible, so history stays linear when it can.
If the pull produces merge conflicts, the agent is told to handle them as part of the same task rather than stopping. The skill is a short, one-file instruction with no scripts, and it expects a git repository with an origin remote that has a main branch.
When your agent uses it
Pull main branch and handle merge conflicts
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
From a static check of its 1 file (146 bytes) on GitHub on 5 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
Copy the skill folder to ~/.claude/skills/pull-main to use it in all your projects:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/richardgill/nix.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/pull-main &&
cp -R "$tmp/built/ai-agents/ampcode/skills/pull-main" ~/.claude/skills/pull-main &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/pull-main inside it instead.
Copy the skill folder to ~/.agents/skills/pull-main to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/richardgill/nix.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/pull-main &&
cp -R "$tmp/built/ai-agents/ampcode/skills/pull-main" ~/.agents/skills/pull-main &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/pull-main inside it instead.
Copy the skill folder to ~/.cursor/skills/pull-main to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/richardgill/nix.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/pull-main &&
cp -R "$tmp/built/ai-agents/ampcode/skills/pull-main" ~/.cursor/skills/pull-main &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/pull-main inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/richardgill/nix.git --path built/ai-agents/ampcode/skills/pull-mainOr copy the folder to ~/.gemini/skills/pull-main yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/pull-main:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/richardgill/nix.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/pull-main &&
cp -R "$tmp/built/ai-agents/ampcode/skills/pull-main" ~/.copilot/skills/pull-main &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/pull-main inside it instead.
Get the folder:
git clone --depth 1 https://github.com/richardgill/nix.gitThen copy nix/built/ai-agents/ampcode/skills/pull-main into your agent's skills folder as pull-main. Agents that support SKILL.md read one folder per skill.
What it does
- Pull from origin main
- Runs `git pull origin main --ff` to update the current branch with the remote main branch.
- Fast-forward preferred
- Uses the fast-forward option so the pull avoids a merge commit when history allows.
- Merge conflict handling
- Directs the agent to deal with any conflicts that appear after the pull.
- Minimal single-file skill
- A short SKILL.md with no scripts or extra reference files.
Good for
- Update a feature branch with the latest main before opening a pull request
- Sync a local branch with origin main and fix conflicts that come up
- Catch up on upstream changes after a long break from a branch
- Ask the agent to pull main and sort out the resulting merge conflicts
Pull main FAQ
What command does Pull main run?
It runs `git pull origin main --ff` and then handles any merge conflicts that result.
Does Pull main include any scripts?
No. It is a single SKILL.md file with no scripts or extra files.
What does Pull main need in the repository?
A git repository with an `origin` remote that has a `main` branch.
What license is Pull main under?
The repository is licensed under MIT.
How do I install Pull main in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/pull-main to use it in all your projects, or to .claude/skills/pull-main in one project.
Does Pull main run scripts?
No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use Pull main?
Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.
What are the best alternatives to Pull main?
The closest alternatives to Pull main are Git merge, Rebase2main, Gha PR merge ref shows upstream changes, Fix merge conflicts and GitHub workflow.
Where this comes from
- Description: from the skill's own SKILL.md.
More from richardgill/nix

Lets your agent manage Todoist tasks through the todoist command-line tool
- Open source
- 39 GitHub stars
- Productivity

Creates git worktrees in tmux sessions and starts an AI agent on a prompt
- Open source
- 39 GitHub stars
- Developer tools

Plans a clean-room rewrite of existing behavior, from requirements through phased
- Open source
- 39 GitHub stars
- Developer tools

Delegates work to supervised Pi agents running in tmux sessions and worktrees
- Open source
- 39 GitHub stars
- Developer tools

Lets your agent run web searches, fetch page content and quick answers via Kagi CLI
- Open source
- 39 GitHub stars
- Web search and scraping

Lets an agent handle Gmail tasks through the gws command-line tool
- Open source
- 39 GitHub stars
- Communication





