Skip to content
Agentmart
Submit a tool

pull

Bring the current branch up to date by merging its upstream, keeping uncommitted work and both sides of every conflict.

Skill by MarvinJWendt

IndexedMIT★ 1
Write a review

Chalk Labs

Need help deploying pull?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/marvinjwendt-pull

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Bring the current branch up to date by merging its upstream, keeping uncommitted work and both sides of every conflict.

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md and code. Checked Nov 1, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/pull

What's inside

Skill name
pull
Description
Bring the current branch up to date by merging its upstream, keeping uncommitted work and both sides of every conflict.
License
MIT
Instructions
79 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

Goal: the branch is up to date with its upstream and nothing that existed before the pull is gone. Committed work, uncommitted changes and untracked files all survive. Merge rather than rebase, so both histories stay intact.

The user typing `/pull` is the approval for every command below. Do not ask for it again.

## 1. Anchor

```sh
git status --short --branch
git rev-parse HEAD
git stash list
```

Note the HEAD SHA, it is what step 6 compares against and the way back if the merge goes wrong. Note which stash entries already existed too, those are not yours to touch.

## 2. Park uncommitted work

Skip this when the tree is clean. Otherwise:

```sh
git stash push -u -m "pull: <short SHA>"
```

`-u` takes untracked files along. The entry stays until step 6 confirms the work landed again.

## 3. See what you are merging

```sh
git fetch
git rev-parse --abbrev-ref '@{u}'
git log --oneline HEAD..@{u}
git log --oneline @{u}..HEAD
```

- No upstream configured: restore the stash, report, stop. Picking a remote branch is the user's call.
- `HEAD..@{u}` empty: nothing to pull. Restore the stash and report that the branch is already current.
- Both ranges non-empty: the histories diverged and step 4 does real work.

## 4. Merge

```sh
git pull --no-rebase
```

The flag is deliberate. A rebase rewrites the local commits, and a fast-forward-only pull just refuses when the branches diverged. It overrides `pull.rebase` for this run only and leaves the repo config alone.

## 5. Resolve, keeping both sides

Default: every conflict ends with both changes present in the file. Dropping a side is the exception you have to justify.

Walk the conflicted files (`git diff --name-only --diff-filter=U`) one at a time:

- Read the full hunk and enough surrounding code to see what each side was doing.
- Combine them: both imports, both functions, both list entries, both config keys, ordered the way the rest of the file is ordered.
- When both sides set the same single value differently they cannot both survive. Take the incoming one and name the file, the value and your choice in the report.
- Leave the file valid in its language: no conflict markers, no declaration or key that now exists twice.

`git checkout --merge -- <file>` puts the markers back when you lose them. `git merge --abort` returns to the anchor SHA when the merge turns out to be the wrong move.

Then `git add` the resolved files and `git commit --no-edit`, keeping the merge message git wrote.

## 6. Unpark and verify

`git stash pop` only works once the merge is committed, so this comes after step 5. Conflicts from the pop get the same treatment as step 5. A conflicting pop keeps its stash entry, which is exactly the safety net you want, so drop it by ref only after the files below check out.

```sh
git status --short --branch
git stash list
git log --oneline <anchor SHA>..HEAD
```

- Every file that step 1 listed as modified or untracked is back, with its content.
- The local commits from step 3 are still in the log.
- No stash entry of yours is left over.

## 7. Report

Branch and upstream, how many commits came in, which files conflicted and how each one was resolved, and every place you had to pick a side. Committing further and pushing are the user's call.

From MarvinJWendt/skills, MIT.

More from MarvinJWendt/skills

Signals

Stars
1
Forks
0
Open issues
0
Last commit (this folder)
Oct 10, 2026 (27 days ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from MarvinJWendt

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get pull running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying pull?

CallGet help
Cite this page

pull skill. Agent Mart. https://agentmart.dev/skills/marvinjwendt-pull (last updated 2026-10-24)