[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6E2H6C2KPVNXKCJ4XNHBXQ1":3,"skill-same:01M6E2H6C2KPVNXKCJ4XNHBXQ1":71},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":22,"publishedAt":35,"linkOnly":36,"markdownContent":37,"markdownBody":38,"frontMatter":39,"refName":40,"commitSha":41,"skillDirectory":42,"forksCount":13,"repositoryHtmlUrl":43,"repositoryHomepageUrl":44,"ownerHtmlUrl":45,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":46,"install":47,"resources":60},"01M6E2H6C2KPVNXKCJ4XNHBXQ1","openclaw-test-performance",null,"Benchmark, diagnose, and optimize OpenClaw test runtime, import hotspots, CPU\u002FRSS, and slow coverage paths.","7dvq6yrkgs-stack\u002Fplaywright","7dvq6yrkgs-stack","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F251638143?v=4","01M6E061J2AMGWYZ6TK7Y8NM74","01M6E061PQCQJGQMPBERMCFN5G",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002F7dvq6yrkgs-stack\u002Fplaywright\u002Fblob\u002Fmain\u002Fskills\u002Fopenclaw-test-performance\u002FSKILL.md",[17],{"categoryNo":18,"categoryName":19,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000008","测试与质量","SCENARIO","使用场景",[23,24,25,26,27,28,29,30,31,32,33,34],"openclaw","openclaw test performance","performance","test","diagnose","benchmark","rss","coverage","optimize","runtime","import","paths","2026-11-10 10:12:30",false,"---\nname: openclaw-test-performance\ndescription: Benchmark, diagnose, and optimize OpenClaw test runtime, import hotspots, CPU\u002FRSS, and slow coverage paths.\n---\n\n# OpenClaw Test Performance\n\nUse evidence first. The goal is real `pnpm test` speed\u002FRSS improvement with\ncoverage intact, not runner tuning by guesswork.\n\n## Workflow\n\n1. Read the relevant local `AGENTS.md` files before editing:\n   - `src\u002Fagents\u002FAGENTS.md` for agent\u002Fimport hotspots.\n   - `src\u002Fchannels\u002FAGENTS.md` and `src\u002Fplugins\u002FAGENTS.md` for plugin\u002Fchannel\n     laziness.\n   - `src\u002Fgateway\u002FAGENTS.md` for server lifecycle tests.\n   - `test\u002Fhelpers\u002FAGENTS.md` and `test\u002Fhelpers\u002Fchannels\u002FAGENTS.md` for shared\n     contract helpers.\n   - `src\u002Finfra\u002Foutbound\u002FAGENTS.md` for outbound\u002Fmedia\u002Faction tests.\n2. Establish a baseline before changing code:\n   - Prefer `pnpm test:perf:groups --full-suite --allow-failures --output \u003Cfile>`\n     for full-suite ranking.\n   - For a scoped hotspot use:\n     `\u002Fusr\u002Fbin\u002Ftime -l pnpm test \u003Cfile-or-files> --maxWorkers=1 --reporter=verbose`\n   - For import-heavy suspicion add:\n     `OPENCLAW_VITEST_IMPORT_DURATIONS=1 OPENCLAW_VITEST_PRINT_IMPORT_BREAKDOWN=1`.\n3. Separate wall\u002Frunner noise from real file cost:\n   - Compare Vitest duration, test body timing, import breakdown, wall time, and\n     max RSS.\n   - Re-run single files when grouped\u002Ffull-suite numbers look stale or noisy.\n   - If a full-suite grouped run reports a lane failure but JSON says tests\n     passed, capture that as harness\u002Fnoise and verify the suspect file directly.\n4. Pick the next attack by return and risk:\n   - High return: one file\u002Ftest dominates seconds or RSS and has a clear root.\n   - Lower risk: static descriptors, target parsing, routing, auth bypass,\n     setup hints, registry fixtures, or test server lifecycle.\n   - Higher risk: real memory\u002Fruntime behavior, live providers, protocol\n     contracts, or broad production refactors.\n5. Fix the root cause, not the symptom:\n   - Move static metadata\u002Fparsing into narrow helpers or lightweight artifacts\n     reused by full runtime and fast paths.\n   - Prefer dependency injection, loaded-plugin-only lookup, explicit fixtures,\n     and pure helpers over broad mocks.\n   - Reuse suite-level servers\u002Fclients when a fresh handshake is irrelevant.\n   - Keep schedulers\u002Fbackground loops off unless the test proves scheduling.\n6. Preserve coverage shape:\n   - Do not delete a slow integration proof unless the exact production\n     composition is extracted into a named helper and tested.\n   - Keep one cheap integration smoke when cross-component wiring matters.\n   - State explicitly what incidental coverage was removed, if any.\n7. Re-benchmark the same command after the change and compute seconds plus\n   percent gain.\n8. Update the running report when requested or when this thread is tracking one.\n   Include before\u002Fafter commands, artifacts, coverage notes, verification, and\n   next attack order.\n9. Commit with `scripts\u002Fcommitter \"\u003Cmessage>\" \u003Cpaths...>` and push when the\n   user asked for commits\u002Fpushes. Stage only files touched for this attack.\n\n## Common Root Causes\n\n- Full bundled channel\u002Fplugin runtime loaded for static data.\n- `getChannelPlugin()` fallback used when an already-loaded fixture or pure\n  parser would suffice.\n- Broad `api.ts`, `runtime-api.ts`, `test-api.ts`, or plugin-sdk barrels pulled\n  into hot tests.\n- Partial-real mocks using `importActual()` around broad modules.\n- `vi.resetModules()` plus fresh imports in per-test loops.\n- Test plugin registry seeded in `beforeAll` while runtime state resets in\n  `afterEach`.\n- Per-test gateway\u002Fserver\u002Fclient startup when state reset would suffice.\n- Runtime\u002Fdefault model\u002Fauth selection paid by idle snapshots or fixtures.\n- Plugin-owned media\u002Faction discovery triggered before checking whether args\n  contain plugin-owned fields.\n\n## Benchmark Commands\n\nScoped file:\n\n```bash\ntimeout 240 \u002Fusr\u002Fbin\u002Ftime -l pnpm test \u003Cfile> --maxWorkers=1 --reporter=verbose\n```\n\nScoped file with import breakdown:\n\n```bash\ntimeout 240 \u002Fusr\u002Fbin\u002Ftime -l env \\\n  OPENCLAW_VITEST_IMPORT_DURATIONS=1 \\\n  OPENCLAW_VITEST_PRINT_IMPORT_BREAKDOWN=1 \\\n  pnpm test \u003Cfile> --maxWorkers=1 --reporter=verbose\n```\n\nGrouped suite:\n\n```bash\npnpm test:perf:groups --full-suite --allow-failures \\\n  --output .artifacts\u002Ftest-perf\u002F\u003Cname>.json\n```\n\nReuse an existing Vitest JSON report:\n\n```bash\npnpm test:perf:groups --report \u003Cvitest-json> \\\n  --output .artifacts\u002Ftest-perf\u002F\u003Cname>.json\n```\n\n## Verification\n\n- Always run the targeted test surface that proves the change.\n- Run `pnpm check` before commit unless the change is docs-only and the hook\n  handles it.\n- Run `pnpm build` when touching lazy-loading, bundled artifacts, package\n  boundaries, dynamic imports, build output, or public surfaces.\n- If deps are missing\u002Fstale, run `pnpm install` and retry the exact failed\n  command once.\n- Use the report format:\n\n```markdown\n| Metric         | Before | After |          Gain |\n| -------------- | -----: | ----: | ------------: |\n| File wall time |   `Xs` |  `Ys` |  `-Zs` (`P%`) |\n| Max RSS        |  `XMB` | `YMB` | `-ZMB` (`P%`) |\n```\n\n## Handoff\n\nKeep the final concise:\n\n- Root cause.\n- Files changed.\n- Before\u002Fafter numbers.\n- Coverage retained.\n- Verification commands.\n- Commit hash and push status.\n","# OpenClaw Test Performance\n\nUse evidence first. The goal is real `pnpm test` speed\u002FRSS improvement with\ncoverage intact, not runner tuning by guesswork.\n\n## Workflow\n\n1. Read the relevant local `AGENTS.md` files before editing:\n   - `src\u002Fagents\u002FAGENTS.md` for agent\u002Fimport hotspots.\n   - `src\u002Fchannels\u002FAGENTS.md` and `src\u002Fplugins\u002FAGENTS.md` for plugin\u002Fchannel\n     laziness.\n   - `src\u002Fgateway\u002FAGENTS.md` for server lifecycle tests.\n   - `test\u002Fhelpers\u002FAGENTS.md` and `test\u002Fhelpers\u002Fchannels\u002FAGENTS.md` for shared\n     contract helpers.\n   - `src\u002Finfra\u002Foutbound\u002FAGENTS.md` for outbound\u002Fmedia\u002Faction tests.\n2. Establish a baseline before changing code:\n   - Prefer `pnpm test:perf:groups --full-suite --allow-failures --output \u003Cfile>`\n     for full-suite ranking.\n   - For a scoped hotspot use:\n     `\u002Fusr\u002Fbin\u002Ftime -l pnpm test \u003Cfile-or-files> --maxWorkers=1 --reporter=verbose`\n   - For import-heavy suspicion add:\n     `OPENCLAW_VITEST_IMPORT_DURATIONS=1 OPENCLAW_VITEST_PRINT_IMPORT_BREAKDOWN=1`.\n3. Separate wall\u002Frunner noise from real file cost:\n   - Compare Vitest duration, test body timing, import breakdown, wall time, and\n     max RSS.\n   - Re-run single files when grouped\u002Ffull-suite numbers look stale or noisy.\n   - If a full-suite grouped run reports a lane failure but JSON says tests\n     passed, capture that as harness\u002Fnoise and verify the suspect file directly.\n4. Pick the next attack by return and risk:\n   - High return: one file\u002Ftest dominates seconds or RSS and has a clear root.\n   - Lower risk: static descriptors, target parsing, routing, auth bypass,\n     setup hints, registry fixtures, or test server lifecycle.\n   - Higher risk: real memory\u002Fruntime behavior, live providers, protocol\n     contracts, or broad production refactors.\n5. Fix the root cause, not the symptom:\n   - Move static metadata\u002Fparsing into narrow helpers or lightweight artifacts\n     reused by full runtime and fast paths.\n   - Prefer dependency injection, loaded-plugin-only lookup, explicit fixtures,\n     and pure helpers over broad mocks.\n   - Reuse suite-level servers\u002Fclients when a fresh handshake is irrelevant.\n   - Keep schedulers\u002Fbackground loops off unless the test proves scheduling.\n6. Preserve coverage shape:\n   - Do not delete a slow integration proof unless the exact production\n     composition is extracted into a named helper and tested.\n   - Keep one cheap integration smoke when cross-component wiring matters.\n   - State explicitly what incidental coverage was removed, if any.\n7. Re-benchmark the same command after the change and compute seconds plus\n   percent gain.\n8. Update the running report when requested or when this thread is tracking one.\n   Include before\u002Fafter commands, artifacts, coverage notes, verification, and\n   next attack order.\n9. Commit with `scripts\u002Fcommitter \"\u003Cmessage>\" \u003Cpaths...>` and push when the\n   user asked for commits\u002Fpushes. Stage only files touched for this attack.\n\n## Common Root Causes\n\n- Full bundled channel\u002Fplugin runtime loaded for static data.\n- `getChannelPlugin()` fallback used when an already-loaded fixture or pure\n  parser would suffice.\n- Broad `api.ts`, `runtime-api.ts`, `test-api.ts`, or plugin-sdk barrels pulled\n  into hot tests.\n- Partial-real mocks using `importActual()` around broad modules.\n- `vi.resetModules()` plus fresh imports in per-test loops.\n- Test plugin registry seeded in `beforeAll` while runtime state resets in\n  `afterEach`.\n- Per-test gateway\u002Fserver\u002Fclient startup when state reset would suffice.\n- Runtime\u002Fdefault model\u002Fauth selection paid by idle snapshots or fixtures.\n- Plugin-owned media\u002Faction discovery triggered before checking whether args\n  contain plugin-owned fields.\n\n## Benchmark Commands\n\nScoped file:\n\n```bash\ntimeout 240 \u002Fusr\u002Fbin\u002Ftime -l pnpm test \u003Cfile> --maxWorkers=1 --reporter=verbose\n```\n\nScoped file with import breakdown:\n\n```bash\ntimeout 240 \u002Fusr\u002Fbin\u002Ftime -l env \\\n  OPENCLAW_VITEST_IMPORT_DURATIONS=1 \\\n  OPENCLAW_VITEST_PRINT_IMPORT_BREAKDOWN=1 \\\n  pnpm test \u003Cfile> --maxWorkers=1 --reporter=verbose\n```\n\nGrouped suite:\n\n```bash\npnpm test:perf:groups --full-suite --allow-failures \\\n  --output .artifacts\u002Ftest-perf\u002F\u003Cname>.json\n```\n\nReuse an existing Vitest JSON report:\n\n```bash\npnpm test:perf:groups --report \u003Cvitest-json> \\\n  --output .artifacts\u002Ftest-perf\u002F\u003Cname>.json\n```\n\n## Verification\n\n- Always run the targeted test surface that proves the change.\n- Run `pnpm check` before commit unless the change is docs-only and the hook\n  handles it.\n- Run `pnpm build` when touching lazy-loading, bundled artifacts, package\n  boundaries, dynamic imports, build output, or public surfaces.\n- If deps are missing\u002Fstale, run `pnpm install` and retry the exact failed\n  command once.\n- Use the report format:\n\n```markdown\n| Metric         | Before | After |          Gain |\n| -------------- | -----: | ----: | ------------: |\n| File wall time |   `Xs` |  `Ys` |  `-Zs` (`P%`) |\n| Max RSS        |  `XMB` | `YMB` | `-ZMB` (`P%`) |\n```\n\n## Handoff\n\nKeep the final concise:\n\n- Root cause.\n- Files changed.\n- Before\u002Fafter numbers.\n- Coverage retained.\n- Verification commands.\n- Commit hash and push status.\n",{"name":5,"description":7},"main","a2e3284ed4488780397ee2f78217366e11470dfb","skills\u002Fopenclaw-test-performance","https:\u002F\u002Fgithub.com\u002F7dvq6yrkgs-stack\u002Fplaywright","https:\u002F\u002Fplaywright.dev","https:\u002F\u002Fgithub.com\u002F7dvq6yrkgs-stack","2026-04-25 06:04:45",{"source":8,"skillName":5,"commands":48,"prompt":58,"zipAvailable":59},[49,52,55],{"tool":50,"command":51},"npx","npx skills add 7dvq6yrkgs-stack\u002Fplaywright --skill openclaw-test-performance",{"tool":53,"command":54},"bunx","bunx skills add 7dvq6yrkgs-stack\u002Fplaywright --skill openclaw-test-performance",{"tool":56,"command":57},"pnpm","pnpm dlx skills add 7dvq6yrkgs-stack\u002Fplaywright --skill openclaw-test-performance","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002F7dvq6yrkgs-stack\u002Fplaywright\u002Fblob\u002Fmain\u002Fskills\u002Fopenclaw-test-performance\u002FSKILL.md",true,[61,67],{"path":62,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":65,"sourceHtmlUrl":66},".skillfish.json","REFERENCE","参考文档",251,"https:\u002F\u002Fgithub.com\u002F7dvq6yrkgs-stack\u002Fplaywright\u002Fblob\u002Fmain\u002Fskills\u002Fopenclaw-test-performance\u002F.skillfish.json",{"path":68,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":69,"sourceHtmlUrl":70},"agents\u002Fopenai.yaml",361,"https:\u002F\u002Fgithub.com\u002F7dvq6yrkgs-stack\u002Fplaywright\u002Fblob\u002Fmain\u002Fskills\u002Fopenclaw-test-performance\u002Fagents\u002Fopenai.yaml",[72,102,112,122,137,152],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":90,"publishedAt":35},"01M6E3XK4PRPMQHM7Y98FQPTY1","zyte-api-automation","Automate Zyte API tasks via Rube MCP (Composio). Always search tools first for current schemas.","https:\u002F\u002Fgithub.com\u002F7dvq6yrkgs-stack\u002Fplaywright\u002Fblob\u002Fmain\u002Fskills\u002Fzyte-api-automation\u002FSKILL.md",[78,79,82,85],{"categoryNo":18,"categoryName":19,"taxonomyType":20,"taxonomyTypeDesc":21},{"categoryNo":80,"categoryName":81,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000010","后端与接口",{"categoryNo":83,"categoryName":84,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000023","Skill与智能体开发",{"categoryNo":86,"categoryName":87,"taxonomyType":88,"taxonomyTypeDesc":89},"01JBSEEDCAT000000000000030","开发工程师","PROFESSION","适用职业",[91,92,93,94,95,96,97,98,99,100,101],"zyte api automation","api","automation","MCP","tasks","search","Tools","first","automate","composio","via",{"skillNo":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":106,"categories":107,"keywords":110,"publishedAt":35},"01M6E3XFX6QSTR1QR59NFXJTMA","zylvie-automation","Automate Zylvie tasks via Rube MCP (Composio). Always search tools first for current schemas.","https:\u002F\u002Fgithub.com\u002F7dvq6yrkgs-stack\u002Fplaywright\u002Fblob\u002Fmain\u002Fskills\u002Fzylvie-automation\u002FSKILL.md",[108,109],{"categoryNo":18,"categoryName":19,"taxonomyType":20,"taxonomyTypeDesc":21},{"categoryNo":83,"categoryName":84,"taxonomyType":20,"taxonomyTypeDesc":21},[111,93,99,94,95,96,97,98,100,101],"zylvie automation",{"skillNo":113,"name":114,"nameZh":6,"description":115,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":116,"categories":117,"keywords":120,"publishedAt":35},"01M6E3XCX2GDYYCHN58ZJHT37M","zoominfo-automation","Automate Zoominfo tasks via Rube MCP (Composio). Always search tools first for current schemas.","https:\u002F\u002Fgithub.com\u002F7dvq6yrkgs-stack\u002Fplaywright\u002Fblob\u002Fmain\u002Fskills\u002Fzoominfo-automation\u002FSKILL.md",[118,119],{"categoryNo":18,"categoryName":19,"taxonomyType":20,"taxonomyTypeDesc":21},{"categoryNo":83,"categoryName":84,"taxonomyType":20,"taxonomyTypeDesc":21},[121,93,96,97,98,99,100,101,95,94],"zoominfo automation",{"skillNo":123,"name":124,"nameZh":6,"description":125,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":126,"categories":127,"keywords":130,"publishedAt":35},"01M6E3X9WJ2T73216WQHHTB9BD","zoho_mail-automation","Automate Zoho Mail tasks via Rube MCP (Composio): email sending, folders, labels, and mailbox management. Always search tools first for current schemas.","https:\u002F\u002Fgithub.com\u002F7dvq6yrkgs-stack\u002Fplaywright\u002Fblob\u002Fmain\u002Fskills\u002Fzoho_mail-automation\u002FSKILL.md",[128,129],{"categoryNo":18,"categoryName":19,"taxonomyType":20,"taxonomyTypeDesc":21},{"categoryNo":83,"categoryName":84,"taxonomyType":20,"taxonomyTypeDesc":21},[131,132,133,93,94,95,96,134,97,98,99,135,100,136,101],"mail","zoho mail automation","zoho","email","management","mailbox",{"skillNo":138,"name":139,"nameZh":6,"description":140,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":141,"categories":142,"keywords":148,"publishedAt":35},"01M6E3X719W648XZBW1EC6JQ64","zoho_invoice-automation","Automate Zoho Invoice tasks via Rube MCP (Composio): invoices, estimates, expenses, clients, and payment tracking. Always search tools first for current schemas.","https:\u002F\u002Fgithub.com\u002F7dvq6yrkgs-stack\u002Fplaywright\u002Fblob\u002Fmain\u002Fskills\u002Fzoho_invoice-automation\u002FSKILL.md",[143,144,145],{"categoryNo":18,"categoryName":19,"taxonomyType":20,"taxonomyTypeDesc":21},{"categoryNo":83,"categoryName":84,"taxonomyType":20,"taxonomyTypeDesc":21},{"categoryNo":146,"categoryName":147,"taxonomyType":88,"taxonomyTypeDesc":89},"01JBSEEDCAT000000000000040","财务",[149,133,93,95,96,97,98,99,150,151,100,101,94],"zoho invoice automation","tracking","payment",{"skillNo":153,"name":154,"nameZh":6,"description":155,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":156,"categories":157,"keywords":160,"publishedAt":35},"01M6E3X28JYTC3QTK32AQF7BYB","zoho_inventory-automation","Automate Zoho Inventory tasks via Rube MCP (Composio): items, orders, warehouses, shipments, and stock management. Always search tools first for current schemas.","https:\u002F\u002Fgithub.com\u002F7dvq6yrkgs-stack\u002Fplaywright\u002Fblob\u002Fmain\u002Fskills\u002Fzoho_inventory-automation\u002FSKILL.md",[158,159],{"categoryNo":18,"categoryName":19,"taxonomyType":20,"taxonomyTypeDesc":21},{"categoryNo":83,"categoryName":84,"taxonomyType":20,"taxonomyTypeDesc":21},[93,161,133,162,98,99,97,96,95,94,100,101,163,164,135],"inventory","zoho inventory automation","stock","orders"]