用于分析并优化 OpenClaw 测试与插件套件的性能瓶颈、内存占用和覆盖率耗时。
复制安装指令,让 AI 自动完成配置 · 推荐新手
请帮我安装 askskill 上的 "openclaw-test-performance" 技能: 1. 下载 https://raw.githubusercontent.com/openclaw/openclaw/main/.agents/skills/openclaw-test-performance/SKILL.md 2. 保存为 ~/.claude/skills/openclaw-test-performance/SKILL.md 3. 装好后重载技能,告诉我可以用了
请基准测试 OpenClaw 的 test 与 plugin-suite,比较最近两次运行差异,找出最慢用例、最耗时导入链路和覆盖率拖慢点,并给出可执行优化建议。
输出性能对比结果、主要耗时来源、可能根因及按优先级排序的优化建议。
请分析 OpenClaw 测试运行期间的 CPU、RSS 和堆内存增长情况,定位是否存在内存泄漏、高频分配热点或异常资源占用,并说明如何验证。
输出资源使用分析、可疑泄漏点或热点模块,以及对应的验证与修复方案。
请检查 OpenClaw 在开启 coverage 时的慢路径,分析哪些文件、导入或插件导致覆盖率阶段明显变慢,并提出减少开销的重构或配置方案。
输出覆盖率慢路径清单、影响评估,以及可落地的配置调整或代码优化建议。
Use evidence first. The goal is real pnpm test, plugin-suite, and
plugin-inspector speed/RSS improvement with coverage intact, not runner tuning by
guesswork.
AGENTS.md files before editing:
src/agents/AGENTS.md for agent/import hotspots.src/channels/AGENTS.md and src/plugins/AGENTS.md for plugin/channel
laziness.src/gateway/AGENTS.md for server lifecycle tests.test/helpers/AGENTS.md and test/helpers/channels/AGENTS.md for shared
contract helpers.src/infra/outbound/AGENTS.md for outbound/media/action tests.pnpm test:perf:groups --full-suite --allow-failures --output <file>
for full-suite ranking.pnpm test:extensions:batch <plugin[,plugin...]> or plugin-inspector command
before jumping to the full extension sweep./usr/bin/time -l pnpm test <file-or-files> --maxWorkers=1 --reporter=verboseOPENCLAW_VITEST_IMPORT_DURATIONS=1 OPENCLAW_VITEST_PRINT_IMPORT_BREAKDOWN=1.scripts/committer "<message>" <paths...> and push when the
user asked for commits/pushes. Stage only files touched for this attack.Use this section when perf work involves bundled plugins, plugin-inspector, SDK barrels, package-boundary tests, or extension suites.
pnpm test extensions/<id> or pnpm test:extensions:batch <id>pnpm run test:extensions:package-boundary:canary and
pnpm run test:extensions:package-boundary:compilepnpm test:extensions…
帮助团队检索重复的 PR 与问题单,并自动分组同步重复状态。
帮助定位 OpenClaw 测试中的内存增长、堆泄漏与 OOM 根因