openclaw-test-heap-leaks

Analyzes OpenClaw heap snapshots across workers to identify memory leaks in CI test lanes.

1|Updated Apr 23, 2026
One-click install
npx skills add https://github.com/karaabd23-crypto/openclaw --skill openclaw-test-heap-leaks-karaabd23-crypto
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: openclaw-test-heap-leaks
Source: https://github.com/karaabd23-crypto/openclaw/tree/main/.agents/skills/openclaw-test-heap-leaks
Command: npx skills add https://github.com/karaabd23-crypto/openclaw --skill openclaw-test-heap-leaks-karaabd23-crypto

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This skill helps teams reproduce and triage intermittent test memory growth in OpenClaw by collecting repeated .heapsnapshot files and comparing them across workers.

Core Features & Use Cases

  • Heap snapshot collection across test lanes
  • Delta analysis between before/after snapshots
  • Triage retained module vs runtime leaks using snapshot tooling

Quick Start

Run the workflow to reproduce a failing test shape and generate two snapshots for comparison.

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 in vitest using heap snapshots?

Diagnose memory leaks in vitest by collecting repeated .heapsnapshot files across test workers and comparing them to identify retained modules. This skill automates delta analysis between snapshots to distinguish transformed-module retention from actual runtime leaks.

What causes intermittent test memory growth in NodeJS CI lanes?

Intermittent test memory growth in NodeJS CI lanes is caused by either transformed-module retention or runtime leaks. Comparing repeated heap snapshots from the same PID triangulates the exact source of the memory growth across test workers.

How do I compare heap snapshots to find what is retaining memory?

Compare heap snapshots to find retained memory by running the heapsnapshot-delta tool to calculate actionable deltas between before and after states. This isolates whether transformed modules or runtime objects are causing the leak.

Do I need to manually trigger heap snapshot collection for CI diagnostics?

You do not need to manually trigger heap snapshot collection for CI diagnostics. The provided lane-based workflows automate the collection of .heapsnapshot files across workers during test execution to produce comparable deltas.

Can I use this to triage test performance issues in NodeJS workers?

You can use this to triage test performance issues in NodeJS workers by analyzing heap snapshot deltas. It pinpoints memory growth patterns across test lanes to help teams reproduce and resolve intermittent CI test failures.

What is the best way to distinguish transformed-module retention from runtime leaks?

The best way to distinguish transformed-module retention from runtime leaks is by triangulating repeated heap snapshots from the same PID. The delta analysis tool isolates retained module objects from actual runtime memory leaks.