From memorylens
Use when performing memory analysis on .NET applications, investigating memory leaks, or when systematic-debugging identifies a memory-related issue
How this skill is triggered — by the user, by Claude, or both
Slash command
/memorylens:memorylensThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
This skill requires the memorylens MCP server tools (`ensure_dotmemory`, `list_processes`, `snapshot`, `compare_snapshots`, `analyze`, `get_rules`).
This skill requires the memorylens MCP server tools (ensure_dotmemory, list_processes, snapshot, compare_snapshots, analyze, get_rules).
Check if ensure_dotmemory is available as an MCP tool. If not, this skill is inert — inform the user to install the memorylens plugin.
/memorylens)systematic-debugging identifies symptoms like high memory usage, OutOfMemoryException, slow GC, or growing memory over time"MemoryLens activated. I'll profile your application's memory and suggest concrete fixes."
Call ensure_dotmemory. If it fails, stop and report the error.
Ask the user what to profile:
list_processes and let user pickdotnet run command or similarBased on the user's ask:
snapshotcompare_snapshotsExecute snapshot or compare_snapshots with the target parameters.
Call analyze with the returned snapshotId. If user has a .memorylens.json, pass the rulesPath.
For each finding with a suggestion:
Order: critical findings first, then high, medium, low.
After all findings are addressed, present a summary:
When invoked from systematic-debugging, skip step 2 questioning — the debugger already knows the target process. Use the process context from the debugging session.
Memory smell indicators (trigger MemoryLens from debugging):
OutOfMemoryExceptionWhen brainstorming features involving:
Use rule knowledge to inform design questions and approach proposals.
list_processes excludes them, but if a user asks to attach to devenv/rider/Code, refuse and explain why.waitAfter > 60000ms. Long profiling sessions have overhead.Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub marcelroozekrans/memorylens-mcp --plugin memorylens