Agent skill · microsoft
context-menus
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.
What it needs
About 2k tokens when loaded.
What this skill does
Context menus 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. Group order 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. 1state Change the object's state. 2organize Change where the object is listed or how it is ordered. 3copy Copy information about the object to the clipboard. 4manage Configure or edit the object itself. Destructive actions come last. Order items within a group with order (or group@n in package.json) instead of relying on title sorting. Prefer these groups over inventing new ones. A new group needs a purpose none of them covers. Established workbench menus with documented groups (editor, Explorer, terminal, editor title) keep their own group IDs. Add to the closest matching group. Group IDs of menus open to extensions are API. When you change one, update every contribution, including extensions//package.json. Rules Destructive actions last. An action that deletes or removes data is the final item of the menu. Never place it mid-menu. 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. Inline actions are in the menu too. Every hover or toolbar action of a row or header also appears in its context menu. 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. Hide what doesn't apply; disable what can't run now. …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills microsoft/context-menus