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.
npx skills add a5c-ai/babysitter --skill memlab-analysis --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# 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
- Overview
- Prerequisites
- Capabilities
- 1. MemLab Scenario Development
- 2. Advanced Scenario Patterns
- 3. SPA Route Navigation Testing
- 4. Event Listener Leak Detection
- 5. Running MemLab Analysis
- 6. Heap Snapshot Analysis
- 7. CI/CD Integration
- 8. Common Leak Pattern Detection
- MCP Server Integration
- Best Practices
- Scenario Design
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
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.
