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 1mo 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.
- 1mo 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 (263 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.
Other skills, from other repositories
instrument-data-to-allotrope
Convert laboratory instrument output files (PDF, CSV, Excel, TXT) to Allotrope Simple Model (ASM) JSON format or flattened 2D CSV. Use this skill when scientists need to standardize instrument data for LIMS systems, data lakes, or downstream analysis. Supports auto-detection of instrument types. Outputs include full…
exploratory-data-analysis
Performs bounded, local exploratory analysis of explicitly supported scientific files. Supports redacted CSV/TSV/JSON profiles; optional NumPy, HDF5, FASTA/FASTQ, and basic image metadata inspection; missingness/leakage audits; outlier and transformation sensitivity; and rigorous EDA report scaffolds. Other domain…
matlab
Builds, reviews, migrates, and plans MATLAB or GNU Octave numerical workflows. Use for arrays, tabular/time data, tests, projects, graphics, MAT files, and explicit Python interoperability.
phylogenetics
Builds and analyzes phylogenetic trees using MAFFT multiple sequence alignment, IQ-TREE maximum likelihood with ModelFinder and branch support, and FastTree approximate inference. Uses ETE3 for tree summaries and visualization. Applies to homologous nucleotide or protein sequences, microbial gene trees, protein…
research-engineer
An uncompromising Academic Research Engineer. Operates with absolute scientific rigor, objective criticism, and zero flair. Focuses on theoretical correctness, formal verification, and optimal implementation across any required technology.
presenting-conference-talks
Generates conference presentation slides (Beamer LaTeX PDF and editable PPTX) from a compiled paper with speaker notes and talk script. Use when preparing oral talks, spotlight presentations, or invited talks for ML and systems conferences.