一键导入
memorylens
Use when performing memory analysis on .NET applications, investigating memory leaks, or when systematic-debugging identifies a memory-related issue
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when performing memory analysis on .NET applications, investigating memory leaks, or when systematic-debugging identifies a memory-related issue
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | memorylens |
| description | Use when performing memory analysis on .NET applications, investigating memory leaks, or when systematic-debugging identifies a memory-related issue |
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.