tilelang-ascend: Skill for Claude Code

.agents/skills/tilelang-pass-generate/SKILL.md

tilelang-pass-generate is a skill for Claude Code, Codex from tile-ai/tilelang-ascend. It costs 122 tokens per session (4,937 once invoked), scanned A, original, MIT.

A code-generation skill for a compiler pass in TileLang-Ascend. A compiler pass is a transformation that changes or analyses an intermediate form of code before final machine code is produced.

In plain words
What is it for?
Use it to implement a designed pass, add its Python interface, connect it to the compiler pipeline, and run a basic import and pipeline check.
Why use it?
It turns an approved pass design into the connected C++ and Python implementation while keeping testing as a separate step.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is tile-ai/tilelang-ascend's own configuration. It tells Claude Code and Codex how to work on tilelang-ascend itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything tilelang-ascend configures →

Reuse

Borrowing it

Nothing to install: this file belongs to tile-ai/tilelang-ascend. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/tile-ai/tilelang-ascend/ascendc_pto/.agents/skills/tilelang-pass-generate/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/tile-ai/tilelang-ascend

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for tilelang-pass-generate

README.md
[![agentmods](https://agentmods.dev/badge/skills/tile-ai/tilelang-ascend/tilelang-pass-generate/github.svg)](https://agentmods.dev/skills/tile-ai/tilelang-ascend/tilelang-pass-generate)
Your own site
<a href="https://agentmods.dev/skills/tile-ai/tilelang-ascend/tilelang-pass-generate"><img src="https://agentmods.dev/badge/skills/tile-ai/tilelang-ascend/tilelang-pass-generate/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for tilelang-pass-generate

Your own site · 80×15
<a href="https://agentmods.dev/skills/tile-ai/tilelang-ascend/tilelang-pass-generate"><img src="https://agentmods.dev/badge/skills/tile-ai/tilelang-ascend/tilelang-pass-generate.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 122 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,937 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00122 $0.04937
Opus 5 $0.00061 $0.02469
Sonnet 5 $0.00024 $0.00987
Haiku 4.5 $0.00012 $0.00494

Measured 10d ago against content hash bf6199dfc96d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

tilelang-pass-generate scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/tilelang-pass-generate/SKILL.md · 316 lines

How it starts

The opening of the file, as written. The whole thing — 316 lines — stays where its author put it; the contents beside it link to each section on GitHub.

TileLang-Ascend Pass 代码生成 Skill


1. 目标与边界

1.1 本 skill 负责(In Scope)

把已经定型的 Pass 设计文档(pass-design.md)落到代码上,覆盖:

  • C++ 实现src/transform/<pass_name>.cc
  • Python 封装tilelang/transform/__init__.py
  • 配置键(可选)tilelang/transform/pass_config.py
  • Pipeline 接入tilelang/engine/phase.py
  • 最小冒烟验证:导入是否成功、Pipeline 是否仍然能跑通最小 example、跨文件命名是否一致

1.2 本 skill 不做(Out of Scope)

  • 不生成 UT / ST 测试代码 —— 由后续单独的测试生成 skill 负责
  • ❌ 不重做 Pass 定位与方案决策(属于 tilelang-pass-design
  • ❌ 不修改 TVM 原生 Pass

所有重大决策必须沿用 pass-design.md 已经写定的内容;如果设计文档里某项是「待确认」或缺失,则停下来回到 tilelang-pass-design 补齐,不在本 skill 里临时拍板。

完成代码生成后,提示用户调用「Pass 测试生成 skill(待创建)」补 UT/ST,不在本 skill 里偷跑。


2. 必需输入

字段 说明 缺失处理
pass-design.md 已通过 tilelang-pass-design 自检的 Pass 设计文档 询问用户位置;若没有则建议先跑 tilelang-pass-design
Pass 名称 C++ 类名、Python 函数名、注册名 pass-design.md §1.1 读取
阶段归属与位置 Phase 1 / Phase 2,以及插入位点 pass-design.md §2 读取
父类与核心方法 IRMutatorWithAnalyzer / StmtExprVisitor / StmtExprMutator pass-design.md §4.1 读取
输入/输出 attrs 上下游数据传递 pass-design.md §2.4、§3 读取

设计文档 §5「测试方案」本 skill 不消费,仅作为下游测试 skill 的输入保留。

输入校验规则

  1. pass-design.md 不存在 → 立即停止,引导用户使用 tilelang-pass-design
  2. 若设计文档中 §2 / §3 / §4 任一关键章节出现「待确认」「待补充」「TODO」 → 立即停止,列出缺口并要求补齐
  3. 若 Pass 名称、阶段归属、Pipeline 位置任何一项不明确 → 立即停止,要求用户先回到 design skill

3. 工作流程

先骨架、再代码、最后冒烟」三段式流程,骨架阶段不可跳过。

[输入校验]
   ↓
[Phase A: 信息收集]
   ↓
[Phase B: 生成实现骨架文档 pass-impl-skeleton.md]   ← 框架设计文档
   ↓
[用户确认骨架]
   ↓
[Phase C: 落代码(C++ / Python / pass_config / phase.py)]
   ↓
[Phase D: 最小冒烟验证(不跑 UT/ST)]
   ↓
[Phase E: 收尾报告 + 引导补测试]

Phase A:信息收集

按以下顺序读取,禁止一上来就 grep 整个 src/transform/

  1. 设计文档:用户指定路径,或默认在当前目录 pass-design.md
  2. 总体约束.agents/skills/tilelang-pass-agents-guide.md
  3. 实现模式.agents/skills/tilelang-pass-design/references/pass-impl-patterns.md
  4. Pipeline 现状tilelang/engine/phase.py(确认插入位点的上下文与函数签名)
  5. Python 封装现状tilelang/transform/__init__.py(确认现有命名风格、_ffi_api 调用方式)
  6. 相似 Pass 源码pass-design.md §4.1 指定的参考 Pass,仅读 1–2 个最接近的实现,不得扫整目录

Read the full file on GitHub · 316 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 316 lines · 122 tokens per session scan A bf6199dfc96d

Subscribe to this mod's changes

tilelang-pass-generate is a skill published in the GitHub repository tile-ai/tilelang-ascend (364 stars, last pushed today), licensed MIT. It adds 122 tokens to every session and 4,937 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

zoom-meeting-sdk-unreal

Zoom Meeting SDK for Unreal Engine wrapper integrations. Use when building Unreal projects that embed Zoom meetings with C++ and Blueprint wrappers, including wrapper-to-SDK mapping concerns.

anthropics/knowledge-work-plugins · 41 tokens

ax-cpp-gen

Use when writing C++ code with axllm for AxGen programs, forward calls, indexed multi-sampling, result pickers, streaming, tools, assertions, traces, usage, and output parsing.

ax-llm/ax · 48 tokens

doca-argp

Use this skill for hands-on DOCA Arg Parser CLI work on a shipped sample or new DOCA-using app — adding / removing / renaming flags; wiring docaargpinit → register params → docaargpstart → docaargpdestroy in order; picking a parameter type from the full public enum (DOCAARGPTYPESTRING, INT, BOOLEAN, DEVICE, DEVICEREP…

NVIDIA/skills · 267 tokens

cpu-kernels

Provides guidance for writing, optimizing, and benchmarking C++ CPU kernels with SIMD intrinsics (AVX2/AVX512) for the Hugging Face kernels ecosystem. Includes a two-phase workflow: Phase 1 correctness (generic → AVX2) and Phase 2 performance exploration (AVX512 with branching trial loop), runtime CPU dispatch, OpenMP…

huggingface/kernels · 89 tokens

llvm-learning

Comprehensive learning resources and tutorials for LLVM, Clang, and compiler development. Use this skill when helping users learn LLVM internals, find educational resources, or understand compiler concepts.

gmh5225/awesome-llvm-security · 39 tokens

llvm-security

Expertise in LLVM security features including sanitizers, hardening techniques, exploit mitigations, and secure compilation. Use this skill when implementing security-focused compiler features, analyzing vulnerabilities, or hardening applications.

gmh5225/awesome-llvm-security · 43 tokens