optimize-cpu-workloads

optimize-cpu-workloads is a skill for Claude Code from zystem-io/zymtrace-skills. It costs 225 tokens per session (3,961 once invoked), scanned A, original, Apache-2.0.

A CPU performance analysis workflow for deployments that do not use GPUs. It examines profiles, which record where processors spend time, to identify the hottest programs, functions, containers, hosts, or pods.

In plain words
What is it for?
Finding the biggest CPU consumers, reading CPU flamegraphs, choosing which application to optimize first, and investigating CPU-only services.
Why use it?
It helps focus optimization work on the application or function using the most CPU instead of guessing from general system metrics.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions CLAUDE.md; positional $N argument; mentions Claude Code.

Part of the zymtrace plugin — 11 skills, 1 agent shipped together

Good fit Finding the biggest CPU consumers, reading CPU flamegraphs, choosing which application to optimize first, and investigating CPU-only services.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/zystem-io/zymtrace-skills/optimize-cpu-workloads
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add zystem-io/zymtrace-skills --skill optimize-cpu-workloads
Clone the repo
git clone --depth 1 https://github.com/zystem-io/zymtrace-skills

Made for: Claude Code.

Or install zymtrace, the plugin that ships this one along with the rest of its 11 skills, 1 agent.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for optimize-cpu-workloads

README.md
[![agentmods](https://agentmods.dev/badge/skills/zystem-io/zymtrace-skills/optimize-cpu-workloads/github.svg)](https://agentmods.dev/skills/zystem-io/zymtrace-skills/optimize-cpu-workloads)
Your own site
<a href="https://agentmods.dev/skills/zystem-io/zymtrace-skills/optimize-cpu-workloads"><img src="https://agentmods.dev/badge/skills/zystem-io/zymtrace-skills/optimize-cpu-workloads/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for optimize-cpu-workloads

Your own site · 80×15
<a href="https://agentmods.dev/skills/zystem-io/zymtrace-skills/optimize-cpu-workloads"><img src="https://agentmods.dev/badge/skills/zystem-io/zymtrace-skills/optimize-cpu-workloads.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 225 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,961 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00225 $0.03961
Opus 5.5 $0.00090 $0.01584
Sonnet 5.5 $0.00045 $0.00792
Haiku 4.5 $0.00022 $0.00396

Measured 15d ago against content hash 1ad8432b9a86, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

optimize-cpu-workloads scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 15d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

zymtrace/skills/optimize-cpu-workloads/SKILL.md · 138 lines

How it starts

The opening of the file, as written. The whole thing — 138 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Optimize CPU Workloads

The MCP fetches the data — hot traces, flamegraphs, host metrics, top functions, top entities; you analyze: name the hot stacks, identify the pattern, recommend and apply the fix.

For CPU-only deployments. This skill stays entirely on the CPU side — no GPU view, no GPU metrics, no inference-server (vLLM/SGLang/Triton) framing. A CPU-only customer never needs any of that. Running GPU workloads? Use optimize-gpu-workloads instead — there, cross-checking the GPU and CPU sides together is the load-bearing step.

The common discipline — data-source policy, pre-flight, rank-first vs. drill-down, scope-to-own-code/ROI, the always-recommend-and-apply-the-fix rule, the output-template skeleton, severity sizing, and security — lives in shared/analysis-conventions.md. Read it. This skill adds the CPU-specific profiles and call-tree rendering on top.

Connection setup lives in configure-zymtrace-mcp; this skill assumes the MCP is connected.

Standard starter prompts (for users who don't know what to ask)

"What's consuming the most CPU over the last 1 hour?" · "Which of my apps should I optimize first?"

Most CPU requests are rank-first (see the shared doc): the user wants to know which thing is hottest or where the best return is. Start by ranking with the MCP's discover (hottest executable/script, with its hosts, containers and pods) or top_functions (hottest functions), then drill into the top user-owned code with hot_traces. The recap leads with the ranking, then the analysis of that entry. If the user already named a workload ("analyze my API service"), skip the ranking and drill straight in.

Default to the last 1 hour if no range is given, and the whole cluster if no workload is named (ask which to narrow if results look noisy).

The CPU analysis protocol

The MCP pulls the data; you do the analysis. Establish a data path first (pre-flight, in the shared doc).

Read the full file on GitHub · 138 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 15d ago Changed · -249 tokens per session 1ad8432b9a86
  2. 1mo ago Changed · +13 lines · +55 tokens per session e9febce84904
  3. 3mo ago First seen · 125 lines · 419 tokens per session scan A 061cd45b2b0f

Subscribe to this mod's changes

optimize-cpu-workloads is a skill published in the GitHub repository zystem-io/zymtrace-skills (8 stars, last pushed 6d ago), licensed Apache-2.0. It adds 225 tokens to every session and 3,961 once invoked, about $0.0009 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

optimize-cpu-workloads compared with skills from other repositories

optimize-cpu-workloads next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
optimize-cpu-workloadszystem-io/zymtrace-skillsSkill86d agoApache-2.0A225Claude Code
cli-anything-renderdocHKUDS/CLI-AnythingSkill71k13d agoApache-2.0A15Claude Code, Codex
cli-anything-nsight-graphicsHKUDS/CLI-AnythingSkill71k13d agoApache-2.0A29Claude Code, Codex
runpod-endpoint-opsrunpod/runpod-plugins-officialSkill57todayApache-2.0A102Claude Code
runpod-pod-doctorrunpod/runpod-plugins-officialSkill57todayApache-2.0A116Claude Code
cuda-kernel-optimizertroycheng/cuda-kernel-optimizerSkill7yesterdayMITA77Codex
fix-ciCliMA/ClimaCore.jlSkill120todayApache-2.0A84Claude Code