# auto-perf-optimize

> Claude/Codex skill by [@microsoft](https://omgskills.com/library/microsoft/index.md) · 190k stars · Updated 2026-08-31

Run agent-driven VS Code performance or memory investigations. Use when asked to launch Code OSS, automate a VS Code scenario, run the Chat memory smoke runner, capture renderer heap snapshots, take workflow screenshots, compare run summaries, or drive a repeatable scenario before heap-snapshot analysis.

Tags: editor, electron, microsoft, typescript, visual-studio-code

## Install

```sh
git clone https://github.com/microsoft/vscode /tmp/vscode && ln -s /tmp/vscode/.github/skills/auto-perf-optimize ~/.claude/skills/auto-perf-optimize
```

## From README

VS Code Performance Workflow Drive a repeatable VS Code scenario, collect memory/performance artifacts, verify that the scenario actually happened, then hand the resulting heap snapshots to the generic heap-snapshot-analysis skill when object-level investigation is needed. When to Use User describes a VS Code workflow and asks whether it leaks or grows memory User asks the agent to launch VS Code, drive a scenario, and capture heap snapshots User asks to run the Chat memory smoke runner bundled with this skill User wants screenshots, summary.json, renderer heap samples, and targeted .heapsnapshot files for one scenario User wants a new automation runner for a non-Chat VS Code scenario Do not use this skill when snapshots already exist and the user only wants heap object/retainer analysis. Use heap-snapshot-analysis directly. The Story Define the scenario. Write down one warmup action, one repeatable iteration, and one quiescent point where it is fair to force GC and sample memory.

## Links

- HTML page: https://omgskills.com/skills/microsoft/vscode/auto-perf-optimize/
- GitHub: https://github.com/microsoft/vscode
- Author: [@microsoft](https://omgskills.com/library/microsoft/index.md)

## More from this repo

- [update-codex-sdk](https://omgskills.com/skills/microsoft/vscode/dot-agents/skills/update-codex-sdk/index.md) — Used to update VS Code's bundled @openai/codex dependency to a version available from the private VS Code npm feed,...
   - [@microsoft](https://omgskills.com/library/microsoft/index.md) · 192k stars
- [agent-host-logs](https://omgskills.com/skills/microsoft/vscode/agent-host-logs/index.md) — Used to analyze Agent Host debug log exports.
   - [@microsoft](https://omgskills.com/library/microsoft/index.md) · 191k stars
- [accessibility](https://omgskills.com/skills/microsoft/vscode/accessibility/index.md) — Primary accessibility skill for VS Code.
   - [@microsoft](https://omgskills.com/library/microsoft/index.md) · 190k stars
