·memory-leak-audit
</>

memory-leak-audit

Audit code for memory leaks and disposable issues. Use when reviewing event listeners, DOM handlers, lifecycle callbacks, or fixing leak reports. Covers addDisposableListener, Event.once, MutableDisposable, DisposableStore, and onWillDispose patterns.

64Installs·1Trend·@microsoft

Installation

$npx skills add https://github.com/microsoft/vscode --skill memory-leak-audit

How to Install memory-leak-audit

Quickly install memory-leak-audit AI skill to your development environment via command line

  1. Open Terminal: Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.)
  2. Run Installation Command: Copy and run this command: npx skills add https://github.com/microsoft/vscode --skill memory-leak-audit
  3. Verify Installation: Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code, Cursor, or OpenClaw

Source: microsoft/vscode.

SKILL.md

View raw

The #1 bug category in VS Code. This skill encodes the patterns that prevent and fix leaks.

Work through each check in order. A single missed pattern can cause thousands of leaked objects.

Rule: Never use raw .onload, .onclick, or addEventListener() directly. Always use addDisposableListener().

Audit code for memory leaks and disposable issues. Use when reviewing event listeners, DOM handlers, lifecycle callbacks, or fixing leak reports. Covers addDisposableListener, Event.once, MutableDisposable, DisposableStore, and onWillDispose patterns. Source: microsoft/vscode.

Facts (cite-ready)

Stable fields and commands for AI/search citations.

Install command
npx skills add https://github.com/microsoft/vscode --skill memory-leak-audit
Category
</>Dev Tools
Verified
First Seen
2026-02-25
Updated
2026-03-10

Browse more skills from microsoft/vscode

Quick answers

What is memory-leak-audit?

Audit code for memory leaks and disposable issues. Use when reviewing event listeners, DOM handlers, lifecycle callbacks, or fixing leak reports. Covers addDisposableListener, Event.once, MutableDisposable, DisposableStore, and onWillDispose patterns. Source: microsoft/vscode.

How do I install memory-leak-audit?

Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.) Copy and run this command: npx skills add https://github.com/microsoft/vscode --skill memory-leak-audit Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code, Cursor, or OpenClaw

Where is the source repository?

https://github.com/microsoft/vscode