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 (5,042 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 5,042 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.05042
Opus 5.5 $0.00049 $0.02017
Sonnet 5.5 $0.00024 $0.01008
Haiku 4.5 $0.00012 $0.00504

Measured 28d ago against content hash bac60c45424f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 28d 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 · 331 lines

How it starts

The opening of the file, as written. The whole thing — 331 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 与结构 facts 上下游数据及 IR contract 从 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 · 331 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. 1mo ago Changed · +15 lines bac60c45424f
  2. 2mo 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 (427 stars, last pushed yesterday), licensed MIT. It adds 122 tokens to every session and 5,042 once invoked, about $0.0005 per session on Opus 5.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

tilelang-pass-generate compared with skills from other repositories

tilelang-pass-generate next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
tilelang-pass-generatetile-ai/tilelang-ascendSkill427yesterdayMITA122Claude Code, Codex
zoom-meeting-sdk-unrealanthropics/knowledge-work-pluginsSkill35k2d agoApache-2.0A41Claude Code
doca-argpNVIDIA/skillsSkill3.9kyesterdayApache-2.0A277Claude Code, Codex
cpu-kernelshuggingface/kernelsSkill783yesterdayApache-2.0A89Claude Code
llvm-learninggmh5225/awesome-llvm-securitySkill8901mo agoMITA39Claude Code
cpp-prormyndharis/antigravity-skillsSkill1.9k23d agoMITA53Claude Code, Codex
llvm-securitygmh5225/awesome-llvm-securitySkill8901mo agoMITA43Claude Code