Token导航 LogoToken导航TokenDH.com
研究检索只读github未标认证来源可访问许可证需确认审计提醒

detecting-memory-leaks检测内存泄漏

Agent Skill

detecting-memory-leaks 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

824

周安装

33

GitHub Stars

2,123

下载量

267
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:detecting-memory-leaks(检测内存泄漏)
来源仓库:https://github.com/jeremylongshore/claude-code-plugins-plus-skills
仓库路径:skills/detecting-memory-leaks
安装命令:
npx skills add https://github.com/jeremylongshore/claude-code-plugins-plus-skills --skill detecting-memory-leaks
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/jeremylongshore/claude-code-plugins-plus-skills --skill detecting-memory-leaks

简介

用于诊断 Node.js、Python 和 JVM 应用的内存泄漏问题。

  • 适用于长时间运行服务的稳定性优化与性能调优。
  • 分析事件监听器、闭包引用与缓存未释放等常见泄漏模式。
  • 需提供应用运行时环境访问权限,支持 heap dump 分析。
  • detecting-memory-leaks 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Memory Leak Detector

Detect and diagnose memory leaks in Node.js, Python, and JVM applications by analyzing event listeners, closures, unbounded caches, and retained references.

Overview

This skill helps you identify and resolve memory leaks in your code. By analyzing your code for common memory leak patterns, it can help you improve the performance and stability of your application.

How It Works

  1. Initiate Analysis: The user requests memory leak detection.
  2. Code Analysis: The plugin analyzes the codebase for potential memory leak patterns.
  3. Report Generation: The plugin generates a report detailing potential memory leaks and recommended fixes.

When to Use This Skill

This skill activates when you need to:

  • Detect potential memory leaks in your application.
  • Analyze memory usage patterns to identify performance bottlenecks.
  • Troubleshoot performance issues related to memory leaks.

Examples

Example 1: Identifying Event Listener Leaks

User request: "detect memory leaks in my event handling code"

The skill will:

  1. Analyze the code for unremoved event listeners.
  2. Generate a report highlighting potential event listener leaks and suggesting how to properly remove them.

Example 2: Analyzing Cache Growth

User request: "analyze memory usage to find excessive cache growth"

The skill will:

  1. Analyze cache implementations for unbounded growth.
  2. Identify caches that are not properly managed and recommend strategies for limiting their size.

Best Practices

  • Code Review: Always review the reported potential leaks to ensure they are genuine issues.
  • Regular Analysis: Incorporate memory leak detection into your regular development workflow.
  • Targeted Analysis: Focus your analysis on specific areas of your code that are known to be memory-intensive.

Integration

This skill can be used in conjunction with other performance analysis tools to provide a comprehensive view of application performance.

Prerequisites

  • Access to application source code in ${CLAUDE_SKILL_DIR}/
  • Memory profiling tools (valgrind, heapdump, etc.)
  • Understanding of application memory architecture
  • Runtime environment for testing

Instructions

  1. Analyze code for common memory leak patterns
  2. Identify unremoved event listeners and callbacks
  3. Check for unbounded cache growth
  4. Review closure usage and retained references
  5. Generate report with leak locations and severity
  6. Provide remediation recommendations

Output

  • Memory leak detection report with file locations
  • Pattern analysis for event listeners and caches
  • Memory usage trends and growth patterns
  • Code snippets highlighting potential leaks
  • Recommended fixes with code examples

Error Handling

If memory leak detection fails:

  • Verify code file access permissions
  • Check profiling tool installation
  • Validate code syntax and structure
  • Ensure sufficient memory for analysis
  • Review runtime environment configuration

Resources

  • Memory profiling tool documentation
  • Memory leak detection best practices
  • JavaScript/Node.js memory management guides
  • Performance optimization resources

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.36%
按下载量换算94

Claude

33.34%
按下载量换算89

Cursor

19.36%
按下载量换算52

Gemini CLI

9.12%
按下载量换算24

安全审计

Gen Agent Trust Hub

可疑

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills