vscode: Skill for Claude Code

.github/skills/experiments/SKILL.md

experiments is a skill for Claude Code, Codex from microsoft/vscode. It costs 54 tokens per session (1,870 once invoked), scanned A, original, MIT.

A guide for adding and reviewing A/B experiments in VS Code. An A/B experiment compares different behaviours or settings with different groups of users.

In plain words
What is it for?
Use it to control settings by experiment, read treatment values, test assignments locally, and log trigger events for experiment scorecards.
Why use it?
It helps ensure assignments have fallbacks and that results are logged only when users reach the behaviour being measured. This avoids misleading experiment results from unaffected users.

Skill for Claude CodeCodex ✓ vendor

Written for no agent in particular: nothing here depends on one.

This is microsoft/vscode's own configuration. It tells Claude Code and Codex how to work on vscode itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything vscode configures →

About the project

Visual Studio Code is a code editor that supports editing, navigating, understanding, debugging, and extending software projects. Developers use it for the edit-build-debug cycle, and the catalogue add-ons provide skills, instructions, and agents for working within the editor.

microsoft/vscode · 195,911 stars · on GitHub · code.visualstudio.com

Reuse

Borrowing it

Nothing to install: this file belongs to microsoft/vscode. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/microsoft/vscode/main/.github/skills/experiments/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/microsoft/vscode

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for experiments

README.md
[![agentmods](https://agentmods.dev/badge/skills/microsoft/vscode/experiments/github.svg)](https://agentmods.dev/skills/microsoft/vscode/experiments)
Your own site
<a href="https://agentmods.dev/skills/microsoft/vscode/experiments"><img src="https://agentmods.dev/badge/skills/microsoft/vscode/experiments/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for experiments

Your own site · 80×15
<a href="https://agentmods.dev/skills/microsoft/vscode/experiments"><img src="https://agentmods.dev/badge/skills/microsoft/vscode/experiments.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,870 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00054 $0.01870
Opus 5.5 $0.00022 $0.00748
Sonnet 5.5 $0.00011 $0.00374
Haiku 4.5 $0.00005 $0.00187

Measured 19d ago against content hash 0e76dd5bbb73, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

experiments scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 19d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.github/skills/experiments/SKILL.md · 82 lines

How it starts

The opening of the file, as written. The whole thing — 82 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Experiments

Controlling behavior

  • Experiment-controlled setting: add experiment: { mode: 'auto' } to the setting's schema, or mode: 'startup' to only pick up changed assignments on startup. ExP then sets the setting's default through the treatment config.<setting id> (or experiment.name), and code reads the setting with IConfigurationService as usual. Values that users set themselves still win. Use this when users could reasonably choose the behavior themselves.
  • Keyed object setting: treatments can't be objects, so to let separate experiments control separate keys of an object setting, such as one experiment per extension, add keyed: true to its experiment. ExP then sets each key's default through the treatment config.<setting id>.<key>, and the mode applies to each key separately. Treatments can't be enumerated, so a key is only resolved once code requests it with IExperimentalSettingsService.requestKeys. Values that users set for a key still win.
  • Treatment: read a value with IWorkbenchAssignmentService.getTreatment<T>(name). It resolves to undefined without an assignment, so keep a fallback, and read it again on onDidRefetchAssignments. Use this for values that are not user preferences, such as copy or variant names.

To try an assignment locally, set experiments.override.<treatment name> in your user settings, for example "experiments.override.config.chat.mySetting.enabled": true.

Assignment routing

Initialize the core TAS client, cached treatments, and legacy fetching immediately; only new-TAS routing waits for account discovery. A known account can be routed before account initialization completes, but a null account is ambiguous until then. Rebuild the client for an account change only when the old or new routing uses a new-TAS endpoint. Confirmed signed-out sessions, including those configured for GitHub Enterprise/GHES, start with https://exp.enterprise.githubcopilot.com, then https://exp.business.githubcopilot.com, then https://exp.individual.githubcopilot.com (each with /api/v1/assignments). These device-only requests overlap only during discovery: launch the next host after 1 second without a valid result, or sooner on a network error, non-success HTTP status, or invalid assignments response. Try each host at most once per fetch, with a single 5-second deadline for the entire discovery. The first valid response wins (including empty assignments); cancel outstanding requests and pending launches. Remember the winning host for the window and try it first on subsequent refreshes without time-based hedging; it fails over only on an error. If the remembered host times out, forget it so the next fetch rediscovers with hedging. If all fail or the deadline expires, reject the provider fetch and retry on the existing refresh schedule. Because tas-client waits for all providers, discovery can delay treatment reads that miss the cache by up to the deadline. Cancellation of a pending request depends on the transport; with the default Copilot Node https fetcher, an unanswered losing request can stay open until its socket times out, but its result is ignored. Signed-in accounts never cycle: explicit exp remains authoritative, and only confirmed public individual accounts without exp use Individual. Signed-in Business, Enterprise, GHE/GHES, and accounts with unknown plans require explicit exp; core relies on account-provider updates and its staleness-aware polling, without forcing entitlement requests from assignment refreshes. Copilot re-evaluates routing and both legacy/new targeting on auth/token-data updates, including metadata changes with an unchanged bearer token. The existing token-string event retains its original semantics. Never infer sign-out from a missing token, retain account filters across sign-out, or send cached account identity during anonymous discovery. New assignments still merge with legacy TAS during the transition; legacy is not the routing solution for a missing managed-account endpoint.

Read the full file on GitHub · 82 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 19d ago Changed · +8 lines 0e76dd5bbb73
  2. 21d ago Changed · +2 lines 7fc43ac8dcff
  3. 25d ago Changed fcffbdd5f319
  4. 27d ago Changed · +4 lines 9ae559d5b7b8
  5. 2mo ago First seen · 68 lines · 54 tokens per session scan A 725bacfce279

Subscribe to this mod's changes

experiments is a skill published in the GitHub repository microsoft/vscode (195,911 stars, last pushed today), licensed MIT. It adds 54 tokens to every session and 1,870 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-27.

Related

experiments compared with skills from other repositories

experiments next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
experimentsmicrosoft/vscodeSkill196ktodayMITA54Claude Code, Codex
cyrene-plan-modePlaya-0v0/Cyrene-AgentSkill8119d agoMITA37Claude Code, Codex
cyrene-plugin-devPlaya-0v0/Cyrene-AgentSkill8119d agoMITA61Claude Code, Codex
cyrene-exam-paperPlaya-0v0/Cyrene-AgentSkill8119d agoMITA64Claude Code, Codex
cyrene-obsidian-workspacePlaya-0v0/Cyrene-AgentSkill8119d agoMITA42Claude Code, Codex
cyrene-work-hygienePlaya-0v0/Cyrene-AgentSkill8119d agoMITA56Claude Code, Codex
cyrene-diagramPlaya-0v0/Cyrene-AgentSkill8119d agoMITA50Claude Code, Codex