loopx-performance-diagnosis
できること
自分が所有するプロセスで、動作が遅かったり重かったりする原因を見つける手助けをします。はっきりした遅さがあり、コードを変える前に証拠がほしい開発者向けです。
使う場面
- ✓コマンド、プログラム、プロセスが、明らかに想定より遅い、または重いとき。
- ✓自分が所有するプログラムで、CPU、メモリ、ファイルの入出力を計測する必要があるとき。
- ✓変更の後に遅さが現れ、修正の前にプロファイリングの証拠が必要なとき。
スキルのリンク
https://github.com/loopx-project/loopx/blob/main/skills/loopx-performance-diagnosis/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“私のPythonのスクリプトは起動に30秒かかります。その理由を見つけてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
スキルは、エージェントに、本当の操作と期待される結果を定義させ、安全なコピーの上で適切なプロファイリングのツールを使って計測させ、非公開のパスやデータを明かさずに証拠をまとめさせます。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
LoopX performance diagnosis
First identify the question. For a LoopX-managed benchmark's outcome quality, score growth, useful progress per time/token, or agent trajectory, use loopx-benchmark. A flatter score curve, repeated reads or more tokens alone do not establish a process-performance regression. Keep that analysis with the benchmark owner; use this skill as a focused subtask only when evidence identifies a slow owned command or resource cost. Do not require a profiler before analyzing effectiveness or interaction overhead.
Read the current Goal/Todo contract and repository optimization evidence rules. State the real user operation, observed failure and owning acceptance. Preserve the exact source, runtime/interpreter, backend/history, inputs and concurrency. Use an owned disposable target for writes. Do not attach to a production process, elevate privileges, weaken OS policy, or start paid/remote workloads without the existing authorization. Raw stacks, paths, arguments and profiles stay ignored and local-private; public summaries contain only generalized evidence.
Read loopx/capabilities/performance_diagnosis/README.md for tool selection and
blind spots. On installed copies use loopx capability show performance-diagnosis
to locate its canonical documentation. Python waits/startup: Pyinstrument; Python
threads/native on Linux: py-spy; allocations: Memray; Node/TS: V8 CPU/heap.
Go/JVM/kernel costs need their native tools. Research official sources when the
installed runtime or missing evidence makes the documented choice uncertain.
Do not choose a tool from popularity or claim one profiler covers every layer.
- Run the uninstrumented target and record ordinary elapsed time. Use repeated controlled samples for comparisons; profiling time is not a baseline or p95.
- Verify the optional tool version locally. Preserve the selected interpreter; install optional tools in an isolated environment when authorized. Do not silently install them into product dependencies or fall back on permissions.
- Write the exact target argv to an ignored JSON array. Run
loopx performance-diagnosis plan --tool TOOL --command-json FILE --output-directory FRESH_IGNORED_DIRECTORY --format json. Read the whole plan. A plan has not executed or verified tool readiness. - Execute
profile_argvthrough the Host executor as an argv array without shell interpolation. Capture only the owned process; record failures and coverage gaps. Profile a separate Node worker instead of inferring its CPU from Python transport waits. Do not collect locals or automatically profile unrelated children. - Require actual successful target exit and nonempty artifact. Read Speedscope
or V8 CPU using
loopx performance-diagnosis inspect --profile-json FILE --format json; Memray/heap use their own reporters. Keep threads independent and self/inclusive time distinct. Never sum inclusive rows to obtain latency. - Turn the hotspot into a falsifiable hypothesis. Use a controlled intervention to distinguish caller/transport, shared semantics and backend cost. Reuse the owning contract; do not skip freshness, authority checks or decision inputs.
- Repeat the original uninstrumented workload and semantic checks after a fix. Preserve passed, failed and untested results and update the existing checkpoint. Readback of a stack does not prove root cause, improvement or provider admission.
Do not add a new receipt/approval requirement or automatically mutate scheduling, Goal state or telemetry. Stop invoking the workflow to disable it; remove optional tools/captures from their owned local environment when no longer needed.
よくある質問
モデルの回答の良さを測りますか?
いいえ。ベンチマークの品質やエージェントの効率は、別のベンチマークのスキルで扱われます。
本番環境のライブのサーバーをプロファイリングできますか?
いいえ。スキルは、本番のプロセスに接続したり、権限を上げたりしないよう指示しています。
どのツールを使いますか?
言語に応じてプロファイラーを選びます。たとえばPythonの起動や待ち時間にはPyinstrumentを使います。
詳細
作者による元の説明
Diagnose demonstrated CPU, command latency, allocation or IO regressions in an owned process with controlled measurements and language-appropriate profilers. Route benchmark effectiveness, score growth and trajectory efficiency to loopx-benchmark; profiling does not qualify a budget or grant execution authority.
repo: loopx-project/loopx
人気
- GitHubのスター
- 6.5k
- ランキング
- #13875
- ライセンス
- Apache-2.0
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
loopx
6.5kエージェントが、チャットのセッションをまたいで長く続く目標、タスク、証拠を追い続ける、ローカルのツールであるLoopXを設定して実行できるよう教えます。
loopx-change-quality
6.5kエージェントが、LoopXの目標の最終的なコードの変更を確かめ、マージの前に品質をチェックして、品質の受領書を書くよう導きます。
loopx-doc-registry
6.5kエージェントが、設計書や調査メモなどの、残すべきプロジェクトの資料を記録して索引を作り、後のエージェントが見つけられるよう導きます。
loopx-material
6.5kエージェントが、在庫の確認、段階間での項目の移動、ランキング、所有者の承認を伴う変更を含め、プロジェクトの調査資料の保管を管理するよう導きます。
似ているスキル
diffs
394k編集内容の実際の共有可能な差分を、手書きの要約ではなく、ビューアーのリンクや画像ファイルとして作成するようエージェントを支援します。
coding-agent
394kCodex、Claude Code、OpenCodeに大きめのコーディング作業をバックグラウンドのワーカーとして渡し、その進捗を確認するようエージェントを支援します。
gh-issues
394kGitHubのイシューを探し、取り組むものを選び、修正を含むプルリクエストを開くようエージェントを支援します。レビューコメントへの対応も含みます。