npx skills add ...
npx skills add nvidia/model-optimizer --skill release-cherry-pick
Audit merged bug-fix PRs and release NVBugs for missing cherry-pick labels, then cherry-pick labeled PRs into a release branch and open a PR. Use when asked to "cherry-pick PRs for release/X.Y.Z", "pick PRs to release branch", "verify cherry-pick labels", or "cherry-pick labeled PRs".
npx skills add nvidia/model-optimizer --skill release-cherry-pick
Cherry-pick all merged main PRs labeled cherry-pick-<version> (but not cherry-pick-done) into the corresponding release/<version> branch, one by one in merge order.
Ask the user for the release version (e.g. 0.44.0) if not already provided.
Set VERSION=<version> for use in subsequent steps.
Before fetching the labeled queue, audit release NVBugs and recent merged PRs so bug fixes are not omitted.
Use the NVBugs MCP to search for every NVBug whose Keywords field contains the exact keyword Committed_ModelOpt_<VERSION>. Follow pagination until no next token is returned.
Fetch each matching NVBug with its comments. Extract every Model-Optimizer PR link or unambiguous PR #<NUM> reference from the comments, not only the latest comment. Keep only PRs that are merged into main, lack cherry-pick-<VERSION>, and are not already included in the release branch. Verify each remaining PR is a bug fix. The NVBug keyword is evidence for review, not by itself proof that every linked PR should be picked.
Audit PRs merged into main since the latest release candidate. Exclude PRs that already have cherry-pick-<VERSION> and changes already present on the release branch:
A release is not normally expected to reach the 1,000-PR limit.
Review each PR's title, body, labels, changed files, and linked issue context. Classify it as:
Deduplicate PRs found through both audits.
Present the complete audit before changing GitHub labels:
| PR | Title | Author | NVBug(s) | Bug fix? | cherry-pick-<VERSION> present? | Recommendation |
|---|
Use these recommendation values and sort the table in this order:
Use — when no NVBug is known. Also list NVBugs with no linked PR. Ask the user to confirm which recommended PRs should receive the missing label. After confirmation, apply it:
Do not label unmerged PRs, PRs not based on main, or candidates classified Unclear without explicit approval. Re-run the audit table after edits so it reflects the final label state.
Use the GitHub search API to list PRs that have the cherry-pick label but not cherry-pick-done, sorted by merge date ascending:
Present the list to the user before proceeding.
Check out release/<VERSION>, creating it from the remote if it doesn't exist locally:
All PRs are squash-merged, so each has a single-parent commit. Retrieve the SHA for each PR:
Cherry-pick each commit with -s (DCO sign-off). GPG signing is handled automatically by the repo's git config.
On conflict: Tell the user which PR caused the conflict and ask them to fix it, then continue:
Push the cherry-picks to a new branch and open a PR targeting release/<VERSION>. The PR title lists every cherry-picked PR number. The body uses ## Cherry-picked PRs as the only heading with one - #<NUM> bullet per PR — no titles, no links, no extra text.
Add the cherry-pick-done label to every PR that was successfully cherry-picked: