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 skills add mindspore-ai/akg --skill triton-ascend-case-elemwise-zerosgit clone --depth 1 https://github.com/mindspore-ai/akgWrote 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/mindspore-ai/akg/triton-ascend-case-elemwise-zeros)<a href="https://agentmods.dev/skills/mindspore-ai/akg/triton-ascend-case-elemwise-zeros"><img src="https://agentmods.dev/badge/skills/mindspore-ai/akg/triton-ascend-case-elemwise-zeros/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/mindspore-ai/akg/triton-ascend-case-elemwise-zeros"><img src="https://agentmods.dev/badge/skills/mindspore-ai/akg/triton-ascend-case-elemwise-zeros.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.00067 | $0.00431 |
| Opus 5.5 | $0.00027 | $0.00172 |
| Sonnet 5.5 | $0.00013 | $0.00086 |
| Haiku 4.5 | $0.00007 | $0.00043 |
Grade A, and why
triton-ascend-case-elemwise-zeros 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 3mo 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.
What it actually says
Zeros 创建张量优化案例
任务特征
- 操作类型:Elemwise类型,包含torch的arange、full、zeros、zeros_like等创建张量的操作
- 数据尺寸:(2, 256, 16),数据shape较小
- 数据类型:float32
- 任务特点:可以按照轴的顺序(可flatten为一根轴),外层并行,内层向量化
优化:小shape少核处理
# 内核代码
block_start = pid * BLOCK_SIZE
offsets = block_start + tl.arange(0, BLOCK_SIZE)
mask = offsets < n_elements
zeros = tl.zeros((BLOCK_SIZE,), dtype=tl.float32)
tl.store(output_ptr + offsets, zeros, mask=mask)
优化内容
- 通过设置BLOCK_SIZE的大小,来调整并行,提高性能
- Shape较小时,核数尽量减小,可以避免多核启动和调度开销
总结
- 在Ascend平台上,shape较小的时候,核数尽量减小,可以避免多核启动和调度开销,实现性能优化
- 对于单纯的Elementwise操作,将多根轴的元素展开为一根轴,然后在这根轴上进行切分
- 将block分配给每个线程块,若UB存不下,可考虑多次切分
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.
- 3mo ago First seen · 39 lines · 67 tokens per session scan A fddc8cc71cda
triton-ascend-case-elemwise-zeros is a skill published in the GitHub repository mindspore-ai/akg (269 stars, last pushed today), licensed Apache-2.0. It adds 67 tokens to every session and 431 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.
triton-ascend-case-elemwise-zeros compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| triton-ascend-case-elemwise-zerosmindspore-ai/akg | Skill | 269 | today | Apache-2.0 | A | 67 | Claude Code, Codex |
| cardputer-buddyanthropics/claude-plugins-official | Skill | 49k | today | Apache-2.0 | A | 109 | Claude Code |
| holoscan-install-wheelNVIDIA/skills | Skill | 4.3k | today | Apache-2.0 | A | 34 | Claude Code, Codex |
| doca-argpNVIDIA/skills | Skill | 4.3k | today | Apache-2.0 | A | 277 | Claude Code |
| holoscan-module-lifecycleNVIDIA/skills | Skill | 4.3k | today | Apache-2.0 | A | 47 | Claude Code, Codex |
| dimensionaldimensionalOS/dimos | Skill | 4.8k | today | Apache-2.0 | A | 29 | Claude Code, Codex |
| zener-languagediodeinc/pcb | Skill | 536 | today | MIT | A | 19 | Claude Code, Codex |