sglang: Skill for Claude Code

.claude/skills/sglang-cherrypick/SKILL.md

sglang-cherrypick is a skill for Claude Code from sgl-project/sglang. It costs 56 tokens per session (4,481 once invoked), scanned A, original, Apache-2.0.

A guide for using SGLang's GitHub Actions workflow to copy already merged changes onto a release branch; cherry-picking means applying selected commits without merging the whole development branch.

In plain words
What is it for?
Use it to validate a release branch and list of pull requests, trigger the cherry-pick workflow for each one, monitor the runs, and provide links to created pull requests or failure reasons.
Why use it?
It reduces manual release-branch work and reports whether each selected pull request was applied successfully or failed.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: positional $N argument.

This is sgl-project/sglang's own configuration. It tells Claude Code how to work on sglang itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything sglang configures →

About the project

SGLang is a framework for running inference for large language models and multimodal models, meaning it processes inputs to produce model outputs such as text or other media. It is used to serve and accelerate open AI models and related workloads.

sgl-project/sglang · 35,682 stars · on GitHub · sglang.io

Reuse

Borrowing it

Nothing to install: this file belongs to sgl-project/sglang. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/sgl-project/sglang/main/.claude/skills/sglang-cherrypick/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/sgl-project/sglang

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for sglang-cherrypick

README.md
[![agentmods](https://agentmods.dev/badge/skills/sgl-project/sglang/sglang-cherrypick/github.svg)](https://agentmods.dev/skills/sgl-project/sglang/sglang-cherrypick)
Your own site
<a href="https://agentmods.dev/skills/sgl-project/sglang/sglang-cherrypick"><img src="https://agentmods.dev/badge/skills/sgl-project/sglang/sglang-cherrypick/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for sglang-cherrypick

Your own site · 80×15
<a href="https://agentmods.dev/skills/sgl-project/sglang/sglang-cherrypick"><img src="https://agentmods.dev/badge/skills/sgl-project/sglang/sglang-cherrypick.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 56 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,481 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Snyk warn 7 Sept 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00056 $0.04481
Opus 5 $0.00028 $0.02240
Sonnet 5 $0.00011 $0.00896
Haiku 4.5 $0.00006 $0.00448

Measured 10d ago against content hash 5aaa7b381b64, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

sglang-cherrypick scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/sglang-cherrypick/SKILL.md · 332 lines

How it starts

The opening of the file, as written. The whole thing — 332 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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.Y or release/vX.Y.Z. Must already exist on origin (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.

# target branch shape (matches the workflow's own validator)
[[ "$TARGET_BRANCH" =~ ^release/v[0-9]+\.[0-9]+(\.[0-9]+)?$ ]] || die "Invalid target_branch"

# branch exists on upstream
gh api "repos/sgl-project/sglang/branches/$TARGET_BRANCH" --jq '.name' >/dev/null || die "Branch not found"

# each PR is numeric, exists, MERGED, and has a recorded merge commit
declare -A PR_TO_SHA=()
declare -A PR_TO_TITLE=()
for PR in "${PRS[@]}"; do
  [[ "$PR" =~ ^[0-9]+$ ]] || die "PR '$PR' is not a positive integer"
  PR_JSON=$(gh pr view "$PR" --repo sgl-project/sglang --json state,mergeCommit,title) \
    || die "PR #$PR not found"
  STATE=$(jq -r .state <<<"$PR_JSON")
  [[ "$STATE" == "MERGED" ]] || die "PR #$PR is not MERGED (state=$STATE)"
  SHA=$(jq -r '.mergeCommit.oid // empty' <<<"$PR_JSON")
  [[ -n "$SHA" ]] || die "PR #$PR has no merge commit recorded"
  PR_TO_SHA[$PR]="$SHA"
  PR_TO_TITLE[$PR]=$(jq -r .title <<<"$PR_JSON")
done

Report any failures and stop — do not trigger partial batches.

Read the full file on GitHub · 332 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 332 lines · 56 tokens per session scan A 5aaa7b381b64

Subscribe to this mod's changes

sglang-cherrypick is a skill published in the GitHub repository sgl-project/sglang (35,682 stars, last pushed today), licensed Apache-2.0. It adds 56 tokens to every session and 4,481 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.