Use when adding, changing, or reviewing context menus or menu contributions, including Action2 `menu` entries and MenuRegistry items with `group`/`order`, hand-built `showContextMenu` action lists, submenus, and separators. Covers group order, destructive-action placement, consistency across surfaces, and labels.
91%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Passed
No findings from the security scan
A 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.
Groups 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:
| Group | Purpose |
|---|---|
navigation | Open, create, or run the object. The default (double-click or Enter) action comes first. |
1_state | Change the object's state. |
2_organize | Change where the object is listed or how it is ordered. |
3_copy | Copy information about the object to the clipboard. |
4_manage | Configure or edit the object itself. Destructive actions come last. |
order (or group@n in package.json) instead of relying on title sorting.extensions/*/package.json.MenuId or the same group IDs rather than building a parallel action list by hand.when for actions irrelevant to the object and precondition for applicable actions that are temporarily unavailable, such as single-item actions during multi-selection.... when the action asks for more input or confirmation. Labels must be unique within a menu.Separator.join.Based on the VS Code context menu UX guidelines, the Windows menu guidelines, and the Apple context menu guidelines.
microsoft/vscode
461c750
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.