Agent skill

B200 Tma Pipeline Designer

by mirage-project in mirage-project/mirage

A skill your agent uses when the user wants to convert regular GMEM↔SMEM tile copies to TMA on B200/Blackwell, design double-buffered/multi-stage pipelines, choose a swizzle, or distinguish the TMA…

Apache-2.0Auto-check passed

Install B200 Tma Pipeline Designer

skills CLI
$ npx skills add mirage-project/mirage --skill b200-tma-pipeline-designer -a claude-code

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

GitHub CLI
$ gh skill install mirage-project/mirage b200-tma-pipeline-designer --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/mirage-project/mirage.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/b200-tma-pipeline-designer .claude/skills/b200-tma-pipeline-designer && 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
b200-tma-pipeline-designer
GitHub stars
2.5k
Token cost
~1.9k tokens
SKILL.md length
873 words
Files
2
Skills in repo
24
Repo updated
First seen
Licence
Apache-2.0

At a glance

A skill your agent uses when the user wants to convert regular GMEM↔SMEM tile copies to TMA on B200/Blackwell, design double-buffered/multi-stage pipelines, choose a swizzle, or distinguish the TMA…

  • Works in 3 steps: "Convert this GMEM→SMEM load to B200 TMA… → "What should a TMA load and a TMA store… → "Help me design the stage ring and…
  • The user wants to convert regular GMEM↔SMEM tile copies to TMA on B200/Blackwell
  • SKILL.md covers R — Source evidence (Reading,…, I — Methodology skeleton…, A1 — Applications in the… and A2 — Trigger scenarios (Future…, plus 4 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

B200 Tma Pipeline Designer is an agent skill from mirage-project/mirage. Use when the user wants to convert regular GMEM↔SMEM tile copies to TMA on B200/Blackwell, design double-buffered/multi-stage pipelines, choose a swizzle, or distinguish the TMA load vs store completion protocols. Produces descriptor, stage ring, barrier, and prologue/steady-state/epilogue plans. Not for highly irregular gather/scatter or copies too small to be worth setting up a TMA descriptor.

Its SKILL.md is about 1.9k tokens, which your agent loads only when the skill is triggered. The skill folder holds 1 other file (for example `test-prompts.json`).

The repository describes itself as: Mirage Persistent Kernel: Compiling LLMs into a MegaKernel. The licence is Apache-2.0.

When your agent uses it

  • The user wants to convert regular GMEM↔SMEM tile copies to TMA on B200/Blackwell
  • Design double-buffered/multi-stage pipelines
  • Choose a swizzle
  • Distinguish the TMA load vs store completion protocols

Example prompts

  • “/b200-tma-pipeline-designer”

Workflow steps

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

  1. "Convert this GMEM→SMEM load to B200 TMA double buffering."
  2. "What should a TMA load and a TMA store each wait on?"
  3. "Help me design the stage ring and barriers for PIPE_DEPTH=2/3."

What it can do on your machine

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

    No scripts in the folder and no shell commands in SKILL.md.

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

  • Network

    Links to these hosts (documentation or services it may open):

    • mlc.ai

    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

B200 Tma Pipeline Designer loads about 1.9k tokens when it runs. Until then it costs about 106 tokens; SKILL.md has 873 words of instructions outside code blocks.

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

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 mirage-project/mirage at commit f9eb70c, republished under its Apache-2.0 licence (© mirage-project). 873 words, ~1,855 tokens.

Download SKILL.mdSave it as .claude/skills/b200-tma-pipeline-designer/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
b200-tma-pipeline-designer
description
Use when the user wants to convert regular GMEM↔SMEM tile copies to TMA on B200/Blackwell, design double-buffered/multi-stage pipelines, choose a swizzle, or distinguish the TMA load vs store completion protocols. Produces descriptor, stage ring, barrier, and prologue/steady-state/epilogue plans. Not for highly irregular gather/scatter or copies too small to be worth setting up a TMA descriptor.
source_book
Modern GPU Programming For MLSys (MLC Community) + NVIDIA Blackwell Tuning/Compatibility Guides
source_chapter
S6; S9; S12
tags
b200, blackwell
related_skills
b200-scope-layout-dispatch, b200-layout-contract-auditor, b200-mbarrier-protocol-auditor, b200-gemm-optimization-ladder, b200-flash-attention4-planner
version
0.1.0
<!-- Distilled from "Modern GPU Programming for MLSys" — https://mlc.ai/modern-gpu-programming-for-mlsys/ -->

B200 TMA Pipeline Designer

R — Source evidence (Reading, paraphrased)

  • [S6] TMA is issued by a single thread; the hardware asynchronously moves a regular rectangular tile; the descriptor describes the global shape/stride, tile coordinates, and SMEM swizzle.
  • [S6] TMA loads complete through an mbarrier carrying a byte count; TMA stores drain through commit group / wait group.
  • [S12] Double buffering gives the next K tile a landing slot; full load/compute overlap additionally requires role separation or an equivalent concurrency structure.

Source: distilled from "Modern GPU Programming for MLSys" (https://mlc.ai/modern-gpu-programming-for-mlsys/) and the NVIDIA Blackwell tuning/compatibility guides. Short paraphrases only; no long passages are reproduced.


I — Methodology skeleton (Interpretation)

TMA is not "the copy API under a new name"; it restructures a synchronous thread path into an asynchronous producer. The design counts as complete only when all of the following are given together:

  • the descriptor and the SMEM layout;
  • a unique issuer;
  • the ready/free protocol for each stage;
  • the distinct completion mechanisms for load vs store;
  • the prologue, the steady-state loop, and the drain;
  • the trade-off between stage count and SMEM/occupancy.

If you have only written copy_async without a lifecycle protocol, the TMA design is not finished yet.


A1 — Applications in the source (Past Application)

Case 1: GEMM operand double buffering
  • While stage 0 is being consumed by the MMA, TMA writes the next K tile into stage 1.
  • The consumer first waits on tma2mma[stage]; the producer waits on mma2tma[stage] before overwriting.
Case 2: TMA store of results
  • After the epilogue writes the result to Dsmem, a single thread issues the TMA store.
  • commit_group must be followed by wait_group, confirming the store has drained before Dsmem may be reused or the associated lifetime may end.

A2 — Trigger scenarios (Future Trigger) ★

In what situations will the user need this skill?
  1. "Convert this GMEM→SMEM load to B200 TMA double buffering."
  2. "What should a TMA load and a TMA store each wait on?"
  3. "Help me design the stage ring and barriers for PIPE_DEPTH=2/3."
Language signals
  • "Convert this GMEM→SMEM load to B200 TMA double buffering."
  • "What should a TMA load and a TMA store each wait on?"
  • "Help me design the stage ring and barriers for PIPE_DEPTH=2/3."
Distinction from adjacent skills

Versus b200-mbarrier-protocol-auditor: this skill designs a TMA pipeline from scratch; the latter checks existing barriers item by item for bugs. Compose with b200-layout-contract-auditor to cross-check the swizzle.


Show full SKILL.md (480 more words)Show less

E — Executable steps (Execution)

Once the skill is activated, the agent must execute the following procedure:

  1. Assess TMA suitability
    • Is the tile regular, rectangular, and describable by fixed strides?
    • Is the copy volume large enough to amortize the descriptor and synchronization overhead?
    • If not, keep the vectorized thread copy.
  2. Define the tensor-map descriptor
    • Global shape/stride, element size, tile shape, coordinates, boundary policy, swizzle.
    • Completion criterion: the source address and the destination SMEM layout can be uniquely derived from the logical tile coordinates.
  3. Choose the issuer
    • Designate one lane/thread to issue; do not let every thread redundantly issue the TMA.
    • Write the issue scope and the CTA consumption scope separately.
  4. Define the load protocol
    • Initialize a barrier for each stage.
    • arrive.expect_tx(bytes) sets the expected bytes and completes the issuing thread's arrival.
    • Consumers read SMEM only after waiting on the correct phase.
  5. Define the store protocol
    • After commit_group, use wait_group to guarantee outgoing stores have drained.
    • Do not mistakenly substitute the load-side byte-count protocol for store drain.
  6. Design the stage ring
    • Give PIPE_DEPTH, per-stage A/B/temporary SMEM, the ready/free barriers, and the initial phase values.
    • Compute total SMEM; check whether it pushes residency to an unacceptable level.
  7. Write the three-phase timeline
    • Prologue: fill the initial batch of stages.
    • Steady state: overlap load k+1 / compute k / store k-1.
    • Epilogue: stop issuing new loads, finish the remaining compute/store, drain the groups.
  8. Validate
    • Correctness: asymmetric small matrices, boundary tiles, different K_TILES.
    • Protocol: each stage's ready and free each have a unique producer and consumer.
    • Performance: confirm the copy instructions genuinely overlap with Tensor Core work, rather than code that looks asynchronous but is still issued serially by the same role.
Required outputs
  1. Conclusion: the current choice/diagnosis, without vague "could be any of them" hedging.
  2. Evidence or assumptions: which come from user data, and which are hypotheses awaiting verification.
  3. Contract/table/timeline: the auditable intermediate artifacts corresponding to this skill.
  4. Minimal validation: correctness tests, boundary tests, and one falsifiable experiment.
  5. Risks and fallback: alternative paths when hardware, version, or resource conditions are not met.

B — Boundaries (Boundary) ★

Do not use when
  • Highly sparse, irregular gather/scatter that a descriptor cannot express.
  • A one-off, tiny copy where the TMA setup and synchronization cost may exceed the benefit.
Failure modes
  • TMA swizzle inconsistent with the MMA layout.
  • Consuming right after the load is issued, missing the barrier wait.
  • Reusing SMEM before the store has drained.
  • Increasing pipeline depth without accounting for SMEM resources and occupancy.
Limitations
  • The best pipeline depth must be measured on real shapes, clock frequencies, and compiled output; it cannot be derived from a fixed rule.

  • depends-on: b200-scope-layout-dispatch, b200-layout-contract-auditor
  • contrasts-with: none
  • composes-with: b200-mbarrier-protocol-auditor, b200-gemm-optimization-ladder, b200-flash-attention4-planner

Audit info

  • Validation passed: V1 ✓ / V2 ✓ / V3 ✓
  • Test definitions: 6 (3 should_trigger / 2 should_not_trigger / 1 edge_case)
  • Hardware validation: not performed; must be verified on a target B200
  • Distilled: 2026-06-25

© mirage-project, 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

SKILL.md and 1 other file in .claude/skills/b200-tma-pipeline-designer of mirage-project/mirage.

  • SKILL.md
  • test-prompts.json

Open the folder on GitHubat commit f9eb70c

Compare with similar skills

B200 Tma Pipeline Designer 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.

B200 Tma Pipeline Designer compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
B200 Tma Pipeline Designer this skillmirage-project/mirage2.5k—~1.9kAutomated safety check: PassApache-2.0
Frontend Slideszarazhangrui/frontend-slides30k16 repos~7kAutomated safety check: PassMIT
Algorithmic Art with p5.jsanthropics/skills180k38 repos~4.9kAutomated safety check: PassApache-2.0
Canvas Designanthropics/skills180k52 repos~3kAutomated safety check: PassApache-2.0
Impeccablebestofjs/bestofjs3.1k26 repos~2.6kAutomated safety check: PassMIT
Brand and Design Toolkitnextlevelbuilder/ui-ux-pro-max-skill135k1 repos~3.5kAutomated safety check: PassMIT

Similar skills

  • Frontend Slides

    zarazhangrui/frontend-slides

    Builds animated HTML slide decks that run in the browser with no dependencies, or converts PowerPoint files to the web, starting from visual style previews.

    30k GitHub starsUsed in 16 repos~7k tokens
    Documents & OfficeAuto-check passed
  • Official

    Creates original generative art in two steps: a written algorithmic philosophy, then a p5.js sketch with seeded randomness and an interactive viewer for exploring parameters.

    180k GitHub starsUsed in 38 repos~4.9k tokens
    Media & CreativeAuto-check passed
  • Canvas Design

    anthropics/skills

    Official

    Creates original posters and static art as PNG or PDF by first writing a short design philosophy, then expressing it visually on a canvas.

    180k GitHub starsUsed in 52 repos~3k tokens
    Media & CreativeAuto-check passed
  • Impeccable

    bestofjs/bestofjs

    A skill your agent uses when the user wants to design, redesign, shape, critique, audit, polish, clarify, distill, harden, optimize, adapt, animate, colorize, extract, or otherwise improve a…

    3.1k GitHub starsUsed in 26 repos~2.6k tokens
    Frontend & DesignAuto-check passed
  • Brand and Design Toolkit

    nextlevelbuilder/ui-ux-pro-max-skill

    Bundles design tasks behind one skill: brand identity, tokens, UI styling, logos, corporate identity mockups, slides, banners, icons and social images.

    135k GitHub starsUsed in 1 repo~3.5k tokens
    Media & CreativeAuto-check passed
  • HyperFrames Animation

    heygen-com/hyperframes

    Collects motion rules, scene blueprints, transitions and runtime adapters for HyperFrames video compositions, with GSAP as the default animation runtime.

    60k GitHub starsUsed in 3 repos~2.1k tokens
    Media & CreativeAuto-check passed

More from mirage-project/mirage

All 24 skills in this repo
  • V2 Perf Iteration

    mirage-project/mirage

    Runtime-V2 performance-iteration workflow. An agent skill from mirage-project/mirage.

    2.5k GitHub stars~4k tokensUpdated 3 days ago
    Auto-check passed
  • Add Mpk Task

    mirage-project/mirage

    Step-by-step guide for adding a new task implementation to Mirage Persistent Kernel (MPK).

    2.5k GitHub stars~4.5k tokensUpdated 3 days ago
    Auto-check passed
  • B200 Flash Attention4 Planner

    mirage-project/mirage

    A skill your agent uses when the user wants to design or extend a FlashAttention-style forward kernel on B200/Blackwell, involving the two MMAs QKᵀ and PV, online softmax, S/P/O in TMEM, warp roles…

    2.5k GitHub stars~1.9k tokensUpdated 3 days ago
    Auto-check passed
  • Mpk Faithful Gate

    mirage-project/mirage

    Build or run a FAITHFUL in-MPK per-task latency gate (slowCTA at the production grid + cos) for a DeepSeek-V3 MPK decode kernel or shape.

    2.5k GitHub stars~2.6k tokensUpdated 3 days ago
    Auto-check passed
  • Mpk Lever Cleanup

    mirage-project/mirage

    A skill your agent uses when a batch of env-gated (ifdef MPKDSV3 / os.environ-controlled, default-OFF) MPK optimization levers needs to be consolidated into a single clean code path for a PR…

    2.5k GitHub stars~2.2k tokensUpdated 3 days ago
    Auto-check passed
  • Test Mode

    mirage-project/mirage

    Guide for using MPK test mode to unit-test individual layers or multi-layer pipelines through the full compilation pipeline.

    2.5k GitHub stars~4.6k tokensUpdated 3 days ago
    Auto-check passed

Questions about B200 Tma Pipeline Designer

What does B200 Tma Pipeline Designer do?

A skill your agent uses when the user wants to convert regular GMEM↔SMEM tile copies to TMA on B200/Blackwell, design double-buffered/multi-stage pipelines, choose a swizzle, or distinguish the TMA…. B200 Tma Pipeline Designer is an agent skill from mirage-project/mirage. Use when the user wants to convert regular GMEM↔SMEM tile copies to TMA on B200/Blackwell, design double-buffered/multi-stage pipelines, choose a swizzle, or distinguish the TMA load vs store completion protocols.

When should I use B200 Tma Pipeline Designer?

B200 Tma Pipeline Designer fits situations like: the user wants to convert regular GMEM↔SMEM tile copies to TMA on B200/Blackwell; design double-buffered/multi-stage pipelines; choose a swizzle; distinguish the TMA load vs store completion protocols.

How do I install B200 Tma Pipeline Designer in Claude Code?

Run `npx skills add mirage-project/mirage --skill b200-tma-pipeline-designer -a claude-code`. Or copy the skill folder (.claude/skills/b200-tma-pipeline-designer in mirage-project/mirage) into .claude/skills/b200-tma-pipeline-designer in your project. Claude Code loads it when a task matches its description.

How do I install B200 Tma Pipeline Designer in Codex?

Run `npx skills add mirage-project/mirage --skill b200-tma-pipeline-designer -a codex`. Or copy the skill folder (.claude/skills/b200-tma-pipeline-designer in mirage-project/mirage) into .agents/skills/b200-tma-pipeline-designer in your project. Codex loads it when a task matches its description.

Can I use B200 Tma Pipeline Designer 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 mirage-project/mirage --skill b200-tma-pipeline-designer -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/b200-tma-pipeline-designer, .gemini/skills/b200-tma-pipeline-designer, .github/skills/b200-tma-pipeline-designer and .opencode/skills/b200-tma-pipeline-designer in your project.

What does B200 Tma Pipeline Designer need to run?

SKILL.md names no scripts, command-line tools or credentials: B200 Tma Pipeline Designer is instructions for the agent only.

Does B200 Tma Pipeline Designer access the network?

SKILL.md names 1 domain. As links in the text: mlc.ai. This is read from the text; nothing was executed.

Is B200 Tma Pipeline Designer 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 B200 Tma Pipeline Designer use?

B200 Tma Pipeline Designer 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 B200 Tma Pipeline Designer use?

About 1.9k tokens (SKILL.md is roughly 7.4k 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 B200 Tma Pipeline Designer?

Skills that share tags, products or a category with B200 Tma Pipeline Designer: Frontend Slides (zarazhangrui/frontend-slides, 30k stars), Algorithmic Art with p5.js (anthropics/skills, 180k stars), Canvas Design (anthropics/skills, 180k stars) and Impeccable (bestofjs/bestofjs, 3.1k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains B200 Tma Pipeline Designer?

mirage-project (a GitHub organization) maintains it in mirage-project/mirage, which has 2,545 GitHub stars. The repository holds 24 skills in this directory. The repository was last updated on October 7, 2026.

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