agents-sdk
Build, debug, or review Cloudflare Agents SDK applications using the agents package.
Profile or debug CPU usage and memory allocation in deployed Cloudflare Workers and Durable Objects. Then use this information to optimize your code.
$ npx -y skills add cloudflare/skills --skill workers-profiling --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/workers-profilingContext preview
The summary Claude sees to decide when to auto-load this skill.
Profile or debug CPU usage and memory allocation in deployed Cloudflare Workers and Durable Objects. Then use this information to optimize your code.
name: workers-profiling description: Profile or debug CPU usage and memory allocation in deployed Cloudflare Workers and Durable Objects. Then use this information to optimize your code.
Find expensive functions or memory allocations in deployed code and come up with ways to fix them.
Start with the [production profiling guide](https://developers.cloudflare.com/workers/observability/profiling-in-production/index.md) to understand how Workers and Durable Objects profiling works.
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](/cf/) 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.
Propose the smallest code change supported by the capture which resolves the issues identified.
Return a concise report with:
A collection of Agent Skills for building on Cloudflare, Workers, the Agents SDK, and the wider Cloudflare Developer Platform.
Repo: cloudflare/skills
Build, debug, or review Cloudflare Agents SDK applications using the agents package.
Build and troubleshoot Cloudflare Basin analytics workflows with Basin Pipelines, Basin…
Cloudflare's official cf CLI (beta) for the public Cloudflare API and Workers projects. Use…
Implement or troubleshoot Cloudflare Email Sending and Email Routing integrations and their…
Assess and plan migrations from existing VPN, SWG, or SASE platforms to Cloudflare One,…
Design, configure, troubleshoot, or review Cloudflare One Zero Trust and SASE deployments.…