vscode: Skill for Claude Code

.github/skills/otel/SKILL.md

otel is a skill for Claude Code, Codex from microsoft/vscode. It costs 45 tokens per session (2,213 once invoked), scanned A, original, MIT.

A guide for adding OpenTelemetry monitoring to the Copilot Chat extension. OpenTelemetry is a standard way to record traces, measurements, and events so developers can inspect agent activity.

In plain words
What is it for?
Use it when adding or changing monitoring spans, metrics, events, the service that records them, agent instrumentation, or monitoring documentation.
Why use it?
It keeps the monitoring code and its user and developer documentation consistent across the extension’s four agent execution paths.

Skill for Claude CodeCodex ✓ vendor

Written for no agent in particular: nothing here depends on one. Also seen: mentions Codex.

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 →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is ./scripts/test.sh --grep "AgentHostOTel\|agent host.*OTel".

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 · 194,219 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/otel/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 otel

README.md
[![agentmods](https://agentmods.dev/badge/skills/microsoft/vscode/otel/github.svg)](https://agentmods.dev/skills/microsoft/vscode/otel)
Your own site
<a href="https://agentmods.dev/skills/microsoft/vscode/otel"><img src="https://agentmods.dev/badge/skills/microsoft/vscode/otel/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 otel

Your own site · 80×15
<a href="https://agentmods.dev/skills/microsoft/vscode/otel"><img src="https://agentmods.dev/badge/skills/microsoft/vscode/otel.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,213 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. Third-party audits
  • Snyk pass 6 Sept 2026
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium MCP Rug Pull · line 242
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
How audits are shown
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.00045 $0.02213
Opus 5.5 $0.00018 $0.00885
Sonnet 5.5 $0.00009 $0.00443
Haiku 4.5 $0.00005 $0.00221

Measured 1mo ago against content hash 6acc79f3864f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

otel 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 1mo 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/otel/SKILL.md · 200 lines

How it starts

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

OpenTelemetry in VS Code

Start by identifying the execution surface. VS Code has separate OTel pipelines with different owners and configuration:

Surface Process and producer Configuration Authoritative VS Code document
Agent Host sessions (Copilot, Claude, Codex) Provider-native telemetry routed by the Agent Host utility process chat.agentHost.otel.* src/vs/platform/agentHost/OTEL.md
Local Copilot Chat Copilot Chat extension host and IOTelService github.copilot.chat.otel.* extensions/copilot/docs/monitoring/agent_monitoring.md

Do not combine these pipelines or assume that a setting for one configures another.

Current architecture

Agent Host is the current execution architecture for Copilot, Claude, and Codex agent sessions. It owns routing, optional trace interception and SQLite persistence, resource normalization, and cross-provider trace context. Each provider owns its native instrumentation.

The extension-host Copilot CLI source remains as a fallback when Agent Host is unavailable and to support legacy-session migration. It is normally hidden when Agent Host is available and is not the current Agent Host architecture. Do not use it as a model for new work.

Local Copilot Chat remains a separate user-visible extension-host surface. Its foreground chat, LLM, tool, hook, metric, and event instrumentation continues to use IOTelService under extensions/copilot/src/platform/otel/.

Runtime version discipline

Copilot's native OTel signal contract lives in github/copilot-agent-runtime, not in VS Code's TypeScript attribute constants. Before auditing or changing the integration:

  1. Read the versions of @github/copilot-sdk and @github/copilot from the root package-lock.json.
  2. Resolve the matching immutable runtime tag and commit.
  3. Read the runtime monitoring reference and implementation at that revision.
  4. Use runtime main only after confirming that the relevant files are unchanged from the bundled revision.

Read the full file on GitHub · 200 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. 1mo ago Changed · -73 lines · -49 tokens per session 6acc79f3864f
  2. 1mo ago First seen · 273 lines · 94 tokens per session scan A 329eb0f5a1c3

Subscribe to this mod's changes

otel is a skill published in the GitHub repository microsoft/vscode (194,219 stars, last pushed today), licensed MIT. It adds 45 tokens to every session and 2,213 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-08-30.

Related

Other skills, from other repositories