Software DevelopmentOfficial · cloudflare

Workers Profiling skill for Claude

Profile or debug CPU usage and memory allocation in deployed Cloudflare Workers and Durable Objects. Then

When Claude uses it

use this information to optimize your code.

Workers Profiling SKILL.md

The full skill file from cloudflare/skills (Apache-2.0).

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.

How to install Workers Profiling

Claude Code

Copy the skill into your personal skills folder (or into .claude/skills/ inside a project):

npx degit cloudflare/skills/skills/workers-profiling#main ~/.claude/skills/workers-profiling

Codex

npx degit cloudflare/skills/skills/workers-profiling#main ~/.codex/skills/workers-profiling

Claude.ai and Claude Desktop

Download the skill folder from GitHub, zip it, and upload it under Settings → Capabilities → Skills.

Frequently asked questions

+What does the Workers Profiling skill do?

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

+How do I install Workers Profiling in Claude Code?

Copy the skill folder into ~/.claude/skills/workers-profiling, for example with "npx degit cloudflare/skills/skills/workers-profiling#main ~/.claude/skills/workers-profiling". Claude Code loads it automatically and uses it when a task matches.

+Does Workers Profiling work with ChatGPT or Codex?

Yes. Workers Profiling uses the open SKILL.md format. In Codex, put the folder in ~/.codex/skills/workers-profiling. In Claude.ai, zip the folder and upload it under Settings → Capabilities → Skills.

+Is Workers Profiling free?

Workers Profiling is published on GitHub by cloudflare under the Apache-2.0 license, which allows free use.

Related software development skills

  1. Code Review

    Review the changes since a fixed point (commit, branch, tag, or merge-base) along two axes: Standards (does the code follow this repo's…

    mattpocock/skills★ 327k
  2. Using Agent Skills

    Discovers and invokes agent skills. Use when starting a session, or when you need to decide which skill or workflow applies to the piece of…

    addyosmani/agent-skills★ 119k
  3. Build

    Fully automate a coding task with make-plan, do, and babysit.

    thedotmack/claude-mem★ 118k
  4. Wrangler

    Official

    Run or troubleshoot Wrangler CLI commands in projects that have a wrangler.jsonc, wrangler.json, or wrangler.toml file, including local…

    cloudflare/skills★ 3.4k
  5. Application Form Filler

    Fill out job application form fields with context-aware, tailored answers drawn from the candidate's CV and the job description

    Paramchoudhary/ResumeSkills★ 3.2k
  6. Career Changer Translator

    Translate skills from one industry to another, identify transferable skills

    Paramchoudhary/ResumeSkills★ 3.2k
  7. Interview Prep Generator

    Generate STAR stories, practice questions, and talking points from resume

    Paramchoudhary/ResumeSkills★ 3.2k
  8. Offer Comparison Analyzer

    Compare multiple job offers side-by-side with total compensation analysis

    Paramchoudhary/ResumeSkills★ 3.2k
  9. Reference List Builder

    Format professional references properly and prepare reference materials

    Paramchoudhary/ResumeSkills★ 3.2k

See all software development skills →

More skills from cloudflare

  1. Agents Sdk

    Official

    Build, debug, or review Cloudflare Agents SDK applications using the agents package.

    cloudflare/skills★ 3.4k
  2. Cloudflare

    Official

    Discover and choose Cloudflare products for apps, APIs, AI agents, storage, networking, and security.

    cloudflare/skills★ 3.4k

All skills by cloudflare →

Give your whole team an AI agent with skills

Cody runs managed AI agents your team can message in Slack, Teams, WhatsApp and the web, with 50+ business integrations, scheduled tasks and memory. No terminal required.