Runs step 2 of an autoscaling evaluation protocol on a real cluster using a vLLM simulator to verify or disprove step 1 failure predictions for KEDA scenarios, producing verdicts with SVG plots.
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 step 1 verdict under
benchmark/protocol/verdicts/<guide>/<strategy>.md, optionally a backend
overlay under benchmark/config/cluster-configs/ (if none is given, use the
one the verdict names), and optionally --context <kube-context>, the
Kubernetes context to run against (default: the current one).
The rules live in the protocol, not here. Read it first and apply it; this skill adds only the order, the gates and the commands:
benchmark/protocol/2-simulator-verification.md:
which properties to test and how (§2.3), the simulator (§2.1, §2.2), the
verdict and its proof (§2.4), plots (§2.5);benchmark/protocol/1-static-signal-analysis.md
for P1–P11, and benchmark/protocol/traps.md;run-benchmark skill for the standup, smoketest, run and teardown
commands.Everything after the dry-run writes to a cluster. A write that succeeds does
not mean the cluster is meant for experiments, so tell the user which context
will be used, whether it came from --context or is the current one, and ask
whether it accepts experiments before the first write. Pass --context to
every kubectl and oc command and make sure llmdbenchmark extracts the
same one. If the user is not there to answer, stop after step 1 and say what
is needed.
List the properties to test (§2.3 item 1) and pick the simulator (§2.1). If the scenario's model has no tuned profile, write the Simulator gaps entry now.
Order the experiments by cost: static checks first (a PromQL query against live series settles P7 and P9 in seconds), then P4 from the HPA's arithmetic, then the load experiments (P1, P2, P3, P5, P8), which need the knee (§2.3 item 5).
Run llmdbenchmark standup --dry-run with the scenario and overlay and read
the rendered plan/<stack>/27_keda-scaledobjects.yaml: the queries must be the
ones step 1 analyzed, placeholders resolved. Check the EPP plugin config
against the pinned router image too; the router drops plugins between releases
(disagg-headers-handler went in v0.11.0) and a stale config crash-loops the
EPP.
Name the namespace step2-<scenario>-<YYYYMMDD>. Pass the same --spec,
--cluster-config, --workspace benchmark/results and -p to every command.
The CLI expects ../llm-d-benchmark next to the repository. Apply the gate in
§2.3 item 4 with the run-benchmark skill's ScaledObject check. On a local
cluster, run that skill's local memory check (Step 4) before the standup. A
load experiment drives a pool to maxReplicaCount, so the peak must fit. An
experiment whose pods were OOMKilled or evicted for memory proves nothing
about the trigger: rerun it, or record it as not run.
Calibrate the knee first when it applies (§2.3 item 5), then one property at a time:
max(...) or a per-job selector, not a bare
sum(... {pod=…}): a pod scraped by two PodMonitor jobs reads about twice
its value under sum. Check count by (job)(...) before trusting a sum.kubectl get deploy on the same clock as the
samples, and read the HPA (kubectl get hpa, describe) as well.Write the verdict as §2.4 prescribes, structured by property, with the proof
and plots it requires (§2.5). Build each SVG with a script kept beside the CSV,
in verdicts/<guide>/<scenario>-step2/. Render every SVG to look at it; on
macOS qlmanage -t -s 900 -o . file.svg makes a PNG. Do not commit the PNGs.
When a run shows something outside the properties (an unexplained scale event,
a KV value above 1.0), record it as unexplained under needs measurement; do
not invent an explanation.
When the claim is that a fix works, add the fix as a sibling scenario (for
example <strategy>-<fix>.yaml and its .yaml.j2), leave the original
unchanged so its verdicts stay true, and re-run after a fresh teardown and
standup.
Run llmdbenchmark teardown with the same flags, then
kubectl delete namespace <namespace>, then delete the leftovers named for it
(kubectl get clusterrolebinding | grep <namespace>). If the user wants the
namespace kept for a follow-up, say so in the verdict and give the commands.
Before finishing, check the verdict against §2.4 and §2.5, and that no context or cluster name appears in it.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/llm-d-autoscaling:simulator-verificationfrom 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]./static-signal-analysisRun step 1 of this repo's autoscaling evaluation protocol (benchmark/protocol/) on a KEDA scaling configuration — judge, without a cluster, whether each trigger and their combination can compute the right replica count, and write the verdict. Use when asked to review, assess or analyze a scenario's keda block, a ScaledObject, a new staging variant, or a PromQL scaling trigger before running it. Invoke with /static-signal-analysis <scenario.yaml> [backend overlay].Other plugins' skills for the same job