本文へ移動
cccskills
無料GitHub で公開日本語紹介

openclaw-performance

OpenClawの起動やチャット、画面表示の遅さを、処理回数と実測値から調べます。不要な処理の削減を優先し、性能改善PRの作成・レビューまで進めるスキルです。

原文原文の説明を見る

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.

AI評価90点/ 100インストール方法を見る

こんなときに便利

  • 起動やチャットの遅さを調べたいとき
  • SQLやファイル読み込みの重複削減
  • 実測値で性能改善PRをレビュー
  • キャッシュの必要性を判断したいとき

日本語での紹介

できること

OpenClawの起動、チャット、画面表示などの遅さを調べ、性能改善の実装とPRレビューを進めます。実行時間だけでなく、SQLの実行数、ファイル読み込み数、描画回数などを数え、不要な処理を発生元のコードまで追います。改善は無駄の削除、結果の再利用、まとめて処理する方法の順に検討し、キャッシュは最後の選択肢とします。

こんなときに便利

起動が重い、同じ情報を何度も読み込む、更新のたびに画面全体を描き直す、といった問題に向いています。改善PRに必要な比較表や合格基準を整理したい場合にも使えます。

使い方の例

  • 「Gatewayの起動を計測し、不要な読み込みを減らして」
  • 「この性能改善PRを、処理回数と応答時間の比較からレビューして」
  • 「キャッシュを追加する前に、重複処理を削れるか調べて」

注意点

OpenClawの既存ベンチマークや計測スクリプトを使う前提です。実際の通信経路で測り、初回と再実行時を分け、変更前後を各5回以上交互に計測します。利用者に影響する指標が悪化した場合は、PRで担当者の明示的な受け入れが必要です。

この紹介文は、公開されている SKILL.md をもとに AI(OpenAI Codex)が作成しました。正確な仕様は下の原文を確認してください。

客観評価

SKILL.md の中身だけを根拠に、AI が 4 つの観点で判定しました。スター数や人気は判定に入れていません。

指示の明確さいつ使い、何をするかが読み取れるか
A良好起動やチャットの遅延調査、性能改善PR、キャッシュ追加時の用途が明記されています。
手順の具体性手順・入出力・例が具体的に書かれているか
A良好計測から改善までの4段階と、各5回以上の比較計測、PRの証拠項目を指定しています。
安全面送信・削除・コマンド実行などの扱いが明示されているか
A良好契約を守る検査の維持と、指標悪化時の担当者による明示的な受け入れを求めています。
導入のしやすさ必要なツールや API キーが少ないか、書かれているか
B一部不足既存の計測コマンドは示されていますが、OpenClaw環境の導入手順はありません。

合計点は、各項目を A=25点・B=15点・C=5点として足したものです。 2026年10月19日 時点で AI(OpenAI Codex)が判定しました。目安なので、入れる前に原文も確認してください。

評価が違うと思ったら、見直しを依頼する

どの項目が、なぜ違うと思うかを書いてください。ログインは不要です。内容を SKILL.md と照らし合わせて評価を作り直し、この欄に反映します。

このフォームは reCAPTCHA で保護されており、Google のプライバシーポリシーと利用規約が適用されます。

含まれるファイル(1)

  • SKILL.md6.4 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

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.

FlowCommitted workload
CLI startuppnpm test:startup:bench (:check holds the budget)
Gateway startup / restartscripts/bench-gateway-startup.ts, scripts/bench-gateway-restart.ts, scripts/perf/post-restart-burst-measure.ts
Chat turn, frames per turnscripts/bench-channel-turn.mts, scripts/perf/transcript-broadcast-measure.ts
Control UI cold loadscripts/bench-control-ui-cold-load.ts, pnpm ui:check-performance (:base compares)
Session list, multi-agent shapescripts/perf/team-shape-fixture.ts, src/gateway/session-list-viewers.perf.test.ts
Concurrency, SQLite statescripts/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.

Done when the flow has a committed workload, a baseline table and a written rule.

2. Find waste

Ask of every counted operation: does this request need it? Recurring OpenClaw waste:

  • Eager work on the critical path: a registry lookup imported the plugin loader (#133518, 47.07 s → 10.36 s); optional runtimes loaded at startup (#119374).
  • Per-row or per-call recompute: a sync read per archived row (#156665, 56,700 reads → 0); log patterns resolved per frame (#150042, 539 → 17 ms per 10,000 frames).
  • Re-checking admitted state: schema, admission or freshness checks on warm handles (#166102, #172676; 14 PRs in the SQLite admission chain).
  • Full rescan per streamed delta: every token reprocessed the whole reply (#158526, 5,342 → 1 ms CPU at 256 KiB).
  • Re-reading your own write: two database backups per lookup (#161551, 772.8 → 7.7 ms); Doctor rescanned and backed up what it had just checked (#174665, ~26 → 3.0 s).
  • Repeated catalog or registry builds: a per-agent catalog rebuild at startup (#116261, 24.9 → 5.0 s); rebuilds per miss or TTL (#127178, #167008).
  • Waiting on optional data: the Usage page waited on provider plans and retried unrelated reads (#176358).
  • Defensive copies and wrapping: structuredClone per turn (#172940, 1.685 MiB → 0); per-value boundary wrapping (#163818, 11,571 → 500 ns/event).
  • Spawn or fan-out per call: a child process per resolution (#155779, 100 → 0).
  • Render cascades and full payloads: a render per update (#159400, 250 → 79); full rows resent for one delta (#165404, 21.75 → 0.95 MB).

Done when each dominant count traces to the code that issues it, with a yes or no on "needed".

3. Fix in this order

  1. Delete the waste. Deletes rarely come back; a failed delete removed a guard, so keep every check that protects a contract and prove the contract still holds.
  2. Once at the owner: callers consume the owner's recorded fact.
  3. Carry the prepared fact through the hot path.
  4. Batch independent work, and prove the batch keeps frames, latency tails and cold start steady: coalescing was reverted three times (#162560, #173901, #175092).
  5. Cache, with a written reason why steps 1–4 do not apply. Follow root "Cache identity", invalidate from the owner's writes, bound the size, and add an interleaved work-count test. Three of four cache re-fixes were silent misses: readers evicting each other (#115369 → #174741), a budget that thrashed (#149773 → #149879).

A worker move or a deferral relocates cost; count main-thread and total work both.

Done when the waste is gone from the counts, or the PR says which step stopped and why.

4. Land

  • Rerun the step 1 workload on baseline and candidate under the same rule.
  • Every user-facing metric holds or improves: latency, p95/p99, frames, cold start, CPU, memory, counts. A worse metric needs the owner's explicit acceptance in the PR. A 20% move in one cell is a stop, never "within spread": five of six reverted performance PRs showed their regression in their own body.
  • Revert changes without a measurable gain.
  • Proof lives in the PR, not in new tests: the before/after counts are the evidence. Extend a flow's existing work-count test only when this waste has come back before; test-audit owns test value.
  • PR evidence: workload command, acceptance rule, before/after table (counts and times, median and p95, samples), waste removed, and any metric that moved the wrong way.

Done when the table meets the rule written in step 1.

Related

Test-suite speed: openclaw-test-performance. Test heap growth: openclaw-test-heap-leaks. CI capacity: openclaw-ci-limits.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

コメント

ログインなしで書き込めます。使ってみた感想、質問、動かなかった環境などを気軽にどうぞ。

まだコメントはありません。最初のコメントを書いてみませんか。

送信するとすぐに公開されます。メールアドレスや電話番号などの個人情報は書かないでください。URL は 2 つまでです。

0 / 1000 文字

このフォームは reCAPTCHA で保護されており、Google のプライバシーポリシーと利用規約が適用されます。

同じリポジトリのスキル

1password

無料概要ありAI評価 100点

1Password CLIの導入と認証を確認し、保存したパスワードやAPIキーをコマンドや設定へ渡します。デスクトップ連携やサービスアカウントにも対応します。

  • 1Password CLIを導入したいとき
  • APIキーをコマンドに渡したいとき
  • CIでサービスアカウント認証を使う
openclaw/openclaw39.3万2026年10月20日 更新

acp-router

無料概要ありAI評価 80点

OpenClawへの自然な言葉の依頼をClaude Codeなどの外部コーディングエージェントへ振り分け、作業の開始や継続、スレッド内の会話をつなぐスキルです。

  • Claude Codeをスレッドで開始
  • 外部エージェントの作業を続けたいとき
  • acpxから直接指示を渡したいとき
openclaw/openclaw39.3万2026年10月20日 更新

add-model-provider

無料概要ありAI評価 100点

OpenClawにモデル提供サービスを追加し、実際の応答まで確認するスキル。認証情報は環境変数やファイルへの参照で扱い、設定の検証と結果報告も進めます。

  • OpenClawにモデルを追加したいとき
  • 認証情報を参照形式で設定したいとき
  • モデルの実際の応答を確認したいとき
openclaw/openclaw39.3万2026年10月20日 更新

agent-transcript

無料概要ありAI評価 90点

AIエージェントの作業ログから、GitHubのPRやissueに添える記録を作ります。関連部分を絞り、機密情報を除いてプレビューと掲載を扱います。

  • PRに添えるエージェント作業記録の作成
  • ローカルログから関連する依頼と結果を抽出
  • 機密情報を除いた記録のプレビュー
openclaw/openclaw39.3万2026年10月20日 更新

apple-notes

無料概要ありAI評価 100点

macOSのApple Notesをエージェントから作成・検索・編集・削除し、フォルダ間の移動やHTML・Markdownへの書き出しを行うスキル。

  • タイトルを付けてメモを作りたいとき
  • フォルダ指定やあいまい検索でメモ探し
  • メモの編集とフォルダ整理
openclaw/openclaw39.3万2026年10月20日 更新

apple-reminders

無料概要ありAI評価 70点

Apple Remindersの予定付きToDoをMacから確認・追加・編集するスキル。リストの管理や完了・削除にも対応し、iPhoneやiPadで見るタスクを整理できます。

  • 今日のタスクや期限超過を確認したいとき
  • 期限付きの個人ToDoを追加したいとき
  • iPhoneやiPadのタスクを整理
openclaw/openclaw39.3万2026年10月20日 更新

openclaw のスキルをすべて見る

このスキルの問題を報告する