Cuda Index Width
pytorch/pytorch
Choose 32-bit vs 64-bit index math in PyTorch CUDA kernels. An agent skill from pytorch/pytorch.
Review PyTorch upstream unit-test (UT) PRs that enable Intel GPU (XPU) on existing tests.
$ npx skills add intel/torch-xpu-ops --skill ut-refactor-review -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install intel/torch-xpu-ops ut-refactor-review --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/intel/torch-xpu-ops.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/ut-refactor-review .claude/skills/ut-refactor-review && rm -rf skills-srcUse ~/.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/
Install the "ut-refactor-review" agent skill from https://github.com/intel/torch-xpu-ops/tree/main/.claude/skills/ut-refactor-review into .claude/skills/ut-refactor-review/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "ut-refactor-review", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/intel/torch-xpu-ops/tree/main/.claude/skills/ut-refactor-reviewType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add intel/torch-xpu-ops --skill ut-refactor-review -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install intel/torch-xpu-ops ut-refactor-review --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/intel/torch-xpu-ops.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.claude/skills/ut-refactor-review .agents/skills/ut-refactor-review && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "ut-refactor-review" agent skill from https://github.com/intel/torch-xpu-ops/tree/main/.claude/skills/ut-refactor-review into .agents/skills/ut-refactor-review/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "ut-refactor-review", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add intel/torch-xpu-ops --skill ut-refactor-review -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install intel/torch-xpu-ops ut-refactor-review --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/intel/torch-xpu-ops.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.claude/skills/ut-refactor-review .cursor/skills/ut-refactor-review && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "ut-refactor-review" agent skill from https://github.com/intel/torch-xpu-ops/tree/main/.claude/skills/ut-refactor-review into .cursor/skills/ut-refactor-review/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "ut-refactor-review", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/intel/torch-xpu-ops.git --path .claude/skills/ut-refactor-review--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add intel/torch-xpu-ops --skill ut-refactor-review -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install intel/torch-xpu-ops ut-refactor-review --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/intel/torch-xpu-ops.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.claude/skills/ut-refactor-review .gemini/skills/ut-refactor-review && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "ut-refactor-review" agent skill from https://github.com/intel/torch-xpu-ops/tree/main/.claude/skills/ut-refactor-review into .gemini/skills/ut-refactor-review/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "ut-refactor-review", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install intel/torch-xpu-ops ut-refactor-reviewInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add intel/torch-xpu-ops --skill ut-refactor-review -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/intel/torch-xpu-ops.git skills-src && mkdir -p .github/skills && cp -r skills-src/.claude/skills/ut-refactor-review .github/skills/ut-refactor-review && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "ut-refactor-review" agent skill from https://github.com/intel/torch-xpu-ops/tree/main/.claude/skills/ut-refactor-review into .github/skills/ut-refactor-review/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "ut-refactor-review", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add intel/torch-xpu-ops --skill ut-refactor-review -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install intel/torch-xpu-ops ut-refactor-review --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/intel/torch-xpu-ops.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.claude/skills/ut-refactor-review .opencode/skills/ut-refactor-review && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "ut-refactor-review" agent skill from https://github.com/intel/torch-xpu-ops/tree/main/.claude/skills/ut-refactor-review into .opencode/skills/ut-refactor-review/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "ut-refactor-review", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
ut-refactor-reviewReview PyTorch upstream unit-test (UT) PRs that enable Intel GPU (XPU) on existing tests.
Ut Refactor Review is an agent skill from intel/torch-xpu-ops, published by the product's own GitHub organization. Review PyTorch upstream unit-test (UT) PRs that enable Intel GPU (XPU) on existing tests. Use when reviewing PRs under test/ that port device-generic tests to XPU, add allowxpu=True, generalize CUDA-hardcoded tests, or add XPU skips/xfails/tolerance overrides in OpInfo.
Its SKILL.md is about 920 tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including reference files (for example `references/xpu-ut-review-checklist.md`).
It sits in AI & LLM Engineering, covering Deep learning, Refactoring and Unit testing. It works with PyTorch and CUDA. The licence is Apache-2.0.
Read from SKILL.md and the folder at commit 0187b3b. It shows what the files ask for, not the result of running them.
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.
No scripts in the folder and no shell commands in SKILL.md.
From the folder's file list and the shell code blocks in SKILL.md.
Hosts in commands or code, which the agent is likely to contact:
github.comFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Ut Refactor Review loads about 917 tokens when it runs, and up to ~2.7k if it reads all its reference files. Until then it costs about 73 tokens; SKILL.md has 319 words of instructions outside code blocks.
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.
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.
The full file from intel/torch-xpu-ops at commit 0187b3b, republished under its Apache-2.0 licence (© intel). 319 words, ~917 tokens.
.claude/skills/ut-refactor-review/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.Review PyTorch (pytorch/pytorch) pull requests that enable XPU on existing
upstream unit tests. These PRs almost never add new operator logic; they make
existing tests device-agnostic and opt XPU into them. The review must focus on
what CI cannot check: whether the generalization preserves the original test
intent, whether device gating is precise, and whether every skip/xfail is
justified and traceable.
Use this skill (instead of the generic pr-review
skill in pytorch/pytorch) when the diff is predominantly:
test/** changes that swap CUDA-hardcoded constructs for device-generic onesinstantiate_device_type_tests(..., allow_xpu=True) additionsonlyAccelerator / onlyNativeDeviceTypesAnd([...]) decorator migrationscommon_methods_invocations.py, opinfo/definitions/*):
DecorateInfo(... device_type='xpu' ...), toleranceOverride, skips, xfailsTestXxxDevice classes split out from a device-agnostic TestXxxIf the PR also changes operator kernels or native_functions.yaml, hand those
files to the pr-review
skill and apply this skill only to the test files.
If invoked with no arguments, do not review. Ask:
What would you like me to review?
- A PR number or URL (e.g.,
159118or the full PR URL)- A local branch
/ut-refactor-review 159118
/ut-refactor-review https://github.com/pytorch/pytorch/pull/159118
/ut-refactor-review 159118 detailedObtain the PR title, description, diff, changed-file list, and existing review
comments before reviewing. If the command does not name a repo, default to
fetching the PR from pytorch/pytorch.
Suggested fetch commands (CLI environments with gh):
gh pr view <PR_NUMBER> --repo pytorch/pytorch --json title,body,author,baseRefName,headRefName,files,additions,deletions,commits
gh pr diff <PR_NUMBER> --repo pytorch/pytorch
gh pr view <PR_NUMBER> --repo pytorch/pytorch --json comments,reviews/ut-refactor-review branch
/ut-refactor-review branch detailedReview the current branch's changes relative to main (diff, commit log, and
changed-file list). Use the branch name in the review header instead of a PR
number.
Go through every changed line against
references/xpu-ut-review-checklist.md.
For anything this skill does not address, defer to the
pr-review
skill in pytorch/pytorch.
torch/testing/_internal/common_device_type.py — instantiate_device_type_tests, onlyAccelerator, allow_xpu, only_fortorch/testing/_internal/common_utils.py — TEST_XPU, TEST_CUDA, TEST_HPU, xfailIf, HardwareClassificationtorch/testing/_internal/common_methods_invocations.py, torch/testing/_internal/opinfo/definitions/* — OpInfo DecorateInfo, toleranceOverride© intel, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 1 other file (references) in .claude/skills/ut-refactor-review of intel/torch-xpu-ops.
Open the folder on GitHubat commit 0187b3b
Ut Refactor Review 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.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Ut Refactor Review this skillintel/torch-xpu-ops | 115 | — | ~917 | Automated safety check: Pass | Apache-2.0 | |
| Cuda Index Widthpytorch/pytorch | 104k | — | ~1.6k | Automated safety check: Pass | Custom licence | |
| Liger Kernel Devlinkedin/Liger-Kernel | 6.6k | — | ~799 | Automated safety check: Pass | BSD-2-Clause | |
| Graphsignalgraphsignal/graphsignal | 257 | — | ~6.2k | Automated safety check: Pass | Apache-2.0 | |
| Metal Kernelpytorch/pytorch | 104k | — | ~4.9k | Automated safety check: Pass | Custom licence | |
| Validating Pytorch Custom Opsmeta-pytorch/attention-gym | 1.3k | — | ~6.4k | Automated safety check: Pass | BSD-3-Clause |
pytorch/pytorch
Choose 32-bit vs 64-bit index math in PyTorch CUDA kernels. An agent skill from pytorch/pytorch.
linkedin/Liger-Kernel
Develops production-ready Triton kernels for Liger Kernel. An agent skill from linkedin/Liger-Kernel.
graphsignal/graphsignal
Profile AI inference workloads (vLLM, SGLang, TensorRT-LLM, PyTorch, any GPU application) with the Graphsignal profiler and read the results from its local /signals JSON endpoint.
pytorch/pytorch
Write Metal/MPS kernels for PyTorch operators. An agent skill from pytorch/pytorch.
meta-pytorch/attention-gym
Ensures new Attention Gym eager, Triton, CuTeDSL, and external-library implementations are torch.compile-friendly and correctly registered.
TongmingLAIC/AKO4ALL
Drive an agentic loop that iteratively optimizes a GPU kernel for maximum speedup.
intel/torch-xpu-ops
Select the Intel GPU device to use when a system has multiple Intel GPU devices.
intel/torch-xpu-ops
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…
intel/torch-xpu-ops
Convert PyTorch ATDISPATCH macros to ATDISPATCHV2 format in ATen C++ code.
intel/torch-xpu-ops
Review pull requests for XPU operator or backend code. An agent skill from intel/torch-xpu-ops.
intel/torch-xpu-ops
Guide users through creating Agent Skills for Claude Code. An agent skill from intel/torch-xpu-ops.
intel/torch-xpu-ops
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.
Categories
Review PyTorch upstream unit-test (UT) PRs that enable Intel GPU (XPU) on existing tests. Ut Refactor Review is an agent skill from intel/torch-xpu-ops, published by the product's own GitHub organization. Review PyTorch upstream unit-test (UT) PRs that enable Intel GPU (XPU) on existing tests.
Ut Refactor Review fits situations like: reviewing PRs under test/ that port device-generic tests to XPU; add allowxpu=True; generalize CUDA-hardcoded tests; add XPU skips/xfails/tolerance overrides in OpInfo.
Run `npx skills add intel/torch-xpu-ops --skill ut-refactor-review -a claude-code`. Or copy the skill folder (.claude/skills/ut-refactor-review in intel/torch-xpu-ops) into .claude/skills/ut-refactor-review in your project. Claude Code loads it when a task matches its description.
Run `npx skills add intel/torch-xpu-ops --skill ut-refactor-review -a codex`. Or copy the skill folder (.claude/skills/ut-refactor-review in intel/torch-xpu-ops) into .agents/skills/ut-refactor-review in your project. Codex loads it when a task matches its description.
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 ut-refactor-review -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/ut-refactor-review, .gemini/skills/ut-refactor-review, .github/skills/ut-refactor-review and .opencode/skills/ut-refactor-review in your project.
SKILL.md names no scripts, command-line tools or credentials: Ut Refactor Review is instructions for the agent only.
SKILL.md names 1 domain. In commands or code: github.com; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.
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.
Ut Refactor Review is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 917 tokens (SKILL.md is roughly 3.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.8k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Ut Refactor Review: Cuda Index Width (pytorch/pytorch, 104k stars), Liger Kernel Dev (linkedin/Liger-Kernel, 6.6k stars), Graphsignal (graphsignal/graphsignal, 257 stars) and Metal Kernel (pytorch/pytorch, 104k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
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.