vscode: Skill for Claude Code

.github/skills/context-menus/SKILL.md

context-menus is a skill for Claude Code, Codex from microsoft/vscode. It costs 76 tokens per session (1,077 once invoked), scanned A, original, MIT.

Guidance for adding or reviewing context menus, the action lists shown when a user clicks an object with a secondary mouse button. It covers menu grouping, ordering, labels, submenus, and destructive actions.

In plain words
What is it for?
It is for implementing or reviewing context-menu entries, separators, submenus, and menu contributions in an application.
Why use it?
It helps keep related actions in predictable places and reduces inconsistent or unsafe menu layouts.

Skill for Claude CodeCodex ✓ vendor

Written for no agent in particular: nothing here depends on one.

This is microsoft/vscode's own configuration. It tells Claude Code and Codex how to work on vscode itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything vscode configures →

About the project

Visual Studio Code is a code editor that supports editing, navigating, understanding, debugging, and extending software projects. Developers use it for the edit-build-debug cycle, and the catalogue add-ons provide skills, instructions, and agents for working within the editor.

microsoft/vscode · 195,911 stars · on GitHub · code.visualstudio.com

Reuse

Borrowing it

Nothing to install: this file belongs to microsoft/vscode. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/microsoft/vscode/main/.github/skills/context-menus/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/microsoft/vscode

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for context-menus

README.md
[![agentmods](https://agentmods.dev/badge/skills/microsoft/vscode/context-menus/github.svg)](https://agentmods.dev/skills/microsoft/vscode/context-menus)
Your own site
<a href="https://agentmods.dev/skills/microsoft/vscode/context-menus"><img src="https://agentmods.dev/badge/skills/microsoft/vscode/context-menus/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for context-menus

Your own site · 80×15
<a href="https://agentmods.dev/skills/microsoft/vscode/context-menus"><img src="https://agentmods.dev/badge/skills/microsoft/vscode/context-menus.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 76 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,077 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00076 $0.01077
Opus 5.5 $0.00030 $0.00431
Sonnet 5.5 $0.00015 $0.00215
Haiku 4.5 $0.00008 $0.00108

Measured 12d ago against content hash e57422b593a9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

context-menus scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.github/skills/context-menus/SKILL.md · 49 lines

How it starts

The opening of the file, as written. The whole thing — 49 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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.
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 items within a group with order (or group@n in package.json) instead of relying on title sorting.
  • Don't invent groups in menus that use this scheme. A custom ID sorts lexicographically among the standard ones, often somewhere unexpected (1_move renders before 1_state), and splits related actions apart. A new group needs a purpose none of the standard groups 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

  • Related actions stay together. Variants of one operation (Move Up and Move Down, Move to Session... and Move to New Session, Copy Link and Copy Path) share one group with consecutive order values, so they render next to each other. Never split them across groups.
  • 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. 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.
  • 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.
  • Labels. Use Title Case. End with ... when the action asks for more input or confirmation. Labels must be unique within a menu.
  • 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.

Read the full file on GitHub · 49 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago Changed · +10 lines · +8 tokens per session e57422b593a9
  2. 1mo ago First seen · 39 lines · 68 tokens per session scan A 59e3c768d447

Subscribe to this mod's changes

context-menus is a skill published in the GitHub repository microsoft/vscode (195,911 stars, last pushed today), licensed MIT. It adds 76 tokens to every session and 1,077 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-27.

Related

context-menus compared with skills from other repositories

context-menus next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
context-menusmicrosoft/vscodeSkill196ktodayMITA76Claude Code, Codex
cyrene-diagramPlaya-0v0/Cyrene-AgentSkill8119d agoMITA50Claude Code, Codex
figmamereyabdenbekuly-ctrl/clodex-ideSkill8721mo agoAGPL-3.0A48Claude Code, Codex
magic-uimagicuidesign/magicuiSkill24k3d agoMITA56Claude Code, Codex
winui-designmicrosoft/winappCliSkill1.4ktodayMITA70Claude Code
openscreen-designgetopenscreen/openscreenSkill8.5ktodayMITA62Claude Code
cyrene-obsidian-workspacePlaya-0v0/Cyrene-AgentSkill8119d agoMITA42Claude Code, Codex