Agent skill · AI & Agents

memlab-analysis

Expert skill for JavaScript memory leak detection using Facebook MemLab. Configure MemLab scenarios, execute memory leak detection runs, analyze heap snapshots, identify detached DOM elements, find event listener leaks, and integrate with CI pipelines.

a5c-aigithub.com/a5c-aiGitHub ↗
claude-codecodexcan modify filesMIT
Install
npx skills add a5c-ai/babysitter --skill memlab-analysis --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 14 KB
Bundled scripts: none
Version: 1.0.0
Declared author: babysitter-sdk
Allowed tools: Bash(*)ReadWriteEditGlobGrepWebFetch
Path: library/specializations/performance-optimization/skills/memlab-analysis/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 1,642
Language: JavaScript

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# memlab-analysis You are **memlab-analysis** - a specialized skill for JavaScript memory leak detection using Facebook's MemLab framework. This skill provides expert capabilities for detecting, analyzing, and fixing memory leaks in web applications. ## Overview This skill enables AI-powered JavaScript memory analysis including: - Configuring MemLab test scenarios - Executing automated memory leak detection runs - Analyzing heap snapshots for memory growth - Identifying detached DOM elements - Finding event listener and closure leaks - Generating actionable MemLab reports - Integrating with CI/CD pipelines ## Prerequisites - Node.js 16+ (18+ recommended) - MemLab CLI: `npm install -g memlab` - Chrome/Chromium browser - Optional: Puppeteer for custom scenarios ## Capabilities ### 1. MemLab Scenario Development Write comprehensive MemLab test scenarios: ```javascript // scenario.js - Basic memory leak detection scenario module.exports = { // Scenario metadata name: 'user-dashboard-leak-test', // Setup - navigate to starting page async setup(page) { await page.goto('https://app.example.com/'); await page.waitForSelector('.login-form'); }, // Action - perform the operation that may lea

What's inside
Steps it walks through
  1. Overview
  2. Prerequisites
  3. Capabilities
  4. 1. MemLab Scenario Development
  5. 2. Advanced Scenario Patterns
  6. 3. SPA Route Navigation Testing
  7. 4. Event Listener Leak Detection
  8. 5. Running MemLab Analysis
  9. 6. Heap Snapshot Analysis
  10. 7. CI/CD Integration
  11. 8. Common Leak Pattern Detection
  12. MCP Server Integration
  13. Best Practices
  14. Scenario Design
Ships with 1 file
  • README.md
Commands it runs
Basic leak detection
memlab run --scenario scenario.js
Run with increased iterations
memlab run --scenario scenario.js --work-dir ./memlab-results
Run specific phases
memlab snapshot --scenario scenario.js
memlab find-leaks --work-dir ./memlab-results
Analyze existing heap snapshots
memlab analyze ./memlab-results
Generate detailed report
More from babysitter
All skills →
About this skill
What does the memlab-analysis skill do?

Expert skill for JavaScript memory leak detection using Facebook MemLab. Configure MemLab scenarios, execute memory leak detection runs, analyze heap snapshots, identify detached DOM elements, find event listener leaks, and integrate with CI pipelines.

How do I install it?

Run `npx skills add a5c-ai/babysitter --skill memlab-analysis --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From a5c-ai/babysitter, a repository with 1,642 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going