Skills
Skill 21 of 22
Profile or debug CPU usage and memory allocation in deployed Cloudflare Workers and Durable Objects.
1 minute · 264 words · 6 sections
Install
npx skills add cloudflare/skills --skill workers-profilingnpx skills add cloudflare/skills/plugin marketplace add cloudflare/skillsThe first command installs just this skill, by the name in its SKILL.md; the second installs the whole repository.
Find expensive functions or memory allocations in deployed code and come up with ways to fix them.
Start with the production profiling guide (opens in a new tab) to understand how Workers and Durable Objects profiling works.
Where possible, use the cf CLI (opens in a new tab) 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:
If the user reports that this skill gave incorrect or outdated guidance, or is missing information, read references/skill-feedback.md (opens in a new tab).
Profile or debug CPU usage and memory allocation in deployed Cloudflare Workers and Durable Objects. Then use this information to optimize your code.
The verbatim description from this skill’s front matter — the string an agent matches on to decide whether to load it.
main, last pushed 6 November 2026.SKILL.md, not by matching a directory convention. One layout observed: skills/*/SKILL.md.h1 and no skipped levels:.claude-plugin/marketplace.json by Cloudflare, declaring 1 plugin. It is read for editorial metadata only — never as the skill index, which is always the repository tree./cloudflare/skills.md, and each skill at its own .md URL.1 file · 3 KB
Everything this skill ships beside its prose. All of it is set here, as a subchapter of skill 21.
Documentation the agent loads on demand, rather than up front.