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-reduction-prod-smallgit 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-reduction-prod-small)<a href="https://agentmods.dev/skills/mindspore-ai/akg/triton-ascend-case-reduction-prod-small"><img src="https://agentmods.dev/badge/skills/mindspore-ai/akg/triton-ascend-case-reduction-prod-small/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-reduction-prod-small"><img src="https://agentmods.dev/badge/skills/mindspore-ai/akg/triton-ascend-case-reduction-prod-small.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.00095 | $0.00625 |
| Opus 5.5 | $0.00038 | $0.00250 |
| Sonnet 5.5 | $0.00019 | $0.00125 |
| Haiku 4.5 | $0.00010 | $0.00063 |
Grade A, and why
triton-ascend-case-reduction-prod-small 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
小规模 Prod 归约优化
任务特征
- 数据尺寸:(16, 2048),reduce第一根轴,非reduce轴中等
优化:自定义reduce函数
# 简单
accumulator = tl.full((BLOCK_SIZE,), 1.0, dtype=tl.float32)
for m in range(M):
错误:accumulator = tl.where(mask, accumulator * data, accumulator)
# 正确:优化
@triton.jit
def mul(a, b):
return a * b
col_prod = tl.full((BLOCK_SIZE_M, BLOCK_SIZE_N), 1.0, dtype=tl.float32)
for m_start in range(0, M, BLOCK_SIZE_M):
col_prod *= block_vals
col_prod = tl.reduce(col_prod, axis=0, combine_fn=mul) # triton没有prod接口
Autotune 配置
# (AI core=40)
# 1. grid=64>40 -> 4.21 us
triton.Config({'BLOCK_SIZE_M': 16, 'BLOCK_SIZE_N': 32})
# 2. grid=40,有尾块 -> 3.28 us
triton.Config({'BLOCK_SIZE_M': 16, 'BLOCK_SIZE_N': 52})
# 3. grid=32<40 -> 2.61 us
triton.Config({'BLOCK_SIZE_M': 16, 'BLOCK_SIZE_N': 64})
# 4. grid=16<40 -> 2.15 us 最优
triton.Config({'BLOCK_SIZE_M': 16, 'BLOCK_SIZE_N': 128})
# 5. grid=2<40,UB占满 -> 2.63 us
triton.Config({'BLOCK_SIZE_M': 16, 'BLOCK_SIZE_N': 1024})
# 6. grid=1 -> 3.25 us
triton.Config({'BLOCK_SIZE_M': 8, 'BLOCK_SIZE_N': 2048})
总结
算子shape较小时(10^5~10^6元素),最优网格数可能需明显小于AI Core数量,过高并行度反而会因调度开销降低性能。
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 · 61 lines · 95 tokens per session scan A 80a77ea5aeb0
triton-ascend-case-reduction-prod-small is a skill published in the GitHub repository mindspore-ai/akg (269 stars, last pushed yesterday), licensed Apache-2.0. It adds 95 tokens to every session and 625 once invoked, about $0.0004 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-09-03.
triton-ascend-case-reduction-prod-small compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| triton-ascend-case-reduction-prod-smallmindspore-ai/akg | Skill | 269 | yesterday | Apache-2.0 | A | 95 | Claude Code, Codex |
| triton-ascend-case-reduction-prod-smallwenyi-li/awesome-agent-kernel-skills | Skill | 11 | 6mo ago | none | A | 95 | Claude Code, Codex |
| triton-ascend-case-reduction-weighted-swigluwenyi-li/awesome-agent-kernel-skills | Skill | 11 | 6mo ago | none | A | 97 | Claude Code, Codex |
| triton-ascend-case-elemwise-zeroswenyi-li/awesome-agent-kernel-skills | Skill | 11 | 6mo ago | none | A | 67 | Claude Code, Codex |
| triton-ascend-case-reduction-sum-largewenyi-li/awesome-agent-kernel-skills | Skill | 11 | 6mo ago | none | A | 92 | Claude Code, Codex |
| agent-platform-model-registrygoogle/skills | Skill | 26k | yesterday | Apache-2.0 | A | 60 | Claude Code, Codex |
| llm-evaluationsickn33/agentic-awesome-skills | Skill | 51k | today | MIT | A | 25 | Claude Code |