What problem does it solve?
This Skill eliminates guesswork when debugging unexplained memory growth and out-of-memory (OOM) errors during Brikko Studio pnpm test runs, providing a structured workflow to identify root causes instead of relying on RSS estimates alone.
Core Features & Use Cases
- Heap Snapshot Triage: Compares before/after heap snapshots to classify memory growth as retained module graph bloat or real runtime object leaks.
- Lane-Specific Analysis: Targets specific Vitest test lanes and PIDs to avoid noise from unrelated test workers.
- Runtime Leak Validation: Includes a dedicated harness to confirm that closure or lifecycle fixes actually release captured state.
Use Case: If your unit-fast test lane OOMs after repeated runs, use this Skill to compare heap snapshots across intervals to determine if the growth comes from retained Vite transformed modules or uncleaned test state like unreleased DB handles or lingering timers.
Quick Start
Use the brikko-studio-test-heap-leaks skill to investigate the OOM errors in your latest pnpm test run by comparing heap snapshots from the failing test lane to identify the root cause of memory growth.