/jskills:optimize-memoryfrom jskills
Diagnose and reduce a program's memory use with controlled profiling and before/after measurements; use for heap growth, high RSS, allocation pressure, leaks, or excessive GPU memory, not agent note cleanup.
Ships in jskills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Preserve required behavior while reducing a measured memory cost. A large process or a successful restart does not prove a leak.
Identify the symptom, workload, environment, and target: peak resident memory, retained heap, allocation rate, container limit, or GPU memory. Keep these metrics distinct and state their units. Use an established budget or measure a baseline before proposing a target. Inspect existing diagnostics before installing a profiler, and follow the runtime's current official profiling guidance.
Use a bounded repeatable workload with controlled inputs and a recorded build and configuration. Record warm-up, concurrency, duration, and sampling points. Profile production only with the required access and operational authorization. Heap snapshots and traces can contain application data; keep them in an appropriate private location.
Collect a baseline and an allocation or retention profile at the relevant code path. Distinguish live-object growth from bounded caches, allocator retention, mapped files, shared pages, and expected buffers. Trace a suspected retained object to its owner and lifetime before calling it a leak. For GPU workloads, distinguish reservations from live allocations and record batch and input shape. Rank falsifiable explanations and change one relevant variable at a time. Report uncertainty when evidence cannot distinguish the explanations.
Consider lifetime errors, unbounded collections, duplicate representations, batches, buffers, and unnecessary copies where the profile shows their cost. Do not lower input limits, accuracy, cache correctness, durability, or supported concurrency without an explicit product decision. Use the repository's tests and conventions and keep unrelated refactoring out.
Repeat the original workload on the original and changed builds under comparable conditions. Report absolute values and differences, including peak and steady-state values when they answer different questions. Check latency, throughput, correctness, and failure behavior for regressions. For a suspected leak, verify the relevant repeated or long-running lifecycle. Add a suitable regression or bounded memory check when reproducible, without a noisy universal threshold. Distinguish direct measurements, inferences, and unverified effects. Keep the optimization only when evidence supports its benefit and required behavior remains intact.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub etamong-playground/agent-plugins --plugin jskills3 plugins in one repository ship this exact skill · first indexed Nov 6, 2026
43 skills in this plugin
/adopt-dependencyUpgrade an existing project dependency, verify the resolved artifact and release gap, update locks and validate affected behavior./adversarial-reviewAdversarially review existing work with N parallel critics, each from a distinct perspective, then re-verify every critique in the main session and accept only the ones that survive — repeated for 2 rounds. Use when the user says "비판적으로 검토", "여러 관점에서 검토", "적대적 리뷰", "red team this", "critique my work", "review from multiple angles", "find what's wrong with this change", or asks to harden a finished change/design/plan before shipping./agent-sessionOpen, message, monitor, resume, stop or retire Claude Code and Codex work sessions when a separate session is needed or requested. Use for cross-provider coordination and session lifecycle, not routine work that can stay in the current session.