memory-deity

memory-deity is a skill for Claude Code, Codex from v0idOS/performance-deity. It costs 0 tokens per session (360 once invoked), scanned A, original, MIT.

A troubleshooting workflow for proving and fixing memory leaks and long garbage-collection pauses. A memory leak is memory that stays allocated when it is no longer needed, and garbage collection is the process that frees unused memory.

In plain words
What is it for?
Use it to investigate suspected leaks or excessive memory growth in Node.js, Python, or PowerShell programs.
Why use it?
It replaces guesses about high memory use or out-of-memory failures with repeated tests and memory profiling evidence.

Skill for Claude CodeCodex

Part of the performance-deity plugin — 17 skills shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/v0idos/performance-deity/memory-deity
Any agent
npx skills add v0idOS/performance-deity --skill memory-deity
Clone the repo
git clone --depth 1 https://github.com/v0idOS/performance-deity

Made for: Claude Code, Codex.

Or install performance-deity, the plugin that ships this one along with the rest of its 17 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for memory-deity

README.md
[![agentmods](https://agentmods.dev/badge/skills/v0idos/performance-deity/memory-deity.svg)](https://agentmods.dev/skills/v0idos/performance-deity/memory-deity)
Your own site
<a href="https://agentmods.dev/skills/v0idos/performance-deity/memory-deity"><img src="https://agentmods.dev/badge/skills/v0idos/performance-deity/memory-deity.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 360 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.00360
Opus 5 $0.00000 $0.00180
Sonnet 5 $0.00000 $0.00072
Haiku 4.5 $0.00000 $0.00036

Measured 3d ago against content hash 6cad68ab846f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

memory-deity scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

archive/memory-deity/SKILL.md · 37 lines

What it actually says

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.
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 37 lines · 0 tokens per session scan A 6cad68ab846f

Subscribe to this mod's changes

memory-deity is a skill published in the GitHub repository v0idOS/performance-deity (2 stars, last pushed 4mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 360 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

agent-evaluation-reporting

Use when summarizing agent evaluations where autonomous, assisted, failed, timed-out, or invalid outcomes must remain distinct and comparable.

sickn33/agentic-awesome-skills · 31 tokens

evaluating-code-models

Evaluates code generation models across HumanEval, MBPP, MultiPL-E, and 15+ benchmarks with pass@k metrics. Use when benchmarking code models, comparing coding abilities, testing multi-language support, or measuring code generation quality. Industry standard from BigCode Project used by HuggingFace leaderboards.

Orchestra-Research/AI-Research-SKILLs · 68 tokens

evaluating-llms-harness

Evaluates LLMs across 60+ academic benchmarks (MMLU, HumanEval, GSM8K, TruthfulQA, HellaSwag). Use when benchmarking model quality, comparing models, reporting academic results, or tracking training progress. Industry standard used by EleutherAI, HuggingFace, and major labs. Supports HuggingFace, vLLM, APIs.

Orchestra-Research/AI-Research-SKILLs · 85 tokens

nemo-evaluator-sdk

Evaluates LLMs across 100+ benchmarks from 18+ harnesses (MMLU, HumanEval, GSM8K, safety, VLM) with multi-backend execution. Use when needing scalable evaluation on local Docker, Slurm HPC, or cloud platforms. NVIDIA's enterprise-grade platform with container-first architecture for reproducible benchmarking.

Orchestra-Research/AI-Research-SKILLs · 76 tokens

Gene Panel Selection Workflow

End-to-end workflow for gene panel design in scRNA-seq and spatial transcriptomics, that should be STRICTLY followed: dataset understanding + smart downsampling + train/test splits, algorithmic selection (HVG/DE/RF/scGeneFit/SpaPROS), optimal sub-panel discovery (ARI vs size), biological completion with a stability…

aristoteleo/PantheonOS · 110 tokens

benchmark-radar

Find, inspect, and check AI benchmark records with the Benchmark Radar CLI. Use when a request needs benchmark discovery, details, recent Radar evidence, or local data health; do not assume why the user needs the results.

ktwu01/benchmark-radar · 48 tokens