enclawed-test-heap-leaks
CommunityFind and fix test memory leaks fast
Authorenclawed
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill helps diagnose test-suite memory growth, Vitest worker out-of-memory failures, and suspicious RSS increases in Enclawed so you can tell the difference between a real leak and retained worker-lifetime state.
Core Features & Use Cases
- Heap snapshot triage: Compare repeated .heapsnapshot files from the same worker PID to identify what is growing over time.
- Leak classification: Separate retained transformed-module growth from runtime-object leaks, cleanup bugs, timers, listeners, and other lifecycle issues.
- Targeted remediation: Use the results to patch cleanup logic, isolate hotspot tests, or adjust lane scheduling and worker placement.
- Use case: A pnpm test run starts OOMing in CI, and this Skill guides the reproduction command, snapshot comparison, and fix path with evidence instead of guesswork.
Quick Start
Ask the assistant to reproduce the failing test lane with heap snapshots enabled, compare repeated snapshots from the same PID, and summarize whether the growth is likely a real leak or shared-worker module retention.
Dependency Matrix
Required Modules
None requiredComponents
scripts
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: enclawed-test-heap-leaks Download link: https://github.com/enclawed/enclawed-oss/archive/main.zip#enclawed-test-heap-leaks Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 536,000+ vetted skills library on demand.