rh-runninghub/minimax-h3-multigpu-lightning/sglang-cherrypick
Claude Code and agent skill by rh-runninghub/minimax-h3-multigpu-lightning
- community
Checking that the SKILL.md file is still in the repository.
Trigger the bot-cherry-pick workflow for a batch of merged PRs onto a release branch and monitor each run to completion. Use when an SGLang release manager asks to cherry-pick a list of PRs to a release branch.
Install
npx vskill@latest install rh-runninghub/minimax-h3-multigpu-lightning/sglang-cherrypickSKILL.md
The same SKILL.md was published earlier as rh-runninghub/minimax-h3-multigpu-lightning/sglang-cherrypick.
SGLang Cherry-Pick
Trigger .github/workflows/bot-cherry-pick.yml for each PR in a list, then monitor the resulting workflow runs and report per-PR success/failure with links to the created cherry-pick PRs (or the failure reason).
Slash Command
/sglang-cherrypick <target_branch> <pr1> [pr2 pr3 ...]
Examples:
/sglang-cherrypick release/v0.5.7 25956 25958 25987/sglang-cherrypick release/v0.5.7 25956,25958,25987(comma-separated also accepted)
Arguments
- `target_branch` (required): Release branch in the form
release/vX.Yorrelease/vX.Y.Z. Must already exist onorigin(i.e.,sgl-project/sglang). - `pr_numbers` (required, one or more): Merged PR numbers to cherry-pick. Each must be a positive integer.
Repository
Always targets the upstream repo sgl-project/sglang. The workflow's job guard (if: github.repository == 'sgl-project/sglang') means triggering it on a fork is a no-op.
Workflow
Step 1 — Validate arguments
Fail fast before triggering anything.
Report any failures and stop — do not trigger partial batches.
Step 2 — Pre-flight: list changed files and detect conflicts locally
Before dispatching any workflow, simulate each cherry-pick locally with git merge-tree to (a) show the user which files would change and (b) catch conflicts before paying for a CI run. git merge-tree --write-tree is a side-effect-free 3-way merge — it touches neither the working tree nor any ref.
2a. Locate the upstream remote (`sgl-project/sglang`). Both the dual-remote (upstream + origin fork) and single-remote setups need to work.
2b. Fetch the target branch and each PR's merge commit. Fetch the commits by SHA (in case they're not on a ref the user has locally) and the target branch in one call.
2c. Index existing cherry-pick PRs on the target branch. One gh pr list call gets every cherry-pick PR ever filed against this branch (any state). For each input PR, we cross-reference by the title suffix (#<PR>) that the bot workflow always uses.
For each input PR, classify the existing cherry-picks:
- `MERGED` present → the cherry-pick already landed. Skip this PR in Step 3.
- `OPEN` present (and no
MERGED) → a previous dispatch is still in flight. Warn, ask the user whether to skip or re-dispatch, but default to skip (re-dispatching creates a duplicate). - Only
CLOSED(no merged, no open) → previous attempts were abandoned; safe to re-dispatch. - Empty → no prior attempt; proceed normally.
2d. For each PR, run `git merge-tree` and diff the result. The semantics of cherry-pick are: 3-way-merge with base = parent of source commit, ours = target tip, theirs = source commit. For merge commits the workflow uses -m 1, which means base = first parent — ${SHA}^ resolves to ${SHA}^1 for both regular and merge commits, so one form covers both.
2e. Print a pre-flight report. One table summarizing each PR, followed by per-PR file lists. The "Prior cherry-pick" column uses the classification from 2c.
2f. Gate before dispatching. Stop and report if any PR is in either of these states:
git merge-treereports a conflict — the workflow would just fail; let the user fix or remove that PR.- Already has a MERGED cherry-pick PR on the target branch — re-dispatching would create a redundant PR. Skip it (or, if the user really wants a re-run, they can pass an explicit override list).
- Has an OPEN cherry-pick PR with no merged one — default to skipping with a warning; surface the open PR's URL so the user can review/merge/close it before re-dispatching.
Only PRs that are clean AND have no merged-or-open prior cherry-pick should proceed to Step 3.
As a sanity check, a clean pre-flight that shows 0 files changed is the structural signature of "this commit is already on the branch" — if you see it without an existing merged cherry-pick PR being detected (rare, e.g. the original PR was force-merged onto the release branch directly), surface that too and skip the dispatch.
Step 3 — Dispatch each PR's workflow run
gh workflow run (gh ≥2.45) prints the dispatched run's URL on stdout — parse it directly. Fall back to the snapshot/diff polling only if the URL isn't returned (older gh).
Notes:
- The workflow has
concurrency: cherry-pick-${{ target_branch }}withcancel-in-progress: false. So multiple dispatches against the same target branch queue serially, not in parallel. That's fine — we batch the triggers and the GitHub side serializes execution. gh workflow runis fire-and-forget; the dispatched run shows up ingh run listwithin a few seconds.
Step 4 — Monitor each run to completion
Use gh run watch per run id, sequentially (since they execute serially anyway).
gh run watch blocks until the run completes. Use --interval 15 to be polite on rate limits.
Step 5 — Collect outcomes per PR
For each PR, fetch the run conclusion and (if successful) the URL of the created cherry-pick PR.
This is the start of the file. Read the full SKILL.md on GitHub.
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 repositoryCheckingsglang/.claude/skills/sglang-cherrypick/SKILL.md
Popularity
- Repository stars
- 99
- Repository forks
- 13
- 7-day trend score
- 23
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
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/rh-runninghub/minimax-h3-multigpu-lightning/sglang-cherrypick)