openhands/extensions/upstream-fork-sync
Claude Code and agent skill by openhands/extensions
- community
Checking that the SKILL.md file is still in the repository.
This skill should be used when the user asks to "keep a fork in sync", "rebase local changes on upstream", "sync my fork nightly", "long-lived fork", or "automate upstream rebases". Guides the user through creating a cron automation that fetches upstream changes, rebases local customizations on top, verifies the software works, and replaces the running version when the rebase is clean.
Install
npx vskill@latest install openhands/extensions/upstream-fork-syncSKILL.md
The same SKILL.md was published earlier as openhands/extensions/upstream-fork-sync.
Upstream Fork Sync Automation
Create a cron automation that keeps a long-lived fork current with its upstream source. On every run it fetches the latest upstream changes, rebases the fork's local customizations on top, runs a verification check, and replaces the deployed version only when the software still works.
This implements the "long-lived fork" pattern: instead of repeatedly re-deriving a customization, the local changes are preserved across upstream releases and kept working automatically.
Windows PowerShell equivalents for the setup, packaging, upload, and API-check shell snippets are in references/windows.md.
Prerequisites
Required secret
Verify that the following secret is set in OpenHands Settings -> Secrets:
| Secret name | Token type | Minimum permissions | |
|---|---|---|---|
GITHUB_PERSONAL_ACCESS_TOKEN | Classic PAT | repo | |
GITHUB_PERSONAL_ACCESS_TOKEN | Fine-grained PAT | Contents: Read and Write, Metadata: Read |
Check with:
If the token is missing or invalid, inform the user and stop.
Setup Workflow
Follow these steps in order.
Step 1 - Verify GITHUB_PERSONAL_ACCESS_TOKEN
Run the curl check above.
- If absent: *"GITHUB_PERSONAL_ACCESS_TOKEN is not set. Please add it in
OpenHands Settings -> Secrets."* Stop.
- If the API returns
{"message": "Bad credentials"}: tell the user the
token is invalid and ask them to update it. Stop.
Step 2 - Collect configuration
Confirm with the user:
- Repository — the long-lived fork to keep synchronized (owner/repo).
- Upstream remote (optional) — the remote the fork tracks. Defaults to
the repository's GitHub parent.
- Local changes (optional) — a plain-language description of the
customizations to preserve across rebase.
- Verify command (optional) — the command that confirms the software
works (e.g. make test). If blank, infer a sensible check from the repository's build system.
- Sync schedule — how often to run the sync. Default: nightly (
0 3 * * *).
Step 3 - Create the automation
Create the automation via the prompt preset:
Confirm the automation was created (HTTP 201) and report its ID to the user.
Runtime behavior
On each scheduled run the automation:
- Clones the fork and fetches the latest from its upstream remote.
- Rebases every local customization commit on top of the newest upstream
HEAD, resolving conflicts in favor of the local changes where the description indicates intent.
- Runs the verification command. If none was supplied, infers one from the
repo's build system (e.g. make test, npm test, pytest).
- On success, force-pushes the rebased branch and replaces the currently
deployed version with the freshly built one.
- On failure, leaves the running version untouched and reports the conflict
or failing check so a human can intervene.
Notes
- The automation is idempotent: a clean upstream with no new commits is a
no-op.
- Force-push targets the fork's working branch only, never upstream.
- If a rebase conflict cannot be resolved automatically, the run fails safe
and the previously deployed version keeps running.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/upstream-fork-sync/SKILL.md
Popularity
- Repository stars
- 151
- Repository forks
- 93
- Repository npm downloads, 7 days
- 15,654
- 7-day trend score
- 46
Stars and forks are for the whole GitHub repository, not this skill alone. Downloads are for the repository's npm package. Refreshed 27 Sep 2026, 2 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/openhands/extensions/upstream-fork-sync)