Install
openclaw skills install skills-sh:nvidia/skills/mcore-split-prSplit PR by CODEOWNERS Groups Split a large pull request into multiple smaller PRs, where each PR touches the fewest possible CODEOWNERS reviewer groups. The goal is to reduce review burden: a PR that only touches megatron/core/ needs only the core reviewers, while a PR that…
openclaw skills install skills-sh:nvidia/skills/mcore-split-prSplit a large pull request into multiple smaller PRs, where each PR touches
the fewest possible CODEOWNERS reviewer groups. The goal is to reduce review
burden: a PR that only touches megatron/core/ needs only the core reviewers,
while a PR that also touches examples/, tools/, and megatron/training/
pulls in many additional groups.
For split-planning questions, lead with these constraints before the full workflow:
git diff upstream/main..<source-branch> -- <paths> | git apply, pushes
to the user's fork, and never pushes directly to upstream.gh pr view <number> --repo NVIDIA/Megatron-LM --json title,body,headRefName,author and gh pr diff <number> --repo NVIDIA/Megatron-LM --stat. Also determine the current GitHub user with gh api user --jq .login..github/CODEOWNERS to build a mapping from file path patterns to owner groups.The primary optimization goal: minimize the number of CODEOWNERS reviewer groups required for each resulting PR.
Strategy:
Present the proposed split as a table:
Wait for user approval before proceeding.
For each new PR:
main, or a dependency PR's branch).git diff upstream/main..<source-branch> -- <file paths> | git apply.08ea07e0d730