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

workers-profiling

デプロイ済みのCloudflare WorkersやDurable ObjectsのCPU使用量やメモリ割り当てを計測し、プロファイルから負荷の高い処理を特定して改善案をまとめます。

原文原文の説明を見る

Profile or debug CPU usage and memory allocation in deployed Cloudflare Workers and Durable Objects. Then use this information to optimize your code.

fcakyon/claude-codex-settingsスター 1,192(GitHub 1,192 + cccskills 0)
連携ツールCloudflare

実行スコア 未検証

インストール方法を見る

こんなときに便利

  • WorkerのCPU負荷を調べたいとき
  • メモリ増加の原因を特定したいとき
  • Durable Objectの割り当てを分析したいとき
  • 計測結果から改善案を得たいとき

日本語での紹介

できること

デプロイ済みのCloudflare WorkersやDurable Objectsを対象に、CPU使用量またはメモリ割り当てのプロファイルを取得し、負荷の高い関数やメモリ確保箇所を調べます。まず症状と対象の負荷を整理し、アカウント、Worker、環境、デプロイ済みバージョンを確認します。Durable Objectsの場合は、所有するWorkerやnamespace、インスタンスも確認します。取得したpprofファイルを解析し、根拠があれば該当関数やソース位置に結び付けて、最小限の改善案と効果の確かめ方を報告します。

こんなときに便利

本番環境のWorkerでCPU使用量やレイテンシーが気になるとき、メモリ使用量が増え続ける原因を調べたいときに向いています。ソース位置が生成済みJavaScriptしか示さない場合は、ソースマップを有効にして再計測する提案もできます。

使い方の例

  • 「デプロイ済みWorkerのCPUプロファイルを調べて」
  • 「Durable Objectのメモリ増加の原因を分析して」
  • 「プロファイルの結果から改善できる箇所を報告して」

注意点

プロファイル取得にはCloudflareの本番プロファイリング機能を使います。cf CLIがない場合は導入を提案することがあります。解析にはpprofファイルを直接読むか、Goのpprofなどを使います。ライセンスはApache-2.0です。

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

含まれるファイル(2)

  • SKILL.md2.2 KB
  • references/skill-feedback.md2.7 KB

SKILL.md(原文)

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

Workers profiling

Find expensive functions or memory allocations in deployed code and come up with ways to fix them.

Retrieve the docs

Start with the production profiling guide to understand how Workers and Durable Objects profiling works.

Profiling steps

  1. Identify the symptom and affected workload: CPU usage, latency, allocation pressure, or memory growth.
  2. Confirm the account, Worker, environment, and deployed version with the user.
  3. For a Durable Object, also confirm its owning Worker, namespace, and instance.
  4. Choose CPU or heap profiling from the current guide's supported types and meanings.

Where possible, use the cf CLI to capture profiles. If the user requests cf, inspect the installed version's command help and schema where available.

If cf isn't available, consider prompting the user whether they would like to install it.

The profiling API will return a pprof file which you can analyze directly, or using appropriate tools like Go's pprof utility.

Inspect the evidence

  • Read the pprof file and analyse it for hotspots
  • Map hotspots to functions and source locations when evidence supports it; report missing symbols or source mappings.
  • If filenames and function names are pointing at the generated JavaScript, consider suggesting to the user to enable source maps and re-do the profiling.

Optimise

Propose the smallest code change supported by the capture which resolves the issues identified.

Report findings

Return a concise report with:

  • Evidence for each finding: file, function, source location, and metric with units, where available.
  • The smallest actionable change and how to check its effect.

Skill feedback

If the user reports that this skill gave incorrect or outdated guidance, or is missing information, read references/skill-feedback.md.

レビュー

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

コメント

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

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

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

0 / 1000 文字

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

同じリポジトリのスキル

adhd-output-style

無料概要あり

要点を先に示し、作業を短い番号付き手順に分けるなど、作業記憶に負担をかけにくい形式で応答を整え、説明も添えるスキルです。

  • 手順を短く区切って進めたいとき
  • 回答の要点を先に知りたいとき
  • 進捗を見失わず作業したいとき
fcakyon/claude-codex-settings1,1922026年10月29日 更新

aeo

無料概要あり

AI検索で商品やサービスが知られていない段階の購入者に見つかるよう、質問と回答、引用元を調べ、改善案と成果の測定計画を組み立てます。

  • AI検索での見つかりやすさを調べたいとき
  • 購入者向け質問セットを作りたいとき
  • 引用元と競合を分析したいとき
fcakyon/claude-codex-settings1,1922026年10月29日 更新

agent-browser

無料概要あり

Webサイトを開いて内容を読み、ボタン操作やフォーム入力、データ抽出、スクリーンショット撮影まで進めるブラウザー自動化の手順を案内します。

  • Webフォームに入力したいとき
  • ページから情報を抽出したいとき
  • 画面のスクリーンショットを撮りたいとき
fcakyon/claude-codex-settings1,1922026年10月29日 更新

agents-sdk

無料概要あり

Cloudflare Agents SDKを使うアプリの開発、デバッグ、レビューを支援し、状態管理やチャット、バックグラウンド処理などの実装を確認するスキルです。

  • Agents SDKでアプリを作りたいとき
  • 既存のWorkersにSDKを追加したいとき
  • 状態管理やルーティングをデバッグしたいとき
fcakyon/claude-codex-settings1,1922026年10月29日 更新

anthropic-frontend-design

無料概要あり

案件の内容に合わせて配色・文字・レイアウトを設計し、定型的に見えないWeb画面を組み立てるためのスキルです。

  • 新しいWeb画面の方向性を決めたいとき
  • 既存ページの見た目を見直したいとき
  • 配色や書体、レイアウトを選びたいとき
fcakyon/claude-codex-settings1,1922026年10月29日 更新

app-auth

無料概要あり

WebアプリのメールやGoogleログイン、登録、パスワード再設定を共通のアカウント方針で整え、同じタブで戻れるログイン導線を設計します。

  • Webのログイン方式を統一したいとき
  • Googleログインを再利用したいとき
  • 登録や再設定の導線を見直したいとき
fcakyon/claude-codex-settings1,1922026年10月29日 更新

fcakyon のスキルをすべて見る

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