/devops-skills:profilingfrom devops-skills
Uses CPU/memory profilers and flame graphs to identify where time, memory, and IO are actually spent in a running system, replacing intuition with data for optimization targeting.
Ships in devops-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Every engineer has a theory about what's slow, and most of those theories are wrong, because intuition is trained on code structure, not on runtime behavior. The function that looks expensive because it's long is rarely the one burning the CPU; the one that looks trivial because it's three lines and called in a tight loop usually is. Profiling replaces the theory with a measurement of where the program actually spends its time and memory.
The discipline is to follow the data even when it points somewhere surprising, and to stop tuning the moment the numbers agree with what you already believed if you never actually looked.
Don't optimize what you assume is slow — profile, then optimize what the data says is slow.
Sampling profilers interrupt the program periodically and record the call stack, giving low overhead and a statistical picture. Instrumentation profilers insert timing code around every function call, giving exact counts and timings but at a real cost that can itself distort the result. Picking the wrong one either misses short-lived hot spots or perturbs production traffic.
Done when: the profiler's measured overhead is recorded alongside the profile, and no instrumented run is used to justify a production latency number.
A flame graph stacks call frames vertically by depth and sizes them horizontally by time spent. The instinct is to stare at the tallest stack because it looks most complex; the frame that matters is the widest one, because width is where the CPU actually spent its time, regardless of how deep the call chain got there.
Done when: the widest frame in the flame graph has been identified and traced to a specific function or query, not just eyeballed.
A system can be CPU-idle and still be slow because it's waiting on disk, a lock, or garbage collection triggered by allocation pressure. CPU profiling alone is blind to all three. Memory profiling shows what's allocating and what's being retained; IO profiling shows what's actually waiting on disk or network rather than computing.
Done when: memory allocation behavior and IO wait time have both been checked, not just CPU samples.
A profile taken against an empty local database, with no concurrent requests, measures a
different program than the one running in production — index scans, lock contention, and cache
misses only appear at realistic data volume and concurrency. Combine profiling with
load-testing to get a profile that reflects the real hot path.
Done when: the profile was captured under data volume and concurrency that resembles production, or the gap from production is explicitly noted.
Fixing what the first profile showed doesn't guarantee it was the whole problem — a second bottleneck may have been hiding behind the first, or the change may not have touched the code path that actually ran. Re-profile after the change to confirm the hot frame shrank and see what's now the widest frame instead.
performance-tuning to record the change and its measured delta
against the baseline.Done when: a post-change profile confirms the previous hot frame shrank and identifies whatever is now the largest remaining contributor.
State the profiling method used and why, the widest frame or largest allocation source found and the function or query it traced to, and whether memory and IO were checked alongside CPU. Name honestly which conditions weren't production-representative — data volume, concurrency, or overhead from instrumentation — since a profile taken under the wrong conditions can point confidently at the wrong bottleneck.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
profiling, flame-graph, performance-analysis, sampling, instrumentation
npx claudepluginhub arjunprabhulal/devops-skills --plugin devops-skills88 skills in this plugin
/alertingCovers designing alerts that page a human only when a human needs to act — symptom-based alerting over cause-based, multi-window burn-rate alerts on error budgets, severity tiers that route between page/ticket/dashboard, requiring every page to link a runbook, and tuning out alert fatigue. Use this whenever the user is writing a new alert rule, asking why on-call is paged too often or missing real incidents, choosing an alert threshold, or designing severity routing. For the SLO the burn-rate math comes from use `slo-definition`, and for what a runbook should contain use `runbooks`./api-gatewayCovers the managed front-door pattern for APIs — request routing, centralized auth, rate limiting and quotas, request/response shaping, and recognizing when a gateway helps versus becomes a bottleneck or single point of failure. Use this whenever the user is designing an API entry point, adding rate limits or quotas, centralizing auth for several backend services, transforming a request between an external and internal contract, or debugging a gateway timeout. For east-west traffic between internal services use `service-connectivity`, and for token issuance details use `iam-access-management`./argocd-operationsCovers running Argo CD day to day — structuring app-of-apps, choosing sync policies and waves, reading health versus sync status correctly, and unsticking a degraded or hung Application. Use this whenever the user mentions Argo CD, an Application stuck "Progressing" or "OutOfSync," app-of-apps or ApplicationSets, sync waves and hooks, or asks why a deploy shows synced but the workload is unhealthy. For the underlying model this tool implements use `gitops`; for automated canary analysis on top of it use `progressive-delivery`; for the workloads it manages use `kubernetes-operations`.