Skip to content
github/awesome-copilot

Guidelines for Contributing Commands in VS Code Extensions

GitHub CopilotGemini CLIClaude CodeOpenAI CodexCursorDevin / Windsurf

About this skill

A skill that provides guidance for adding or updating commands in VS Code extensions, explaining the naming rules and required properties for each type of command, including regular commands that appear in the Command Palette and require a title and category, and sidebar commands that start with an underscore and end with #sideBar and require an icon, visibility conditions, and ordering rules when added to view/title or view/item/context.
Start here

How do you use this skill?

1. Determine the type of command you want to add: a regular one that appears in the Command Palette, or one specific to the sidebar. 2. For a regular command: define the title and category properties, and do not add an icon unless it will be used in the sidebar. 3. For sidebar commands: follow the special naming pattern such as _extensionId.someCommand#sideBar, define an icon and a when condition for the command to appear, and the display position when contributing to view/title or view/item/context. 4. Verify compliance with the documented naming conventions and properties before saving the changes. 5. Example user request: "Add a new command to my VS Code extension that appears in the sidebar with an icon and appropriate visibility conditions."

Requirements and limitations

The skill relies on prior knowledge of VS Code extension development and its package.json file. The files do not include any execution commands or execution tools; they are general text-based guidelines only, so they are compatible with agents capable of reading and applying textual documentation. The files are licensed under the MIT License.

Installation by agent

Download and extract the ZIP. It contains the folder vscode-ext-commands and the file SKILL.md with the original attachments and license.

GitHub Copilot
  1. Create this path inside your project if it does not exist:.github/skills/
  2. Copy the entire extracted skill folder to this path:.github/skills/vscode-ext-commands/SKILL.md
  3. Open the project in your agent or refresh the skills list and look for vscode-ext-commands.
  4. Request the task shown above and select the skill. Grant only necessary permissions.
Guide GitHub Copilot official documentation ↗
Gemini CLI
  1. Create this path inside your project if it does not exist:.gemini/skills/
  2. Copy the entire extracted skill folder to this path:.gemini/skills/vscode-ext-commands/SKILL.md
  3. Open the project in your agent or refresh the skills list and look for vscode-ext-commands.
  4. Request the task shown above and select the skill. Grant only necessary permissions.
Guide Gemini CLI official documentation ↗
Claude Code
  1. Create this path inside your project if it does not exist:.claude/skills/
  2. Copy the entire extracted skill folder to this path:.claude/skills/vscode-ext-commands/SKILL.md
  3. Open the project in your agent or refresh the skills list and look for vscode-ext-commands.
  4. Request the task shown above and select the skill. Grant only necessary permissions.
Guide Claude Code official documentation ↗
OpenAI Codex
  1. Create this path inside your project if it does not exist:.agents/skills/
  2. Copy the entire extracted skill folder to this path:.agents/skills/vscode-ext-commands/SKILL.md
  3. Open the project in your agent or refresh the skills list and look for vscode-ext-commands.
  4. Request the task shown above and select the skill. Grant only necessary permissions.
Guide OpenAI Codex official documentation ↗
Cursor
  1. Create this path inside your project if it does not exist:.cursor/skills/
  2. Copy the entire extracted skill folder to this path:.cursor/skills/vscode-ext-commands/SKILL.md
  3. Open the project in your agent or refresh the skills list and look for vscode-ext-commands.
  4. Request the task shown above and select the skill. Grant only necessary permissions.
Guide Cursor official documentation ↗
Devin / Windsurf
  1. Create this path inside your project if it does not exist:.devin/skills/
  2. Copy the entire extracted skill folder to this path:.devin/skills/vscode-ext-commands/SKILL.md
  3. Open the project in your agent or refresh the skills list and look for vscode-ext-commands.
  4. Request the task shown above and select the skill. Grant only necessary permissions.
Guide Devin / Windsurf official documentation ↗

Original files retain their language to preserve tool names and paths. Compatibility is classified by review, not runtime testing on every agent version.