Defines a predictable group order and rules for ordering, labeling, and showing context-menu actions. Provides a repository-wide process for finding menu contributions, placing new items with related actions, and updating order snapshot tests. Also explains consistency across surfaces and how to handle established menu groups and extension-facing group IDs.
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, such as mark as read or archive. |
2_organize | Change where the object is listed or how it is ordered, such as pin, move up or down, or move into another container. |
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.1_move renders before 1_state), and splits related actions apart. A new group needs a purpose none of the standard groups covers.extensions/*/package.json.order values, so they render next to each other. Never split them across groups.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.Don't place an item by looking at one file. Contributions to one menu are spread across files and layers.
MenuId and every alias of it (such as Menus.X or an exported XMenuId constant) across the repository, including package.json menus.order, and which when clauses show together. Put the new item next to its related actions, in the group matching its purpose.MenuRegistry.getMenuItems(<MenuId>)), add the new item to it so a later change can't separate it from its siblings.Based on the VS Code context menu UX guidelines, the Windows menu guidelines, and the Apple context menu guidelines.
microsoft/vscode
65981f4
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.