Skip to content
SkilVault
Sign inGet started

disposal-lifecycle-audit

Testing & Quality
Signed by SkilVault

Audits TypeScript code that subscribes to events or attaches DOM handlers and rewrites each leak-prone site into a lifetime-scoped form across six routes: self-removing once subscriptions, replaceable single-slot holders for repeatable methods, owner-tracked DOM listeners, stores that close themselves when their model ends, item-scoped disposal for factory-made pooled objects, and leak guards in test suites, then verifies each fix with direct listener counts, lifecycle-balance tallies and object-level retention evidence. Use when reviewing code that attaches handlers or subscribes to events, when registrations recur in methods that run many times, when resources must end with a model, widget or pooled item, or when listener counts grow with usage. Not for deep heap-snapshot analysis, garbage-collector tuning, or projects lacking a disposable utility contract.

Version
v1.0.0
Size
17 KB
Updated
2026-10-13
$ skilvault read --manual disposal-lifecycle-audit

Your client verifies the signature before reading. This explicit manual read is available on every plan. Free automatically loads five chosen skills; paid plans automatically load relevant skills across the library.