Agent skill

Prefetch Data Load

by ROCm in ROCm/FlyDSL

Apply prefetch optimization to FlyDSL kernel loops: pre-load the first iteration's data before the loop, issue async loads for the next iteration inside the loop body, and swap buffers at the loop…

Custom licenceAuto-check: notes

Install Prefetch Data Load

skills CLI
$ npx skills add ROCm/FlyDSL --skill prefetch-data-load -a claude-code

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

GitHub CLI
$ gh skill install ROCm/FlyDSL prefetch-data-load --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/prefetch-data-load .claude/skills/prefetch-data-load && 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
prefetch-data-load
GitHub stars
288
Token cost
~4.4k tokens
SKILL.md length
1,591 words
Files
1
Skills in repo
19
Repo updated
First seen
Licence
Custom licence

At a glance

Apply prefetch optimization to FlyDSL kernel loops: pre-load the first iteration's data before the loop, issue async loads for the next iteration inside the loop body, and swap buffers at the loop…

  • Works in 3 steps: Prologue — load first iteration before… → Runtime loop with loop-carried state → Epilogue — process last iteration
  • A kernel has a loop where bufferload feeds into MFMA/compute and load latency is exposed
  • SKILL.md covers Core Principle, FlyDSL Implementation:…, Applicable Patterns and Compiler Constraints, plus 3 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Prefetch Data Load is an agent skill from ROCm/FlyDSL. Apply prefetch optimization to FlyDSL kernel loops: pre-load the first iteration's data before the loop, issue async loads for the next iteration inside the loop body, and swap buffers at the loop tail via runtime loop-carried values. This overlaps data load latency with compute instructions. Use when a kernel has a loop where bufferload feeds into MFMA/compute and load latency is exposed. Usage: /prefetch-data-load

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

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

  • A kernel has a loop where bufferload feeds into MFMA/compute and load latency is exposed

Example prompts

  • “/prefetch-data-load”

Requirements

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

Workflow steps

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

  1. Prologue — load first iteration before loop
  2. Runtime loop with loop-carried state
  3. Epilogue — process last iteration

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

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are python and sql).

    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

Prefetch Data Load loads about 4.4k tokens when it runs. Until then it costs about 110 tokens; SKILL.md has 1,591 words of instructions outside code blocks.

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

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

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

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

“Apply software prefetch (double-buffering) to overlap async data loads with compute in FlyDSL GPU kernel loops.”

— opening of SKILL.md by ROCm, Custom licence
name
prefetch-data-load
allowed-tools
Read, Edit, Bash, Grep, Glob, Agent

Read the full SKILL.md on GitHub

Files

Just SKILL.md in .claude/skills/prefetch-data-load of ROCm/FlyDSL.

Open the folder on GitHubat commit 1941889

Compare with similar skills

Prefetch Data Load 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.

Prefetch Data Load compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Prefetch Data Load this skillROCm/FlyDSL288—~4.4kAutomated safety check: NotesCustom licence
Loopalirezarezvani/claude-skills28k2 repos~1.1kAutomated safety check: PassMIT
Autonomous Loopsaffaan-m/ECC275k4 repos~5.8kAutomated safety check: PassMIT
Loopasgeirtj/system_prompts_leaks69k—~2.2kAutomated safety check: WarnCC0-1.0
Loop Design Checkaffaan-m/ECC275k1 repos~2.9kAutomated safety check: PassMIT
Recurring Prompt LoopQwenLM/qwen-code28k—~2.5kAutomated safety check: PassApache-2.0

Similar skills

  • Loop

    alirezarezvani/claude-skills

    Start an autonomous experiment loop with user-selected interval (10min, 1h, daily, weekly, monthly).

    28k GitHub starsUsed in 2 repos~1.1k tokens
    Agent WorkflowsAuto-check passed
  • Autonomous Loops

    affaan-m/ECC

    Patterns and architectures for autonomous Claude Code loops — from simple sequential pipelines to RFC-driven multi-agent DAG systems.

    275k GitHub starsUsed in 4 repos~5.8k tokens
    Agent WorkflowsAuto-check passed
  • Loop

    asgeirtj/system_prompts_leaks

    Run a prompt or slash command on a recurring interval (e.g. An agent skill from asgeirtj/system_prompts_leaks.

    69k GitHub stars~2.2k tokensUpdated today
    Agent WorkflowsAuto-check: warnings
  • Loop Design Check

    affaan-m/ECC

    Design a goal-oriented agent loop or review one for failure modes: spinning, Goodhart-gaming the verifier, or running a wrong answer to completion.

    275k GitHub starsUsed in 1 repo~2.9k tokens
    Agent WorkflowsAuto-check passed
  • Recurring Prompt Loop

    QwenLM/qwen-code

    Runs a prompt now and repeats it on a fixed interval or through self-paced wakeups, with subcommands to list or clear scheduled loop jobs.

    28k GitHub stars~2.5k tokensUpdated today
    Agent WorkflowsAuto-check passed
  • Autopilot Loop

    ruvnet/ruflo

    Run an autonomous /loop iteration -- check progress, work on next task, schedule next wake

    74k GitHub stars~356 tokensUpdated today
    Agent WorkflowsAuto-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.

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

    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

Questions about Prefetch Data Load

What does Prefetch Data Load do?

Apply prefetch optimization to FlyDSL kernel loops: pre-load the first iteration's data before the loop, issue async loads for the next iteration inside the loop body, and swap buffers at the loop…. Prefetch Data Load is an agent skill from ROCm/FlyDSL. Apply prefetch optimization to FlyDSL kernel loops: pre-load the first iteration's data before the loop, issue async loads for the next iteration inside the loop body, and swap buffers at the loop tail via runtime loop-carried values.

When should I use Prefetch Data Load?

Prefetch Data Load fits situations like: A kernel has a loop where bufferload feeds into MFMA/compute and load latency is exposed.

How do I install Prefetch Data Load in Claude Code?

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

How do I install Prefetch Data Load in Codex?

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

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

What does Prefetch Data Load need to run?

SKILL.md names no scripts, command-line tools or credentials: Prefetch Data Load is instructions for the agent only. Our summary lists: Python 3. Its frontmatter pre-approves these tools: Read, Edit, Bash, Grep, Glob, Agent.

Does Prefetch Data Load 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 Prefetch Data Load 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. Review the folder before installing.

What licence does Prefetch Data Load use?

Prefetch Data Load 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 Prefetch Data Load use?

About 4.4k tokens (SKILL.md is roughly 18k 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 Prefetch Data Load?

Skills that share tags, products or a category with Prefetch Data Load: Loop (alirezarezvani/claude-skills, 28k stars), Autonomous Loops (affaan-m/ECC, 275k stars), Loop (asgeirtj/system_prompts_leaks, 69k stars) and Loop Design Check (affaan-m/ECC, 275k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Prefetch Data Load?

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.