xpu-runtime-preflight
Run a read-only go/no-go preflight before any Intel GPU/XPU skillpack work. Checks the GPU driver binding, /dev/dri permissions, render/video groups, Docker…
от intel★ 54 звезды на GitHub
Установить xpu-runtime-preflight в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
xpu-runtime-preflight
Use this as the shared readiness gate before Intel GPU/XPU skills in
this pack. It answers "is this host/container ready for the requested
skill path?", reports a READY / READY WITH WARNINGS / BLOCKED
verdict, and routes failures to focused skills. It does not start model
servers, run benchmarks, capture profiles, restart Docker, pull large
images, edit system configuration, or validate generated content.
When To Use
Run this before a model run, benchmark, profile, or container workflow
when readiness depends on more than GPU discovery. Use xpu-discover
for device inventory and driver health; use this skill for the broader
go/no-go path: /dev/dri, groups, Docker, shared memory, disk, proxy
and network checks, plus optional container XPU visibility.
If preflight finds a blocker, follow the generated SUMMARY.md handoff.
Do not duplicate routing guidance in this skill body.
Quick start
plugins/intel-gpu-ai-skills/skills/xpu-runtime-preflight/scripts/check_runtime_preflight.sh \
--target-gpu 0 \
--out-dir .out/skills/xpu-runtime-preflight
Add an already-local image when the next skill path runs in a container:
plugins/intel-gpu-ai-skills/skills/xpu-runtime-preflight/scripts/check_runtime_preflight.sh \
--target-gpu 0 \
--image <already-local-image>
When downloads or image builds are part of the next step, add a network check:
plugins/intel-gpu-ai-skills/skills/xpu-runtime-preflight/scripts/check_runtime_preflight.sh \
--env-file .env \
--target-gpu 0 \
--network-check
The script writes:
.out/skills/xpu-runtime-preflight/SUMMARY.md
.out/skills/xpu-runtime-preflight/status.tsv
.out/skills/xpu-runtime-preflight/preflight.log
It also writes per-check evidence files such as
xpu-smi-discovery.json, xpu-smi-health.txt,
xpu-smi-stats-target.txt, kernel-log.txt, kernel-log-review.txt,
target-driver.txt, dev-dri.txt, docker-info.txt, and, when
--image is supplied, image-preflight.txt.
Device resolution parses xpu-smi discovery -j with python3. When
xpu-smi is present but python3 is missing or cannot run the parser, the
script records FAIL preflight-dependency.
What Counts As Ready
Hard pass before GPU/XPU skill work:
xpu-smi discovery -jresolves the target GPU, with thepci_bdf_addressanddrm_devicefields this script needs.- The target GPU has an inspectable kernel driver binding.
xeandi915are accepted;vfio*blocks because the host driver did not bind the target GPU for XPU runtime use. - Bounded
xpu-smi stats -d <id> --samples 1completes or leaves an inspectable warning artifact. /dev/dri/renderD*exists and permissions are understandable.- Docker daemon is reachable by the current user.
/dev/shmand disk space are not obviously too small.- If
--imageis supplied, the selected container sees XPU through a Level Zero or Python XPU visibility probe. The default Python probe requirestorch.xpu.is_available()and a nonzero XPU device count.
A clean run means prerequisites satisfied, execution not tested: only step 7 exercises the runtime.
Warnings do not block every workflow. A missing proxy is fine on direct networks; missing BuildKit is fine unless the next step builds an image.
Two rows are evidence to read, not health verdicts. As INFO they do not
affect the result:
xpu-healthsavesxpu-smi health -ltoxpu-smi-health.txtand records only its exit code, which does not track component condition across builds. InvestigateWarning/Critical;Unknownor missing is inconclusive. See xpu-discover for per-component probes.kernel-log-reviewlists GPU-related kernel log messages (xe, i915, GuC/HuC, DRM, IOMMU, Level Zero) worth reading inkernel-log-review.txt, one line per distinct message with its repeat count, most frequent first. Only identical messages collapse, so one that carries a changing field, such as a sequence number, keeps a line per value; the timestamps stay inkernel-log.txt. It flags some benign lines and misses some real faults, so no matches is not a clean bill. It recordsWARNinstead (soREADY WITH WARNINGS) whenjournalctlis missing, the log is unreadable, or it has no xe/i915 driver lines.
Result Routing
Use the generated SUMMARY.md as the source of truth for failure-to-next
skill routing. The script builds that section from the checks it actually
ran, so do not maintain a separate static routing table in this skill.
For final answers, read status.tsv or the SUMMARY.md status table,
then report hard blockers first and follow the SUMMARY.md "Next Skill
Routing" section for the recommended handoff.
SUMMARY.md includes a Verdict field:
READYwhen no checks fail or warn.READY WITH WARNINGSwhen no checks fail but at least one warning is present.BLOCKEDwhen any check fails.
When blocke
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- scripts/check_runtime_preflight.sh
FAQ
Что делает скилл xpu-runtime-preflight?
Run a read-only go/no-go preflight before any Intel GPU/XPU skillpack work. Checks the GPU driver binding, /dev/dri permissions, render/video groups, Docker, /dev/shm, disk, proxy, and optional container-level XPU visibility; captures health and kernel-log evidence. Use when the user asks whether a machine is ready for XPU model work or needs a reusable lab readiness report. Not for launching workloads, pulling images, editing system config, or verifying model output.
Как установить скилл xpu-runtime-preflight?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл xpu-runtime-preflight запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
docx
AnthropicUse this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
xlsx
AnthropicUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
pptx
AnthropicUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…