Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/mindspore-ai/akgnpx agentmods add skills/mindspore-ai/akg/performance-summaryWrote 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/performance-summary)<a href="https://agentmods.dev/skills/mindspore-ai/akg/performance-summary"><img src="https://agentmods.dev/badge/skills/mindspore-ai/akg/performance-summary/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/performance-summary"><img src="https://agentmods.dev/badge/skills/mindspore-ai/akg/performance-summary.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.00048 | $0.00756 |
| Opus 5.5 | $0.00019 | $0.00302 |
| Sonnet 5.5 | $0.00010 | $0.00151 |
| Haiku 4.5 | $0.00005 | $0.00076 |
Grade A, and why
performance-summary 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
性能汇总
汇总和对比多个算子的性能指标。
工作流程
-
收集性能数据
- 使用
read_file读取各算子的verify_<op_name>/result.json - 提取关键指标:latency_ms, throughput, memory_usage_mb, speedup
- 使用
-
生成对比表格
| 算子 | 延迟 (ms) | 吞吐量 | 内存 (MB) | 加速比 | |--------|-----------|--------|-----------|--------| | relu | 0.15 | 1000 | 128 | 2.3x | -
分析结果
- 找出最优/最差的算子
- 标注性能异常点
- 提出优化目标
-
生成报告 使用模板:
## 测试环境→## 性能对比→## 分析→## 优化建议
数据位置
性能结果存储在验证目录中:
verify_<op_name>/result.json- 主要结果verify_<op_name>/profiling.json- 详细性能分析(如有)
关键指标
| 指标 | 说明 |
|---|---|
| latency_ms | 单次执行延迟(毫秒) |
| throughput | 每秒操作数 |
| speedup | 相对基准(torch)的加速比 |
| memory_usage_mb | 峰值内存占用(MB) |
示例
用户: "帮我汇总 relu 和 sigmoid 算子的性能"
Agent 执行:
- 调用
read_file("verify_relu/result.json") - 调用
read_file("verify_sigmoid/result.json") - 提取指标,构建对比表格
- 生成汇总和优化建议
脚本调用
可使用 scripts/collect_metrics.py 批量收集并打印性能汇总:
from collect_metrics import collect_metrics, print_results
# 打印格式化的性能汇总结果
print_results()
Skill 验证
使用 --verify 参数验证当前 skill 是否可用:
python scripts/collect_metrics.py --verify
验证内容包括:
- SKILL.md 文件是否存在且格式正确
- 核心函数是否可调用
- 依赖模块是否可用
- 模拟执行测试
输出示例:
============================================================
性能汇总结果
============================================================
| Operator | Latency (ms) | Throughput | Memory (MB) | Speedup | Correct |
|----------|--------------|------------|-------------|---------|---------|
| matmul | 1.234 | 5000 | 256.0 | 1.80x | ✅ |
| relu | 0.150 | 10000 | 128.0 | 2.30x | ✅ |
| sigmoid | 0.180 | 8000 | 128.0 | 2.10x | ✅ |
============================================================
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 · 94 lines · 48 tokens per session scan A b3ed6da20941
performance-summary is a skill published in the GitHub repository mindspore-ai/akg (269 stars, last pushed yesterday), licensed Apache-2.0. It adds 48 tokens to every session and 756 once invoked, about $0.0002 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.
performance-summary compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| performance-summarymindspore-ai/akg | Skill | 269 | yesterday | Apache-2.0 | A | 48 | Claude Code, Codex |
| instrument-data-to-allotropeanthropics/knowledge-work-plugins | Skill | 38k | yesterday | Apache-2.0 | A | 123 | Claude Code |
| matlabK-Dense-AI/scientific-agent-skills | Skill | 60k | 6d ago | MIT | A | 44 | Claude Code |
| exploratory-data-analysisK-Dense-AI/scientific-agent-skills | Skill | 60k | 6d ago | MIT | A | 83 | Claude Code |
| phylogeneticsK-Dense-AI/scientific-agent-skills | Skill | 60k | 6d ago | MIT | A | 71 | Claude Code, Codex |
| research-engineerdavila7/claude-code-templates | Skill | 35k | today | MIT | A | 43 | Claude Code, Codex |
| mapping-to-snomedmaziyarpanahi/openmed | Skill | 5.9k | 6d ago | Apache-2.0 | A | 205 | Claude Code |