microsoft/powertoys/add-extension-settings
Claude Code and agent skill by microsoft/powertoys
- vendor
Checking that the SKILL.md file is still in the repository.
Add a settings page to your Command Palette extension. Use when asked to add settings, preferences, configuration options, toggles, text inputs, dropdowns, or user-customizable behavior. Covers ToggleSetting, TextSetting, ChoiceSetSetting, and persistence.
Install
npx vskill@latest install microsoft/powertoys/add-extension-settingsSKILL.md
The same SKILL.md was published earlier as microsoft/powertoys/add-extension-settings.
Add Extension Settings
Add a settings page to your Command Palette extension using the built-in settings helpers. Settings are automatically persisted and restored by the extension host.
When to Use This Skill
- Adding user-configurable options to your extension
- Creating toggle switches for features
- Adding text input fields for configuration
- Creating dropdown menus for option selection
- Persisting user preferences across sessions
Quick Start
Step 1: Create a Settings Manager
Create a new file SettingsManager.cs:
Step 2: Wire into CommandProvider
In your CommandsProvider, expose the settings:
Step 3: Use Settings in Pages
Setting Types
| Type | UI Control | Value Type | Constructor Parameters | |
|---|---|---|---|---|
ToggleSetting | Toggle switch | bool | (id, label, description, defaultValue) | |
TextSetting | Text input | string | (id, label, description, defaultValue) | |
ChoiceSetSetting | Dropdown | string | (id, label, description, choices[], defaultValue) |
Key Points
- Settings are automatically persisted by the CmdPal host
- Use
SettingsChangedevent to react to changes in real-time - Access values via
GetSetting<T>(id)with the setting's string id - Pass the settings manager to pages/commands that need configuration
- Settings page appears automatically when
Settingsis set onCommandProvider
Grouping Settings
For extensions with many settings, organize them into logical groups:
Reacting to Changes
Use the SettingsChanged event to update behavior when the user modifies settings:
Documentation
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files. Certified 3 Jul 2026.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingsrc/modules/cmdpal/ExtensionTemplate/TemplateCmdPalExtension/.github/skills/add-extension-settings/SKILL.md
Popularity
- Repository stars
- 138,579
- Repository forks
- 8,556
- 7-day trend score
- 59
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 12 Sep 2026, 2 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/microsoft/powertoys/add-extension-settings)