writing-skills
writing-skills
Use when creating new skills, editing existing skills, or verifying skills work before deployment
workers-profilingProfile or debug CPU usage and memory allocation in deployed Cloudflare Workers and Durable Objects. Then use this information to optimize your code.
Independent GitHub snapshot · Automated classification · Original documentation governs
Find expensive functions or memory allocations in deployed code and come up with ways to fix them.
Start with the production profiling guide to understand how Workers and Durable Objects profiling works.
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.
Propose the smallest code change supported by the capture which resolves the issues identified.
Return a concise report with: