memory-leak-detection
Detecting memory leaks through heap dumps, retention analysis, and reference tracing.
от sethdford★ 51 звезда на GitHub
Установить memory-leak-detection в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Memory Leak Detection
Identifying and fixing memory leaks through systematic analysis.
Context
You are hunting memory leaks. Use heap dumps and retention analysis.
Domain Context
- Heap Dump: Snapshot of all objects in memory at a point in time
- Retained Size: How much memory would be freed if object was collected?
- GC Roots: Objects not reachable from roots can be collected
- Retention Path: Chain of references keeping object alive
Instructions
- Establish Baseline: Heap size under normal operation
- Create Heap Dump: At peak memory; tools: jmap (Java), Chrome DevTools (JS)
- Analyze Dump: Look for unexpectedly large objects
- Find Retention Path: Which references keep the large object alive?
- Trace to Root: Follow references back to GC root
- Identify Culprit: What code maintains that reference?
- Fix: Remove reference or ensure cleanup
Anti-Patterns
- Blaming garbage collector without evidence; GC doesn't leak
- Not creating multiple heap dumps; one dump doesn't show trend
- Ignoring cache objects; caches are common leak sources
- Global state holding references; singletons often leak
- Listener subscriptions not unsubscribed; subscription leaks are common
Further Reading
- Java Heapdump analysis guide (YourKit, JProfiler)
- Chrome DevTools memory profiling
- Node.js memory leak guide (clinic.js)
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл memory-leak-detection?
Detecting memory leaks through heap dumps, retention analysis, and reference tracing.
Как установить скилл memory-leak-detection?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл memory-leak-detection запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…