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 agentmods add skills/mindspore-ai/akg/performance-summarynpx skills add mindspore-ai/akg --skill performance-summarygit 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/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.svg" alt="Measured on agentmods" height="20"></a>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 | $0.00048 | $0.00756 |
| Opus 5 | $0.00024 | $0.00378 |
| Sonnet 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 5d 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.
- 5d 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 (259 stars, last pushed 25d ago), licensed Apache-2.0. It adds 48 tokens to every session and 756 once invoked, about $0.0002 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
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
Perform bounded, local exploratory analysis of explicitly supported scientific files. Use for 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
Build, review, migrate, and safely plan MATLAB or GNU Octave numerical workflows, including arrays, tabular/time data, tests, projects, graphics, MAT files, and explicit Python interoperability.
phylogenetics
Build and analyze phylogenetic trees using MAFFT (multiple alignment), IQ-TREE 2 (maximum likelihood), and FastTree (fast NJ/ML). Visualize with ETE3 or FigTree. For evolutionary analysis, microbial genomics, viral phylodynamics, protein family analysis, and molecular clock studies.
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.
mapping-to-snomed
Maps clinical concept spans extracted by OpenMed to SNOMED CT concepts through a USER-SUPPLIED terminology server (the user's own Ontoserver, Snowstorm, or UMLS/UTS), never a bundled vocabulary. Use when the user wants to code findings, disorders, procedures, body structures, or substances to SNOMED CT, run an ECL…