.agents/skills/optimizetests/SKILL.md
Goal: real OpenClaw test/runtime speedups with coverage intact. Do not add shards, skip assertions, weaken gates, or tune runner flags as the main fix.
docs/help/testing.md, docs/ci.md, and the scoped AGENTS.md files
for any subtree you will edit.pnpm test:perf:groups --full-suite --allow-failures --output .artifacts/test-perf/<name>.jsontimeout 240 /usr/bin/time -l pnpm test <file> --maxWorkers=1 --reporter=verboseOPENCLAW_VITEST_IMPORT_DURATIONS=1 OPENCLAW_VITEST_PRINT_IMPORT_BREAKDOWN=1importActual() in hot testsvi.resetModules() plus fresh importspnpm check:changed; run broader gates (pnpm check, pnpm test,
pnpm build) when touched surfaces require them.scripts/committer "<conventional message>" <paths...>.
Push when requested. If CI is red, inspect with gh run list/view, fix, push,
repeat until current CI is green or a blocker is proven unrelated.End with the pushed commit(s), before/after timings, gates run, current CI state, and any remaining tail lanes that need separate optimization.