Setup & Installation
Or with the ClawHub CLI, for registry-managed skill folders outside a full OpenClaw workspace:
Version History
Remove pr-ship reference from report template (fully generic)
What This Skill Does
Manages GitHub forks where you have open PRs and want to use improvements before they merge upstream. Tracks each PR branch, syncs with upstream, rebases branches, and maintains a production branch that combines all open PRs and local patches. Closed or rejected PRs can be kept as local patches with optional review scheduling.
Replaces manual git commands across multiple branches by automating upstream sync, multi-branch rebase, and production branch assembly in a single workflow with optional AI-assisted conflict resolution.
When to use it
- Keeping a forked library current while several PRs await upstream review
- Rebuilding a local production branch after upstream adds new commits
- Tracking a rejected upstream PR as a maintained local patch
- Automatically rebasing all PR branches after a large upstream update
- Reviewing recently closed PRs to decide whether to preserve them locally
Example Workflow
Here's how your AI assistant might use this skill in practice.
User asks: sync my fork of project-x and rebuild the production branch
- 1Loads repo config from repos/project-x/config.json and reads the last history entry for context
- 2Fetches upstream and fork remotes, then merges upstream/main into the fork's main branch and pushes
- 3Rebases each PR branch listed in config onto the updated upstream/main, reporting clean or conflicted results
- 4Rebuilds the production branch by merging all open PR branches and local patches in order
- 5Appends execution results to history.md and reports sync status, rebase outcomes, and production branch state
Report showing commits synced, which branches rebased cleanly or had conflicts, and the updated production branch containing all open PRs and local patches
Requirements
Accounts, API keys, or tools you or your AI assistant may need to set up while using this skill.