auto-perf-optimize

Installation
SKILL.md

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

  1. 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.
  2. Develop the automation. Start with a tiny no-snapshot run. If it fails or the UI state is uncertain, keep the Code window open, connect @playwright/cli to the same CDP port, take workspace-local screenshots, inspect snapshots, and update the runner's selectors/waits.
  3. Run a fast smoke. Disable heap snapshots first. Prove the scenario completes and the artifact summary says what you think it says.
Related skills

More from microsoft/vscode

Installs
48
GitHub Stars
184.8K
First Seen
Apr 11, 2026