Reviewing VS Code extension commands with the skill

How the VS Code Extension Commands skill helps generate consistent commands following official naming and visibility rules for extensions.

  • Skill Road
  • Reviewing VS Code extension commands with the skill

Published on 09.09.2026

What This Skill Is About

VS Code Extension Commands is a skill from GitHub's official Awesome Copilot repository, which provides a curated collection of instructions, prompts, and skills for working with GitHub Copilot. According to the provider, this particular skill helps developers correctly define commands within VS Code extensions. It summarizes the naming conventions, visibility rules, localization requirements, and other relevant attributes mandated by the official VS Code extension development guidelines. The skill therefore does not target end users of an extension but people who themselves build or maintain extensions for the Visual Studio Code editor while working alongside an AI-assisted tool such as Copilot.

When the Skill Applies

The skill activates whenever a task involves adding or updating commands in a VS Code extension. That could mean defining a new command in the package.json manifest file, adjusting an existing command to new visibility rules, or restructuring a set of commands for the side bar. Unlike a general coding tool, this skill does not deliver generic programming knowledge; instead it provides very specific, VS-Code-typical conventions that also show up in Microsoft's official sample extensions and the extension API documentation.

Core Rules the Skill Conveys

According to the guidance stored in the skill, every VS Code command must define a title regardless of its category, visibility, or location. Regular commands should, by default, be reachable through the Command Palette, need a category, and generally do not need an icon unless they also appear in the side bar. Commands meant to be visible exclusively in the side bar follow their own naming pattern with a leading underscore and a side-bar suffix; such commands mandatorily need an icon but must not also show up in the Command Palette. When a command is placed in a context menu such as the view title bar, its relative order compared to other commands and a sensible visibility condition must additionally be defined.

Practical Value for Extension Developers

The value of this skill lies in an AI assistant no longer suggesting only syntactically correct but also stylistically consistent code for command definitions during extension development. Especially in larger extensions with many commands, inconsistent naming patterns, missing categories, or commands that accidentally appear both in the side bar and the Command Palette otherwise arise easily, degrading the user experience. An assistant aware of these conventions can avoid such inconsistencies early on or flag them during a review before an extension is published.

Prerequisites and Context

To use the skill meaningfully you need an existing or newly created VS Code extension project along with a Copilot-capable editor in which the Awesome Copilot repository is wired in as a source for skills, prompts, or instructions. Since this is, according to the provider, a collection of community- and Microsoft-curated content, it is worth checking the actual skill file in the repository and cross-referencing it with the official VS Code extension API documentation before production use, in case details such as the manifest schema or visibility attributes have changed with newer VS Code releases.

Limits of the Skill

Importantly, this skill sticks strictly to command definitions and does not provide comprehensive guidance on overall extension architecture, activation events, or Marketplace publishing. Anyone planning a complete extension from scratch will additionally need the general VS Code extension documentation. The skill also does not replace a manual review of the resulting package.json, because schema changes in future VS Code releases can make individual patterns described in the skill outdated, so checking the current official documentation before each release remains advisable.

Published on 09.09.2026

Categories

Frequently asked questions

What is required for every VS Code command?

According to the provider, every command must define a clear title field.

What distinguishes a sidebar command?

An exclusive sidebar command follows the documented naming pattern, needs an icon, and should not also appear in the Command Palette.

Does when provide access control?

No. when and enablement control visibility and usability, but they do not replace authorization or security checks.