detecting-memory-leaks
について
このスキルは、関連するリクエストによってトリガーされた際に、Claudeがコード内の潜在的なメモリリークを検出できるようにします。未削除のイベントリスナー、循環参照、制限のないキャッシュ増加などの一般的な問題を特定し、詳細な修正推奨事項を提供します。開発者はこれを使用して、メモリ分析を通じてアプリケーションのパフォーマンスと安定性を積極的に改善できます。
クイックインストール
Claude Code
推奨/plugin add https://github.com/jeremylongshore/claude-code-plugins-plusgit clone https://github.com/jeremylongshore/claude-code-plugins-plus.git ~/.claude/skills/detecting-memory-leaksこのコマンドをClaude Codeにコピー&ペーストしてスキルをインストールします
ドキュメント
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
- Initiate Analysis: The user requests memory leak detection.
- Code Analysis: The plugin analyzes the codebase for potential memory leak patterns.
- 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:
- Analyze the code for unremoved event listeners.
- 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:
- Analyze cache implementations for unbounded growth.
- 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.
GitHub リポジトリ
関連スキル
evaluating-llms-harness
テストThis Claude Skill runs the lm-evaluation-harness to benchmark LLMs across 60+ standardized academic tasks like MMLU and GSM8K. It's designed for developers to compare model quality, track training progress, or report academic results. The tool supports various backends including HuggingFace and vLLM models.
sglang
メタSGLang is a high-performance LLM serving framework that specializes in fast, structured generation for JSON, regex, and agentic workflows using its RadixAttention prefix caching. It delivers significantly faster inference, especially for tasks with repeated prefixes, making it ideal for complex, structured outputs and multi-turn conversations. Choose SGLang over alternatives like vLLM when you need constrained decoding or are building applications with extensive prefix sharing.
cloudflare-turnstile
メタThis skill provides comprehensive guidance for implementing Cloudflare Turnstile as a CAPTCHA-alternative bot protection system. It covers integration for forms, login pages, API endpoints, and frameworks like React/Next.js/Hono, while handling invisible challenges that maintain user experience. Use it when migrating from reCAPTCHA, debugging error codes, or implementing token validation and E2E tests.
langchain
メタLangChain is a framework for building LLM applications using agents, chains, and RAG pipelines. It supports multiple LLM providers, offers 500+ integrations, and includes features like tool calling and memory management. Use it for rapid prototyping and deploying production systems like chatbots, autonomous agents, and question-answering services.
