Agent skill

Llvm

by ROCm in 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.

Custom licenceAuto-check: notesDevelopment

Install Llvm

skills CLI
$ npx skills add ROCm/FlyDSL --skill llvm -a claude-code

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

GitHub CLI
$ gh skill install ROCm/FlyDSL llvm --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/llvm .claude/skills/llvm && 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
llvm
GitHub stars
288
Token cost
~4.9k tokens
SKILL.md length
2,242 words
Files
8 (incl. scripts, references)
Skills in repo
19
Repo updated
First seen
Licence
Custom licence

At a glance

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.

  • Works in 10 steps: Establish your toolchain → Dump hygiene → The four lanes into LLVM → …
  • Asked to reduce spills
  • SKILL.md covers Pick the right skill first, Step 1 — Establish your…, Step 2 — Dump hygiene and Step 3 — The four lanes into…, plus 10 more sections
  • Runs Python scripts from its folder; calls docker and python

What it does

Llvm is an agent skill from 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. Covers the compilehints keys, the llvmoptions cl::opt escape hatch, rocdl. / raw LLVM function attributes, per-arch options for gfx950 and gfx1250, dumping and reading NNllvmir.ll, replaying the LLVM half with llc, and the knobs in this repo that silently do nothing. Use when asked to reduce spills, raise occupancy, change the instruction schedule, set wavespereu or…

Its SKILL.md is about 4.9k tokens, which your agent loads only when the skill is triggered. The skill folder holds 9 other files, including scripts and reference files (for example `references/amdgpu-attributes.md`, `references/arch-gfx1250.md` and `references/arch-gfx950.md`).

It sits in Development, covering Performance optimization and Project scaffolding. 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.

When your agent uses it

  • Asked to reduce spills
  • Raise occupancy
  • Change the instruction schedule
  • Flatworkgroupsize

Example prompts

  • “/llvm”

Requirements

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

Workflow steps

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

  1. Establish your toolchain
  2. Dump hygiene
  3. The four lanes into LLVM
  4. The compile_hints keys
  5. Hint layering rules
  6. Arch applicability
  7. Verify it took effect
  8. Knobs in this repo that do not work
  9. Failure-mode taxonomy
  10. Tuning workflow

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
    • Write
    • Edit
    • Bash
    • Grep
    • Glob

    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:

    • docker
    • python

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

  • Network

    No URLs in SKILL.md. Its commands use docker, which can reach the network depending on how they are called.

    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

Llvm loads about 4.9k tokens when it runs, and up to ~14k if it reads all its reference files. Until then it costs about 235 tokens; SKILL.md has 2,242 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~235
When it runs · the whole SKILL.md, loaded when a task matches
~4.9k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~14k

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, Write, Edit, Bash, Grep, Glob

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 2,242 words (~4,918 tokens).

“FlyDSL reaches LLVM through four lanes, and only some of them are alive. This skill routes you to the one that works for your knob, then makes you prove it landed. The repo is knob-rich and instrument-poor: four knobs were…”

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

Read the full SKILL.md on GitHub

Files

SKILL.md and 7 other files (scripts, references) in .claude/skills/llvm of ROCm/FlyDSL.

  • SKILL.md
  • references/amdgpu-attributes.md
  • references/arch-gfx1250.md
  • references/arch-gfx950.md
  • references/mllvm-flags.md
  • references/sched-primitives.md
  • scripts/llvm_ir_attrs.py
  • scripts/llvm_knob_check.py

Open the folder on GitHubat commit 1941889

Compare with similar skills

Llvm 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.

Llvm compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Llvm this skillROCm/FlyDSL288—~4.9kAutomated safety check: NotesCustom licence
Corvus Ctj Handler Implementationcorvus-dotnet/Corvus.JsonSchema199—~4.4kAutomated safety check: PassApache-2.0
Senior Javabenchflow-ai/skillsbench1.8k—~5kAutomated safety check: PassMIT
Code Review ChecklistshareAI-lab/learn-claude-code78k5 repos~1.1kAutomated safety check: PassMIT
LLM Torch Profiler Analysissgl-project/sglang37k2 repos~6.4kAutomated safety check: PassApache-2.0
Nx Generatenomcopter/react-mosaic4.8k7 repos~1.9kAutomated safety check: PassCustom licence

Similar skills

  • Corvus Ctj Handler Implementation

    corvus-dotnet/Corvus.JsonSchema

    Implement OpenAPI server handlers using Corvus.Text.Json generated types.

    199 GitHub stars~4.4k tokensUpdated today
    DevelopmentAuto-check passed
  • Senior Java

    benchflow-ai/skillsbench

    World-class Java and Spring Boot development skill for enterprise applications, microservices, and cloud-native systems.

    1.8k GitHub stars~5k tokensUpdated 2 mo ago
    Backend & APIsAuto-check passed
  • Code Review Checklist

    shareAI-lab/learn-claude-code

    Reviews code against a five-part checklist covering security, correctness, performance, maintainability and testing, and reports findings in a fixed format.

    78k GitHub starsUsed in 5 repos~1.1k tokens
    DevelopmentAuto-check passed
  • LLM Torch Profiler Analysis

    sgl-project/sglang

    Unified LLM torch-profiler triage skill for sglang, vllm, TensorRT-LLM, and TokenSpeed.

    37k GitHub starsUsed in 2 repos~6.4k tokens
    DevelopmentAuto-check passed
  • Nx Generate

    nomcopter/react-mosaic

    Generate code using nx generators. An agent skill from nomcopter/react-mosaic.

    4.8k GitHub starsUsed in 7 repos~1.9k tokens
    DevelopmentAuto-check passed
  • Ponytail

    DavidObando/gsharp

    Forces the laziest solution that actually works, simplest, shortest, most minimal.

    565 GitHub starsUsed in 8 repos~1.7k tokens
    DevelopmentAuto-check passed

More from ROCm/FlyDSL

All 19 skills in this repo
  • 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.

    288 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.

    288 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.

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

    288 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.

    288 GitHub stars~4.6k tokensUpdated today
    Auto-check: notes
  • Format Code

    ROCm/FlyDSL

    Format, clean up, and style-check changed files, matching the project's CI style gate.

    288 GitHub stars~1.9k tokensUpdated today
    Auto-check: notes

Categories

Questions about Llvm

What does Llvm do?

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. Llvm is an agent skill from 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.

When should I use Llvm?

Llvm fits situations like: asked to reduce spills; raise occupancy; change the instruction schedule; flatworkgroupsize.

How do I install Llvm in Claude Code?

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

How do I install Llvm in Codex?

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

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

What does Llvm need to run?

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

Does Llvm access the network?

SKILL.md contains no URLs. Its commands use docker, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Llvm 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 Llvm use?

Llvm 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 Llvm use?

About 4.9k 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. Its references folder adds about 9.4k tokens, read only when the agent opens those files.

What are the alternatives to Llvm?

Skills that share tags, products or a category with Llvm: Corvus Ctj Handler Implementation (corvus-dotnet/Corvus.JsonSchema, 199 stars), Senior Java (benchflow-ai/skillsbench, 1.8k stars), Code Review Checklist (shareAI-lab/learn-claude-code, 78k stars) and LLM Torch Profiler Analysis (sgl-project/sglang, 37k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Llvm?

ROCm (a GitHub organization) maintains it in ROCm/FlyDSL, which has 288 GitHub stars. The repository holds 19 skills in this directory. The repository was last updated on October 8, 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.