本文へスキップ
Kitbay
スキル

openclaw-test-heap-leaks

MIT2026年11月11日 更新394,329GitHubスタースクリプトあり

A maintainer skill in the OpenClaw repository for finding why the project's pnpm and Vitest test runs grow in memory or run out of it.

スキルの内容

A maintainer skill in the OpenClaw repository for finding why the project's pnpm and Vitest test runs grow in memory or run out of it. The agent reproduces the failing run with the same entry point and worker count, gathers heap profiles or snapshots, and compares snapshots from the same process with a bundled delta script. It then sorts growth into module graphs kept alive by long-lived workers versus real leaks in caches, timers, handles or mocks, fixes the matching layer, and reruns the same command to check the result. A separate harness checks fixes to a runtime leak. Its report gives the command, the objects retained and what was or was not confirmed.

できること

  • Reproduce test-run memory growth
  • Compare heap snapshots from one process
  • Tell module retention from real leaks
  • Verify a leak fix with the same command