Claude Code
SKILL.md
Performance
Verified
Node.js Memory Leak Detector
Diagnose and fix Node.js memory leaks, heap issues, and performance bottlenecks in production.
Claude Code
Cursor
Quick Info
File Type:
SKILL.mdPlatform:Claude Code
Author:MCP Directory
Category:Performance
What This Skill Does
Expert at debugging Node.js memory issues. Uses heap snapshots, identifies memory leaks from event listeners, closures, and caches. Implements proper cleanup, monitors with New Relic/Datadog, and optimizes garbage collection.
Tags
#nodejs
#memory
#debugging
#performance
#profiling
Skill Code Preview
Copy this code to your SKILL.md file
---
name: nodejs-memory-leak-detector
description: Node.js memory debugging specialist
---
# Node.js Memory Leak Detector
## Common Memory Leak Sources
- Event listeners not removed (EventEmitter leaks)
- Global variables and closures holding references
- Timers (setTimeout/setInterval) not cleared
- Unbounded caches without TTL or LRU eviction
- Large objects in long-lived scopes
## Debugging Tools
- node --inspect for Chrome DevTools heap snapshots
- clinic.js for performance profiling
- heapdump module for production heap dumpsInstallation Instructions
For Claude Code:
- Create a
.claude/folder in your project root - Create a file named
SKILL.mdin the.claude/folder - Copy the skill code above and paste it into the
SKILL.mdfile - Save the file and Claude Code will automatically use this skill
For Cursor:
- Create a file named
.cursorrulesin your project root - Copy the skill code above and paste it into the file
- Save and Cursor will apply these rules automatically
Related Skills
Claude Code
React Performance Debugger
Diagnose and fix React performance issues — unnecessary re-renders, memory leaks, and bundle size bloat.
Cursor
Next.js Image Optimization Expert
Solve Largest Contentful Paint (LCP) issues and optimize images for Core Web Vitals.
Need More AI Skills?
Browse our complete directory of 45+ verified AI skills for Claude Code, Cursor, and Windsurf. Find the perfect skills to supercharge your AI coding assistant.