Memory Leak Audit The #1 bug category in VS Code. This skill encodes the patterns that prevent and fix leaks. When to Use - Reviewing code that registers event listeners or DOM handlers - Fixing reported memory leaks (listener counts growing over time) - Creating objects in methods that are called repeatedly - Working with model lifecycle events (onWillDispose, onDidClose) - Adding event subscriptions in constructors or setup methods Audit Checklist Work through each check in order. A single missed pattern can cause thousands of leaked objects. Step 1: DOM Event Listeners Rule : Never use raw…