Best for
- Memory usage of a running Deno process
- Memory leaks or growing heap
- Heap analysis or heap snapshots
commontoolsinc/labs/skills/deno-memory-profiler/SKILL.md
Analyze memory in a running Deno process via the V8 inspector CDP protocol. Use when the user asks about memory usage, memory leaks, heap analysis, heap snapshots, allocation profiling, or object retention in a Deno process running with --inspect.
Decision brief
Analyze memory in a running Deno process via the V8 inspector CDP protocol.
Compatibility matrix
| Platform | Status | Evidence | What to check |
|---|---|---|---|
| Codex | Not declared | No explicit evidence | Portability before use |
| Claude Code | Not declared | No explicit evidence | Portability before use |
| Cursor | Not declared | No explicit evidence | Portability before use |
| Gemini CLI | Not declared | No explicit evidence | Portability before use |
Installation
The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.
npx skills add https://github.com/commontoolsinc/labs --skill "skills/deno-memory-profiler"Inspect the Agent Skill "deno-memory-profiler" from https://github.com/commontoolsinc/labs/blob/b0ff67d2dde1812680849aa2373df1f49b6faa2f/skills/deno-memory-profiler/SKILL.md at commit b0ff67d2dde1812680849aa2373df1f49b6faa2f. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.
Workflow
Returns usedSize, totalSize, usagePercent. Use --gc to force garbage collection before measuring for a more accurate picture.
Runs an expression in the target via Runtime.evaluate and prints the result. Useful for inspecting specific objects.
deno run --allow-net --allow-write skills/deno-memory-profiler/scripts/memory.ts diff baseline
deno run --allow-net --allow-read skills/deno-memory-profiler/scripts/memory.ts diff compare bash deno run --allow-net skills/deno-memory-profiler/scripts/memory.ts usage --gc bash deno run --allow-net skills/deno-memory-profiler/scripts/memory.ts sample --duration 10 bash
Get the current heap state after GC. Good first step to see if memory is unexpectedly high.
Permission review
The documentation asks the agent to run terminal commands or scripts.
deno run --inspect main.ts # default port 9229The documentation asks the agent to run terminal commands or scripts.
deno run --inspect=0.0.0.0:9230 main.ts # custom host/portEvidence record
| Signal | Value | Evidence type | Meaning |
|---|---|---|---|
| Quality score | 91/100 | Computed | Documentation, specificity, maintenance, and trust rules |
| Repository stars | 37 | Source | Repository attention, not individual Skill quality |
| Compatibility | 0 platforms | Source | Declared in the catalog source record |
| Usage guide | automated source guide | Editorial | Generated or reviewed according to the visible evidence level |
Pinned source
Analyze memory in a running Deno process via the V8 inspector CDP protocol.
Use this skill when the user asks about:
The target Deno process must be running with --inspect or --inspect-brk.
The default inspector port is 9229.
The target process must be started with the inspect flag:
deno run --inspect main.ts # default port 9229
deno run --inspect=0.0.0.0:9230 main.ts # custom host/port
The script is at skills/deno-memory-profiler/scripts/memory.ts. When
run_skill_script is available and exactly allowlisted, invoke it with
skill="deno-memory-profiler" and path="scripts/memory.ts" instead of
constructing a shell command.
All commands accept --port=<port> (default 9229) and --host=<host> (default
127.0.0.1). Output is JSON to stdout; status messages go to stderr.
usage — Quick heap statsdeno run --allow-net skills/deno-memory-profiler/scripts/memory.ts usage
deno run --allow-net skills/deno-memory-profiler/scripts/memory.ts usage --gc
Returns usedSize, totalSize, usagePercent. Use --gc to force garbage
collection before measuring for a more accurate picture.
eval <expression> — Evaluate in target processdeno run --allow-net skills/deno-memory-profiler/scripts/memory.ts eval "Deno.memoryUsage()"
deno run --allow-net skills/deno-memory-profiler/scripts/memory.ts eval "globalThis.myCache.size"
Runs an expression in the target via Runtime.evaluate and prints the result.
Useful for inspecting specific objects.
sample — Allocation samplingdeno run --allow-net skills/deno-memory-profiler/scripts/memory.ts sample --duration 10
deno run --allow-net skills/deno-memory-profiler/scripts/memory.ts sample --duration 5 --top 50 --interval 16384
Profiles allocations for the given duration. Returns the top allocation sites sorted by bytes allocated. Options:
--duration <seconds> — sampling time (default 5)--top <N> — number of sites to show (default 30)--interval <bytes> — sampling interval (default 32768; lower = more detail,
more overhead)snapshot — Full heap snapshot summarydeno run --allow-net skills/deno-memory-profiler/scripts/memory.ts snapshot
Takes a V8 heap snapshot and produces a summary: total size, top 20 constructors by shallow size, top 10 by instance count, and duplicate strings (>50 occurrences).
diff baseline / diff compare — Leak detection# Phase 1: capture baseline
deno run --allow-net --allow-write skills/deno-memory-profiler/scripts/memory.ts diff baseline
# ... user triggers suspected leaky operation ...
# Phase 2: compare
deno run --allow-net --allow-read skills/deno-memory-profiler/scripts/memory.ts diff compare
Two-phase leak detection. Baseline saves a snapshot summary to
/tmp/memory-baseline-{port}.json. Compare takes a new snapshot and reports:
deno run --allow-net skills/deno-memory-profiler/scripts/memory.ts usage --gc
Get the current heap state after GC. Good first step to see if memory is unexpectedly high.
deno run --allow-net skills/deno-memory-profiler/scripts/memory.ts sample --duration 10
Run this while the user triggers their workload. Shows where allocations are happening — useful for finding hot allocation paths.
# 1. Take baseline while idle
deno run --allow-net --allow-write skills/deno-memory-profiler/scripts/memory.ts diff baseline
# 2. Ask user to trigger the suspected leaky operation several times
# 3. Compare
deno run --allow-net --allow-read skills/deno-memory-profiler/scripts/memory.ts diff compare
The diff shows what grew. Focus on constructors with large deltaCount or deltaSize.
# Full snapshot breakdown
deno run --allow-net skills/deno-memory-profiler/scripts/memory.ts snapshot
# Then poke at specific objects
deno run --allow-net skills/deno-memory-profiler/scripts/memory.ts eval "Deno.memoryUsage()"
deno run --allow-net skills/deno-memory-profiler/scripts/memory.ts eval "globalThis.myMap?.size"
deltaCount.--inspect. There's no way to attach to a process that wasn't started with
this flag.Alternatives
alirezarezvani/claude-skills
App Store Optimization (ASO) toolkit for researching keywords, analyzing competitor rankings, generating metadata suggestions, and improving app visibility on Apple App Store and Google Play Store. Use when the user asks about ASO, app store rankings, app metadata, app titles and descriptions, app store listings, app visibility, or mobile app marketing on iOS or Android. Supports keyword research and scoring, competitor keyword analysis, metadata optimization, A/B test planning, launch checklist
prowler-cloud/prowler
PostgreSQL indexing best practices for Prowler: index design, partial indexes, partitioned table indexing, EXPLAIN ANALYZE validation, concurrent operations, monitoring, and maintenance. Trigger: When creating or modifying PostgreSQL indexes, analyzing query performance with EXPLAIN, debugging slow queries, reviewing index usage statistics, reindexing, dropping indexes, or working with partitioned table indexes. Also trigger when discussing index strategies, partial indexes, or index maintenance
wanshuiyin/Auto-claude-code-research-in-sleep
Use it for operations and research tasks; the detail page covers purpose, installation, and practical steps.
K-Dense-AI/scientific-agent-skills
Distributed computing for larger-than-RAM pandas/NumPy workflows. Use when you need to scale existing pandas/NumPy code beyond memory or across clusters. Best for parallel file processing, distributed ML, integration with existing pandas code. For out-of-core analytics on single machine use vaex; for in-memory speed use polars.