detect-ssr-leak
Skill by cabloy
Detect server-side memory leaks in Node.js SSR services using a three-phase approach. Intended for developers diagnosing growing memory usage on SSR servers, especially Vue or React rendering.
Install detect-ssr-leak
Built from the published package, never by AI.
git clone --depth 1 https://github.com/cabloy/cabloy /tmp/cabloy && mkdir -p ~/.claude/skills && cp -r /tmp/cabloy/vona/.claude/skills/detect-ssr-leak ~/.claude/skills/detect-ssr-leakRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/cabloy/cabloy /tmp/cabloy && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/cabloy/vona/.claude/skills/detect-ssr-leak ~/.gemini/antigravity-cli/skills/detect-ssr-leakAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill guides an AI assistant through detecting memory leaks in Node.js server-side rendering services. It works in three phases. Phase 1 monitors process RSS from outside the process with a template script and no code changes. Phase 2 adds a temporary diagnostic controller that reads process.memoryUsage() and v8.getHeapStatistics(), forces GC, and can write a heap snapshot. Phase 3 uses the Chrome DevTools Protocol to take and compare heap snapshots and identify the object types that grow.
The skill also lists common SSR leak causes, such as Vue app instances that are not unmounted, unbounded caches and closures that capture request context. It describes cluster mode handling and a report format for results. It is aimed at developers who suspect a memory leak in a Node.js SSR server, such as a Koa or Express app.
Written from the project's SKILL.md and checked against it.
What it can do
- External RSS monitoringScreens for a leak by monitoring worker process RSS from outside, with no code changes.
- Inline heap instrumentationAdds a temporary diagnostic controller that reports heap stats and forces GC.
- CDP heap snapshot comparisonTakes baseline and post-load heap snapshots over the Chrome DevTools Protocol and compares object types.
- Leak pattern guidanceMaps object, closure, string and array growth to common SSR leak causes.
- Cluster mode handlingSuggests single worker mode for clean measurements or per-PID tracking.
What you need
- Node.js
- A running Node.js SSR server such as Koa or Express
- Target URL of the page to test
- Controller module to host the diagnostic endpoint (Phase 2)
Try asking
- Check my SSR server at http://localhost:7102/login for a memory leak
- Run the RSS monitoring phase on my Node.js worker processes
- Compare heap snapshots to find which object types are growing
Good to know
- Phase 2 requires adding a temporary diagnostic controller to the codebase.
- Phase 3 requires restarting the server with inspector enabled via SIGUSR1.
- Cluster mode can distribute requests across workers, so single worker mode is recommended for clean measurements.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: vona/.claude/skills/detect-ssr-leak/SKILL.md, vona/.claude/skills/detect-ssr-leak/scripts/cdp-heap-analyze.mjs, vona/.claude/skills/detect-ssr-leak/scripts/external-monitor.mjs, vona/.claude/skills/detect-ssr-leak/scripts/inline-heap.mjs, vona/.claude/skills/detect-ssr-leak/templates/memoryDiag.ts. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
Allowed tools: Bash(fetch *) Bash(curl *) Bash(ps *) Bash(node *) Bash(npm *) Bash(npx *) Bash(pkill *) Bash(kill *) Bash(lsof *) Bash(wc *) Bash(ls *) Bash(rm *) Bash(cat *) Bash(mkdir *) Bash(cp *) Bash(sleep *)
-
SKILL.md7 KB -
scripts/cdp-heap-analyze.mjs10 KB -
scripts/external-monitor.mjs4 KB -
scripts/inline-heap.mjs7 KB -
templates/memoryDiag.ts2 KB
Alternatives to detect-ssr-leak
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
detect-ssr-leak: common questions
What does detect-ssr-leak check?
It checks Node.js SSR services for memory leaks, using RSS monitoring, heap statistics and CDP heap snapshot comparison. The source says it also covers Vue and React server-side rendering.
Does it change my production code?
Phase 1 requires no code changes. Phase 2 adds a temporary ControllerMemoryDiag controller, which the source says should be removed after analysis.
Which leak causes does it look for?
The source lists Vue app instances not unmounted, dynamic import with cache-busting nonce, closures capturing request context, unbounded caches and event listener accumulation.
How do I install detect-ssr-leak?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is detect-ssr-leak free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is detect-ssr-leak safe to use?
It scores 81 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to detect-ssr-leak?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
