Official agent skill

Extract Asm Triton

by intel in intel/torch-xpu-ops

Extract GPU ISA from Triton kernels on XPU. An agent skill from intel/torch-xpu-ops.

OfficialApache-2.0Auto-check passedAI & LLM Engineering

Install Extract Asm Triton

skills CLI
$ npx skills add intel/torch-xpu-ops --skill extract-asm-triton -a claude-code

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

GitHub CLI
$ gh skill install intel/torch-xpu-ops extract-asm-triton --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/extract-asm-triton .claude/skills/extract-asm-triton && 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
extract-asm-triton
GitHub stars
115
Token cost
~806 tokens
SKILL.md length
159 words
Files
1
Skills in repo
29
Repo updated
First seen
Licence
Apache-2.0

At a glance

Extract GPU ISA from Triton kernels on XPU. An agent skill from intel/torch-xpu-ops.

  • Works in 3 steps: Identify the kernel name. → Re-run with IGC dump (cold cache). → Match kernel name to .asm.
  • Extracting ASM from torch.compile fusions (tritonperfused
  • SKILL.md covers How this fits the compilation…, When to use, When NOT to use and Steps
  • Calls python

What it does

Extract Asm Triton is an agent skill from intel/torch-xpu-ops, published by the product's own GitHub organization. Extract GPU ISA from Triton kernels on XPU. Triton compiles through the same IGC backend as SYCL (Triton IR → SPIR-V → IGC → zebin). Extraction is identical to sycl-jit: IGCShaderDumpEnable=1 captures the zebin at runtime. Use when extracting ASM from torch.compile fusions (tritonperfused, tritonpoi, tritonred), standalone @triton.jit kernels, or Inductor-generated XPU kernels.

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

It sits in AI & LLM Engineering, covering GPU and accelerator computing. The licence is Apache-2.0.

When your agent uses it

  • Extracting ASM from torch.compile fusions (tritonperfused
  • Standalone @triton.jit kernels
  • Inductor-generated XPU kernels

Example prompts

  • “/extract-asm-triton”

Requirements

  • Python 3

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. Identify the kernel name.
  2. Re-run with IGC dump (cold cache).
  3. Match kernel name to .asm.

What it can do on your machine

Read from SKILL.md and the folder at commit a033aa5. 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

    Shell commands in SKILL.md call:

    • python

    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

Extract Asm Triton loads about 806 tokens when it runs. Until then it costs about 101 tokens; SKILL.md has 159 words of instructions outside code blocks.

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

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 a033aa5, republished under its Apache-2.0 licence (© intel). 159 words, ~806 tokens.

Download SKILL.mdSave it as .claude/skills/extract-asm-triton/SKILL.md (or your agent's skills folder).
name
extract-asm-triton
description
Extract GPU ISA from Triton kernels on XPU. Triton compiles through the same IGC backend as SYCL (Triton IR → SPIR-V → IGC → zebin). Extraction is identical to sycl-jit: IGC_ShaderDumpEnable=1 captures the zebin at runtime. Use when extracting ASM from torch.compile fusions (triton_per_fused, triton_poi, triton_red), standalone @triton.jit kernels, or Inductor-generated XPU kernels.

Extract ASM from Triton Kernels on XPU

Triton on XPU uses the same IGC backend as SYCL JIT. The path is: Triton IR → ttgir → SPIR-V → IGC → zebin. Extraction is mechanically identical to extract-asm-syclkernel-jit — both use IGC_ShaderDumpEnable=1 to capture the runtime-compiled zebin. The only difference is how the kernel enters the pipeline (Triton Python compiler vs DPC++ clang frontend).

How this fits the compilation stack

Triton path:
  @triton.jit Python → Triton IR (ttir) → Triton GPU IR (ttgir)
                                                    ↓
                                              SPIR-V (via triton-xpu backend)
                                                    ↓
                                              IGC (JIT) → zebin
                                                    ↓
                                         IGC_ShaderDumpEnable=1 → .asm

Compare with SYCL JIT:
  SYCL C++ → LLVM IR → SPIR-V → IGC (JIT) → zebin → .asm

The back half (SPIR-V → IGC → zebin) is IDENTICAL.

When to use

  • Hot kernel is triton_per_fused_* / triton_poi_* / triton_red_* (from torch.compile / Inductor)
  • Or: standalone @triton.jit kernel in a Python script
  • You need the actual GPU ISA (not Triton IR)

When NOT to use

  • Kernel is _ZTS… (SYCL) → use extract-asm-syclkernel-{aot,jit}
  • Kernel is oneDNN ngen → use extract-asm-onednn (different stack)
  • You only need Triton IR → read ${TRITON_CACHE_DIR:-~/.triton/cache}/ directly

Steps

  1. Identify the kernel name.

    Inductor fusion (from torch.compile):

    bash
    TRITON_CACHE="${TRITON_CACHE_DIR:-$HOME/.triton/cache}"
    rm -rf "$TRITON_CACHE" /tmp/torchinductor_$USER
    TORCH_LOGS=output_code python <repro.py> 2>&1 \
      | grep -oE 'triton_(poi|per|red)_fused_[A-Za-z0-9_]+' | sort -u

    Standalone @triton.jit: use unitrace to pin the kernel:

    bash
    unitrace -d python <repro.py>
    # Or fallback:
    SYCL_UR_TRACE=-1 python <repro.py> 2>&1 \
      | grep -oP 'pKernelName = 0x[0-9a-f]+ \(\K[^)]+' | sort -u
  2. Re-run with IGC dump (cold cache).

    bash
    TRITON_CACHE="${TRITON_CACHE_DIR:-$HOME/.triton/cache}"
    rm -rf "$TRITON_CACHE" /tmp/torchinductor_$USER
    OUT="<workdir>/triton_$(date +%Y%m%d_%H%M%S)"
    mkdir -p "$OUT/igc"
    
    IGC_ShaderDumpEnable=1 \
    IGC_DumpToCustomDir="$OUT/igc" \
    ONEAPI_DEVICE_SELECTOR=level_zero:0 \
      python <repro.py> 2>&1 | tee "$OUT/run.log"
  3. Match kernel name to .asm.

    bash
    NAME="<fusion-or-kernel-name>"
    MATCH=$(grep -l "$NAME" "$OUT/igc"/OCL_asm*_simd*_entry_*.asm | head -1)
    echo "asm-file: $MATCH"

    Cross-check: .zeinfo reports simd_size — confirm it matches num_warps * 32.

© 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

Files

Just SKILL.md in .claude/skills/extract-asm-triton of intel/torch-xpu-ops.

Open the folder on GitHubat commit a033aa5

Compare with similar skills

Extract Asm Triton 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.

Extract Asm Triton compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Extract Asm Triton this skillintel/torch-xpu-ops115—~806Automated safety check: PassApache-2.0
Hugging Face LLM Trainerhuggingface/skills11k3 repos~7.2kAutomated safety check: PassApache-2.0
Hugging Face Local Model Evalshuggingface/skills11k2 repos~1.6kAutomated safety check: PassApache-2.0
Fla Triton To Gluonfla-org/flash-linear-attention5.8k—~4.2kAutomated safety check: PassMIT
Liger Kernel Perflinkedin/Liger-Kernel6.6k—~1.5kAutomated safety check: PassBSD-2-Clause
DGX Spark Memory and Thermal Opswshobson/agents40k1 repos~2kAutomated safety check: PassMIT

Similar skills

  • Hugging Face LLM Trainer

    huggingface/skills

    Official

    Trains or fine-tunes language and vision models with TRL or Unsloth on Hugging Face Jobs cloud GPUs, then converts the results to GGUF.

    11k GitHub starsUsed in 3 repos~7.2k tokens
    AI & LLM EngineeringAuto-check passed
  • Official

    Runs evaluations of Hugging Face Hub models on local hardware with inspect-ai or lighteval, and helps choose between vLLM, Transformers and accelerate backends.

    11k GitHub starsUsed in 2 repos~1.6k tokens
    AI & LLM EngineeringAuto-check passed
  • Fla Triton To Gluon

    fla-org/flash-linear-attention

    Workflow for porting an existing Triton kernel in fla/ops/ to Gluon (triton.experimental.gluon) to gain explicit control over tensor layouts, shared memory, async data movement (cp.async / TMA), MMA…

    5.8k GitHub stars~4.2k tokensUpdated today
    AI & LLM EngineeringAuto-check passed
  • Liger Kernel Perf

    linkedin/Liger-Kernel

    Optimizes the performance of existing Liger Kernel Triton kernels.

    6.6k GitHub stars~1.5k tokensUpdated yesterday
    AI & LLM EngineeringAuto-check passed
  • Plans memory headroom, works through out-of-memory failures and watches temperature and power during long ML training jobs on NVIDIA DGX Spark.

    40k GitHub starsUsed in 1 repo~2k tokens
    AI & LLM EngineeringAuto-check passed
  • MUSA GPU Training Optimizer

    open-infra-skills/infra-skills

    Profiles, benchmarks and tunes AI training workloads on Moore Threads MUSA GPUs with a measurement-first process that keeps model behavior unchanged.

    141 GitHub stars~1.7k tokensUpdated 3 mo ago
    AI & LLM EngineeringAuto-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 today
    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 today
    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 today
    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 today
    Auto-check passed

Questions about Extract Asm Triton

What does Extract Asm Triton do?

Extract GPU ISA from Triton kernels on XPU. An agent skill from intel/torch-xpu-ops. Extract Asm Triton is an agent skill from intel/torch-xpu-ops, published by the product's own GitHub organization. Extract GPU ISA from Triton kernels on XPU.

When should I use Extract Asm Triton?

Extract Asm Triton fits situations like: extracting ASM from torch.compile fusions (tritonperfused; standalone @triton.jit kernels; inductor-generated XPU kernels.

How do I install Extract Asm Triton in Claude Code?

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

How do I install Extract Asm Triton in Codex?

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

Can I use Extract Asm Triton 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 extract-asm-triton -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/extract-asm-triton, .gemini/skills/extract-asm-triton, .github/skills/extract-asm-triton and .opencode/skills/extract-asm-triton in your project.

What does Extract Asm Triton need to run?

Going by SKILL.md and its folder, Extract Asm Triton needs the command-line tools its instructions call (python). Our summary lists: Python 3.

Does Extract Asm Triton 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 Extract Asm Triton 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 Extract Asm Triton use?

Extract Asm Triton 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.

How many tokens does Extract Asm Triton use?

About 806 tokens (SKILL.md is roughly 3.2k 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 Extract Asm Triton?

Skills that share tags, products or a category with Extract Asm Triton: Hugging Face LLM Trainer (huggingface/skills, 11k stars), Hugging Face Local Model Evals (huggingface/skills, 11k stars), Fla Triton To Gluon (fla-org/flash-linear-attention, 5.8k stars) and Liger Kernel Perf (linkedin/Liger-Kernel, 6.6k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Extract Asm Triton?

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 8, 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.