Official agent skill

Ir Debugging

by facebookexperimental in facebookexperimental/triton

Debug Triton compilation by dumping IR at each stage (TTIR, TTGIR, LLVM, PTX).

OfficialMITAuto-check passedDevelopment

Install Ir Debugging

skills CLI
$ npx skills add facebookexperimental/triton --skill ir-debugging -a claude-code

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

GitHub CLI
$ gh skill install facebookexperimental/triton ir-debugging --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/facebookexperimental/triton.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/ir-debugging .claude/skills/ir-debugging && 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
ir-debugging
GitHub stars
201
Token cost
~644 tokens
SKILL.md length
175 words
Files
1
Skills in repo
18
Repo updated
First seen
Licence
MIT

At a glance

Debug Triton compilation by dumping IR at each stage (TTIR, TTGIR, LLVM, PTX).

  • Investigating compilation failures
  • SKILL.md covers Environment variables, Decision tree: what are you…, Common combos and Reference files
  • Calls python
  • Kernel performance

What it does

Ir Debugging is an agent skill from facebookexperimental/triton, published by the product's own GitHub organization. Debug Triton compilation by dumping IR at each stage (TTIR, TTGIR, LLVM, PTX). Use when investigating compilation failures, kernel performance, register spills, or when user asks to inspect IR output. Covers TRITONKERNELDUMP, MLIRENABLEDUMP, LLVMIRENABLEDUMP, TRITONDUMPPTXASLOG, and related env vars.

Its SKILL.md is about 640 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 Development, covering GPU and accelerator computing and Debugging. It works with Python. The repository describes itself as: Github mirror of trition-lang/triton repo. The licence is MIT.

When your agent uses it

  • Investigating compilation failures
  • Kernel performance
  • Register spills
  • User asks to inspect IR output

Example prompts

  • “/ir-debugging”

Requirements

  • Python 3

What it can do on your machine

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

Ir Debugging loads about 644 tokens when it runs. Until then it costs about 81 tokens; SKILL.md has 175 words of instructions outside code blocks.

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

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 facebookexperimental/triton at commit 612bd83, republished under its MIT licence (© facebookexperimental). 175 words, ~644 tokens.

Download SKILL.mdSave it as .claude/skills/ir-debugging/SKILL.md (or your agent's skills folder).
name
ir-debugging
description
Debug Triton compilation by dumping IR at each stage (TTIR, TTGIR, LLVM, PTX). Use when investigating compilation failures, kernel performance, register spills, or when user asks to inspect IR output. Covers TRITON_KERNEL_DUMP, MLIR_ENABLE_DUMP, LLVM_IR_ENABLE_DUMP, TRITON_DUMP_PTXAS_LOG, and related env vars.

IR Debugging

Environment variables

Env varWhat it does
TRITON_KERNEL_DUMP=1Dump IR at every compilation stage to ~/.triton/dump/
TRITON_PRINT_AUTOTUNING=1Use human-readable per-config subdirectories instead of hashes (combine with KERNEL_DUMP)
TRITON_KERNEL_DUMP_BEST_CONFIG=1Dump IR only for the winning autotuned config (re-compiles with dumping, avoids noise)
MLIR_ENABLE_DUMP=1Dump MLIR IR during pass execution (filter by kernel: MLIR_ENABLE_DUMP=_kernel)
LLVM_IR_ENABLE_DUMP=1Dump LLVM IR (print-after-all)
NVPTX_ENABLE_DUMP=1Dump NVPTX backend IR
TRITON_DUMP_PTXAS_LOG=1Dump ptxas assembler logs (register usage, spills)
TRITON_INTERPRET=1Run kernels in interpreter mode (no GPU needed)
TRITON_ALWAYS_COMPILE=1Bypass cache, force recompilation
TRITON_DUMP_TTGIR_TO_TLX=1Dump TTGIR back to TLX Python (reverse-engineer IR)

Decision tree: what are you debugging?

  • "Kernel produces wrong results" → TRITON_INTERPRET=1 to run on CPU, or TRITON_KERNEL_DUMP=1 to inspect IR at each stage
  • "Kernel is slow / register spills" → TRITON_DUMP_PTXAS_LOG=1 to check register usage and spills
  • "Which autotuned config won and why?" → TRITON_KERNEL_DUMP_BEST_CONFIG=1 TRITON_PRINT_AUTOTUNING=1
  • "Need to see MLIR passes" → MLIR_ENABLE_DUMP=1 (optionally filter: MLIR_ENABLE_DUMP=_my_kernel)
  • "Need to see final PTX/LLVM" → LLVM_IR_ENABLE_DUMP=1 and/or NVPTX_ENABLE_DUMP=1
  • "Cached result is stale" → TRITON_ALWAYS_COMPILE=1 to force recompilation

Common combos

bash
# Full dump of best config with readable directory names
TRITON_KERNEL_DUMP_BEST_CONFIG=1 TRITON_PRINT_AUTOTUNING=1 python my_kernel.py

# Debug register pressure
TRITON_DUMP_PTXAS_LOG=1 TRITON_ALWAYS_COMPILE=1 python my_kernel.py

# Inspect MLIR passes for a specific kernel
MLIR_ENABLE_DUMP=_my_kernel TRITON_ALWAYS_COMPILE=1 python my_kernel.py

# Full IR pipeline dump
TRITON_KERNEL_DUMP=1 TRITON_ALWAYS_COMPILE=1 python my_kernel.py

Reference files

  • Full Python knobs: python/triton/knobs.py
  • C++ env vars: include/triton/Tools/Sys/GetEnv.hpp

© facebookexperimental, 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/ir-debugging of facebookexperimental/triton.

Open the folder on GitHubat commit 612bd83

Compare with similar skills

Ir Debugging 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.

Ir Debugging compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Ir Debugging this skillfacebookexperimental/triton201—~644Automated safety check: PassMIT
Tilelang Developeryzlnew/infra-skills149—~2.4kAutomated safety check: PassNone
Debug Distributed Hangsgl-project/sglang37k2 repos~2.4kAutomated safety check: PassApache-2.0
CUTLASS FMHA Incremental Rebuildmicrosoft/onnxruntime22k—~1.3kAutomated safety check: PassMIT
The Art of Debuggingstas00/the-art-of-debugging1.7k—~6.1kAutomated safety check: NotesCC-BY-SA-4.0
Cudatechnillogue/ptx-isa-markdown229—~2.5kAutomated safety check: PassNone

Similar skills

  • Tilelang Developer

    yzlnew/infra-skills

    Write, optimize, and debug high-performance AI compute kernels using TileLang (a Python DSL for GPU programming).

    149 GitHub stars~2.4k tokensUpdated 3 mo ago
    DevelopmentAuto-check passed
  • Debug Distributed Hang

    sgl-project/sglang

    Debug hanging issues in SGLang distributed inference (TP/PP/DP/EP).

    37k GitHub starsUsed in 2 repos~2.4k tokens
    DevelopmentAuto-check passed
  • Official

    Explains why editing CUTLASS fused-MHA headers in ONNX Runtime can leave stale CUDA kernels after an incremental build, and how to force and verify a real rebuild.

    22k GitHub stars~1.3k tokensUpdated today
    DevelopmentAuto-check passed
  • The Art of Debugging

    stas00/the-art-of-debugging

    Condensed debugging method and tool recipes for Unix, Python and PyTorch programs: crashes, hangs, segfaults, wrong output, CUDA OOM, NaN values and slowness.

    1.7k GitHub stars~6.1k tokensUpdated 2 days ago
    DevelopmentAuto-check: notes
  • Cuda

    technillogue/ptx-isa-markdown

    CUDA kernel development, debugging, and performance optimization for Claude Code.

    229 GitHub stars~2.5k tokensUpdated 9 mo ago
    DevelopmentAuto-check passed
  • Celeste Python

    withceleste/celeste-python

    A skill your agent uses whenever writing, modifying, reviewing, or debugging code involving Celeste, celeste-ai, celeste-python, import celeste, src/celeste, or withceleste app integrations.

    221 GitHub stars~1.1k tokensUpdated yesterday
    DevelopmentAuto-check passed

More from facebookexperimental/triton

All 18 skills in this repo
  • Amd Att Trace

    facebookexperimental/triton

    Official

    Collect, validate, package, and inspect rocprofv3 Advanced Thread Trace bundles for AMD GPU kernels.

    201 GitHub stars~733 tokensUpdated today
    Auto-check passed
  • Ir Override Ablation

    facebookexperimental/triton

    Official

    Design and run Triton TTGIR debugging ablations using iroverride.

    201 GitHub stars~978 tokensUpdated today
    Auto-check passed
  • Tlx Kernel Optimization Agent

    facebookexperimental/triton

    Official

    Execute the TLX Kernel Optimization Agent CLI on a Triton or TLX kernel.

    201 GitHub stars~3.5k tokensUpdated today
    Auto-check passed
  • Compute Sanitizer

    facebookexperimental/triton

    Official

    Run NVIDIA compute-sanitizer (memcheck, racecheck, initcheck, synccheck) against a Triton/TLX kernel to find runtime memory and synchronization bugs.

    201 GitHub stars~1.6k tokensUpdated today
    Auto-check passed
  • Debug Failing GPU

    facebookexperimental/triton

    Official

    Recover from GPU-busy / GPU-unavailable failures. An agent skill from facebookexperimental/triton.

    201 GitHub stars~709 tokensUpdated today
    Auto-check passed
  • Kernel Perf Testing

    facebookexperimental/triton

    Official

    Run TLX kernel performance benchmarks on Hopper, Blackwell, and AMD (gfx950/CDNA4, gfx1250) GPUs.

    201 GitHub stars~1.1k tokensUpdated today
    Auto-check passed

Works with

Questions about Ir Debugging

What does Ir Debugging do?

Debug Triton compilation by dumping IR at each stage (TTIR, TTGIR, LLVM, PTX). Ir Debugging is an agent skill from facebookexperimental/triton, published by the product's own GitHub organization. Debug Triton compilation by dumping IR at each stage (TTIR, TTGIR, LLVM, PTX).

When should I use Ir Debugging?

Ir Debugging fits situations like: investigating compilation failures; kernel performance; register spills; user asks to inspect IR output.

How do I install Ir Debugging in Claude Code?

Run `npx skills add facebookexperimental/triton --skill ir-debugging -a claude-code`. Or copy the skill folder (.claude/skills/ir-debugging in facebookexperimental/triton) into .claude/skills/ir-debugging in your project. Claude Code loads it when a task matches its description.

How do I install Ir Debugging in Codex?

Run `npx skills add facebookexperimental/triton --skill ir-debugging -a codex`. Or copy the skill folder (.claude/skills/ir-debugging in facebookexperimental/triton) into .agents/skills/ir-debugging in your project. Codex loads it when a task matches its description.

Can I use Ir Debugging 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 facebookexperimental/triton --skill ir-debugging -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/ir-debugging, .gemini/skills/ir-debugging, .github/skills/ir-debugging and .opencode/skills/ir-debugging in your project.

What does Ir Debugging need to run?

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

Does Ir Debugging 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 Ir Debugging 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 Ir Debugging use?

Ir Debugging is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Ir Debugging use?

About 644 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 Ir Debugging?

Skills that share tags, products or a category with Ir Debugging: Tilelang Developer (yzlnew/infra-skills, 149 stars), Debug Distributed Hang (sgl-project/sglang, 37k stars), CUTLASS FMHA Incremental Rebuild (microsoft/onnxruntime, 22k stars) and The Art of Debugging (stas00/the-art-of-debugging, 1.7k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Ir Debugging?

facebookexperimental (a GitHub organization, an official publisher) maintains it in facebookexperimental/triton, which has 201 GitHub stars. The repository holds 18 skills in this directory. The repository was last updated on October 8, 2026.

Source: facebookexperimental/triton on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.