Skip to content
Agentmart
Submit a tool

pull-upstream

Sync a forked repository with its upstream.

Skill by connorch

IndexedMIT★ 2
Write a review

Chalk Labs

Need help deploying pull-upstream?

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/connorch-pull-upstream

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

Sync a forked repository with its upstream. Use when asked to "pull upstream", "sync the fork", "merge upstream", "update the fork", or "catch up with upstream".

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-upstream

What's inside

Skill name
pull-upstream
Description
Sync a forked repository with its upstream. Use when asked to "pull upstream", "sync the fork", "merge upstream", "update the fork", or "catch up with upstream".
License
MIT
Instructions
40 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Pull Upstream

Bring upstream into the fork as cleanly as possible. Upstream is the source of truth for shared code; the fork's own features are the payload to protect. When the two collide, take upstream's version of the mechanics and re-apply the fork's intent on top. When upstream has built its own version of something the fork built, or something that clearly collides with the intent of Connor's work, stop and ask Connor rather than picking a winner.

## 1. Locate upstream

Use the `upstream` remote if it exists. Otherwise derive it from `gh repo view --json parent` and add it; if there is no parent and no obvious upstream, ask. `git fetch upstream` and identify upstream's default branch.

## 2. Inventory the fork's features

The fork's work is the commits reachable from the fork branch but not from upstream: `git log --oneline upstream/<default>..HEAD`. Drop patches that already landed upstream under different SHAs using `git cherry upstream/<default>`. Authorship (`git log --author`) is a cross-check only - it misses squash-merged PRs and includes work that was already upstreamed.

Group the remaining commits into a feature inventory: each feature's purpose, the files it owns, and a concrete way to verify it still works. This inventory drives conflict resolution in step 4 and is the checklist for step 5, so vague entries are not acceptable.

## 3. Inventory upstream's new work

List what the merge will bring in: `git log --oneline HEAD..upstream/<default>` plus `git diff --stat HEAD...upstream/<default>` for shape. Compare it against the feature inventory before merging:

- Upstream touched files a fork feature owns: expect conflicts and plan how to re-apply the feature on top.
- Upstream built its own version of a fork feature on something that contradicts the intent of a fork feature: stop and ask Connor which to keep - upstream's version, the fork's, or a blend. Never decide this unilaterally.

## 4. Merge

Work on a dedicated branch (e.g. `merge/upstream-<date>`); never merge directly on the fork's main branch, and never force-push. Run `git merge upstream/<default>`.

Resolve each conflict with a fixed priority: upstream's change is the base, then re-apply what the fork's feature needs on top, keeping both sides feature-complete. If a resolution would have to sacrifice upstream behavior or fork behavior, stop and ask instead of guessing. `git merge --abort` is always available if the merge turns out to be the wrong move.

## 5. Verify - clean merge or not

A clean textual merge is not a correct merge. Upstream may have renamed an API the fork hooks into, moved a file, or changed behavior a fork feature depends on.

- Run the repo's own checks (typecheck, lint, tests).
- Walk the feature inventory and verify every feature against its verification note: the seams it hooks into still exist and its behavior is intact.
- Fix what broke, keeping the upstream-first priority.

## 6. Report

At the end, summarize what came in from upstream, each conflict and how it was resolved, each fork feature and its verification result, and any open questions that need Connor's call. Leave the result on the working branch; merging it into the fork's main branch is Connor's decision unless already authorized. Build the report with the $html-communication skill and give Connor the private URL.

From connorch/skills, MIT.

More from connorch/skills

Signals

Stars
2
Forks
0
Open issues
2
Last commit (this folder)
Oct 5, 2026 (1 month ago)

From GitHub (fetched Oct 24, 2026).

Details

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

More from connorch

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-upstream 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-upstream?

CallGet help
Cite this page

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