tilelang-ascend: Skill for Claude Code

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

tilelang-pass-analyzer is a skill for Claude Code, Codex from tile-ai/tilelang-ascend. It costs 154 tokens per session (3,540 once invoked), scanned A, original, MIT.

An analysis tool for TileLang compiler passes, which are transformation steps that change or optimize the program before it runs.

In plain words
What is it for?
Use it to investigate what a particular pass does, compare two passes, find passes related to a topic such as memory or synchronization, or obtain implementation details when needed.
Why use it?
It explains unfamiliar passes without requiring an immediate deep read of the source code. It can also clarify differences, relationships, categories, or likely matches between passes.

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-analyzer/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-analyzer

README.md
[![agentmods](https://agentmods.dev/badge/skills/tile-ai/tilelang-ascend/tilelang-pass-analyzer/github.svg)](https://agentmods.dev/skills/tile-ai/tilelang-ascend/tilelang-pass-analyzer)
Your own site
<a href="https://agentmods.dev/skills/tile-ai/tilelang-ascend/tilelang-pass-analyzer"><img src="https://agentmods.dev/badge/skills/tile-ai/tilelang-ascend/tilelang-pass-analyzer/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-analyzer

Your own site · 80×15
<a href="https://agentmods.dev/skills/tile-ai/tilelang-ascend/tilelang-pass-analyzer"><img src="https://agentmods.dev/badge/skills/tile-ai/tilelang-ascend/tilelang-pass-analyzer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 154 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,540 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.00154 $0.03540
Opus 5 $0.00077 $0.01770
Sonnet 5 $0.00031 $0.00708
Haiku 4.5 $0.00015 $0.00354

Measured 9d ago against content hash c7f8a04e0b97, 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-analyzer 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 9d 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-analyzer/SKILL.md · 383 lines

How it starts

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

TileLang Pass 分析工具

⭐ 核心约束:分阶段信息获取

严格遵守以下信息获取优先级:

查询阶段 信息来源 工具使用
首次回答 优先使用 reference 文件 read(references/*.md)
用户追问深入细节 读取源码补充 read(src/transform/*.cc)

执行规则:

用户首次提问 Pass 功能
  ↓
1. 立即读取 reference 文件(pass-registry-*.md / pass-classification.md)
  ↓
2. 基于 reference 信息生成报告(足够回答 90% 的查询)
  ↓
3. 仅在用户追问"具体实现"、"源码细节"、"某个函数逻辑"时才读取源码

禁止行为:

  • ❌ 首次回答就读取 src/transform/*.cc 源码文件
  • ❌ 忽略 reference 文件中的已有信息
  • ❌ 过度深入分析辅助工具类(首次回答时)
  • ❌ 首次回答就并行读取 reference 和源码

核心工作流程

Step 1: 解析用户意图

根据用户输入判断查询类型:

意图类型 关键词特征 处理方式
单 Pass 分析 "XX pass 是做什么的"、"分析 XX pass"、"XX 的功能" 查 registry → 分析代码 → 生成报告
双 Pass 对比 "XX 和 YY 的区别"、"对比 XX YY"、"XX YY 的差异" 生成对比报告(每节对比)
双 Pass 联系 "XX 和 YY 的联系"、"XX YY 的关系"、"XX YY 协作" 生成联系报告(每节分析关系)
分类查询 "XX 类的 pass"、"内存相关 pass"、"Ascend pass 有哪些" 查 classification → 列表报告
模糊匹配 "sync 相关"、"vector pass"、"那个插入同步的" 搜索 → 返回候选列表

Step 2: Pass 定位

精确匹配:

1. 读取 references/pass-registry-ascend.md 或 pass-registry-general.md
2. 根据名称获取:C++ 文件路径、Python 函数名、配置键
3. 定位到具体文件

模糊匹配策略:

1. 提取用户输入的关键词(去除 pass、transform 等通用词)
2. 在 registry 中搜索名称包含关键词的所有 pass
3. 返回候选列表(最多 5 个):序号、名称、简述、分类
4. 提示用户选择序号或输入完整名称

分类查询:

1. 读取 references/pass-classification.md
2. 根据用户指定的分类(如"内存管理"、"同步"、"Ascend平台")返回列表
3. 按子分类组织输出

Step 3: 代码分析(仅在用户追问深入时执行)

⚠️ 重要:首次提问时跳过此步骤,仅使用 reference 文件信息。

仅在用户追问以下问题时才执行此步骤:

  • "某个函数的具体实现"
  • "源码中的某个细节"
  • "算法的具体逻辑"
  • "某个配置项的作用"

按以下顺序分析 Pass 实现:

1. Python API 层

  • 文件:tilelang/transform/__init__.py
  • 提取:函数签名、docstring、参数

2. C++ 实现层

  • 文件:src/transform/<pass_name>.cc
  • 提取:
    • 文件头注释 /*! \file ... */
    • 主类名(通常继承 IRMutatorWithAnalyzerStmtExprVisitor 等)
    • 核心方法名(如 SubstituteVisitStmtVisitExpr
    • 注册宏 TVM_REGISTER_PASS_CONFIG_OPTIONTVM_REGISTER_GLOBAL

3. 配置层

  • 文件:tilelang/transform/pass_config.py
  • 提取:配置键名、默认值、描述

Read the full file on GitHub · 383 lines

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. 9d ago First seen · 383 lines · 154 tokens per session scan A c7f8a04e0b97

Subscribe to this mod's changes

tilelang-pass-analyzer is a skill published in the GitHub repository tile-ai/tilelang-ascend (363 stars, last pushed yesterday), licensed MIT. It adds 154 tokens to every session and 3,540 once invoked, about $0.0008 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

hr-onboarding

A new-hire onboarding plan as a single page — first week schedule, buddy + manager intro, learning track, equipment checklist, and "you're set when…" outcomes. Use when the brief mentions "onboarding", "new hire", "first week plan", or "入职".

nexu-io/open-design · 62 tokens

book-mirror

Take any book (EPUB/PDF), produce a personalized chapter-by-chapter analysis. Each chapter is preserved in detail (The Chapter) and mirrored back to the reader's actual life (The Mirror) using brain context. The mirror observes and resonates — a friend pointing out parallels, NOT a consultant rearranging the reader's…

garrytan/gbrain · 138 tokens

miniapp

Build a tiny interactive HTML playground only when someone asks to see, play with, or step through a mechanism.

yc-software/qm · 25 tokens

eli5

Explain research, papers, or technical ideas in plain English with minimal jargon, concrete analogies, and clear takeaways. Use when the user says "ELI5 this", asks for a simple explanation of a paper or research result, wants jargon removed, or asks what something technically dense actually means.

companion-inc/feynman · 63 tokens

deck-course-module

A course or workshop slide template with persistent learning goals, teaching pages, multiple-choice self-tests, and a wrap-up.

nexu-io/html-anything · 25 tokens

master-yinguang

A reference-based assistant for questions about Yinguang and Pure Land Buddhism, a Buddhist tradition focused on faith, ethical living, and practice connected with rebirth in the Pure Land. It can answer in Yinguang’s historical teaching style.

xr843/Master-skill · 274 tokens