tilelang-ascend: Skill for Claude Code

.agents/skills/tilelang-op-develop/SKILL.md

tilelang-op-develop is a skill for Claude Code, Codex from tile-ai/tilelang-ascend. It costs 70 tokens per session (4,813 once invoked), scanned A, original, MIT.

A code-and-test generator for TileLang-Ascend operators, which are GPU-like computation kernels for Ascend hardware. It reads selected details from a design document and uses example implementations as coding references.

In plain words
What is it for?
Use it to implement an operator or kernel from design.md, generate its tests, and check results against a reference calculation.
Why use it?
It turns a detailed operator design into a consistent implementation and test structure, while following the documented API, memory, timing, and accuracy requirements.

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 →

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is **⚠️ stride/shape 参数传递(kernel 需要地址偏移时)**:优先作为 `@tilelang.jit` 函数的 Python 参数传入(JIT 编译期常量),kernel 内用 `T.alloc_var` 累加偏移。**不要打包成 int32 GM tensor 在运行时传入**——会增加一次 GM.

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-op-develop/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-op-develop

README.md
[![agentmods](https://agentmods.dev/badge/skills/tile-ai/tilelang-ascend/tilelang-op-develop/github.svg)](https://agentmods.dev/skills/tile-ai/tilelang-ascend/tilelang-op-develop)
Your own site
<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/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-op-develop

Your own site · 80×15
<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="Reviewed on agentmods" width="80" height="20"></a>
Per session 70 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,813 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 warn 7 Sept 2026
SkillSpector: 2 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Agent Snooping · line 47
    Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.
    Fix: Remove all code or instructions that list or read other skills' files or directories. Skills should operate independently; cross-skill access is a privilege escalation.
  • medium Agent Snooping · line 48
    Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.
    Fix: Remove all code or instructions that list or read other skills' files or directories. Skills should operate independently; cross-skill access is a privilege escalation.
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.00070 $0.04813
Opus 5.5 $0.00028 $0.01925
Sonnet 5.5 $0.00014 $0.00963
Haiku 4.5 $0.00007 $0.00481

Measured 2mo ago against content hash 9b9f4162ac85, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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 2mo 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-op-develop/SKILL.md · 236 lines

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 用法和模式选择

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 分支)

查阅示例时关注:

  1. Kernel 结构:T.Kernel 参数、cid/vid 用法
  2. Buffer 分配方式:shape 和 dtype
  3. pass_configs 配置:该类算子实际使用哪些开关
  4. 数据搬运:T.copy 的索引写法
  5. CV 交互(融合算子,按模式):Developer 默认 threads=2 + 片上直连(无 workspace_idx);Expert/混合或回退才看 workspace_idx、数量、shape

Read the full file on GitHub · 236 lines

Files

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.

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. 2mo ago First seen · 236 lines · 70 tokens per session scan A 9b9f4162ac85

Subscribe to this mod's changes

tilelang-op-develop is a skill published in the GitHub repository tile-ai/tilelang-ascend (427 stars, last pushed yesterday), licensed MIT. It adds 70 tokens to every session and 4,813 once invoked, about $0.0003 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-op-develop compared with skills from other repositories

tilelang-op-develop next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
tilelang-op-developtile-ai/tilelang-ascendSkill427yesterdayMITA70Claude Code, Codex
cardputer-buddyanthropics/claude-plugins-officialSkill46kyesterdayApache-2.0A109Claude Code
holoscan-install-wheelNVIDIA/skillsSkill3.9kyesterdayApache-2.0A34Claude Code, Codex
holoscan-module-lifecycleNVIDIA/skillsSkill3.9kyesterdayApache-2.0A47Claude Code, Codex
triton-ascendmindspore-ai/akgSkill2652d agoApache-2.0A28Claude Code, Codex
triton-ascend-case-index-putmindspore-ai/akgSkill2652d agoApache-2.0A73Claude Code, Codex
HA Integration Devtonylofgren/aurora-smart-homeSkill109yesterdayMITA55Claude Code