llm-pipeline-analysis
Inspect LLM torch profiler traces at forward-pass, layer, and kernel level. Use when you need layer timings, anchor-kernel…
Replay-first debug flow for SGLang serving problems. Use when a live or recent server shows health-check failures, latency or throughput regressions, queue growth, timeouts, distributed stalls, crash dumps, wrong outputs after deploys, or PD/EP/HiCache issues, and the job is to
$ npx -y skills add BBuf/AI-Infra-Auto-Driven-SKILLS --skill sglang-prod-incident-triage --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/sglang-prod-incident-triageContext preview
The summary Claude sees to decide when to auto-load this skill.
Replay-first debug flow for SGLang serving problems. Use when a live or recent server shows health-check failures, latency or throughput regressions, queue growth, timeouts, distributed stalls, crash dumps, wrong outputs after deploys, or PD/EP/HiCache issues, and the job is to
name: sglang-prod-incident-triage description: Replay-first debug flow for SGLang serving problems. Use when a live or recent server shows health-check failures, latency or throughput regressions, queue growth, timeouts, distributed stalls, crash dumps, wrong outputs after deploys, or PD/EP/HiCache issues, and the job is to turn the problem into a replay plus the right next debug tool.
Use the maintained [source contracts](../../docs/upstream-source-contracts.md) when applying historical evidence to a current branch. The review/history corpora retain their own capture dates; they do not certify today's dispatch or numerical defaults. For kernel replacements, verify that the real model executes the candidate before treating end-to-end tests as coverage.
Use this skill to turn a live serving problem into a debug path you can replay.
Use one loop:
Do not start with profiling.
As of SGLang `v0.5.21` (2026-09-29), two extra live-server signals matter:
that forget to close sessions can look like unexplained KV growth
the incident is auth-related, confirm which server binary is actually serving before blaming application tokens
This skill should work with more focused skills instead of re-implementing them:
compute-side path
Three examples are included:
Return:
Confirm the ingress first: Python `/server_info.frontend` is `python`. Rust ingress lacks `/v1/loads`, `/metrics`, `/configure_logging`, `/hicache/*`, `/set_trace_level`, `/start_profile` and `/ready`; 404 there is an ingress limitation. Rust health stays 503 until startup warmup succeeds.
If a live server is reachable, collect a read-only bundle before anything more intrusive:
python3 scripts/incident_artifact_tool.py collect-bundle \ --base-url http://127.0.0.1:30000 \ --outdir /tmp/incident_bundle python3 scripts/incident_artifact_tool.py summarize-bundle \ /tmp/incident_bundle
If the server is protected:
python3 scripts/incident_artifact_tool.py collect-bundle \ --base-url http://127.0.0.1:30000 \ --token "$SGLANG_BEARER_TOKEN" \ --outdir /tmp/incident_bundle
The bundle script collects:
If stale or corrupt HiCache contents are the working diagnosis, capture the bundle and relevant request dumps before calling `POST /hicache/storage-backend/clear`. That endpoint clears the attached backend's contents without detaching it; treat it as destructive and use it only when losing the cached contents is acceptable. Attach, detach, and clear details are in [references/endpoints-and-signals.md](references/endpoints-and-signals.md).
Use the summary for a quick read on:
If the summary says the bundle was captured while the server was idle, recollect it during traffic or move quickly to dump plus replay.
If no live server is reachable, start from the best dump or log already available:
Read [references/decision-tree.md](references/decision-tree.md) only if the problem class is still unclear:
Then preserve the request payload that actually triggers the problem:
Do not jump straight from a live symptom to low-level debugging without first saving something you can replay.
Read [references/endpoints-and-signals.md](references/endpoints-and-signals.md) when you need help reading the baseline bundle or the replay target.
Read [references/replay-trace-profile.md](references/replay-trace-profile.md) when you need the replay, trace, profile, or bisect paths.
Standard order:
1. collect baseline bundle 2. capture request dump or crash dump 3. restart a clean debug target if needed 4. replay the same issue 5. collect replay-time logs and dumps
Use replay when:
If a crash dump exists, summarize it first:
python3 scripts/incident_artifact_tool.py summarize-dump \ --input-file /path/to/crash_dump.pkl
Then replay:
python3 /path/to/sglang/scripts/playg
**Agent-ready skills for LLM serving benchmarks, profiler triage, capacity planning, model Day-0 support, code review, incident triage, and model PR history across SGLang, vLLM, TensorRT-LLM, and TokenSpeed — plus SGLang PR and article explainer videos.**
Inspect LLM torch profiler traces at forward-pass, layer, and kernel level. Use when you need layer timings, anchor-kernel…
Framework-independent LLM serving benchmark skill for comparing SGLang, vLLM, TensorRT-LLM, TokenSpeed, or another serving…
Parse SGLang/vLLM startup logs to explain GPU memory use and request capacity. Use for KV cache budget, mem-fraction-static…
Analyze existing Torch Profiler Chrome traces or capture from SGLang, vLLM, TensorRT-LLM and TokenSpeed servers. Return kernel…
Return public original model architecture diagrams for user-specified LLM, VLM, MoE, diffusion, OCR, and SGLang/sgl-cookbook…
Build an operator-level compute template for an LLM and estimate FLOPs/MFU for a serving shape. Use when you need tensor shapes,…