Syncs code from an upstream GitHub repository into a target fork, handling remote detection, merge, conflict resolution, protected file restoration, and PR creation.
Ships in odh-ai-helpers. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Merge upstream commits into a sync branch on the user's fork and open a
PR to the target repo. See references/workflow.md for exact script
invocations, exit-code handling, and the summary template.
Commit SHA (optional): $ARGUMENTS
REPO_ROOT=$(git rev-parse --show-toplevel 2>/dev/null) || REPO_ROOT=""
If REPO_ROOT is non-empty, run scripts/detect-remotes.sh --repo "${REPO_ROOT}"
and ask via AskUserQuestion whether this is the correct repo.
If yes → Step 2A. If no or not in a repo → Step 2B.
Pre-fill upstream/target from detect-remotes output. Ask via
AskUserQuestion to confirm: upstream repo, target repo, branches
(default main). Run scripts/setup-remotes.sh, parse UPSTREAM_REMOTE and
TARGET_REMOTE. Save ORIGINAL_BRANCH from current HEAD.
Ask for upstream repo, target repo, and branches. If the user has a
local clone, use its path and continue as Step 2A. If not, ask if they
have a GitHub fork — run scripts/clone-fork.sh then scripts/setup-remotes.sh. If
no fork exists, ask them to create one and re-run. Stop.
Save ORIGINAL_BRANCH from current HEAD.
Protected files keep the target version, discarding upstream changes.
Ask via AskUserQuestion for glob patterns to protect (or none).
Suggest common examples: /OWNERS, /OWNERS_ALIASES, .tekton/*.yaml,
Dockerfile*konflux.
Anchor ownership patterns to the repo root with a leading /. A bare
OWNERS* matches by basename and so also deletes nested OWNERS files that
upstream owns (e.g. pkg/.../OWNERS), which is rarely intended — only the
root OWNERS / OWNERS_ALIASES are usually target-specific.
Verify origin does not point to upstream or target. If it does, tell
the user to set origin to their personal fork and stop.
Run scripts/sync-merge.sh. Handle exit codes 0 (success), 1 (conflicts),
3 (a sync branch for this upstream tip already exists — it may be orphaned or
push-only, so check whether a PR is actually open for it before telling the
user one is), and 4 (nothing to sync — target already up to date; report and
stop, no PR) as described in references/workflow.md.
When an agent is driving this skill, pass --co-author "Claude <[email protected]>" so the merge commit credits the agent alongside the
human author.
Show PR summary and ask via AskUserQuestion: open a PR or just push?
If confirmed, run scripts/open-pr.sh. The PR body's commit count and
diffstat are derived automatically from the merge commit. If any conflicts
were resolved in Step 5, pass them via --conflicts (markdown table rows,
no header) so a "## Conflict Resolution" section is appended.
To put a human on the PR, pass --assignee <handle> (assignee, not
reviewer — GitHub forbids requesting review from the PR author, so a
--reviewer equal to the author is silently dropped). open-pr.sh is
idempotent: if an open PR for this branch in the current fork already
exists it returns that URL without creating a duplicate. A same-named branch
in someone else's fork is not treated as reusable.
Check out ORIGINAL_BRANCH. Then, only if the Step 6 operation the user
chose completed successfully — the push for push-only, or the push and the
PR creation when a PR was requested — delete the now-redundant local sync
branch (git branch -D <sync-branch>): the PR tracks the branch pushed to the
fork (origin), so the local copy is no longer needed. Never delete the
remote branch — the open PR depends on it. If either the push or the PR
creation failed, keep the local branch so the work can be retried.
For Path B (clone-from-scratch) the entire temp clone is discarded, so there is no local branch to clean up — just inform the user of the temp directory.
Display the summary per references/workflow.md.
references/conflict-resolution.md (opens in a new tab)references/remote-detection.md (opens in a new tab)references/workflow.md (opens in a new tab)scripts/clone-fork.sh (opens in a new tab)scripts/detect-remotes.sh (opens in a new tab)scripts/open-pr.sh (opens in a new tab)scripts/setup-remotes.sh (opens in a new tab)scripts/sync-merge.sh (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/odh-ai-helpers:github-sync-upstream [commit-sha]from odh-ai-helpers
odh-ai-helpers@opendatahub-skills is listed by opendatahub-io/skills-registry — review the source before installing
npx claudepluginhub opendatahub-io/skills-registry --plugin odh-ai-helpers70 skills in this plugin
/acli-setup-checkVerify acli installation and authentication. Checks if acli is installed, authenticated to Jira, and can query projects. Use when troubleshooting acli issues or setting up acli for the first time./adr-reviewReview an Architectural Decision Record (ADR) using a team of six specialist reviewer subagents and produce a consolidated report as both PDF and PPTX slide deck. Use this skill whenever the user asks to review, critique, audit, or get feedback on an ADR, architecture decision, design doc, or RFC — whether the input is a Markdown file, a .docx document, or pasted text. Trigger even if the user does not explicitly say "ADR"; phrases like "review this architecture decision", "critique this design doc", or "run the reviewer panel on this" should also invoke this skill./ai-bug-fix-triageTriage JIRA bugs against repository code to classify AI fixability. Use when reviewing a backlog of bugs to determine which ones an AI agent can fix./aipcc-commit-suggestGenerate AIPCC Commits style commit messages or summarize existing commits/aipcc-cve-reportGenerate CVE remediation instructions for the user's target RHAI product release or content channel from Jira JQL, ticket keys or a ticket description. Verify fixed packages in the RHAI package index and a matching RHAI base image (RHAIBI), or prepare a focused AIPCC build-request prompt./coderabbit-reviewUse when you need to evaluate CodeRabbit PR comments and fix or reply3 plugins in one repository ship this exact skill · first indexed Oct 15, 2026
Other plugins' skills for the same job