openclaw-test-heap-leaks

Analyze heap snapshot deltas to detect memory leaks in Node.js test environments.

Updated Jun 18, 2026
One-click install
npx skills add https://github.com/wangqianCAI/OBI --skill openclaw-test-heap-leaks-wangqiancai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: openclaw-test-heap-leaks
Source: https://github.com/wangqianCAI/OBI/tree/main/.agents/skills/openclaw-test-heap-leaks
Command: npx skills add https://github.com/wangqianCAI/OBI --skill openclaw-test-heap-leaks-wangqiancai

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This skill addresses memory growth issues, Out-Of-Memory (OOM) errors, and Resident Set Size (RSS) spikes during test execution by providing a structured methodology for heap snapshot analysis.

Core Features & Use Cases

  • Heap Snapshot Comparison: Automatically identifies memory deltas between snapshots to pinpoint retained objects.
  • Leak Classification: Distinguishes between retained module-transform artifacts in shared workers and actual application-level memory leaks.
  • Validation Harness: Includes a dedicated harness to verify runtime fixes for closure leaks and state retention.

Quick Start

Use the openclaw-test-heap-leaks skill to compare heap snapshots from the latest test run and identify the dominant retained object families.

Frequently Asked Questions about openclaw-test-heap-leaks

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I diagnose memory leaks causing OOM errors in Node.js test workers?

To diagnose memory leaks, the Skill analyzes heap snapshot deltas and retainer chains to pinpoint retained objects in long-running Node.js test workers. It specifically targets runtime closure leaks to optimize memory footprint and stability.

What is the best way to compare heap snapshots for memory growth during test execution?

The best way to compare heap snapshots is by automatically identifying memory deltas between them to pinpoint retained object families. This process distinguishes between actual application-level memory leaks and retained module-transform artifacts in shared workers.

How do I validate fixes for closure leaks and state retention in my test environment?

You validate fixes using a dedicated validation harness that verifies runtime cleanup patterns for closure leaks and state retention. This ensures your memory footprint optimizations remain stable across test runs.

Do I need a Node.js runtime to analyze heap snapshot deltas and retainer chains?

Yes, you need a Node.js runtime environment. The Skill requires Node.js to execute its snapshot comparison scripts and validate memory cleanup patterns effectively.

Why does Resident Set Size spike in my test environment and how can I resolve it?

Resident Set Size spikes occur due to memory growth and retained module-transform artifacts in shared workers. The Skill resolves this by analyzing heap snapshot deltas to classify leaks and target runtime closure leaks.

Can I distinguish between actual application memory leaks and test worker artifacts?

Yes, the Skill features leak classification that distinguishes between retained module-transform artifacts in shared workers and actual application-level memory leaks. This prevents false positives during heap snapshot analysis.