[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M699A34R41Q66XC4HD5QJ2EY":3,"skill-same:01M699A34R41Q66XC4HD5QJ2EY":70},{"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":31,"linkOnly":32,"markdownContent":33,"markdownBody":34,"frontMatter":35,"refName":36,"commitSha":37,"skillDirectory":38,"forksCount":39,"repositoryHtmlUrl":40,"repositoryHomepageUrl":41,"ownerHtmlUrl":42,"ownerBlogUrl":43,"ownerDescription":44,"updatedAt":45,"install":46,"resources":59},"01M699A34R41Q66XC4HD5QJ2EY","context-menus",null,"Use when adding, changing, or reviewing context menus or menu contributions, including Action2 `menu` entries and MenuRegistry items with `group`\u002F`order`, hand-built `showContextMenu` action lists, submenus, and separators. Covers group order, destructive-action placement, consistency across surfaces, and labels.","microsoft\u002Fvscode","microsoft","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6154722?v=4","01M698VYDXZ6JW5WH3CRV650R8","Microsoft","01M6998NK2WED5M549DX06VBCH",195271,"MIT","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fvscode\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fcontext-menus\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30],"context menus","context","use","surfaces","across","entries","with","consistency","action","hand","labels","when","2026-11-10 10:12:30",false,"---\nname: context-menus\ndescription: 'Use when adding, changing, or reviewing context menus or menu contributions, including Action2 `menu` entries and MenuRegistry items with `group`\u002F`order`, hand-built `showContextMenu` action lists, submenus, and separators. Covers group order, destructive-action placement, consistency across surfaces, and labels.'\n---\n\n# Context menus\n\nA context menu lists the actions for the clicked object in a predictable order, so users find the same action in the same place on every object and surface.\n\n## Group order\n\nGroups render in lexicographic order of their ID, with `navigation` always first. Use these groups, in this order, for new menus and for all Agents window menus:\n\n| Group | Purpose |\n|---|---|\n| `navigation` | Open, create, or run the object. The default (double-click or Enter) action comes first. |\n| `1_state` | Change the object's state. |\n| `2_organize` | Change where the object is listed or how it is ordered. |\n| `3_copy` | Copy information about the object to the clipboard. |\n| `4_manage` | Configure or edit the object itself. Destructive actions come last. |\n\n- Order items within a group with `order` (or `group@n` in `package.json`) instead of relying on title sorting.\n- Prefer these groups over inventing new ones. A new group needs a purpose none of them covers.\n- Established workbench menus with documented groups (editor, Explorer, terminal, editor title) keep their own group IDs. Add to the closest matching group.\n- Group IDs of menus open to extensions are API. When you change one, update every contribution, including `extensions\u002F*\u002Fpackage.json`.\n\n## Rules\n\n- **Destructive actions last.** An action that deletes or removes data is the final item of the menu. Never place it mid-menu.\n- **Same object, same menu.** An object shown in several places (list row, tab, header, card) offers the same actions in the same order. Reuse one `MenuId` or the same group IDs rather than building a parallel action list by hand.\n- **Inline actions are in the menu too.** Every hover or toolbar action of a row or header also appears in its context menu.\n- **Only actions for the clicked object.** List-wide or unrelated actions belong on the section header, view title, or empty space, not on an item.\n- **Hide what doesn't apply; disable what can't run now.** Use `when` for actions irrelevant to the object and `precondition` for applicable actions that are temporarily unavailable, such as single-item actions during multi-selection.\n- **Keep it short.** At most about 5 groups and 15 items, with one level of submenus. Use a submenu for 3 or more related targets, and a toggle rather than a submenu for a two-way choice.\n- **Labels.** Use Title Case. End with `...` when the action asks for more input or confirmation. Labels must be unique within a menu.\n- **Dynamic actions join their group.** When actions must be built in code, merge them into the matching group of the menu's actions instead of appending them after a final separator. Join groups with `Separator.join`.\n\nBased on the [VS Code context menu UX guidelines](https:\u002F\u002Fcode.visualstudio.com\u002Fapi\u002Fux-guidelines\u002Fcontext-menus), the [Windows menu guidelines](https:\u002F\u002Flearn.microsoft.com\u002Fwindows\u002Fwin32\u002Fuxguide\u002Fcmd-menus), and the [Apple context menu guidelines](https:\u002F\u002Fdeveloper.apple.com\u002Fdesign\u002Fhuman-interface-guidelines\u002Fcontext-menus).\n","# Context menus\n\nA context menu lists the actions for the clicked object in a predictable order, so users find the same action in the same place on every object and surface.\n\n## Group order\n\nGroups render in lexicographic order of their ID, with `navigation` always first. Use these groups, in this order, for new menus and for all Agents window menus:\n\n| Group | Purpose |\n|---|---|\n| `navigation` | Open, create, or run the object. The default (double-click or Enter) action comes first. |\n| `1_state` | Change the object's state. |\n| `2_organize` | Change where the object is listed or how it is ordered. |\n| `3_copy` | Copy information about the object to the clipboard. |\n| `4_manage` | Configure or edit the object itself. Destructive actions come last. |\n\n- Order items within a group with `order` (or `group@n` in `package.json`) instead of relying on title sorting.\n- Prefer these groups over inventing new ones. A new group needs a purpose none of them covers.\n- Established workbench menus with documented groups (editor, Explorer, terminal, editor title) keep their own group IDs. Add to the closest matching group.\n- Group IDs of menus open to extensions are API. When you change one, update every contribution, including `extensions\u002F*\u002Fpackage.json`.\n\n## Rules\n\n- **Destructive actions last.** An action that deletes or removes data is the final item of the menu. Never place it mid-menu.\n- **Same object, same menu.** An object shown in several places (list row, tab, header, card) offers the same actions in the same order. Reuse one `MenuId` or the same group IDs rather than building a parallel action list by hand.\n- **Inline actions are in the menu too.** Every hover or toolbar action of a row or header also appears in its context menu.\n- **Only actions for the clicked object.** List-wide or unrelated actions belong on the section header, view title, or empty space, not on an item.\n- **Hide what doesn't apply; disable what can't run now.** Use `when` for actions irrelevant to the object and `precondition` for applicable actions that are temporarily unavailable, such as single-item actions during multi-selection.\n- **Keep it short.** At most about 5 groups and 15 items, with one level of submenus. Use a submenu for 3 or more related targets, and a toggle rather than a submenu for a two-way choice.\n- **Labels.** Use Title Case. End with `...` when the action asks for more input or confirmation. Labels must be unique within a menu.\n- **Dynamic actions join their group.** When actions must be built in code, merge them into the matching group of the menu's actions instead of appending them after a final separator. Join groups with `Separator.join`.\n\nBased on the [VS Code context menu UX guidelines](https:\u002F\u002Fcode.visualstudio.com\u002Fapi\u002Fux-guidelines\u002Fcontext-menus), the [Windows menu guidelines](https:\u002F\u002Flearn.microsoft.com\u002Fwindows\u002Fwin32\u002Fuxguide\u002Fcmd-menus), and the [Apple context menu guidelines](https:\u002F\u002Fdeveloper.apple.com\u002Fdesign\u002Fhuman-interface-guidelines\u002Fcontext-menus).\n",{"name":5,"description":7},"main","11ba54a90a0ff8720cf47c086f5a9948eef9cf2c",".github\u002Fskills\u002Fcontext-menus",43773,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fvscode","https:\u002F\u002Fcode.visualstudio.com","https:\u002F\u002Fgithub.com\u002Fmicrosoft","https:\u002F\u002Fopensource.microsoft.com","Open source projects and samples from Microsoft","2026-11-11 08:47:49",{"source":8,"skillName":5,"commands":47,"prompt":57,"zipAvailable":58},[48,51,54],{"tool":49,"command":50},"npx","npx skills add microsoft\u002Fvscode --skill context-menus",{"tool":52,"command":53},"bunx","bunx skills add microsoft\u002Fvscode --skill context-menus",{"tool":55,"command":56},"pnpm","pnpm dlx skills add microsoft\u002Fvscode --skill context-menus","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fvscode\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fcontext-menus\u002FSKILL.md",true,[60,66],{"path":61,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":64,"sourceHtmlUrl":65},"checklist.md","REFERENCE","参考文档",910,"https:\u002F\u002Fgithub.com\u002Fsherryswift1019-gif\u002FAI-DZHT\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fbmad-qa-ground-truth-validation\u002Fchecklist.md",{"path":67,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":68,"sourceHtmlUrl":69},"workflow.md",4750,"https:\u002F\u002Fgithub.com\u002Fsherryswift1019-gif\u002FAI-DZHT\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fbmad-qa-ground-truth-validation\u002Fworkflow.md",[71,97,119,133,147,163],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":31},"01M70H0ANBKZAVEP1NVV4K28M3","sweeper-query","Answer natural-language questions about the VS Code Sweeper's published issue index (index-\u003Cname>.json for microsoft\u002Fvscode and the enrolled family repos) — which issues are agent-ready to implement or plan, what the sweeper proposed for an assignee or area, whether the sweeper knows a report as a duplicate, the highest-value open bugs in a lane — and, for one issue, the review's full record (evidence with file citations, fix brief, proposed comment). Use ONLY when the request explicitly names the sweeper — \"sweeper\", \"vscodesweeper\", \"sweeper-query\", a sweeper verdict, record, brief or index, an agent-ready issue — or asks what \"the sweeper\" found, proposed or knows. Do NOT use for general questions about issues, duplicates, priorities or ranking that do not mention the sweeper. Read-only; discovery only.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fvscode\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fsweeper-query\u002FSKILL.md",[],[78,79,80,81,82,30,83,84,85,86,87,88,89,90,91,92,93,94,95,96],"sweeper query","query","sweeper","review","fix","request","which","natural-language","ranking","duplicates","ready","only","read","plan","open","Citations","brief","issues","code",{"skillNo":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":31},"01M699DRJS4YJCV600Q72SVVWE","update-skills","Create or update repository skills and instructions when major learnings are discovered during a session. Use when the user says \"learn!\", when a significant pattern or pitfall is identified, or when reusable domain knowledge should be captured for future sessions.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fvscode\u002Fblob\u002Fmain\u002Fsrc\u002Fvs\u002Fsessions\u002Fskills\u002Fupdate-skills\u002FSKILL.md",[],[104,105,106,107,108,109,110,21,111,112,113,114,115,116,117,118,30],"update","update skills","for","pattern","domain","learnings","reusable","session","user","instructions","knowledge","repository","learn","create","sessions",{"skillNo":120,"name":121,"nameZh":6,"description":122,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":123,"categories":124,"keywords":125,"publishedAt":31},"01M699DPWHZ72B66P82EW31RNE","update-pr","Update the pull request for the current session. Use when the user wants to push new changes to an existing PR.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fvscode\u002Fblob\u002Fmain\u002Fsrc\u002Fvs\u002Fsessions\u002Fskills\u002Fupdate-pr\u002FSKILL.md",[],[104,126,127,30,83,128,106,21,111,112,129,130,131,132],"pr","update pr","Existing","push","pull","pull request","changes",{"skillNo":134,"name":135,"nameZh":6,"description":136,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":137,"categories":138,"keywords":139,"publishedAt":31},"01M699DJMR6CE1MH5XCJZ0GFQ0","sync","Sync the current session branch with its upstream branch, or publish the current session branch to a remote. Use when the user asks to sync a branch, pull latest changes, rebase onto upstream, push current branch, publish branch, or set upstream.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fvscode\u002Fblob\u002Fmain\u002Fsrc\u002Fvs\u002Fsessions\u002Fskills\u002Fsync\u002FSKILL.md",[],[135,140,141,129,130,142,30,132,143,25,144,145,21,111,112,146],"SET","publish","rebase","latest","remote","upstream","branch",{"skillNo":148,"name":149,"nameZh":6,"description":150,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":151,"categories":152,"keywords":153,"publishedAt":31},"01M699DGXHX6A2A72X57R6GGHJ","sync-upstream","Update a stale session branch by rebasing onto the latest origin. Use when the upstream has moved significantly and the session needs to catch up, resolving conflicts by preserving upstream changes and adapting session work to fit.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fvscode\u002Fblob\u002Fmain\u002Fsrc\u002Fvs\u002Fsessions\u002Fskills\u002Fsync-upstream\u002FSKILL.md",[],[145,135,154,155,30,156,157,132,143,158,159,160,161,21,111,146,162,104],"sync upstream","fit","catch","catch up","origin","conflicts","stale","up","work",{"skillNo":164,"name":165,"nameZh":6,"description":166,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":167,"categories":168,"keywords":169,"publishedAt":31},"01M699DEXYFWDGW0BAXJ5QQ377","merge","Merge changes from the topic branch to the merge base branch. Use when the user wants to merge their session's work back to the base branch.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fvscode\u002Fblob\u002Fmain\u002Fsrc\u002Fvs\u002Fsessions\u002Fskills\u002Fmerge\u002FSKILL.md",[],[165,111,21,162,146,112,30,170,171,132],"back","base"]