Agent skill

Kernel Trace Analysis

by ROCm in ROCm/FlyDSL

Profile GPU kernels using rocprofv3 to collect ATT instruction-level traces, then analyze the trace data using hotspotanalyzer.py to identify top-K stall hotspots (VMEM-load, VMEM-wait…

Custom licenceAuto-check: notes

Install Kernel Trace Analysis

skills CLI
$ npx skills add ROCm/FlyDSL --skill kernel-trace-analysis -a claude-code

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

GitHub CLI
$ gh skill install ROCm/FlyDSL kernel-trace-analysis --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/ROCm/FlyDSL.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/kernel-trace-analysis .claude/skills/kernel-trace-analysis && 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
kernel-trace-analysis
GitHub stars
287
Token cost
~5k tokens
SKILL.md length
1,708 words
Files
3 (incl. scripts)
Skills in repo
19
Repo updated
First seen
Licence
Custom licence

At a glance

Profile GPU kernels using rocprofv3 to collect ATT instruction-level traces, then analyze the trace data using hotspotanalyzer.py to identify top-K stall hotspots (VMEM-load, VMEM-wait…

  • Works in 3 steps: Kernel Discovery → Configure input.yaml → Collect ATT Trace
  • SKILL.md covers Arguments, Analyzer Scripts, Workflow and Step 4: Run hotspot_analyzer.py, plus 3 more sections
  • Runs Python scripts from its folder; calls python, sqlite3 and wget; reaches github.com

What it does

Kernel Trace Analysis is an agent skill from ROCm/FlyDSL. Profile GPU kernels using rocprofv3 to collect ATT instruction-level traces, then analyze the trace data using hotspotanalyzer.py to identify top-K stall hotspots (VMEM-load, VMEM-wait, LDS/SMEM-wait, barrier, MFMA stalls) mapped back to source lines, and produce an actionable optimization plan. Usage: /kernel-trace-analysis <cmd Can also analyze an existing dispatch dir directly: /kernel-trace-analysis --dir <path

Its SKILL.md is about 5k tokens, which your agent loads only when the skill is triggered. The skill folder holds 3 other files, including scripts (for example `scripts/hotspot_analyzer.py` and `scripts/pmc_l2_analyzer.py`).

The repository describes itself as: FlyDSL is the Python front‑end of the project: a Flexible Layout Python DSL for expressing tiling, partitioning, data movement, and kernel structure at a high level.

Example prompts

  • “/kernel-trace-analysis”

Requirements

  • Python 3
  • Pre-approved tools (allowed-tools): Read, Edit, Bash, Grep, Glob, Agent, Write

Workflow steps

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

  1. Kernel Discovery
  2. Configure input.yaml
  3. Collect ATT Trace

What it can do on your machine

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

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Edit
    • Bash
    • Grep
    • Glob
    • Agent
    • Write

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 2 files in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python
    • sqlite3
    • wget

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

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • github.com

    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

Kernel Trace Analysis loads about 5k tokens when it runs. Until then it costs about 111 tokens; SKILL.md has 1,708 words of instructions outside code blocks.

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

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: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NotePre-approves every shell command (allowed-tools: Bash)SKILL.md
    allowed-tools: Read, Edit, Bash, Grep, Glob, Agent, Write

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); the scripts in this folder are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 1,708 words (~5,038 tokens).

“Profile and analyze GPU kernel ATT traces to identify stall hotspots and produce an optimization plan.”

— opening of SKILL.md by ROCm, Custom licence
name
kernel-trace-analysis
allowed-tools
Read, Edit, Bash, Grep, Glob, Agent, Write

Read the full SKILL.md on GitHub

Files

SKILL.md and 2 other files (scripts) in .claude/skills/kernel-trace-analysis of ROCm/FlyDSL.

  • SKILL.md
  • scripts/hotspot_analyzer.py
  • scripts/pmc_l2_analyzer.py

Open the folder on GitHubat commit 1941889

Compare with similar skills

Kernel Trace Analysis 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.

Kernel Trace Analysis compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Kernel Trace Analysis this skillROCm/FlyDSL287—~5kAutomated safety check: NotesCustom licence
Observe Traceruvnet/ruflo74k—~522Automated safety check: NotesMIT
Metal Kernelpytorch/pytorch104k—~4.9kAutomated safety check: PassCustom licence
Dotnet Trace Collectdotnet/skills5.6k2 repos~6.1kAutomated safety check: PassMIT
Optimize For GPUK-Dense-AI/scientific-agent-skills48k1 repos~3.4kAutomated safety check: PassMIT
Acreadiness Generate Instructionsgithub/awesome-copilot40k1 repos~2.1kAutomated safety check: PassMIT

Similar skills

  • Observe Trace

    ruvnet/ruflo

    Trace agent execution by collecting spans and building a trace tree for a task

    74k GitHub stars~522 tokensUpdated yesterday
    Auto-check: notes
  • Metal Kernel

    pytorch/pytorch

    Write Metal/MPS kernels for PyTorch operators. An agent skill from pytorch/pytorch.

    104k GitHub stars~4.9k tokensUpdated today
    AI & LLM EngineeringAuto-check passed
  • Official

    Guide developers through capturing diagnostic artifacts to diagnose production .NET performance issues.

    5.6k GitHub starsUsed in 2 repos~6.1k tokens
    Auto-check passed
  • Optimize For GPU

    K-Dense-AI/scientific-agent-skills

    GPU-accelerates scientific Python on NVIDIA hardware and verifies that the result is correct and faster.

    48k GitHub starsUsed in 1 repo~3.4k tokens
    Data & AnalyticsAuto-check passed
  • Acreadiness Generate Instructions

    github/awesome-copilot

    Official

    Generate tailored AI agent instruction files via AgentRC instructions command.

    40k GitHub starsUsed in 1 repo~2.1k tokens
    DevelopmentAuto-check passed
  • Add Jit Kernel

    sgl-project/sglang

    Step-by-step tutorial for adding a new lightweight JIT CUDA kernel to sglang.kernels JIT infrastructure and public operator groups

    37k GitHub stars~13k tokensUpdated today
    AI & LLM EngineeringAuto-check passed

More from ROCm/FlyDSL

All 19 skills in this repo
  • Llvm

    ROCm/FlyDSL

    Tune and analyse a FlyDSL kernel at the LLVM level: pick a compile hint, function attribute, or AMDGPU backend flag, then PROVE it reached codegen.

    287 GitHub stars~4.9k tokensUpdated today
    Auto-check: notes
  • Detect per-kernel GPU resource regressions (VGPR, SGPR, register spills, scratch, static LDS) by diffing the final ISA before and after a change, using its isaresourcetable.py helper.

    287 GitHub stars~2.7k tokensUpdated today
    Auto-check: notes
  • API Stability

    ROCm/FlyDSL

    Review a FlyDSL PR, commit, branch, kernel, or consuming module for API-stability compliance.

    287 GitHub stars~3.2k tokensUpdated today
    Auto-check: notes
  • Build Rocm Image

    ROCm/FlyDSL

    Connect to a remote host via SSH and build a Docker image with rocprofv3, aiter, and FlyDSL.

    287 GitHub stars~1.2k tokensUpdated today
    Auto-check: notes
  • Debug FlyDSL GPU kernels that produce NaN, inf, wrong results, or crash.

    287 GitHub stars~2.6k tokensUpdated today
    Auto-check: notes
  • Guided step-by-step wizard for producing a new FlyDSL GPU kernel from a requirement: classify the kernel type, pick a skeleton, fill in compute, add control flow / sync / LDS, then test on GPU.

    287 GitHub stars~4.6k tokensUpdated today
    Auto-check: notes

Questions about Kernel Trace Analysis

What does Kernel Trace Analysis do?

Profile GPU kernels using rocprofv3 to collect ATT instruction-level traces, then analyze the trace data using hotspotanalyzer.py to identify top-K stall hotspots (VMEM-load, VMEM-wait…. Kernel Trace Analysis is an agent skill from ROCm/FlyDSL.py to identify top-K stall hotspots (VMEM-load, VMEM-wait, LDS/SMEM-wait, barrier, MFMA stalls) mapped back to source lines, and produce an actionable optimization plan.

How do I install Kernel Trace Analysis in Claude Code?

Run `npx skills add ROCm/FlyDSL --skill kernel-trace-analysis -a claude-code`. Or copy the skill folder (.claude/skills/kernel-trace-analysis in ROCm/FlyDSL) into .claude/skills/kernel-trace-analysis in your project. Claude Code loads it when a task matches its description.

How do I install Kernel Trace Analysis in Codex?

Run `npx skills add ROCm/FlyDSL --skill kernel-trace-analysis -a codex`. Or copy the skill folder (.claude/skills/kernel-trace-analysis in ROCm/FlyDSL) into .agents/skills/kernel-trace-analysis in your project. Codex loads it when a task matches its description.

Can I use Kernel Trace Analysis 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 ROCm/FlyDSL --skill kernel-trace-analysis -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/kernel-trace-analysis, .gemini/skills/kernel-trace-analysis, .github/skills/kernel-trace-analysis and .opencode/skills/kernel-trace-analysis in your project.

What does Kernel Trace Analysis need to run?

Going by SKILL.md and its folder, Kernel Trace Analysis needs Python for the scripts in its folder and the command-line tools its instructions call (python, sqlite3 and wget). Our summary lists: Python 3. Its frontmatter pre-approves these tools: Read, Edit, Bash, Grep, Glob, Agent, Write.

Does Kernel Trace Analysis access the network?

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.

Is Kernel Trace Analysis safe to install?

Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Kernel Trace Analysis use?

Kernel Trace Analysis has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Kernel Trace Analysis use?

About 5k tokens (SKILL.md is roughly 20k 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 Kernel Trace Analysis?

Skills that share tags, products or a category with Kernel Trace Analysis: Observe Trace (ruvnet/ruflo, 74k stars), Metal Kernel (pytorch/pytorch, 104k stars), Dotnet Trace Collect (dotnet/skills, 5.6k stars) and Optimize For GPU (K-Dense-AI/scientific-agent-skills, 48k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Kernel Trace Analysis?

ROCm (a GitHub organization) maintains it in ROCm/FlyDSL, which has 287 GitHub stars. The repository holds 19 skills in this directory. The repository was last updated on October 7, 2026.

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