Analyzes KEDA ScaledObject configurations to verify trigger correctness and replica count computation without a cluster. Useful for reviewing autoscaling scenarios before deployment.
Ships in llm-d-autoscaling. 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.
Arguments: $ARGUMENTS: a scenario under benchmark/config/scenarios/,
optionally a backend overlay under benchmark/config/cluster-configs/. If no
overlay is given, use the one the scenario's header names, or ask.
The definitions this skill applies live in the protocol, not here:
benchmark/protocol/1-static-signal-analysis.md:
what the HPA computes (§1.1), the properties (§1.2), kinds and roles (§1.3);benchmark/protocol/1-per-trigger-how-to.md:
how to establish each of them for one trigger;benchmark/protocol/traps.md: known
metric traps, by component version.Read all three before starting. Do not restate their content in the output; cite the property or section.
For every ScaledObject and every trigger in it, follow
1-per-trigger-how-to.md §1–§6. Rendering with --dry-run is local and safe;
anything else that would touch a cluster needs the user's confirmation.
Clone exporters' source into a temporary directory, never into this repository. When a trigger reads the same metric as an earlier one, reuse that analysis.
Before the first trigger, build the EPP's effective plugin set once, as the how-to's P11 says (§2's configuration record and trap T18), and reuse it for every trigger. Every trigger gets a P11 row, the vLLM ones included: the saturation detector and flow control change what vLLM's series read.
Once every trigger has its rows, check the ScaledObject as a whole. With this
repo's template, scalingModifiers is not rendered (see the how-to, §1), so
the default maximum applies unless the rendered object shows otherwise.
scalingModifiers.formula. The formula replaces the maximum, so the
HPA sees one metric and the per-trigger thresholds and metricType no
longer apply. Apply P1–P4 to the formula's result, check its own target and
metricType, and check each operator across the load range:
min lets the smallest trigger win, so a backlog that collapses after a
scale-up drags the pool down;inflight_tokens on the prefill pool counts until the first
token, which comes from the decode pool, so it carries the KV transfer and
decode delays.behavior. Slow scale-up policies bound the swing of a non-proportional
signal but do not stop it oscillating. An exploding signal pins at
maxReplicaCount; that is harmless only if the true need is already at the
cap.concurrency-detector under flow control, added to
feed one pool's trigger, also empties vllm:num_requests_waiting on every
pool the EPP routes to (trap T20). On
prefill/decode, both pools share one EPP and its effective set, unless the
scenario runs one EPP per role.name and scaleTargetRef.name must contain
${model.idLabel}, or a second stack that inherits the same keda: block
writes the same object (trap T17). Every trigger of one ScaledObject must
select the same pool, the one scaleTargetRef names: a decode
ScaledObject that reads prefill series, or another stack's, scales on load
it does not carry.Write the verdict as a Markdown report, using the template below. Save it as
benchmark/protocol/verdicts/<guide>/<strategy>.md (for example
verdicts/pd-disaggregation/token-aware.md), so it sits in version control
next to the protocol, and show it in the chat. Do not edit the scenario itself
without asking.
Every finding carries one evidence tag and the evidence itself. A finding without its evidence is not finished.
| Tag | Evidence required | Example |
|---|---|---|
config | the rendered file and line, quoted | 27_keda-scaledobjects.yaml:42: metricType: AverageValue |
source | repo@commit:path#Lline, at the deployed version, with the line quoted or paraphrased | vllm-project/vllm@3facf82:vllm/v1/metrics/loggers.py#L537-L542: vllm:num_requests_waiting is a gauge |
measure | the question to answer, phrased so step 2 can answer it | "sustained prefill tokens/s of one replica at the TTFT SLO, for the benchmark's mix and the deployed cache setup" |
Also:
1.0 / 0.95 = 1.05 < 1.1,
not "too close to the ceiling".measure and say why.Replace every <…>. Keep the headings, so verdicts can be compared across
variants.
# Static signal analysis: <guide>/<strategy>
| | |
|---|---|
| Scenario | `benchmark/config/scenarios/staging/<guide>/<strategy>.yaml` |
| Backend overlay | `benchmark/config/cluster-configs/<platform>/<backend>.yaml` |
| Rendered with | `llmdbenchmark standup --dry-run`, llm-d-benchmark@<commit>, or "by hand, defaults from 27_keda-scaledobjects.yaml.j2@<commit>" |
| Load | <the scenario's workload profile@commit: open or closed loop, `q`, mean ISL and OSL, prefix reuse; `λ_in` and `λ_out` in tokens/s (step 1 §1.1)> |
| Date | <YYYY-MM-DD> |
| Verdict | **Accepted** / **Accepted with conditions** / **Rejected** |
<One paragraph: the verdict, the reason in one sentence, and the predicted
behavior in one sentence.>
## Deployed versions
| Component | Version | Source of the version |
|---|---|---|
| <EPP> | <v0.11.0> | <llm-d-benchmark defaults.yaml@commit:line> |
| <EPP configuration> | <file name; feature gates; plugins the loader adds> | <scenario or values file:line> |
## ScaledObject `<name>`
<minReplicaCount, maxReplicaCount, pollingInterval, behavior: one line each,
with rendered line numbers.>
### Trigger `<trigger name>`
```promql
<query, as rendered>
```
`metricType: <…>`, `threshold: <…>`, `activationThreshold: <…>`
(`<file>:<line>`).
- **What it counts:** <the metric's type, and the events at which a request is
added and removed, or at which the counter is incremented>. `source`:
<repo@commit:path#L…>.
- **Kind:** <kind from §1.3>. **Role it can play:** <role>. **Role it plays
here:** <role>.
| Property | Result | Evidence | Tag |
|---|---|---|---|
| P1 proportional | pass / fail / n/a | <evidence, with arithmetic> | config / source / measure |
| … | | | |
<Only properties the role requires, plus any other that fails. n/a must say
why.>
**Failure case:** <a concrete load and pod count where this trigger asks for
the wrong replica count, with the computation.>
## Combination
- **Driver in normal operation:** <trigger, or "none">.
- **Who decides where:** <per trigger: the conditions under which it sets the
count>.
- **Scale-in:** <what drives the pool down, and whether it can go below need>.
- **behavior and bounds:** <effect of the scale-up/scale-down policies and of
maxReplicaCount>.
- **Isolation:** <per neighbour N1–N4 (step 1 §1.2, P10): whether any
selector matches its series; and whether the ScaledObject's name and target
are unique per stack>.
**Predicted behavior:** <two or three sentences: what the pool does at low
load, near capacity, past capacity, and at constant load>.
## Needs measurement
1. <question for step 2>, needed by <finding>.
## Fixes
| Fails | Fix | Effect |
|---|---|---|
| <trigger, property> | <concrete change to the keda block, as YAML or PromQL> | <which check it makes pass> |
benchmark/protocol/verdicts/pd-disaggregation/kv-early.md
is a complete verdict at the expected depth.
Before finishing, check the report against the template: every trigger has
its table, every fail has a failure case, every measure appears under
"Needs measurement", every failure has a fix, and every trigger has a P10 and a P11 row.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/llm-d-autoscaling:static-signal-analysisfrom llm-d-autoscaling
npx claudepluginhub llm-d/llm-d-autoscaling --plugin llm-d-autoscaling6 skills in this plugin
/blis-evaluationRun step 3 of this repo's autoscaling evaluation protocol (benchmark/protocol/) — evaluate a KEDA scenario, single-pool or prefill/decode, in blis-signal-lab (BLIS with KEDA's scale loop and an HPA per pool) on a laptop, with the same fixed run set, reports and gate as the GPU evaluation (knee staircase, SO-active staircase, mix-shift, overload under and over the cap, agentic, static-replica baseline, scale from zero, bursty, short spikes, scale-down). Translates the ScaledObjects' triggers into blis signals, runs each load, converts blis's output to llm-d-benchmark's layout, and writes one report per run (a per-stage table and a load-vs-supply figure) and a summary. Use when asked to simulate a scaling configuration, to evaluate a scenario with blis or without GPUs, to rehearse step 5, or to try a trigger change before a GPU run. Invoke with /blis-evaluation <scenario.yaml> [blis scenario] [--lab <blis-signal-lab checkout>]./gpu-evaluationRun step 5 of this repo's autoscaling evaluation protocol (benchmark/protocol/) — evaluate a KEDA scenario on a real GPU plant with the fixed run set (knee staircase, SO-active staircase, mix-shift, overload under and over the cap, agentic, static-replica baseline, scale from zero, bursty, short spikes, scale-down) and write one report per run (llm-d-benchmark's report plus a load-vs-supply figure) and a summary, from data captured on the live cluster. Use when asked to run a scenario on GPUs, to measure a scaling configuration on real hardware, to calibrate a knee or μ_SLO on a GPU, or to compare an autoscaled run with a static fleet. Invoke with /gpu-evaluation <scenario.yaml> [backend overlay] [--context <kube-context>]./run-benchmarkRun an llm-d-benchmark scenario from this repo's benchmark/ directory — the autoscaling test bed under benchmark/config/ (specifications, backend-agnostic scenarios, and cluster-config backend overlays). Drives the llmdbenchmark CLI through the standup → smoketest → run → teardown lifecycle against a Kubernetes cluster, then optionally renders the per-session Grafana/HTML report. Use when the user wants to run, stand up, smoke-test, or tear down a benchmark scenario (e.g. pd-disaggregation, lws-pd-disaggregation, a staging KEDA experiment), verify a spec + backend compose with --dry-run, or produce a session report. Invoke with /run-benchmark [spec] [backend] [-p namespace] or in response to natural-language requests./scenario-sanity-checkSanity-check a benchmark scenario in this repo's benchmark/ test bed end to end — standup succeeds, every pod is Running and healthy, sending requests increases a role's replicas by 1, and stopping the requests scales it back down to minReplicas. Use before trusting a new or edited scenario/staging variant/backend overlay, or when asked to "sanity check", "smoke test the autoscaling of", or "verify scaling for" a scenario. Invoke with /scenario-sanity-check [spec] [backend] [-p namespace]./simulator-verificationRun step 2 of this repo's autoscaling evaluation protocol (benchmark/protocol/) — prove on a real cluster, with a vLLM simulator instead of GPUs, that each failure the step 1 verdict predicted for a KEDA scenario actually shows up (or show that step 1 was wrong), and write the verdict with SVG plots drawn from captured data. Use when asked to verify, reproduce, confirm or test a step 1 / static-signal-analysis verdict on a cluster, to run a staging scenario against vllm-model-sim or llm-d-inference-sim, or to check a proposed fix to a scaling trigger. Invoke with /simulator-verification <step 1 verdict.md> [backend overlay] [--context <kube-context>].Other plugins' skills for the same job