microsoft/vscode-cmake-tools/add-setting

Claude Code and agent skill by microsoft/vscode-cmake-tools

Trust tier 4
  • vendor
Source check pending

Checking that the SKILL.md file is still in the repository.

Use when adding a new cmake.* configuration setting. Touches package.json (contributes.configuration), package.nls.json, src/config.ts (interface + getter), docs/cmake-settings.md, and CHANGELOG.md. Triggers: "add setting", "new setting", "add configuration".

Install

npx vskill@latest install microsoft/vscode-cmake-tools/add-setting

SKILL.md

The same SKILL.md was published earlier as microsoft/vscode-cmake-tools/add-setting.

Adding a New Configuration Setting

Recipe for adding a new cmake.* setting to CMake Tools.

Files you must touch

FileWhat to add
package.jsonSetting declaration in contributes.configuration.properties
package.nls.jsonEnglish description string
src/config.tsInterface property + EventEmitter + getter
docs/cmake-settings.mdRow in the settings table
CHANGELOG.mdEntry under the current version

Step 1 — Declare the setting in package.json

Add an entry inside contributes.configuration.properties. Key format is cmake.<settingName>.

jsonc
// package.json → contributes.configuration.properties
"cmake.myNewSetting": {
"type": "boolean",
"default": false,
"description": "%cmake-tools.configuration.cmake.myNewSetting.description%",
"scope": "resource"
}
Rules
  • `type` — "boolean", "string", "number", "array", "object", or use "oneOf" for union types.
  • `default` — always required.
  • `scope` — use "resource" for project-specific settings (most common), "window" for global UI settings, "machine-overridable" for tool paths.
  • `description` or `markdownDescription` — must use an NLS key, never a bare string.
  • NLS key format: %cmake-tools.configuration.cmake.<settingName>.description% (wrapped in %).
Real example — cmake.saveBeforeBuild
json
"cmake.saveBeforeBuild": {
"type": "boolean",
"default": true,
"description": "%cmake-tools.configuration.cmake.saveBeforeBuild.description%",
"scope": "resource"
}

Step 2 — Add the English string to package.nls.json

Add the NLS key (without the % wrappers) and its English text:

json
"cmake-tools.configuration.cmake.myNewSetting.description": "Description of what this setting does."
Do not modify any file under i18n/. Translations are handled separately.

Step 3 — Wire up src/config.ts (three changes)

3a — Add property to ExtensionConfigurationSettings
typescript
// src/config.ts → ExtensionConfigurationSettings interface
export interface ExtensionConfigurationSettings {
// ... existing properties ...
myNewSetting: boolean;
}

The type must match what you declared in package.json.

3b — Add EventEmitter to the emitters map
typescript
// src/config.ts → ConfigurationReader.emitters
private readonly emitters: EmittersOf<ExtensionConfigurationSettings> = {
// ... existing emitters ...
myNewSetting: new vscode.EventEmitter<boolean>(),
};

The emitter type parameter must match the interface property type.

3c — Add a getter

Simple pass-through getter (most settings):

typescript
get myNewSetting(): boolean {
return this.configData.myNewSetting;
}

Getter with transformation logic (e.g., sourceDirectory normalizes to array):

typescript
get sourceDirectory(): string[] {
if (!Array.isArray(this.configData.sourceDirectory)) {
return [this.configData.sourceDirectory];
}
return this.configData.sourceDirectory;
}

Step 4 — Document in docs/cmake-settings.md

Add a row to the settings table. Keep alphabetical order.

markdown
| `cmake.myNewSetting` | Description of what this setting does. | `false` | no |

Table columns:

ColumnContent
SettingBacktick-quoted cmake.<name>
DescriptionPlain-English description
Default valueBacktick-quoted default
Supports substitutionyes if ${variable} expansion applies, otherwise no

Step 5 — Add a CHANGELOG entry

Add an entry under the current version in CHANGELOG.md, in the Features: or Improvements: section.


Verification checklist

  • [ ] package.json — setting declared with correct type, default, scope, and NLS key
  • [ ] package.nls.json — English string added
  • [ ] src/config.ts — interface property, emitter, and getter all added
  • [ ] docs/cmake-settings.md — table row added in alphabetical order
  • [ ] CHANGELOG.md — entry added
  • [ ] yarn compile succeeds (or npm run compile)
  • [ ] No files under i18n/ were modified

See also: [`.github/copilot-instructions.md`](../copilot-instructions.md) for project-wide conventions.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files. Certified 8 Jun 2026.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
1,677
Repository forks
527
7-day trend score
37

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

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
vskill CERTIFIED badge
[![vskill CERTIFIED](https://verified-skill.com/api/v1/skills/microsoft/vscode-cmake-tools/add-setting/badge)](https://verified-skill.com/skills/microsoft/vscode-cmake-tools/add-setting)

Something wrong with this skill or its page? Tell us.