Official agent skill

Source Oneapi

by intel in intel/torch-xpu-ops

Source the Intel oneAPI environment before running workloads that depend on oneAPI, SYCL, DPC++, or Level Zero.

OfficialMITAuto-check passed

Install Source Oneapi

skills CLI
$ npx skills add intel/torch-xpu-ops --skill source-oneapi -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install intel/torch-xpu-ops source-oneapi --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/intel/torch-xpu-ops.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/action/sycl/source-oneapi .claude/skills/source-oneapi && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
source-oneapi
GitHub stars
115
Token cost
~652 tokens
SKILL.md length
191 words
Files
1
Skills in repo
29
Repo updated
First seen
Licence
MIT

At a glance

Source the Intel oneAPI environment before running workloads that depend on oneAPI, SYCL, DPC++, or Level Zero.

  • Works in 5 steps: Check if already sourced → Find the oneAPI installation root → Source components → …
  • The user needs to set up oneAPI
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Source setvars.sh

What it does

Source Oneapi is an agent skill from intel/torch-xpu-ops, published by the product's own GitHub organization. Source the Intel oneAPI environment before running workloads that depend on oneAPI, SYCL, DPC++, or Level Zero. Use this skill when the user needs to set up oneAPI, source setvars.sh, configure the Intel compiler environment, or when icpx/sycl-ls are not found in PATH.

Its SKILL.md is about 650 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It works with C++. The licence is MIT.

When your agent uses it

  • The user needs to set up oneAPI
  • Source setvars.sh
  • Configure the Intel compiler environment
  • Icpx/sycl-ls are not found in PATH

Example prompts

  • “/source-oneapi”

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. Check if already sourced
  2. Find the oneAPI installation root
  3. Source components
  4. Verify
  5. Run workload

What it can do on your machine

Read from SKILL.md and the folder at commit 0187b3b. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are bash).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Source Oneapi loads about 652 tokens when it runs. Until then it costs about 71 tokens; SKILL.md has 191 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~71
When it runs · the whole SKILL.md, loaded when a task matches
~652

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from intel/torch-xpu-ops at commit 0187b3b, republished under its MIT licence (© intel). 191 words, ~652 tokens.

Download SKILL.mdSave it as .claude/skills/source-oneapi/SKILL.md (or your agent's skills folder).
name
source-oneapi
description
Source the Intel oneAPI environment before running workloads that depend on oneAPI, SYCL, DPC++, or Level Zero. Use this skill when the user needs to set up oneAPI, source setvars.sh, configure the Intel compiler environment, or when icpx/sycl-ls are not found in PATH.
license
MIT
metadata.oneAPI
Intel oneAPI
metadata.SYCL
Intel DPC++
metadata.XPU
Intel GPU

Source Intel oneAPI Environment

You MUST source oneAPI components individually. Do NOT use setvars.sh.

bash
source <oneapi_root>/compiler/latest/env/vars.sh
source <oneapi_root>/pti/latest/env/vars.sh
source <oneapi_root>/umf/latest/env/vars.sh
source <oneapi_root>/ccl/latest/env/vars.sh
source <oneapi_root>/mpi/latest/env/vars.sh

Instructions

Step 1: Check if already sourced
bash
which icpx 2>/dev/null && echo "${CMPLR_ROOT:-}"

If CMPLR_ROOT is set and icpx is found, the environment is already initialized. Skip to Step 4.

Step 2: Find the oneAPI installation root

Check candidates in this order. Use the first one where compiler/latest/env/vars.sh exists:

  1. $HOME/intel/oneapi
  2. $HOME/oneapi
  3. Other paths under $HOME:
    bash
    find "$HOME" -maxdepth 4 -type f -path "*/oneapi/compiler/latest/env/vars.sh" 2>/dev/null | sed 's|/compiler/latest/env/vars.sh||' | sort
  4. /opt/intel/oneapi
  5. Other paths under /opt:
    bash
    find /opt -maxdepth 4 -type f -path "*/oneapi/compiler/latest/env/vars.sh" 2>/dev/null | sed 's|/compiler/latest/env/vars.sh||' | sort

If no valid root is found, stop and ask the user for the path.

If multiple roots are found at the same priority level, ask the user to choose.

Do NOT fall through to /opt if a valid root exists under $HOME.

Step 3: Source components
bash
source <oneapi_root>/compiler/latest/env/vars.sh
source <oneapi_root>/pti/latest/env/vars.sh
source <oneapi_root>/umf/latest/env/vars.sh
source <oneapi_root>/ccl/latest/env/vars.sh
source <oneapi_root>/mpi/latest/env/vars.sh

Skip any component whose env/vars.sh does not exist. Report skipped components to the user.

Step 4: Verify
bash
which icpx && which sycl-ls && echo "${CMPLR_ROOT:-}"

If sycl-ls is not found, stop and report: "sycl-ls not found. Check whether the oneAPI DPC++/Compiler component is installed."

Step 5: Run workload

Run all subsequent commands in the same shell session. Environment variables do not persist across sessions.

If the workload targets a specific GPU, use the "intel-gpu-device-selection" skill to set ZE_AFFINITY_MASK before running.

© intel, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .claude/skills/action/sycl/source-oneapi of intel/torch-xpu-ops.

Open the folder on GitHubat commit 0187b3b

Compare with similar skills

Source Oneapi next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Source Oneapi compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Source Oneapi this skillintel/torch-xpu-ops115—~652Automated safety check: PassMIT
Paddle BuildPaddlePaddle/Paddle24k—~1kAutomated safety check: PassApache-2.0
Fory Releaseapache/fory4.6k—~2.9kAutomated safety check: PassApache-2.0
ONNX Runtime Shape Inference Safety Auditmicrosoft/onnxruntime22k—~3.3kAutomated safety check: PassMIT
Code Audit3stoneBrother/code-audit8931 repos~2.7kAutomated safety check: PassNone
Qt C++ Code Reviewx-tools-author/x-tools1.1k2 repos~4.3kAutomated safety check: PassBSD-3-Clause

Similar skills

  • Paddle Build

    PaddlePaddle/Paddle

    A skill your agent uses when needing to compile, rebuild, or install Paddle from source after code changes.

    24k GitHub stars~1k tokensUpdated 7 days ago
    AI & LLM EngineeringAuto-check passed
  • Fory Release

    apache/fory

    Prepare an Apache Fory release candidate from a clean release branch, including the version bump, RC tag, JVM staging, ASF source artifacts, SVN upload, and vote email.

    4.6k GitHub stars~2.9k tokensUpdated today
    Auto-check passed
  • Official

    Finds and fixes out-of-range output writes in ONNX Runtime operator shape-inference functions where a getNumOutputs guard admits too few outputs.

    22k GitHub stars~3.3k tokensUpdated today
    SecurityAuto-check passed
  • Code Audit

    3stoneBrother/code-audit

    Professional code security audit skill covering 55+ vulnerability types.

    893 GitHub starsUsed in 1 repo~2.7k tokens
    SecurityAuto-check passed
  • Qt C++ Code Review

    x-tools-author/x-tools

    Read-only review of Qt6 C++ code that combines a deterministic lint script with six parallel analysis agents and reports only high-confidence issues.

    1.1k GitHub starsUsed in 2 repos~4.3k tokens
    DevelopmentAuto-check passed
  • Translation

    doxygen/doxygen

    Keeps all Doxygen and Doxywizard translations up to date across three mechanisms: translator C++ classes (src/translatorxx.h), Qt .ts locale files for the Doxywizard GUI (addon/doxywizard/i18n/)…

    6.6k GitHub stars~5.2k tokensUpdated 6 days ago
    Writing & ContentAuto-check passed

More from intel/torch-xpu-ops

All 29 skills in this repo
  • Intel GPU Device Selection

    intel/torch-xpu-ops

    Official

    Select the Intel GPU device to use when a system has multiple Intel GPU devices.

    115 GitHub stars~508 tokensUpdated yesterday
    Auto-check passed
  • Xpu CI Health Check

    intel/torch-xpu-ops

    Official

    Check PyTorch ciflow/xpu (xpu.yml) on the main branch, collect the failing XPU test cases from the most recent completed run(s), analyze the ROOT CAUSE of each failure with AI, and produce a list…

    115 GitHub stars~1.5k tokensUpdated yesterday
    Auto-check passed
  • At Dispatch V2

    intel/torch-xpu-ops

    Official

    Convert PyTorch ATDISPATCH macros to ATDISPATCHV2 format in ATen C++ code.

    115 GitHub starsUsed in 3 repos~2.2k tokens
    Auto-check passed
  • PR Review

    intel/torch-xpu-ops

    Official

    Review pull requests for XPU operator or backend code. An agent skill from intel/torch-xpu-ops.

    115 GitHub stars~4.2k tokensUpdated yesterday
    Auto-check passed
  • Skill Writer

    intel/torch-xpu-ops

    Official

    Guide users through creating Agent Skills for Claude Code. An agent skill from intel/torch-xpu-ops.

    115 GitHub starsUsed in 3 repos~2.4k tokens
    Auto-check passed
  • Ut Issue Authoring

    intel/torch-xpu-ops

    Official

    Read the evidence a nightly UT run produced, decide which failures share a root cause and which are machine breakage rather than product bugs, and write one issue draft per root cause to drafts.json.

    115 GitHub stars~2k tokensUpdated yesterday
    Auto-check passed

Works with

Questions about Source Oneapi

What does Source Oneapi do?

Source the Intel oneAPI environment before running workloads that depend on oneAPI, SYCL, DPC++, or Level Zero. Source Oneapi is an agent skill from intel/torch-xpu-ops, published by the product's own GitHub organization. Source the Intel oneAPI environment before running workloads that depend on oneAPI, SYCL, DPC++, or Level Zero.

When should I use Source Oneapi?

Source Oneapi fits situations like: the user needs to set up oneAPI; source setvars.sh; configure the Intel compiler environment; icpx/sycl-ls are not found in PATH.

How do I install Source Oneapi in Claude Code?

Run `npx skills add intel/torch-xpu-ops --skill source-oneapi -a claude-code`. Or copy the skill folder (.claude/skills/action/sycl/source-oneapi in intel/torch-xpu-ops) into .claude/skills/source-oneapi in your project. Claude Code loads it when a task matches its description.

How do I install Source Oneapi in Codex?

Run `npx skills add intel/torch-xpu-ops --skill source-oneapi -a codex`. Or copy the skill folder (.claude/skills/action/sycl/source-oneapi in intel/torch-xpu-ops) into .agents/skills/source-oneapi in your project. Codex loads it when a task matches its description.

Can I use Source Oneapi in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add intel/torch-xpu-ops --skill source-oneapi -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/source-oneapi, .gemini/skills/source-oneapi, .github/skills/source-oneapi and .opencode/skills/source-oneapi in your project.

What does Source Oneapi need to run?

SKILL.md names no scripts, command-line tools or credentials: Source Oneapi is instructions for the agent only.

Does Source Oneapi access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Source Oneapi safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Source Oneapi use?

Source Oneapi is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Source Oneapi use?

About 652 tokens (SKILL.md is roughly 2.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Source Oneapi?

Skills that share tags, products or a category with Source Oneapi: Paddle Build (PaddlePaddle/Paddle, 24k stars), Fory Release (apache/fory, 4.6k stars), ONNX Runtime Shape Inference Safety Audit (microsoft/onnxruntime, 22k stars) and Code Audit (3stoneBrother/code-audit, 893 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Source Oneapi?

intel (a GitHub organization, an official publisher) maintains it in intel/torch-xpu-ops, which has 115 GitHub stars. The repository holds 29 skills in this directory. The repository was last updated on October 6, 2026.

Source: intel/torch-xpu-ops on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.