Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add skills/tile-ai/tilelang-ascend/tilelang-op-developnpx skills add tile-ai/tilelang-ascend --skill tilelang-op-developgit 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-op-develop)<a href="https://agentmods.dev/skills/tile-ai/tilelang-ascend/tilelang-op-develop"><img src="https://agentmods.dev/badge/skills/tile-ai/tilelang-ascend/tilelang-op-develop.svg" alt="Measured on agentmods" height="20"></a>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 | $0.00070 | $0.04813 |
| Opus 5 | $0.00035 | $0.02406 |
| Sonnet 5 | $0.00014 | $0.00963 |
| Haiku 4.5 | $0.00007 | $0.00481 |
Grade A, and why
tilelang-op-develop 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 5d 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 — 236 lines — stays where its author put it; the contents beside it link to each section on GitHub.
TileLang-Ascend 算子代码生成
基于设计文档(design.md)和已有示例,生成可运行的算子实现与测试。
1. 从 design.md 中提取的信息(只取这些)
design.md 可能很长,只提取以下字段,忽略其余内容:
| 提取字段 | 所在章节 | 用途 |
|---|---|---|
| 数学公式 | §1 概述 | 理解计算逻辑 |
| 算法步骤分解 | §1 算法描述 | 确定计算顺序 |
| API 映射表 | §3 API 映射设计 | 核心:每步用哪个 TileLang API |
| 伪代码 | §3 计算伪代码 | 核心:代码骨架 |
| 输入输出 shape 和 dtype | §4 数据规格 | 函数签名和测试数据 |
| block 大小 | §5 Tiling 策略 | 分块参数 |
| pass_configs | §7 同步策略 | JIT 配置 |
| Golden 函数 | §9.1 Golden 函数 | 测试对比基准 |
| 测试用例表 | §9.2 L0 门槛测试计划 | 测试配置 |
| 精度标准 | §9.3 精度标准 | 混合容差:atol / rtol / max_abs_error_limit / required_matched_ratio(按 dtype) |
| 路径性能可行性表 | §5/§6 | GM pass、DMA transaction、GM 标量访问、地址计算和并行度 |
| 性能可行性哨兵 | §9 | 每条路径最坏 dtype/最大任务数 case 与单 case 超时预算 |
明确忽略的内容(这些容易误导):
- 模式选型的分析推理过程
- 内存预算的计算过程和多轮优化迭代
- 仅忽略没有量化证据的笼统风险;凡是包含具体 shape、dtype、超时、GM/DMA 成本或回退路径的风险必须提取并作为验收约束
- 交付清单(仅是文件列表)
- 任何标注为"待确认"的内容
2. 参考来源(优先级高于 design.md 伪代码)
当 design.md 伪代码与 examples/ 中同类实现有冲突时,以 examples/ 为准。
2.1 API 用法和模式选择
- API 用法:查阅 tilelang-api-best-practices SKILL.md 及其 references 目录
- 编程模式和 pass_configs:查阅 tilelang-programming-model-guide SKILL.md 及其 references 目录
2.2 同类算子示例
生成代码前,必须查阅 examples/ 中的同类算子:
| 算子类型 | 参考示例 |
|---|---|
| 逐元素运算(add/mul/sigmoid/relu) | examples/elementwise/、examples/activation/ |
| 归约运算(reduce_sum/max/min) | examples/reduce/ |
| 归一化(softmax/layernorm/rmsnorm) | examples/softmax/、examples/normalization/ |
| GEMM | examples/gemm/、examples/developer_mode/gemm_developer.py |
| 融合算子 | examples/flash_attention/、examples/pipeline/、examples/developer_mode/matmul_add_developer.py |
| Developer 模式 | examples/developer_mode/ |
| transpose / layout transform | examples/transpose/transpose.py(提取结构谓词、 |
| 连续 suffix-record 聚合搬运和通用 fallback;不得照抄具体 perm/shape 分支) |
查阅示例时关注:
- Kernel 结构:
T.Kernel参数、cid/vid用法 - Buffer 分配方式:shape 和 dtype
- pass_configs 配置:该类算子实际使用哪些开关
- 数据搬运:
T.copy的索引写法 - CV 交互(融合算子,按模式):Developer 默认
threads=2+ 片上直连(无 workspace_idx);Expert/混合或回退才看 workspace_idx、数量、shape
What ships with it
8 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.
- 5d ago First seen · 236 lines · 70 tokens per session scan A 9b9f4162ac85
tilelang-op-develop is a skill published in the GitHub repository tile-ai/tilelang-ascend (363 stars, last pushed today), licensed MIT. It adds 70 tokens to every session and 4,813 once invoked, about $0.0003 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
cardputer-buddy
Iterate on the Cardputer-Adv MicroPython app bundle (Claude Buddy, Snake, Hello) after the device is already provisioned via m5-onboard. Use when the user wants to add a new app, push a single changed .py without re-flashing, watch device serial logs, or run a one-shot REPL command. Trigger on "add an app", "push to…
holoscan-install-wheel
Install Holoscan SDK Python wheel via pip into a venv. Use for Python installs; not for native C++/apt or Conda installs.
HA Integration Dev
Home Assistant custom integration development in Python. Covers customcomponents, DataUpdateCoordinator, configflow, OAuth2, conversation agent, HACS publishing, device registry, entity platforms, services, repair issues, diagnostics, Bluetooth integrations, and multi-coordinator patterns.
triton-ascend
Triton Ascend NPU编程指南,包含核心概念、标准模式和完整示例.
triton-ascend-case-index-put
索引赋值(indexput)优化:批量加载索引数据到UB后循环内通过getelement复用(避免重复访问全局内存),显著降低内存访问延迟,适用于需要在循环中多次访问同一片数据的不规则内存访问场景.
xpu-port
Execute a single-target CUDA-to-XPU port of a PyTorch repo with libcst-based scan, mechanical rewrite, and CPU FP64 vs target-dtype correctness verify on one forward pass. Use when the request says "port" — "port my repo to XPU", "port my repo at to XPU", "rewrite the CUDA calls to XPU", "apply the mechanical…