/devops-skills:performance-tuningfrom devops-skills
Guides systematic performance tuning: establish a baseline, find bottlenecks using the USE method (Utilization, Saturation, Errors), optimize the hot path, and verify improvements. Use when diagnosing slowness or tuning without data.
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.
Read when SKILL.md points to them.
Most performance work fails before it starts, because it starts with a change instead of a measurement. Someone bumps a thread pool, adds an index, or increases memory, the number moves a little, and nobody can say whether it was the change or noise. Tuning without a baseline is not engineering, it is folklore that happens to run in production.
The fix is a discipline, not a tool: measure the current state, form a hypothesis about the bottleneck, make one change, and measure again against the same baseline. Anything that skips a step is a guess wearing a lab coat.
If you can't point to the metric that proves the change worked, you haven't tuned anything.
For the USE method applied resource-by-resource with the exact Linux commands, read
references/use-method.md.
A baseline is the number you will compare every change against — latency at a given percentile, throughput at a given error rate, cost per request. Without it, "faster" is a feeling, and feelings regress silently when someone else's change ships next week.
Done when: there is a written baseline number, its percentile, and the load level it was measured under.
Utilization, Saturation, Errors — for every resource in the request path, check whether it is busy, queueing, or failing. The instinct is to tune the component you understand best; the USE method forces you to check the one that is actually constrained instead.
| Resource | Utilization | Saturation | Errors |
|---|---|---|---|
| CPU | % busy | run-queue length | throttling events |
| Memory | % used | swap / page faults | OOM kills |
| Disk / network | % busy | queue depth | retransmits, retries |
Done when: one resource is identified as saturated or erroring, with the metric that shows it, and the rest are ruled out.
A tuning session that changes five settings at once and reports "it's faster now" has learned nothing reusable — nobody knows which change mattered, and the next regression will require redoing all of it blind. One change, one remeasurement, one recorded delta.
Done when: each applied change has a recorded before/after delta on the same baseline metric.
Time spent making a function that runs once per request 10% faster is wasted if a different
function runs 10,000 times per request. Let profiling tell you where time is actually spent,
then fix the disproportionate cost, even when it means touching unfamiliar code.
Done when: the change targets the largest measured contributor to the baseline metric, not the most familiar code.
A change that helps one hand-run request can regress under concurrency — lock contention,
connection pool limits, and GC pauses only appear under real traffic shape. Confirm the win with
load-testing at production-like concurrency before calling it done.
scalability-design.Done when: the improvement holds under a load test that matches the original baseline's concurrency and duration.
An untracked tuning change looks like an arbitrary setting to the next person who touches the system, and they either revert it by accident or are afraid to touch it at all. Document the bottleneck found, the change made, and the measured effect next to the config itself.
capacity-planning.Done when: the change, its cause, and its measured effect are documented next to the configuration that changed.
State the baseline metric and its value, the bottleneck identified via USE, the specific change made, and the measured before/after delta under load. Name honestly which resources were never checked or which change was applied without a controlled remeasurement — an unverified tuning change is a regression waiting for the next traffic increase, and saying so is worth more than a confident number nobody can reproduce.
What SKILL.md sets; muted values are Claude Code's defaults
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`.