自动驱动 VS Code 性能与内存排查,生成可复现分析结果与对比证据。
复制安装指令,让 AI 自动完成配置 · 推荐新手
请帮我安装 askskill 上的 "auto-perf-optimize" 技能: 1. 下载 https://raw.githubusercontent.com/microsoft/vscode/main/.github/skills/auto-perf-optimize/SKILL.md 2. 保存为 ~/.claude/skills/auto-perf-optimize/SKILL.md 3. 装好后重载技能,告诉我可以用了
请启动 Code OSS,自动执行我描述的 VS Code 操作场景,记录关键步骤并在结束后抓取 renderer heap snapshot,用于分析内存增长来源。
一次可复现的操作流程、执行记录以及可用于内存分析的堆快照文件。
请分别运行两次相同的 VS Code 场景,汇总每次运行结果,并对比性能指标、截图和异常差异,指出可能的回归点。
两次运行的对比摘要,包含指标差异、关键截图和疑似性能回归结论。
请运行 Chat memory smoke runner,完成指定测试流程,保存过程截图,并输出是否存在明显内存异常或泄漏迹象的结论。
冒烟测试执行结果、流程截图,以及对内存异常风险的简要判断。
Drive a repeatable VS Code scenario, collect memory/performance artifacts, verify that the scenario actually happened, then hand the resulting heap snapshots to the generic heap-snapshot-analysis skill when object-level investigation is needed.
summary.json, renderer heap samples, and targeted .heapsnapshot files for one scenarioDo not use this skill when snapshots already exist and the user only wants heap object/retainer analysis. Use heap-snapshot-analysis directly.
@playwright/cli to the same CDP port, take workspace-local screenshots, inspect snapshots, and update the runner's selectors/waits.summary.json and screenshots. Do not analyze a failed login, trust prompt, stuck progress row, or wrong UI state.The scripts/ folder contains stable, generic runners. Use them directly or as templates for scratchpad scripts:
Use the bundled Chat memory smoke runner when the scenario is Chat-specific or can be expressed as repeated Chat prompts. It launches Code OSS, opens Chat, sends prompts, waits for responses, writes screenshots and summary.json, samples renderer heap, and can take selected heap snapshots.
Fast health check:
node .github/skills/auto-perf-optimize/scripts/chat-memory-smoke.mts --iterations 3 --no-heap-snapshots
Targeted post-warmup snapshots:
node .github/skills/auto-perf-optimize/scripts/chat-memory-smoke.mts --iterations 8 --heap-snapshot-label 03-iteration-01 --heap-snapshot-label 03-iteration-08
User-described Chat scenario:
node .github/skills/auto-perf-optimize/scripts/chat-memory-smoke.mts --iterations 8 --message 'For memory investigation iteration {iteration}, summarize the active workspace in one paragraph.' --heap-snapshot-label 03-iteration-01 --heap-snapshot-label 03-iteration-08
Important runner behavior:
…
帮助用户为当前会话生成或更新运行命令,便于一键启动与调试项目。
帮助你编写 Hook 配置文件,以执行策略校验并自动化代理生命周期事件。
帮助用户更新 GitHub Copilot 的 CLI 或 SDK 到较新版本。
分析 V8 堆快照,定位内存泄漏、对象滞留与 GC 后存活原因
将当前会话分支的修改合并回基础分支,便于整合开发成果。
在隔离环境启动 VS Code OSS,便于联动自动化操作与多进程调试。
运行聊天性能基准与内存泄漏检查,定位聊天界面回归和性能问题。
让 AI 直接操控 VS Code 编码、调试、截图并执行测试自动化流程
为 VS Code 智能体提供真实调试能力,支持断点、单步执行与变量检查。
让 VS Code 智能代理直接检索并调用 LLMemory 对话库上下文
在代码库中自动运行优化迭代,针对可测指标持续尝试并筛选更优方案。
让 AI 代理直接驱动 OctoPerf 进行性能压测配置、执行与指标读取。