[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CSHVFWBMRX4A14VEDF8H0E":3,"skill-same:01M7CSHVFWBMRX4A14VEDF8H0E":71},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":29,"commitSha":30,"skillDirectory":31,"forksCount":32,"repositoryHtmlUrl":33,"repositoryHomepageUrl":34,"ownerHtmlUrl":35,"ownerBlogUrl":6,"ownerDescription":36,"updatedAt":37,"install":38,"resources":50},"01M7CSHVFWBMRX4A14VEDF8H0E","mcore-split-pr",null,"Split a PR into multiple PRs to reduce the number of required CODEOWNERS reviewer groups.","YYC-Cube\u002FYYC3-Knowledge-Base","YYC-Cube","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F235006543?v=4","01M79J2PH4SWD2X0825X6PN748","yyc3","01M79J2PHVK3F6ZBYT8K2SCZCW",1,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-Skills-技能包\u002FYYC3-Skills-技能包-skills\u002Fskills\u002Fmcore-split-pr\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: mcore-split-pr\ndescription: Split a PR into multiple PRs to reduce the number of required CODEOWNERS reviewer groups.\nlicense: Apache-2.0\nwhen_to_use: User asks to split a PR, reduce reviewer groups, or break up a large PR; 'too many CODEOWNERS', 'split this PR', 'break up PR', 'reduce reviewers needed'.\nuser_invocable: true\nargument: \"PR URL or number\"\nmetadata:\n  author: Philip Petrakian \u003Cppetrakian@nvidia.com>\n---\n\n# Split PR by CODEOWNERS Groups\n\nSplit a large pull request into multiple smaller PRs, where each PR touches\nthe fewest possible CODEOWNERS reviewer groups. The goal is to reduce review\nburden: a PR that only touches `megatron\u002Fcore\u002F` needs only the core reviewers,\nwhile a PR that also touches `examples\u002F`, `tools\u002F`, and `megatron\u002Ftraining\u002F`\npulls in many additional groups.\n\n## Answer-First Constraints\n\nFor split-planning questions, lead with these constraints before the full\nworkflow:\n\n- Minimize CODEOWNERS reviewer groups per PR, but each resulting PR must still\n  be independently mergeable and reviewable.\n- Tests travel with the production code they validate; do not split tests into a\n  separate PR just to reduce reviewer groups.\n- If PR B depends on symbols renamed in PR A, call out the dependency and put\n  backward-compatible aliases, re-exports, or shims in PR A when needed.\n- Wait for user approval before execution.\n- Execution creates draft PRs from the right base, applies file-scoped diffs\n  with `git diff upstream\u002Fmain..\u003Csource-branch> -- \u003Cpaths> | git apply`, pushes\n  to the user's fork, and never pushes directly to upstream.\n\n## Workflow\n\n### 1. Analyze the PR\n\n1. Fetch the PR details: `gh pr view \u003Cnumber> --repo NVIDIA\u002FMegatron-LM --json title,body,headRefName,author` and `gh pr diff \u003Cnumber> --repo NVIDIA\u002FMegatron-LM --stat`. Also determine the current GitHub user with `gh api user --jq .login`.\n2. Parse `.github\u002FCODEOWNERS` to build a mapping from file path patterns to owner groups.\n3. For each changed file in the PR, determine which CODEOWNERS groups would be required to review it.\n4. Build a summary table grouped by CODEOWNERS group, showing which files pull in which groups.\n5. Count the total number of distinct reviewer groups the PR currently requires.\n\n### 2. Propose a split that minimizes reviewer groups per PR\n\nThe primary optimization goal: **minimize the number of CODEOWNERS reviewer groups required for each resulting PR**.\n\nStrategy:\n1. Cluster files by their CODEOWNERS groups. Files owned by the same set of groups naturally belong together.\n2. Identify the largest cluster — this becomes the first (and usually largest) PR.\n3. Remaining files form one or more additional PRs, each ideally requiring only one or two reviewer groups.\n4. If a split creates a dependency (e.g., PR B uses symbols renamed in PR A), the dependent PR must be merged after the first. Note this explicitly.\n5. Each PR must be independently mergeable to main — no broken imports, no missing symbols. Backward-compatible aliases and re-export stubs in the first PR can make this possible.\n\nPresent the proposed split as a table:\n- PR name\u002Fdescription\n- Files included\n- CODEOWNERS groups required\n- Dependencies on other PRs (if any)\n\nWait for user approval before proceeding.\n\n### 3. Execute the split (after user approval)\n\nFor each new PR:\n1. Create a new branch from the appropriate base (`main`, or a dependency PR's branch).\n2. Extract the relevant changes: `git diff upstream\u002Fmain..\u003Csource-branch> -- \u003Cfile paths> | git apply`.\n3. Stage, commit with a clear message, and push to the user's fork.\n4. Create the PR as a **draft** (per repo contributing guidelines).\n5. If the original PR needs to be narrowed in scope, confirm with the user before force-pushing.\n6. Report all PR URLs when done.\n\n## Important guidelines\n\n- Always create PRs as **drafts** and push to the user's fork, never directly to upstream.\n- Backward-compatible changes (aliases, re-exports, deprecation shims) should go in the first PR so subsequent PRs can depend on them.\n- Test files should go with the production code they test, not in a separate PR.\n- Prefer a single clean commit per split PR over replaying the original commit history.\n- If a file is hard to categorize (e.g., it touches two groups), ask the user which PR it should go in.\n- If the current GitHub user is not the author of the original PR, each new PR's description must explicitly credit the original author (e.g., \"Original changes by @\u003Cauthor> in #\u003Cnumber>\").\n","# Split PR by CODEOWNERS Groups\n\nSplit a large pull request into multiple smaller PRs, where each PR touches\nthe fewest possible CODEOWNERS reviewer groups. The goal is to reduce review\nburden: a PR that only touches `megatron\u002Fcore\u002F` needs only the core reviewers,\nwhile a PR that also touches `examples\u002F`, `tools\u002F`, and `megatron\u002Ftraining\u002F`\npulls in many additional groups.\n\n## Answer-First Constraints\n\nFor split-planning questions, lead with these constraints before the full\nworkflow:\n\n- Minimize CODEOWNERS reviewer groups per PR, but each resulting PR must still\n  be independently mergeable and reviewable.\n- Tests travel with the production code they validate; do not split tests into a\n  separate PR just to reduce reviewer groups.\n- If PR B depends on symbols renamed in PR A, call out the dependency and put\n  backward-compatible aliases, re-exports, or shims in PR A when needed.\n- Wait for user approval before execution.\n- Execution creates draft PRs from the right base, applies file-scoped diffs\n  with `git diff upstream\u002Fmain..\u003Csource-branch> -- \u003Cpaths> | git apply`, pushes\n  to the user's fork, and never pushes directly to upstream.\n\n## Workflow\n\n### 1. Analyze the PR\n\n1. Fetch the PR details: `gh pr view \u003Cnumber> --repo NVIDIA\u002FMegatron-LM --json title,body,headRefName,author` and `gh pr diff \u003Cnumber> --repo NVIDIA\u002FMegatron-LM --stat`. Also determine the current GitHub user with `gh api user --jq .login`.\n2. Parse `.github\u002FCODEOWNERS` to build a mapping from file path patterns to owner groups.\n3. For each changed file in the PR, determine which CODEOWNERS groups would be required to review it.\n4. Build a summary table grouped by CODEOWNERS group, showing which files pull in which groups.\n5. Count the total number of distinct reviewer groups the PR currently requires.\n\n### 2. Propose a split that minimizes reviewer groups per PR\n\nThe primary optimization goal: **minimize the number of CODEOWNERS reviewer groups required for each resulting PR**.\n\nStrategy:\n1. Cluster files by their CODEOWNERS groups. Files owned by the same set of groups naturally belong together.\n2. Identify the largest cluster — this becomes the first (and usually largest) PR.\n3. Remaining files form one or more additional PRs, each ideally requiring only one or two reviewer groups.\n4. If a split creates a dependency (e.g., PR B uses symbols renamed in PR A), the dependent PR must be merged after the first. Note this explicitly.\n5. Each PR must be independently mergeable to main — no broken imports, no missing symbols. Backward-compatible aliases and re-export stubs in the first PR can make this possible.\n\nPresent the proposed split as a table:\n- PR name\u002Fdescription\n- Files included\n- CODEOWNERS groups required\n- Dependencies on other PRs (if any)\n\nWait for user approval before proceeding.\n\n### 3. Execute the split (after user approval)\n\nFor each new PR:\n1. Create a new branch from the appropriate base (`main`, or a dependency PR's branch).\n2. Extract the relevant changes: `git diff upstream\u002Fmain..\u003Csource-branch> -- \u003Cfile paths> | git apply`.\n3. Stage, commit with a clear message, and push to the user's fork.\n4. Create the PR as a **draft** (per repo contributing guidelines).\n5. If the original PR needs to be narrowed in scope, confirm with the user before force-pushing.\n6. Report all PR URLs when done.\n\n## Important guidelines\n\n- Always create PRs as **drafts** and push to the user's fork, never directly to upstream.\n- Backward-compatible changes (aliases, re-exports, deprecation shims) should go in the first PR so subsequent PRs can depend on them.\n- Test files should go with the production code they test, not in a separate PR.\n- Prefer a single clean commit per split PR over replaying the original commit history.\n- If a file is hard to categorize (e.g., it touches two groups), ask the user which PR it should go in.\n- If the current GitHub user is not the author of the original PR, each new PR's description must explicitly credit the original author (e.g., \"Original changes by @\u003Cauthor> in #\u003Cnumber>\").\n",{"name":5,"license":15,"argument":24,"metadata":25,"description":7,"when_to_use":27,"user_invocable":28},"PR URL or number",{"author":26},"Philip Petrakian \u003Cppetrakian@nvidia.com>","User asks to split a PR, reduce reviewer groups, or break up a large PR; 'too many CODEOWNERS', 'split this PR', 'break up PR', 'reduce reviewers needed'.",true,"main","87afe6ce96220accf50a345dea46784c8c9f210e","YYC3-Skills-技能包\u002FYYC3-Skills-技能包-skills\u002Fskills\u002Fmcore-split-pr",0,"https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base","https:\u002F\u002Fkb.yyc3.top\u002F","https:\u002F\u002Fgithub.com\u002FYYC-Cube","万象归元于云枢 | 深栈智启新纪元","2026-11-10 10:37:32",{"source":8,"skillName":5,"commands":39,"prompt":49,"zipAvailable":28},[40,43,46],{"tool":41,"command":42},"npx","npx skills add YYC-Cube\u002FYYC3-Knowledge-Base --skill mcore-split-pr",{"tool":44,"command":45},"bunx","bunx skills add YYC-Cube\u002FYYC3-Knowledge-Base --skill mcore-split-pr",{"tool":47,"command":48},"pnpm","pnpm dlx skills add YYC-Cube\u002FYYC3-Knowledge-Base --skill mcore-split-pr","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-Skills-技能包\u002FYYC3-Skills-技能包-skills\u002Fskills\u002Fmcore-split-pr\u002FSKILL.md",[51,57,61,65],{"path":52,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":55,"sourceHtmlUrl":56},"BENCHMARK.md","REFERENCE","参考文档",2762,"https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-Skills-技能包\u002FYYC3-Skills-技能包-skills\u002Fskills\u002Fmcore-split-pr\u002FBENCHMARK.md",{"path":58,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":59,"sourceHtmlUrl":60},"evals\u002Fevals.json",3,"https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-Skills-技能包\u002FYYC3-Skills-技能包-skills\u002Fskills\u002Fmcore-split-pr\u002Fevals\u002Fevals.json",{"path":62,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":63,"sourceHtmlUrl":64},"skill-card.md",2463,"https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-Skills-技能包\u002FYYC3-Skills-技能包-skills\u002Fskills\u002Fmcore-split-pr\u002Fskill-card.md",{"path":66,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":69,"sourceHtmlUrl":70},"skill.oms.sig","OTHER","其他",4581,"https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-Skills-技能包\u002FYYC3-Skills-技能包-skills\u002Fskills\u002Fmcore-split-pr\u002Fskill.oms.sig",[72,80,87,94,101,108],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":76,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M7CTDWHERCXPQCP0K03A86AS","vercel-sandbox","Run agent-browser + Chrome inside Vercel Sandbox microVMs for browser automation from any Vercel-deployed app. Use when the user needs browser automation in a Vercel app (Next.js, SvelteKit, Nuxt, Remix, Astro, etc.), wants to run headless Chrome without binary size limits, needs persistent browser sessions across commands, or wants ephemeral isolated browser environments. Triggers include \"Vercel Sandbox browser\", \"microVM Chrome\", \"agent-browser in sandbox\", \"browser automation on Vercel\", or any task requiring Chrome in a Vercel Sandbox.","MIT","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Fvercel-sandbox\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":76,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M7CTD8D2BNJY54S65M47HEJA","slack","Interact with Slack workspaces using browser automation. Use when the user needs to check unread channels, navigate Slack, send messages, extract data, find information, search conversations, or automate any Slack task. Triggers include \"check my Slack\", \"what channels have unreads\", \"send a message to\", \"search Slack for\", \"extract from Slack\", \"find who said\", or any task requiring programmatic Slack interaction.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Fslack\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":76,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"01M7CTCSSB8ZP3Q58C3YZDZK1W","electron","Automate Electron desktop apps (VS Code, Slack, Discord, Figma, Notion, Spotify, etc.) using agent-browser via Chrome DevTools Protocol. Use when the user needs to interact with an Electron app, automate a desktop app, connect to a running app, control a native app, or test an Electron application. Triggers include \"automate Slack app\", \"control VS Code\", \"interact with Discord app\", \"test this Electron app\", \"connect to desktop app\", or any task requiring automation of a native Electron application.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Felectron\u002FSKILL.md",[],[],{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":76,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":19},"01M7CTCBJY76688V4DCZGWFHGQ","dogfood","Systematically explore and test a web application to find bugs, UX issues, and other problems. Use when asked to \"dogfood\", \"QA\", \"exploratory test\", \"find issues\", \"bug hunt\", \"test this app\u002Fsite\u002Fplatform\", or review the quality of a web application. Produces a structured report with full reproduction evidence -- step-by-step screenshots, repro videos, and detailed repro steps for every issue -- so findings can be handed directly to the responsible teams.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Fdogfood\u002FSKILL.md",[],[],{"skillNo":102,"name":103,"nameZh":6,"description":104,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":76,"licenseFileUrl":6,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":19},"01M7CTC4H0FFGVEAQR9PA4GA1A","agent-browser","Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to \"open a website\", \"fill out a form\", \"click a button\", \"take a screenshot\", \"scrape data from a page\", \"test this web app\", \"login to a site\", \"automate browser actions\", or any task requiring programmatic web interaction.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Fagent-browser\u002FSKILL.md",[],[],{"skillNo":109,"name":110,"nameZh":6,"description":111,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":76,"licenseFileUrl":6,"sourceHtmlUrl":112,"categories":113,"keywords":114,"publishedAt":19},"01M7CTBKVFYBG78FDSABSDJTTQ","shadcn","Manages shadcn components and projects — adding, searching, fixing, debugging, styling, and composing UI, including chat interfaces. Provides project context, component docs, and usage examples. Applies when working with shadcn\u002Fui, component registries, presets, --preset codes, or any project with a components.json file. Also triggers for \"shadcn init\", \"create an app with --preset\", \"switch to --preset\", and for building a design system or applying a DESIGN.md or brand spec to shadcn\u002Fui.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-UI-界面组件\u002FYYC3-UI-界面组件-ui\u002Fskills\u002Fshadcn\u002FSKILL.md",[],[]]