xpu-discover

xpu-discover is a skill for Claude Code from intel/gpu-ai-skills. It costs 48 tokens per session (2,227 once invoked), scanned A, original, Apache-2.0.

A Linux tool for finding and checking Intel GPUs, including Arc and Data Center GPU Max cards. It shows which devices exist, what processes use them, and their current utilisation.

In plain words
What is it for?
Use it to inventory GPUs, check driver and firmware health, run a quick diagnostic, list GPU processes, and monitor utilisation or stream metrics.
Why use it?
It gives one place to diagnose Intel GPU drivers and basic operation instead of piecing together several commands. JSON output also makes its results easier for scripts to read.

Skill for Claude Code ✓ vendor

Written for Claude Code: shipped in a Claude Code plugin.

Part of the intel-gpu-ai-skills plugin — 21 skills, 1 agent shipped together

Good fit Use it to inventory GPUs, check driver and firmware health, run a quick diagnostic, list GPU processes, and monitor utilisation or stream metrics.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/intel/gpu-ai-skills/xpu-discover
About the project

Intel GPU AI Skills is a collection of agent skills for setting up, running, benchmarking, and profiling Hugging Face models on Intel GPUs. It supports workflows involving PyTorch, vLLM-XPU, SGLang-XPU, llama.cpp-SYCL, and migration from CUDA to XPU. The catalogue contains the project's skills, instructions, agent, and plugin.

intel/gpu-ai-skills · 21 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add intel/gpu-ai-skills --skill xpu-discover
Clone the repo
git clone --depth 1 https://github.com/intel/gpu-ai-skills

Made for: Claude Code.

Or install intel-gpu-ai-skills, the plugin that ships this one along with the rest of its 21 skills, 1 agent.

Its marketplace also offers this one on its own, as the plugin xpu-discover/plugin install xpu-discover after adding the marketplace above.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for xpu-discover

README.md
[![agentmods](https://agentmods.dev/badge/skills/intel/gpu-ai-skills/xpu-discover.svg)](https://agentmods.dev/skills/intel/gpu-ai-skills/xpu-discover)
Your own site
<a href="https://agentmods.dev/skills/intel/gpu-ai-skills/xpu-discover"><img src="https://agentmods.dev/badge/skills/intel/gpu-ai-skills/xpu-discover.svg" alt="Measured on agentmods" height="20"></a>
Per session 48 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,227 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Privilege Escalation · line 168
    Potential security issue detected. Manual review is recommended.
    Fix: Review the flagged content for security risks. Ensure no credentials, secrets, or sensitive data are exposed.
  • high Privilege Escalation · line 169
    Potential security issue detected. Manual review is recommended.
    Fix: Review the flagged content for security risks. Ensure no credentials, secrets, or sensitive data are exposed.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00048 $0.02227
Opus 5 $0.00024 $0.01113
Sonnet 5 $0.00010 $0.00445
Haiku 4.5 $0.00005 $0.00223

Measured 8d ago against content hash 96b4e19f7ed7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

xpu-discover scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/intel-gpu-ai-skills/skills/xpu-discover/SKILL.md · 185 lines

How it starts

The opening of the file, as written. The whole thing — 185 lines — stays where its author put it; the contents beside it link to each section on GitHub.

xpu-discover

xpu-smi is Intel's nvidia-smi. Sees only Intel GPUs (Arc, Arc Pro, Battlemage, Flex, Max).

Quickstart

Run in order. If step 1 is empty, stop.

xpu-smi discovery                 # 1. inventory
xpu-smi diag --precheck           # 2. driver/firmware health
xpu-smi ps                        # 3. processes using each GPU
xpu-smi diag -d 0 -l 1            # 4. quick functional test
xpu-smi stats -d 0                # 5. utilisation snapshot
xpu-smi dump -d 0 -m 0,5,18 -i 1  # 6. live CSV stream (Ctrl-C)

All commands accept -j for JSON output (use when parsing).

CUDA -> Intel cheat sheet

CUDA Intel
nvidia-smi xpu-smi discovery
nvidia-smi -L xpu-smi discovery -j
nvidia-smi pmon -c 1 xpu-smi ps
nvidia-smi dmon xpu-smi dump -d <id> -m 0,5,18 -i 1
nvidia-smi --query-gpu=... xpu-smi stats -d <id> -j
nvidia-smi topo -m xpu-smi topology -m
CUDA_VISIBLE_DEVICES=0 ZE_AFFINITY_MASK=0
cuda-memcheck xpu-smi diag -d 0 -l 1

CUDA refugee footgun: CUDA_VISIBLE_DEVICES=99 silently hides all GPUs; ZE_AFFINITY_MASK=99 crashes the Level Zero loader with an assertion. Always check xpu-smi discovery for valid IDs (start at 0) before setting the mask.

What each subcommand returns

discovery — inventory

One stanza per Intel GPU. Key fields:

  • Device ID — small integer, used as -d and as ZE_AFFINITY_MASK value.

  • PCI BDF Address — stable across reboots (e.g. 0000:36:00.0).

  • DRM Device/dev/dri/card0, used in --device for Docker.

  • Device Name — Battlemage shows Intel(R) Graphics [0xe2XX] rather than the marketing name; driver quirk, not a problem. Map the PCI device ID in brackets to the product SKU:

    PCI device ID Product SKU Confirmed
    0xe20b Arc B580 yes (lspci on hardware)
    0xe211 Arc Pro B60 yes (pci.ids)
    0xe220 Arc Pro B50 yes (pci.ids)
    0xe221 Arc Pro B65 yes (pci.ids)
    0xe223 Arc Pro B70 yes (lspci on hardware)

Read the full file on GitHub · 185 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 185 lines · 48 tokens per session scan A 96b4e19f7ed7

Subscribe to this mod's changes

xpu-discover is a skill published in the GitHub repository intel/gpu-ai-skills (21 stars, last pushed 3d ago), licensed Apache-2.0. It adds 48 tokens to every session and 2,227 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

gke-compute-classes

Configures, optimizes, and troubleshoots GKE ComputeClasses. Use when configuring Spot VMs with on-demand fallback, targeting specific accelerators (GPUs/TPUs) or machine families, restricting ComputeClass access, or debugging pending pods related to node pool auto-creation. Do not use for cluster-level Node Auto…

google/skills · 83 tokens

jetson-diagnostic

Read-only Jetson health snapshot for identity, memory, GPU, thermal, power, storage, services, and top processes.

NVIDIA/skills · 30 tokens

doca-socket-relay

Use this skill when the operator is driving the DOCA Socket Relay to bridge a socket-oriented host application onto a BlueField DPU peer without rewriting it — picking the deployment shape (in-process, sidecar, or BlueField service container), configuring the host-side socket and the DPU-side forwarding endpoint…

NVIDIA/skills · 236 tokens

offensive-z-wave

Z-Wave attack methodology — sniffing with Z-Force / EZ-Wave / RTL-SDR + ZniffMobile, S0 (legacy) network-key derivation flaw and key reuse, S2 (modern) ECDH commissioning analysis, replay/injection on unauthenticated nodes, default-key brute-force on test deployments, and home-automation hub pivots. Use when targeting…

SnailSploit/Claude-Red · 113 tokens

hsb-flash

Flash the FPGA on an HSB board connected to an NVIDIA devkit. Supports HSB Lattice boards (FPGA versions 2407, 2412, 2507, 2510) and Leopard Imaging VB1940 "all-in-one" cameras (FPGA versions 2507, 2510). Uses release-specific YAML manifests and board-type-specific program commands. Lattice and VB1940 commands must…

NVIDIA/skills · 94 tokens

jetson-validate-image

Use after jetson-flash-image to run static BSP checks, on-target smoke/regression tests on a flashed DUT, or both. Not for build or flash steps. Triggers: validate bsp, on-target validation.

NVIDIA/skills · 50 tokens