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-ascend-tile-api/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-ascend-tile-api)<a href="https://agentmods.dev/skills/tile-ai/tilelang-ascend/tilelang-ascend-tile-api"><img src="https://agentmods.dev/badge/skills/tile-ai/tilelang-ascend/tilelang-ascend-tile-api/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-ascend-tile-api"><img src="https://agentmods.dev/badge/skills/tile-ai/tilelang-ascend/tilelang-ascend-tile-api.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector warn
SkillSpector: 3 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 17 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 19 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 139 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.
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.00096 | $0.02512 |
| Opus 5 | $0.00048 | $0.01256 |
| Sonnet 5 | $0.00019 | $0.00502 |
| Haiku 4.5 | $0.00010 | $0.00251 |
Grade A, and why
tilelang-ascend-tile-api 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.
How it starts
The opening of the file, as written. The whole thing — 193 lines — stays where its author put it; the contents beside it link to each section on GitHub.
TileLang Ascend Tile API 开发流程
当任务是新增一个面向用户的 T.tile.xxx 小 API 时使用本 skill,尤其是从 tilelang/language/ascend_tile.py 暴露、并由 Ascend C 代码生成支撑的 API。
这里的目标不只是增加一个 Python 函数名,而是交付一个真正可用的 API:它能编译、能 lowering、能生成合法的 Ascend C、有清晰稳定的语义边界,并且有合适的 CI 测试覆盖。
第一轮调研
开始实现前,先读清楚当前仓库形态,再决定方案:
- 阅读
AGENTS.md。 - 阅读
.agents/skills/tilelang-custom-skill/tilelang-api-best-practices/SKILL.md。 - 阅读
.agents/skills/tilelang-custom-skill/tilelang-api-best-practices/references/api-compute.md。 - 如果涉及编程模式或
pass_configs,阅读.agents/skills/tilelang-custom-skill/tilelang-programming-model-guide/SKILL.md。 - 查看
tilelang/language/ascend_tile.py中最相近的现有 API。 - 查看
testing/python/language/中最相近的测试。 - 查看
src/op/ascend.{h,cc}、src/target/codegen_ascend.cc、src/tl_templates/ascend/common.h中相近的 lowering、codegen 和 helper 实现。
不要凭记忆推断 API 签名。已有本地模式优先于看起来更聪明的新抽象。
范围决策
编辑前,先明确并说明 API 边界:
- 用户 API 名称,例如
T.tile.foo(dst, src, ...)。 - 它属于纯 tile 计算、数据搬运、类 reduction 行为,还是带副作用的写回。
- 支持的 buffer scope,通常是 GM、UB(shared.ub)、L1(shared.l1)、L0(wmma.*),或其中子集。
- 支持的 dtype 和 rank。
- 是否接受
Buffer、BufferLoad、BufferRegion。 - 不支持的参数组合和语义。
- 应该支持 Developer
pass_configs、Expert 模式,还是两者都支持。
当语义无法和主仓 / GPU 的全局 API 对齐时,优先新增 Ascend 专属的 T.tile.xxx API。除非用户明确要求、且语义确实一致,否则不要新增或修改全局 T.xxx API。
实现路径
1. Python 前端
在 tilelang/language/ascend_tile.py 中新增用户入口。
优先复用该文件和 tilelang/language/copy_op.py 里的本地 helper 模式:
- 如果现有 API 会解析 let-bound value,新 API 也应保持一致。
- 只在语义明确时接受
Buffer、BufferLoad或BufferRegion。 - 当 C++ lowering 需要 region、rank 或 extent 信息时,把前端输入转换为
tl.region。 - 对不支持的 scope 或参数组合尽早报错,并给出清晰错误信息。
- 当操作需要 C++ lowering 时,发射命名清晰的 op,通常是
tl.ascend_<api_name>。
除非操作本质上就是普通 copy,否则不要为了省事复用 tl.ascend_copy。有副作用、会改变硬件模式、或语义不同的操作,通常应该有显式 op 名称。
2. C++ Operator 和 Lowering
如果前端发射新的 tl.ascend_* op,需要补齐对应 C++ operator 路径:
- 在
src/op/ascend.h中声明。 - 在
src/op/ascend.cc中实现参数解析和 lowering。 - 当它需要 tile-op lowering 时,用
TIR_REGISTER_TL_OP注册。 - 保留 region 信息,直到 lowering 可以计算访问指针、extent、stride、mask 或合法 shape。
- 即使 Python 已经做过校验,C++ 侧也要重新检查关键约束。
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.
- 9d ago First seen · 193 lines · 96 tokens per session scan A 5330c4b4ce70
tilelang-ascend-tile-api is a skill published in the GitHub repository tile-ai/tilelang-ascend (363 stars, last pushed today), licensed MIT. It adds 96 tokens to every session and 2,512 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
doca-argp
Use this skill for hands-on DOCA Arg Parser CLI work on a shipped sample or new DOCA-using app — adding / removing / renaming flags; wiring docaargpinit → register params → docaargpstart → docaargpdestroy in order; picking a parameter type from the full public enum (DOCAARGPTYPESTRING, INT, BOOLEAN, DEVICE, DEVICEREP…
embedded-stm32
Best practices for embedded C/C++ development on STM32 microcontrollers using the HAL, covering peripherals, DMA, interrupts, memory constraints, and hardware-focused testing. Use when writing STM32 HAL code, configuring peripherals generated by STM32CubeMX, working with interrupts or DMA, debugging with SWD/JTAG…
hip-kernel-optimization
This skill should be used when writing or tuning HIP kernels on AMD/NVIDIA GPUs, covering memory coalescing, shared-memory tiling, bank conflict avoidance, warp primitives, occupancy, vectorization, async ops, loop unrolling, and profiling.
cuda
Use when writing CUDA kernels, managing the thread, block, and grid hierarchy, tiling shared memory, using streams, setting nvcc flags, or using Thrust. Not for kernel debugging: use cuda-debugging.
acad-arx-wizard
Agentic ObjectARX project scaffolding for AutoCAD 2027 / Visual Studio 2026. Replaces the broken .vsz VsWizardEngine wizard with a PowerShell script that generates identical C++ project files. Works for new ARX/DBX/CRX projects and add-on class wizards (Jig, Reactors, Custom Object, MFC, .NET Wrapper, COM Wrapper…
hls-c2rtl
Translate C / C++ / SystemC algorithmic descriptions into synthesizable RTL via High-Level Synthesis. Use when the user says "HLS", "C to RTL", "C++ to Verilog", "Vitis HLS", "Catapult", "XLS", "algorithmic design", or provides a reference implementation in software and asks for hardware.