Przejdź do treści
Biblioteka skilli
Programowanie · Analiza

detecting-memory-leaks

/detecting-memory-leaks

Wykrywa potencjalne wycieki pamięci i analizuje wzorce użycia pamięci w kodzie, gdy zużycie pamięci rośnie.

Licencja
MIT
Ostatnia zmiana repozytorium
26.10.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
7
Skrypty
3
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 26.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co sprawdzić przed instalacją
  • 3 skrypty w paczce. Przejrzyj je przed instalacją, bo Claude może je uruchomić.

Skrypty: scripts/analyze_memory.py, scripts/generate_report.py, scripts/setup_environment.py

Co robi i kiedy

Wykrywa potencjalne wycieki pamięci i analizuje wzorce użycia pamięci w kodzie, gdy zużycie pamięci rośnie.

Wyzwalacze z opisu

detect memory leaksanalyze memory usagefind memory issues
Oryginalny opis (EN)

Detect potential memory leaks and analyze memory usage patterns in code. Use when troubleshooting performance issues related to memory growth or identifying leak sources. Trigger with phrases like "detect memory leaks", "analyze memory usage", or "find memory issues".

Jak działa

  1. Overview
  2. How It Works
  3. When to Use This Skill
  4. Examples
  5. Best Practices
  6. Integration
  7. Prerequisites
  8. Instructions
  9. Output
  10. Error Handling
Sekcje z nagłówków SKILL.md, w oryginale · 93 linii, 461 słów
Podgląd SKILL.md
---
name: detecting-memory-leaks
description: Detect potential memory leaks and analyze memory usage patterns in code.
  Use when troubleshooting performance issues related to memory growth or identifying
  leak sources. Trigger with phrases like "detect memory leaks", "analyze memory usage",
  or "find memory issues".
version: 1.24.0
allowed-tools: Read, Write, Edit, Grep, Glob, Bash(profiling:*), Bash(memory:*)
license: MIT
author: Jeremy Longshore <jeremy@intentsolutions.io>
tags:
- performance
- detecting-memory
compatibility: Designed for Claude Code
---
# 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
Pliki w paczce (7)
  • SKILL.md 4 KB
  • assets/README.md 1 KB
  • references/README.md 1 KB
  • scripts/README.md 1 KB
  • scripts/analyze_memory.py 5 KB
  • scripts/generate_report.py 4 KB
  • scripts/setup_environment.py 3 KB

Wersje

RepozytoriumWynikLicencja
Ta strona · jeremylongshore/tons-of-skills-marketplace100MIT
HelixDevelopment/agent100MIT

Identyczna treść występuje jeszcze w 1 innych folderach na GitHubie. Tu pokazujemy jedną, najlepiej ocenioną kopię.

Migawka bazy z 13.11.2026 · wersja paczki 3f48d85643af (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 95memory-leak-debugging
    Diagnozuje wycieki pamięci w aplikacjach JavaScript i Node.js, analizując zrzuty sterty i narzędzie memlab.
  • 100profile-memory
    Profiluje zużycie pamięci sidecara w Go przez pprof: szuka wycieków pamięci i goroutin, nadmiaru deskryptorów oraz kosztownego CPU.
  • 100memory-leak-debug
    Diagnozuje wycieki pamięci w Qwen Code CLI za pomocą migawek sterty i narzędzia chrome-devtools przy wysokim zużyciu lub niekończącym się wzroście.
  • 100memory-leak-debugging
    Diagnozuje i naprawia wycieki pamięci w aplikacjach JavaScript i Node.js: wysokie zużycie pamięci, błędy OOM oraz przechwytywanie i porównywanie zrzutów sterty w Chrome DevTools MCP.
  • 100memory-leaks
    Przegląda skrypty, komponenty klienckie, paczki i zachowanie w przeglądarce, aby wykryć typowe wzorce wycieków pamięci i naprawić ich rzeczywistą przyczynę.
  • 100memory-leak-diagnosis
    Pomaga badać wzrost pamięci, cykle retain, wycieki w Instruments, problemy z anulowaniem Task i ARC w aplikacjach Swift 6.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.