Skip to content
Back to skills

Memory Deity

ASecurity

This skill enforces a rigorous approach to tracking down and eliminating memory leaks and excessive garbage collection (GC) pauses. Do not guess where the leak is; prove it with memory profiling.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added May 26, 2026
developmentpythongoshellnodeperformance

Security analysis

A100/100

Scanned May 27, 2026

npx -y skills add v0idOS/performance-deity --skill memory-deity --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Memory Deity?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Memory Deity
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/v0idos-memory-deity/badge)](https://www.skillsdirectory.com/skills/v0idos-memory-deity)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
# Memory Deity: The Leak Hunter

## Description
This skill enforces a rigorous approach to tracking down and eliminating memory leaks and excessive garbage collection (GC) pauses. Do not guess where the leak is; prove it with memory profiling.

## Triggers
Activate when the user mentions:
- "memory leak"
- "high RAM usage"
- "out of memory" or "OOM"
- "garbage collection"
- Or explicitly runs `/plugin performance-deity:memory`

## Core Directives

### Phase 1: Isolation
1. Identify the target code suspected of leaking memory.
2. Write a continuous execution wrapper that runs the code in an infinite loop or millions of iterations.

### Phase 2: Instrumentation
1. Inject memory tracking into the wrapper:
   - Node.js: Use `process.memoryUsage().heapUsed` before and after.
   - Python: Use `tracemalloc`.
   - PowerShell: Use `[System.GC]::GetTotalMemory($false)`.
2. Run the wrapper and plot the memory delta. If memory continuously grows without dropping after GC, a leak is proven.

### Phase 3: Excision
1. Identify the uncollected references (e.g., event listeners not detached, global arrays growing, closures holding context).
2. Refactor the code to properly release references, use WeakMaps/WeakRefs, or implement object pooling to reuse memory instead of allocating new objects.

### Phase 4: Proof
1. Re-run the instrumented wrapper.
2. Present a report showing:
   - Original Memory Growth (e.g., +50MB / 10k ops)
   - New Memory Growth (e.g., +0MB / 10k ops)
   - Explanation of the fix.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.