adding-commands
CommunityDefine and wire VS commands across extensions.
System Documentation
What problem does it solve?
Add commands (menu items, toolbar buttons) to Visual Studio extensions. Use when the user asks how to create a command, add a menu item, add a toolbar button, register a command handler, wire up a .vsct file, use KnownMonikers icons on buttons, or place commands in menus/toolbars in a Visual Studio IDE extension. Covers VisualStudio.Extensibility (out-of-process), VSIX Community Toolkit (in-process), and legacy VSSDK (in-process) approaches.
Core Features & Use Cases
- One-command-per-file pattern with a root Commands/ folder and per-command .cs files for VisualStudio.Extensibility, Toolkit, and VSSDK.
- Clear, cross-model guidance: implement commands using VisualStudio.Extensibility (out-of-process), VSIX Community Toolkit (in-process), or VSSDK (in-process) with .vsct or code-based configuration.
- Tooling-friendly examples and conventions for icon usage (KnownMonikers) and command placement in standard VS menus and toolbars.
Quick Start
Create a new command class under Commands/ and wire it to the menu or toolbar using the model you choose (Extensibility, Toolkit, or VSSDK).
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: adding-commands Download link: https://github.com/madskristensen/vs-agent-plugins/archive/main.zip#adding-commands Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.