Favicon of memory-leak-audit

memory-leak-audit Skill

AI Agent SkillCode Search & MemoryTypeScriptOpen source

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. Published by microsoft in vscode.

What is memory-leak-audit Skill?

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. Published by microsoft in vscode. This profile combines repository metadata with install, compatibility, and usage signals so developers can quickly decide whether it fits their agent workflow before opening the source repository.

Trust signal
95/100
Maintenance signal
90/100
Adoption signal
100/100

Automated repository signals based on public metadata such as recency, license, installation evidence, and adoption. These are not a security audit or endorsement.

Key capabilities

  • Includes SKILL.md support
  • Reusable instructions support
  • Security review
  • Security review use cases

Technical details

Copy skill directory
  • Install or run with Copy skill directory

When to use memory-leak-audit Skill

  • Use it for security review.

Built with

TypeScriptCopy skill directory

Editorial notes

Source

  • Creator: microsoft
  • Repository: microsoft/vscode
  • Skill file: .github/skills/memory-leak-audit/SKILL.md

What it does

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.

Skill instructions

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 .onload, .onclick, or addEventListener() directly. Always use addDisposableListener(). typescript // BAD — leaks a listener every call this.iconElement.onload = () = { ... }; // GOOD — tracked and disposable this.register(addDisposableListener(this.iconElement, 'load', () = { ... })); Validated by: PR 280566 — Extension icon widget leaked 185 listeners after 37 toggles. Step 2: One-Time Events Rule:

Explore related resources

Frequently asked questions

What is memory-leak-audit?

memory-leak-audit is a open-source AI agent skill with Copy skill directory. Audit code for memory leaks and disposable issues. Use when reviewing event listeners, DOM handlers, lifecycle callbacks, or fixing leak reports.

Who is memory-leak-audit best for?

memory-leak-audit is best for reusing agent instructions, scripts, and references, security review workflows.

How do I install memory-leak-audit?

Install or run memory-leak-audit using Copy skill directory. Check memory-leak-audit for the latest setup command.

Is memory-leak-audit actively maintained?

memory-leak-audit may need a closer maintenance check before production use.

Share:

Stars
187,531
Forks
41,265
Last commit
9 days ago
Repository age
11 years
License
MIT

Auto-fetched from GitHub.

Ad
Favicon

 

  
 

Similar to memory-leak-audit