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.
curl -O https://raw.githubusercontent.com/tile-ai/tilelang-ascend/ascendc_pto/.agents/skills/tilelang-pass-design/SKILL.mdgit clone --depth 1 https://github.com/tile-ai/tilelang-ascendWrote 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.
[](https://agentmods.dev/skills/tile-ai/tilelang-ascend/tilelang-pass-design)<a href="https://agentmods.dev/skills/tile-ai/tilelang-ascend/tilelang-pass-design"><img src="https://agentmods.dev/badge/skills/tile-ai/tilelang-ascend/tilelang-pass-design/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.
<a href="https://agentmods.dev/skills/tile-ai/tilelang-ascend/tilelang-pass-design"><img src="https://agentmods.dev/badge/skills/tile-ai/tilelang-ascend/tilelang-pass-design.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00098 | $0.02918 |
| Opus 5 | $0.00049 | $0.01459 |
| Sonnet 5 | $0.00020 | $0.00584 |
| Haiku 4.5 | $0.00010 | $0.00292 |
Grade A, and why
tilelang-pass-design 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.
How it starts
The opening of the file, as written. The whole thing — 261 lines — stays where its author put it; the contents beside it link to each section on GitHub.
TileLang-Ascend Pass 设计文档生成 Skill
1. 目标
根据 Pass 需求信息,生成一份完整的 TileLang-Ascend Pass 设计文档(pass-design.md),涵盖以下核心决策:
- Pass 定位:Phase 1 / Phase 2 归属、Pipeline 具体位置
- 依赖分析:上游 Pass 输入、下游 Pass 输出、数据流传递
- IR 变换设计:输入 IR 结构、输出 IR 结构、变换逻辑
- 实现方案:C++ 类设计、核心方法、Python Wrapper、Pipeline 集成
- 测试方案:功能测试、依赖测试、边界测试
- 风险分析:已知约束、常见错误、与其他 Pass 的交互
2. 输入要求
必需信息
| 字段 | 说明 |
|---|---|
| Pass 名称 | 如 BufferReuseOptimizer、L0CLayoutOptimization |
| 功能描述 | Pass 要解决的问题和目标 |
| IR 变换类型 | 修改 IR / 收集信息 / 验证 IR |
| 平台范围 | 平台无关 / Ascend 特定 |
提问规则(必须严格遵守):
- 每次只询问一个字段:使用
question工具时,questions数组中只包含一个元素 - 按表格顺序依次询问:Pass 名称 → 功能描述 → IR 变换类型 → 平台范围
- 已提供的字段跳过:如果用户在初始请求中已提供某个字段的值,跳过该字段继续下一个
推荐信息
| 字段 | 说明 |
|---|---|
| 参考 Pass | 可参考的现有 Pass 名称 |
| 输入数据依赖 | Pass 需要哪些 attrs(如 buffer_shapess、address_map) |
| 输出数据供给 | Pass 产生哪些 attrs 供下游使用 |
| 性能目标 | Pass 对编译时间或生成代码性能的影响 |
3. 工作流程
Phase 1:需求澄清
- 解析用户提供的 Pass 需求信息
- 检查必需字段是否完整
- 按顺序逐一提问补全缺失字段(每次只问一个)
Phase 2:信息收集
-
查阅 Pass 定位参考资料:
tilelang-pass-workflow-analyzer/references/pass-pipeline-overview.md- Pipeline 架构tilelang-pass-workflow-analyzer/references/new-pass-placement-guide.md- 定位决策流程tilelang-pass-workflow-analyzer/references/pass-dependency-graph.md- 依赖关系
-
查阅 Pass 实现参考资料:
tilelang-pass-analyzer/references/pass-registry-ascend.md- 类似 Pass 实现tilelang-pass-analyzer/references/ir-examples.md- IR 变换示例格式
-
查阅本 skill 的实现模式参考:
references/pass-impl-patterns.md- C++ 类模板、注册方式
Phase 3:Pass 定位分析
按照 new-pass-placement-guide.md 的决策流程:
Step 1:分析 Pass 功能
- Pass 的主要功能是什么?
- Pass 修改 IR 还是收集信息?
- Pass 是平台无关还是 Ascend 特定?
- Pass 属于哪类优化(Lowering / 合法化 / 内存 / 流水线 / 同步 / 其他)?
Step 2:分析依赖关系
- Pass 需要哪些输入数据(attrs)?
- 这些数据由哪个 Pass 产生?
- Pass 产生哪些输出数据?
- 这些数据由哪个 Pass 使用?
Step 3:确定阶段归属
- DSL Lowering / IR 合法化 → Phase 1
- 硬件优化 / 内存优化 / 同步优化 → Phase 2
- 输入数据来自 Phase 1 → 可在 Phase 1 或 Phase 2
- 输入数据来自 Phase 2 → 必须在 Phase 2
What ships with it
2 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.
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.
- 10d ago First seen · 261 lines · 98 tokens per session scan A c3089b5a849a
tilelang-pass-design is a skill published in the GitHub repository tile-ai/tilelang-ascend (364 stars, last pushed today), licensed MIT. It adds 98 tokens to every session and 2,918 once invoked, about $0.0005 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.
Other skills, from other repositories
systematic-debugging
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.
local-ai-agents
Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…
next-cache-components-adoption
Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…
insight-error-page
Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…
next-cache-components-optimizer
Drive a Next.js route to instant navigation by setting up an agentic loop, under Cache Components / PPR, on initial load (hard navigation) and client-side navigation (soft navigation). Encode the goal as a failing @next/playwright instant() e2e and work it to green, one verified route at a time; the shipped test then…
next-partial-prefetching-adoption
Turn on Partial Prefetching in a Next.js app and work through the insights it surfaces. Use when the user wants to enable or adopt Partial Prefetching, flip the partialPrefetching flag, opt routes in with export const prefetch = 'partial', audit Link prefetch={true} behavior, preserve existing prefetched UI with…