Agent skill · steipete

openclaw-performance

Performance work in OpenClaw: a slow or heavy flow (latency, CPU, memory, SQL, RPC, renders), writing or reviewing a perf PR, or adding a cache. Count the work, delete waste first, cache last.

What it needs

About 4k tokens when loaded.

What this skill does

OpenClaw Performance Waste is work a request does not need. Big speedups come from deleting waste, not from doing the same work faster. A cache is the last resort: it hides waste until its key, invalidation or hit rate breaks, and the waste returns. 1. Measure Write the acceptance rule in the PR before the first run: flow, workload, metric, cold or warm, samples, and the change that counts as a win or a regression. Flow Committed workload ------------------------------- -------------------------------------------------------------------------------------------------------------------- CLI startup pnpm test:startup:bench (:check holds the budget) Gateway startup / restart scripts/bench-gateway-startup.ts, scripts/bench-gateway-restart.ts, scripts/perf/post-restart-burst-measure.ts Chat turn, frames per turn scripts/bench-channel-turn.mts, scripts/perf/transcript-broadcast-measure.ts Control UI cold load scripts/bench-control-ui-cold-load.ts, pnpm ui:check-performance (:base compares) Control UI older-history paging scripts/bench-control-ui-history-depth.ts Session list, multi-agent shape scripts/perf/team-shape-fixture.ts, src/gateway/session-list-viewers.perf.test.ts Concurrency, SQLite state scripts/bench-gateway-concurrency.ts, pnpm test:sqlite:perf Counts first: operations per action (SQL statements, RPCs and frames, file reads, catalog or registry loads, spawns, renders) before wall time. Counts hold steady on a loaded host. A count that should be zero is the bug. Real flow: an isolated Gateway on the head under test, real transport, the slow path included. A mock Gateway, a stale build or a dev server measures something else. Samples: baseline and candidate interleaved (ABAB), at least 5 each, cold and warm apart; median and p95 with spread, run serially, host load recorded. Rerunnable: only committed scripts count; extend an existing one when none fits. Profile: node --cpu-prof per thread, or a browser performance trace, on the hot path. …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills steipete/openclaw-performance

View the source on GitHub

Browse the @skills marketplace