vscode: Skill for Claude Code

.github/skills/cpu-profile-analysis/SKILL.md

cpu-profile-analysis is a skill for Claude Code, Codex from microsoft/vscode. It costs 71 tokens per session (5,847 once invoked), scanned A, original, MIT.

A guide for reading V8 CPU profile files and Chrome or Electron performance trace files. These files record where an application spends time, including function calls and rendering events.

In plain words
What is it for?
Use it to compare before-and-after performance, find functions that consume the most time, and examine timing data such as time to request. It can also explain activity across browser, renderer, and GPU processes.
Why use it?
It helps locate slow code and understand why one implementation or code path takes longer than another. It also helps investigate long tasks, layout problems, painting, and rendering delays.

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 · 193,839 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/cpu-profile-analysis/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 cpu-profile-analysis

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/microsoft/vscode/cpu-profile-analysis"><img src="https://agentmods.dev/badge/skills/microsoft/vscode/cpu-profile-analysis.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 71 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,847 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 pass 7 Sept 2026
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.00071 $0.05847
Opus 5.5 $0.00028 $0.02339
Sonnet 5.5 $0.00014 $0.01169
Haiku 4.5 $0.00007 $0.00585

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

Security

Grade A, and why

cpu-profile-analysis 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/cpu-profile-analysis/SKILL.md · 518 lines

How it starts

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

Analyze Performance Profiles

Analyze .cpuprofile files (V8 sampling profiler) and DevTools trace files (Trace-*.json, Chrome Trace Event Format) to find performance bottlenecks, compare code paths, and understand timing.

When to Use

  • User provides a .cpuprofile or Trace-*.json file and wants to understand performance
  • Investigating why one code path is slower than another
  • Finding what functions consume the most time
  • Comparing "before/after" or "old/new" implementations in a single profile
  • Investigating layout thrashing, long tasks, or rendering bottlenecks (trace files)
  • Analyzing VS Code user timing marks like code/didResolveTextFileEditorModel (trace files)
  • Understanding multi-process behavior (Browser, Renderer, GPU processes in trace files)

Detecting File Type

  • .cpuprofile: Top-level JSON with nodes, samples, timeDeltas keys. Created by the VS Code profiler.
  • Trace-*.json: Top-level JSON with traceEvents array (and optional metadata). Created by Chrome/Electron DevTools (Performance tab). These are richer than .cpuprofile -- they contain CPU samples, layout/paint events, user timing marks, GC events, input events, and multi-process data.

Key Concepts

  • Sampling profiler: The profiler periodically snapshots the call stack. Not every function appears -- only those on the stack when the profiler sampled. Don't expect exact function names; look for patterns and nearby activity.
  • Self time: Time spent in the function itself (the leaf/innermost frame).
  • Total time: Time the function was anywhere on the stack (includes callees).
  • Idle samples: Frames labeled (idle), (program), or (garbage collector) represent no user code running.

Part 1: .cpuprofile Files

Profile Format

A .cpuprofile is JSON with these top-level keys:

  • nodes: Array of call frame nodes forming a tree (each has id, callFrame, children)
  • samples: Array of node IDs -- one per profiler tick, referencing the leaf (innermost) frame
  • timeDeltas: Array of microsecond deltas between consecutive samples
  • startTime / endTime: Absolute timestamps in microseconds
  • $vscode: Optional VS Code metadata

Read the full file on GitHub · 518 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 First seen · 518 lines · 71 tokens per session scan A 73e7d3ba6ff8

Subscribe to this mod's changes

cpu-profile-analysis is a skill published in the GitHub repository microsoft/vscode (193,839 stars, last pushed today), licensed MIT. It adds 71 tokens to every session and 5,847 once invoked, about $0.0003 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